Failing ZIP deploy on Azure App Service for a ReactJS application - azure

I am trying to deploy a ReactJS application to an Azure App Service. I have created my build (zip) folder from my build pipeline. When I try to deploy the zip to the App Service, however, I am getting the error below.
Error: Package deployment using ZIP Deploy failed. Refer logs for more details.

Issue mitigated by deleting the resources and creating the webapp again.
We can also upload the ZIP file by dragging it to the file explorer area on the web page.
Here is the web page endpoint:
https://<app_name>.scm.azurewebsites.net/ZipDeployUI

Related

Build fails while deploying from GitHub to azure app service (node JS Twilio backend)

I am trying to deploy my backend code to azure app services using the GITHUB actions, the code has been committed and in the action, yml file is also generated, and after clicking the build it fails with an error. Error: Process completed with exit code 1.
It depends which Action you used.
It is recommended to start with "Deploying Node.js to Azure App Service" and its prerequisites (creating an Azure App Service plan, creating a web app, configuring an Azure publish profile and create an AZURE_WEBAPP_PUBLISH_PROFILE secret.)
You can then create your workflow, following the example "deployments/azure-webapps-node.yml" as a possible template, for you to adapt.

Deploy multiple Application to the same Azure web app viaAzure DevOps

I've a two applications, backend and frontend, hosted on the same Azure web app (os : windows).
Actually, i Deploy the two artficats via FTP/S.
I use wwwroot folder to the front and a subfolder in wwwroot folder to the backend
I would use Azure Devops to create a Azure Release to deploy the two application to my web app.
I can't use two app service for the backend and the frontend.
What is the best approch to deploy ? and It's possible to specify a subfolder target in Azure App service into Azure release ?
Regards
It is impossible to specify a subfolder to deploy to in azure release pipeline using the deployment tasks. The artifacts will be deployed to wwwroot folder by default.
However,You can use copy files task in your release pipeline to copy the backend artifacts into the subfolder which resides in the frontend artifacts folder. And then deploy the frontend artifacts folder which contains the backend artifacts in its subfolder. See below:
You can also run Kudu rest api in azure powershell task to deploy to azure web app service.
You can first use the command api to create a subfolder in wwwroot.
{
"command" = 'md subfolder',
"dir"='D:\home\site\wwwroot'
}
Then you can deploy the backend artifacts to the subfolder using zip deploy api
$apiUrl = "https://{sitename}.scm.azurewebsites.net/api/zip/site/wwwroot/subfolder"
Please check out this blog for more information. See this thread for example using azure powershell task to call kudu rest api

While deploying a WAR file into Azure Web Service, It is not showing in the server URL, but pipeline ran Successfully

I am deploying a WAR file into an app server of Azure, My pipeline build is success but my the web app is not showing in the server URL, can someone tell me where I missed?
2020-04-20T14:01:09.3660179Z ##[section]Starting: Deploy War to Azure App Service
2020-04-20T14:01:09.3766431Z
==============================================================================
2020-04-20T14:01:09.3766892Z Task : Azure App Service deploy
2020-04-20T14:01:09.3767548Z Description : Deploy to Azure App Service a web, mobile, or API app
using Docker, Java, .NET, .NET Core, Node.js, PHP, Python, or Ruby
2020-04-20T14:01:09.3767944Z Version : 4.163.5
2020-04-20T14:01:09.3768213Z Author : Microsoft Corporation
2020-04-20T14:01:09.3768522Z Help : https://aka.ms/azureappservicetroubleshooting
2020-04-20T14:01:09.3768901Z
==============================================================================
2020-04-20T14:01:10.5416719Z Got service connection details for Azure App Service:'jpetstore01'
2020-04-20T14:01:13.1232245Z Package deployment using WAR Deploy initiated.
2020-04-20T14:01:28.4292592Z Deploy logs can be viewed at
https://jpetstore01.scm.azurewebsites.net/api/deployments/9d03f1b9973b489e898d2aedfd5f7129/log
2020-04-20T14:01:28.4294018Z Successfully deployed web package to App Service.
2020-04-20T14:01:34.2874810Z Successfully updated App Service configuration details
2020-04-20T14:01:36.5781456Z Successfully updated deployment History at
https://jpetstore01.scm.azurewebsites.net/api/deployments/41587391294722
2020-04-20T14:01:38.3127393Z App Service Application URL: http://jpetstore01.azurewebsites.net
2020-04-20T14:01:41.0462523Z ##[section]Finishing: Deploy War to Azure App Service
This is my pipeline log, It is saying deployment successfull but i am not able to get the web app in http://jpetstore01.azurewebsites.net. can someone help me with this?
From the logs shared by #LoGan, it appears that the war file was deployed successfully by the Azure DevOps task, but the application is running into some errors during startup.
Please navigate to https://<sitename>.scm.azurewebsites.net/DebugConsole and then browse to the D:\home\LogFiles\Application directory. You should see one or more files named catalina.*.log. These are the log files generated by Tomcat, which should provide you some hints about what's going wrong with the application during startup.

