How can we improve the Azure Resource Manager?

Rollback Template Deployment if anything fail - Just like AWS CloudFormation

Everytime that I use Template Deployment, if some resource fails to be create, I have to manually delete all the resources. This is not good.

Allways that any resource fails to be deployed, the entire template need to be rolledback.

127 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Jonathan shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    4 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...
      • Cobey Errett commented  ·   ·  Flag as inappropriate

        This is something that we would really like. It is common when deploying new ARM templates we get artifacts that gets created and we have to delete manually.

      • Leo Mepham commented  ·   ·  Flag as inappropriate

        Yes, AWS CloudFormation is great for this - If any part of the deployment fails then everything is rolled back and it is as if the deployment never began. I was surprised when I found out ARM templates do not work like this.

        Please can we have transactional/rollback ARM templates - I cannot imagine a situation where I would want a failed deployment to leave "some" changes in at pretty much random.

      Feedback and Knowledge Base