@S, VAMSI KRISHNA The recommended way to deploy a WAR file to Azure App Service is via the /api/wardeploy
API with cURL/PowerShell. This API will expand your WAR file and place it on the shared file drive. Using other deployment APIs may result in inconsistent behavior.
To deploy a WAR file to App Service, send a POST request to https://<app-name>.scm.azurewebsites.net/api/wardeploy
. The POST request must contain the .war
file in the message body. The deployment credentials for your app are provided in the request by using HTTP BASIC authentication.
Here is an example for deploying via the Publish-AzWebApp cmdlet:
Publish-AzWebapp -ResourceGroupName <group-name> -Name <app-name> -ArchivePath <war-file-path>
(Replace the placeholders <group-name>, <app-name>, and <war-file-path> appropriately)
Refer to this article for more details: Deploy WAR file
----------
If an answer is helpful, please "Accept answer" and/or "Up-Vote" which might help other community members reading this thread.