vanderby / SonarQube-AzureAppService

Instructions and files to host SonarQube on an Azure App Service without a container.
MIT License
90 stars 165 forks source link

Deploying with existing App Service Plan #44

Closed nmehlei closed 4 years ago

nmehlei commented 4 years ago

Is this a supported scenario? I already have several App Services running in an existing App Service Plan, thus it would not make much sense to create a new one just for this one application. Did I miss something on how to re-use an existing App Service Plan?

vanderby commented 4 years ago

Yep. Use one of the links under Deploy Using Azure Portal.

This is a standard ARM template deployment so it will create the resource if it doesn't exist or use an existing one if it does exist.

nmehlei commented 4 years ago

Well, crap, sorry, must've completely missed that.

For anyone trying the same, as the ARM template does not allow for setting a different resource group for the App Service Plan, one has to create the App Service inside the same RG as the App Service Plan and afterward move it to the targeted RG, otherwise, it will create an additional App Service Plan.

vanderby commented 4 years ago

You could also edit the template in the Azure Portal before deployment to change that relationship if you are familiar with ARM templates.