Deploy Azure Web App to different Azure accounts

sean kearon's Avatar

sean kearon

16 Jun, 2017 08:45 AM

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?

  1. Support Staff 1 Posted by Kenneth Bates on 19 Jun, 2017 12:53 AM

    Kenneth Bates's Avatar

    Hi Sean,

    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. :)
    https://octopus.com/docs/guides/azure-deployments/varying-azure-sub...

    Note this documentation page is using a Management Certificate account, where a Service Principal account value would look like azureserviceprincipal-[YourAccount].

    Let me know how you go and if you have any further questions.

    Best regards,

    Kenny

  2. 2 Posted by sean kearon on 19 Jun, 2017 06:14 AM

    sean kearon's Avatar

    Lovely job – that’s perfect, thanks.

  3. Support Staff 3 Posted by Kenneth Bates on 19 Jun, 2017 11:02 PM

    Kenneth Bates's Avatar

    Hi Sean,

    That's no problem at all! Don't hesitate to reach out if you have any further questions.

    Best regards,

    Kenny

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac