az changesafety stageprogression
Note
This reference is part of the azure-changesafety extension for the Azure CLI (version 2.75.0 or higher). The extension will automatically install the first time you run an az changesafety stageprogression command. Learn more about extensions.
Manage StageProgression resources that track the execution of individual stages within a ChangeRecord.
Commands
| Name | Description | Type | Status |
|---|---|---|---|
| az changesafety stageprogression create |
Create a StageProgression to track stage execution for a ChangeRecord. |
Extension | GA |
| az changesafety stageprogression delete |
Delete a StageProgression resource. |
Extension | GA |
| az changesafety stageprogression list |
List StageProgression resources for a ChangeRecord. |
Extension | GA |
| az changesafety stageprogression show |
Show details for a StageProgression resource. |
Extension | GA |
| az changesafety stageprogression update |
Update an existing StageProgression resource. |
Extension | GA |
az changesafety stageprogression create
Create a StageProgression to track stage execution for a ChangeRecord.
A StageProgression records the status of a specific stage defined in the ChangeRecord's StageMap. Use this command to signal that a stage has started, completed, or encountered an issue. The --stage-reference must match a stage name in the associated StageMap.
az changesafety stageprogression create --change-record-name
--name --stage-progression-name
[--acquire-policy-token]
[--additional-data]
[--change-reference]
[--comments]
[--links]
[--parameters]
[--resource-group]
[--stage-reference]
[--stage-variables]
[--status {Cancelled, Completed, Failed, InProgress, Initialized, Paused, Skipped}]
Examples
Create a StageProgression for the Canary stage
az changesafety stageprogression create --change-record-name my-changerecord -n canary-progression --stage-reference Canary --status InProgress
Create a StageProgression with stage variables and a link
az changesafety stageprogression create --change-record-name my-changerecord -n prod-progression --stage-reference Production --status Initialized --stage-variables "{region:eastus,batchSize:50}" --links "[{name:dashboard,uri:'https://contoso.com/deploy/prod'}]"
Required Parameters
The name of the ChangeRecord resource this progression belongs to.
Name of the stageProgression.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Acquiring an Azure Policy token automatically for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
Additional metadata for the stageProgression resource. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
| Property | Value |
|---|---|
| Parameter group: | Properties Arguments |
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
Optional comments about this stage progression.
| Property | Value |
|---|---|
| Parameter group: | Properties Arguments |
Collection of related links. Use --links name=NAME uri=URL [description=TEXT].
| Property | Value |
|---|---|
| Parameter group: | Properties Arguments |
Stage specific key value pairs of parameter names & their values for the current Stage, If any. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
| Property | Value |
|---|---|
| Parameter group: | Properties Arguments |
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Stage name from the associated StageMap (e.g., Canary, Production).
| Property | Value |
|---|---|
| Parameter group: | Properties Arguments |
Key-value pairs of variables specific to this stage execution.
| Property | Value |
|---|---|
| Parameter group: | Properties Arguments |
Status of the stage progression: Initialized, InProgress, Completed, Failed, Cancelled, Paused, or Skipped.
| Property | Value |
|---|---|
| Parameter group: | Properties Arguments |
| Accepted values: | Cancelled, Completed, Failed, InProgress, Initialized, Paused, Skipped |
Global Parameters
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
| Property | Value |
|---|---|
| Default value: | False |
az changesafety stageprogression delete
Delete a StageProgression resource.
az changesafety stageprogression delete [--acquire-policy-token]
[--change-record-name]
[--change-reference]
[--ids]
[--name --stage-progression-name]
[--resource-group]
[--subscription]
[--yes]
Examples
Delete a StageProgression
az changesafety stageprogression delete --change-record-name my-changerecord -n canary-progression --yes
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Acquiring an Azure Policy token automatically for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
The name of the ChangeRecord resource.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Name of the stageProgression.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Do not prompt for confirmation.
| Property | Value |
|---|---|
| Default value: | False |
Global Parameters
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
| Property | Value |
|---|---|
| Default value: | False |
az changesafety stageprogression list
List StageProgression resources for a ChangeRecord.
az changesafety stageprogression list --change-record-name
[--max-items]
[--next-token]
[--resource-group]
Examples
List all StageProgressions for a ChangeRecord
az changesafety stageprogression list --change-record-name my-changerecord
Required Parameters
The name of the ChangeRecord resource.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Total number of items to return in the command's output. If the total number of items available is more than the value specified, a token is provided in the command's output. To resume pagination, provide the token value in --next-token argument of a subsequent command.
| Property | Value |
|---|---|
| Parameter group: | Pagination Arguments |
Token to specify where to start paginating. This is the token value from a previously truncated response.
| Property | Value |
|---|---|
| Parameter group: | Pagination Arguments |
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Global Parameters
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
| Property | Value |
|---|---|
| Default value: | False |
az changesafety stageprogression show
Show details for a StageProgression resource.
az changesafety stageprogression show [--change-record-name]
[--ids]
[--name --stage-progression-name]
[--resource-group]
[--subscription]
Examples
Show a StageProgression
az changesafety stageprogression show --change-record-name my-changerecord -n canary-progression
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
The name of the ChangeRecord resource.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Name of the stageProgression.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Global Parameters
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
| Property | Value |
|---|---|
| Default value: | False |
az changesafety stageprogression update
Update an existing StageProgression resource.
Update the status, comments, or other metadata of a StageProgression. Commonly used to transition a stage from InProgress to Completed or Failed.
az changesafety stageprogression update [--acquire-policy-token]
[--add]
[--additional-data]
[--change-record-name]
[--change-reference]
[--comments]
[--force-string {0, 1, f, false, n, no, t, true, y, yes}]
[--ids]
[--links]
[--name --stage-progression-name]
[--parameters]
[--remove]
[--resource-group]
[--set]
[--stage-reference]
[--stage-variables]
[--status {Cancelled, Completed, Failed, InProgress, Initialized, Paused, Skipped}]
[--subscription]
Examples
Mark a stage as completed
az changesafety stageprogression update --change-record-name my-changerecord -n canary-progression --status Completed --comments "Canary validation passed"
Mark a stage as failed
az changesafety stageprogression update --change-record-name my-changerecord -n prod-progression --status Failed --comments "Deployment rollback triggered"
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Acquiring an Azure Policy token automatically for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
Add an object to a list of objects by specifying a path and key value pairs. Example: --add property.listProperty <key=value, string or JSON string>.
| Property | Value |
|---|---|
| Parameter group: | Generic Update Arguments |
Additional metadata for the stageProgression resource. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
| Property | Value |
|---|---|
| Parameter group: | Properties Arguments |
The name of the ChangeRecord resource.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
Add or update comments about this stage progression.
| Property | Value |
|---|---|
| Parameter group: | Properties Arguments |
When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.
| Property | Value |
|---|---|
| Parameter group: | Generic Update Arguments |
| Accepted values: | 0, 1, f, false, n, no, t, true, y, yes |
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Collection of related links for the change. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
| Property | Value |
|---|---|
| Parameter group: | Properties Arguments |
Name of the stageProgression.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Stage specific key value pairs of parameter names & their values for the current Stage, If any. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
| Property | Value |
|---|---|
| Parameter group: | Properties Arguments |
Remove a property or an element from a list. Example: --remove property.list <indexToRemove> OR --remove propertyToRemove.
| Property | Value |
|---|---|
| Parameter group: | Generic Update Arguments |
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Update an object by specifying a property path and value to set. Example: --set property1.property2=<value>.
| Property | Value |
|---|---|
| Parameter group: | Generic Update Arguments |
Stage name relevant to hierarchical StageMap.
| Property | Value |
|---|---|
| Parameter group: | Properties Arguments |
Variables to apply on the change of that stage. Key value pairs supporting any JSON values. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
| Property | Value |
|---|---|
| Parameter group: | Properties Arguments |
Updated status: Initialized, InProgress, Completed, Failed, Cancelled, Paused, or Skipped.
| Property | Value |
|---|---|
| Parameter group: | Properties Arguments |
| Accepted values: | Cancelled, Completed, Failed, InProgress, Initialized, Paused, Skipped |
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Global Parameters
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
| Property | Value |
|---|---|
| Default value: | False |