Wednesday, June 21, 2023

Apply Azure DevOps variable groups to Azure App Service deployment slot scope

In enterprise application development, we typically have multiple release environments such as Development (Dev), Testing (Test), User Acceptance Testing (UAT), Pre-Production (Pre-Prod), and Production. When deploying to these environments using CI/CD pipelines, we often need to transform variables to match the the target environment.

In Azure DevOps, we utilize variable groups to carry out the variable transformation process.

If we are utilizing Azure App Services with the deployment slot option enabled, it's essential to apply the configuration transformation for the slot as well.

How can we ensure that the deployment slot release stage has the transformed configurations?

Following are the steps we can use.

Navigate to release pipeline and click on the variables section










Then click on more options and select Change scope










Ensure your slot is selected



No comments: