how to deploy multiple .war files in Azure Web App using ARM template?

Praful Lele 6 Reputation points
2021-12-22T11:41:33.483+00:00

A legacy application is to be migrated to Azure Cloud and as part of redesigning the application, it was converted into 4 wars. We would like to deploy all these wars as 1 WebApp, thus maintaining the flow of the legacy application. We have seen documentation for 1 war to 1 webapp, but not for multi-war to 1 webapp.

Can multiple wars be deployed in 1 WebApp using ARM template? And will it be supported.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,912 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. brtrach-MSFT 15,256 Reputation points Microsoft Employee
    2021-12-23T02:04:01.9+00:00

    @Praful Lele Thank you for your question.

    Yes, we do support the deploying of multiple .war files. I currently have steps on how to do this via CLI, PowerShell, Kudu API, and Kudu UI.

    Please see here for steps on how to create a zip file of your .war files and then deploy them. The special callout since you are deploying multiple .war files is to for apps different than root, use:

    /api/wardeploy?name=myapp  
    

    You mentioned specifically via ARM template. Can you please share the ARM template you are using if this is your preferred method so I can look at it further and advise you if any changes are needed?

    I hope this helps get you going and look forward to your reply if you require assistance with the ARM template.