Hi,
I have two accounts for a production and test Azure subscription. In my step template I have to pick an account and I want to have it so that if I push a release to the “Dev Subscription” environment then it uses the Dev account and if I deploy to production then it uses the “Production Subscription” account
Is this possible? At the moment I have to change over between releases
Hi Michael,
Thanks for reaching out! This is totally possible by creating 2 variables in your Project, named the same with the value being your subscription. Then scope each variable to your Environments accordingly. In your deployment step, instead of selecting your Azure subscription, select Use a custom expression
to use this variable.
For a great example of using a different Azure subscription for your Environments, check out our Varying Azure Subscription by Environment documentation page
Let me know if you have any further questions!
Best regards,
Kenny