Search code examples
powershellazurecontinuous-deploymentazure-resource-manageroctopus-deploy

How should I trigger ARM deployments


We are trying to establish a continuous deployment environment. Conflicted how to do ARM deployments. Deploying all the resources as a group is much better them handling them individually.

ARM has a nice declarative syntax. We are telling what we intend to create" without having to write the sequence of programming commands to create it. Which is great but how should we run them ?

Two options come up to my mind

I.I could download the templates and use power shell.

II. Trigger using Azure automation

III. x

What is the best practice ?

Reference Octopus integration from source code enter image description here


Solution

  • If you're doing this as part of your CI/CD chain, you probably want to check in the templates and deployment scripts with your source code. That way, the definition of the infrastructure is kept with the code that's intended to run on it.

    If this is part of some other workflow, it really depends on the workflow :)