Reputation: 121
I am new to Azure dev ops and trying to deploy a azure web app to test and prod stages. I have developed two stages test and prod.
After the test is tested properly, then i will deploy the same to prod.
My question is .
the test web app points to the "test environment" in the config settings of the test website in the azure portal. And the production site points to the "prod environment" in the config settings in the portal.
so at the time of deployment to test and Prod , where do i specify the config settings for each environment?
I mean is there any provision in the "STAGES" where i can specify the settings for the test website and Prod website ?
Upvotes: 0
Views: 365
Reputation: 351
Yes! You can define variables in Azure DevOps specific to stages of your release pipeline.
Once you are in edit mode for your release pipeline, click the "Variables" tab. Once you add a new variable, you can select the "Scope". There will be a scope for each individual stage of your release, and a scope which covers all stages ("Release").
You can also do the same in code using YAML.
Upvotes: 1