Deploy vue.js Quasar App with Azure Portal

I am trying to deploy my Quasar app through Azure Portal. I have created a web app service, connected my github repo through the Deployment centre, and ran the build and deploy github workflow successfully (note: my npm run build calls quasar build which the Quasar docs describe). When I use FileZilla to access my server, I see my entire app along with the dist/spa folder under site/wwwroot so I believe the build worked correctly. Unfortunately, when I try to access my app through the browser, I am welcomed with the default Azure webapp page rather than my app.
Default Azure WebApp Page
I am unsure why my files are not being served. I have deployed a very simple Nuxt.js app in the past using the same approach and managed to deploy it relatively quickly. Perhaps nuxt.js does something under the hood that I am not aware about.
Any leads will be greatly appreciated.

How to upload multiple jar files into Azure through VSTS using Azure App service deploy task

how to deploy multiple jar files into Azure through VSTS using Azure App service deploy task.Currently I am deploying War files using azure app service deploy task but I am not able to deploy jar files.Its throwing the error.The task name is:Azure app service deploy.I tried to deploy using this pattern:$(System.DefaultWorkingDirectory)/project_name/drop/*.jar and $(System.DefaultWorkingDirectory)/project_name/drop/jarfile.jar
I am running the azure app service deploy task at the time of release definition.
Both patterns not working.throwing error.
So can anyone please help me out how to accomplish this task?
Errors:
Error getting when I am giving the below pattern in package or folder option in azure app service deploy task in VSTS.
$(System.DefaultWorkingDirectory)/project_name/drop/*.jar
Error:
More than one package matched with specified pattern. Please restrain the search pattern.
Error getting when I am giving the below pattern in package or folder option in azure app service deploy task in VSTS.
$(System.DefaultWorkingDirectory)/project_name/drop/jarfile.jar
[command]"C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe" -verb:sync -source:package='d:\a\r1\a\project_name\drop\direcotry1\target\jarfile.jar' -dest:contentPath='abc-dev',ComputerName='https://abc-dev.scm.azurewebsites.net:443/msdeploy.axd?site=abc-dev',UserName='********',Password='********',AuthType='Basic' -enableRule:DoNotDeleteRule -userAgent:VSTS_f2463a61-0e8b-4b3a-841d-15b916aae127_release_4_236_570_1
2017-11-02T11:12:56.6532444Z ##[error]Failed to deploy web package to App Service.
2017-11-02T11:12:56.6542438Z ##[error]Error: Package file 'd:\a\r1\a\project_name\drop\direcotry1\target\jarfile.jar' does not have a .zip file name extension.
Error count: 1.
Pleas help me on this..How to give the pattern to upload multiple jar files.
Uncheck Publish using Web Deploy option in Additional Deployment options section of Azure App Service Deploy task, then specify the folder path in Package or folder input box.
Update:
If there are some files in that folder that you don’t want to deploy to azure app services, you can copy necessary files to another folder through Copy File tasks
Update:

Resources