Deploy Azure App Services to multiple regions within the same subscription – VSTS trick

Hi,

Most of the times, when deploying App Services such as a webapp to a single region, you simply use the Azure App Service Deploy task, that is currently in version 3.0 and whose a preview of the next version is to come.

However, using the very same task to deploy an App Service to multiple regions, in case you have a HA setup is a little more challenging. Looking at the below screenshot:

appservice1

you can easily specify the name of the App Service. The problem is that, when working with multiple regions, the name will most probably be the same in the other region, therefore, the task cannot distinguish which service is targeted.  So, ideally, we should be able to select the resource group to make this distinction.

It turns out that one can select the resource group when ticking the Deploy to slot option:

appservice2

but what if you don’t use slots??? Then, the easy fix is to put the value “production” in the Slot field.

Credits to Thomas Browet (@thomas_brw), one of my colleagues, for the tip.

Happy deployments!

About Stephane Eyskens

Office 365, Azure PaaS and SharePoint platform expert
This entry was posted in Azure, DevOps, vsts and tagged , , , . Bookmark the permalink.

2 Responses to Deploy Azure App Services to multiple regions within the same subscription – VSTS trick

  1. kasper says:

    Is it really possible to have web apps with the same name in different regions? Wouldn’t the public URL conflict?

    Like

Leave a comment