publish war file to Azure Web Service - azure

At first I want to mention, I did try some articles and also tried to get help for existing question/answer regarding deploying the war file to Azure web app but I didn't really got any where. I am new to it but also existing support either was in complete or very old.
I have created an App Service in Azure to host the war file. For my app service, I have selected Java 17 on Linux. For server stack selected 'Java SE'. (I also created another web app with that uses TomCat instead of Java SE server stack)
Then I wanted to publish the war file. So here I need guidance steps/ instruction to publish the war file Azure web app.

You can deploy your WAR package to Azure App Service to run your Java web app using the Azure CLI, PowerShell, or the Kudu Publish API.
Note: It is not recommended of deploying WAR/JAR/EAR packages using FTP or WebDeploy.
Use az webapp deploy command to deploy a WAR Package:
az webapp deploy --resource-group <group-name> --name <app-name> --src-path ./<package-name>.war
Refer to Microsoft documentation - Deploy WAR/JAR/EAR packages to Azure App Service for detailed information.

Related

creating azure webapp for php web application

I uploaded folder Called Chat contains index.php for chat application to azure from the cloud power shell. now if I change the directory to Chat and run the command (az webapp up --runtime "PHP|7.3") I get the following error:
Could not auto-detect the runtime stack of your app.
HINT: Are you in the right folder?
For more information, see 'https://go.microsoft.com/fwlink/?linkid=2109470'
how can I deploy this php app from the cloud shell??
As mentioned in the link referenced in the error message, the current support for az webapp up includes apps targeting:
Python
Node
ASP .NET and - .NET Core
As part of the execution of az webapp up command it performs a best effort detection to match your code (in your local directory) with a supported runtime in your Web App. If you want to set the runtime manually you can use the az webapp create command.
For a detailed walkthrough on how to deploy a PHP app to Azure App Service, please follow this quickstart depending on your desired hosting platform (Windows/Linux).

How to deploy a war on azure web app using FTP

I am trying to deploy war file on azure web app service using FTP. But i dont see webapps folder under site/wwwroot as mentioned in many tutorials. I have selected web server as tomcat.I saw tutorials on old portal.when i create it from new portal,i dont see webapps folder
For Azure App services, the recommended way to deploy a war package is using curl or Azure PowerShell. Details see: deploy-war-file
I also tested on my side that deploying war file on Azure App service by PowerShell Command, it works perfectly for me:
My application page:
For how to get started with Azure PowerShell, please see: get started with Azure PowerShell

Web2py project deployment on Azure app service

I am currently using PythonAnywhere to deploy my web2py project, it is working fine for me.
Now I want to deploy my web2py application on azure App service. I followed all the steps mentioned in below Goggle group
Creating web apps with Web2py in Azure Web Apps
Still I can see default page of azure python web app. I also tried to do it with same code base mentioned in given git repository.
I am unable to figure out which document I should refer or what are the right steps to deploy web2py project to Azure web app service.
Below are the steps I followed to deploy web2py project to Azure app service
Created Azure app service with P1V2 app service plan. Linux machine with python 3.6 default language
Selected local git repository in deployment center and pushed code to azure git repository. It shows deployment successful message
Browse azure website, but this time it is not showing expected landing page. It is showing me default app page of azure website
I tried steps 3-4 times but everytime I am getting same result. Am I missing something here?
I reviewed the forum thread Creating web apps with Web2py in Azure Web Apps of Google Groups as you mentioned, I see there is a file named web.config in its attachments, as the figure below.
However, the discussion is too old at 2015-11-13. At that time, Azure only supports Windows for Azure App Services, but you were trying to reproduce it on Azure WebApp for Linux based on Docker, because P1V2 Sku is for Linux and Standard S1 for Windows, as the figures below.
P1V2 Sku of Azure App Service Plan for Windows
Standard S1 Sku of Azure App Service Plan for Windows
So if you want to reproduce the same application of the thread of Google Groups on Azure WebApp for Windows, please try to refer to my answer for the other SO thread No pip or python module inside azure webapp. There is not any Azure offical document introduce how to deploy a Python application on Azure Windows WebApp.
Otherwise, please refer to the two Azure offical documents Quickstart: Create a Python app in Azure App Service on Linux and Configure a Linux Python app for Azure App Service to try to change and deploy it on Azure Webapp for Linux. Even that you need to follow the document Configure a custom Linux container for Azure App Service to create a custom docker image for deployment.

How FTP deploy .NET Core WebApp to Azure Linux App Service plan

I want do deploy code to Linux App service plan over FTP but I fail because I am missing a step how to "say to app service to use app DLL instead of default one".
Code is copied, I even uploaded test zip file and I can't download it, getting error 404 so how did Microsoft imagine to deploy code over FTP? I couldn't find any info in their documentation regarding this exact case.
I want to avoid using docker file, If this can't be done I'll simply switch to using Windows based App service plan.
In application setting screen of your WebApp mention the startup file name
dotnet

How can a node.js app be deployed to azure via appveyor (pulled from github)?

I currently have a .net and an angular app, both deployed to azure via appveyor. Now I want to add a node.js app, also in a github repo, also to be deployed via appveyor and into azure.
However I have no idea where to start.
What kind of azure app should I create? Just the standard web app service?
How do I deploy this to azure via appveyor?
What kind of azure app should I create? Just the standard web app
service?
At first, I could share Azure App Service plan and when we selected one of them with you. Please refer to this document(https://azure.microsoft.com/en-us/documentation/articles/azure-web-sites-web-hosting-plans-in-depth-overview/ ). Then, for selecting which one service plan, it depended on the site load and requirements. It is not relation to deployment channel.
How do I deploy this to azure via appveyor?
You can try to follow this guide Deploying using Web Deploy, mark Package Web Applications for Web Deploy check box in the settings=>build tab of your project in appveyor.
Then login Azure Management Portal and download publish profile.Specify the following deployment settings in AppVeyor:
Server: https://<publishUrl>/msdeploy.axd?site=<msdeploySite>
Website name: <msdeploySite>
Username: <userName>
Password: <userPWD>
NTLM: disabled
Replace <publishUrl>, <msdeploySite>, <userName> and <userPWD> with values from downloaded publishing profile XML file, in the deployment tab.

Resources