The step “Deploy an Azure Web App” needs to have it’s account selected manually. Is there a way to use this step to deploy to use either my Azure test account or live account based on environment, or am I looking in the wrong place?
Thanks for getting in touch! There is a way to deploy with a different Azure account based on which environment you’re deploying to. Since the Azure account section can be bound to a variable (by selecting the
Use a custom expression option), this can be accomplished using environment-scoped variables, where each variable would contain the same name but a different value and scope. Check out our documentation page that outlines this process.
Note this documentation page is using a Management Certificate account, where a Service Principal account value would look like
Let me know how you go and if you have any further questions.
Lovely job – that’s perfect, thanks.
That’s no problem at all! Don’t hesitate to reach out if you have any further questions.