Azure / Azure/azure-cli

ARM Template Resource Group Deployment Redeploys

Open
#17,587 5 comments 2 reactions 1 assignee Claimed by @zhoxing-ms View on GitHub
act-identity-squad ARM Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

**Is your feature request related to a problem? Please describe.**
I want to be able to redeploy the last working state of my arm template in the event that:
1. My new ARM template succeeded in deploying
2. It causes runtime issues for the service that uses the deployed azure objects.

**Describe the solution you'd like**
A couple of options:
1. Add an optional parameter to the `az group deployment create` (--redeploy [previousDeploymentName]).
2. Have a separate command which does the same thing as the Azure Portal-> Resource Group -> Deployments "Redeploy" button.
![2021-04-06 09_44_38-testingrepo - Microsoft Azure](https://user-images.githubusercontent.com/2057999/113739707-483ee980-96bd-11eb-9a12-1d79e295f0bf.png)

**Describe alternatives you've considered**
1. Creating a deployment that will intentionally fail and then using `rollback-on-error` to reference the specific deployment I want to redeploy.
2. Calling the Azure API directly.

It looks like the functionality to redeploy an existing deployment exists, it just needs to be exposed via the azure cli.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.