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.
CodePudding user response:
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.