|
27 | 27 | Provide at least one target definition to describe which resources or operations the ChangeState |
28 | 28 | will affect. Targets are expressed as comma or semicolon separated key=value pairs such as |
29 | 29 | resourceId=RESOURCE_ID,operation=DELETE. The command is also available through the alias |
30 | | - `az change-safety change-state`. |
| 30 | + `az change-safety change-state`. If you omit scheduling flags, the anticipated start time defaults |
| 31 | + to now and the anticipated end time defaults to eight hours later (UTC). |
31 | 32 | parameters: |
32 | 33 | - name: --targets |
33 | 34 | short-summary: > |
34 | 35 | One or more target definitions expressed as key=value pairs (for example |
35 | 36 | resourceId=RESOURCE_ID,operation=CREATE,resourceType=Microsoft.Compute/virtualMachines). |
| 37 | + - name: --anticipated-start-time |
| 38 | + short-summary: Expected start time in ISO 8601 format. Defaults to current UTC time when omitted. |
| 39 | + - name: --anticipated-end-time |
| 40 | + short-summary: Expected completion time in ISO 8601 format. Defaults to eight hours after the anticipated start time when omitted. |
36 | 41 | - name: --change-type |
37 | 42 | short-summary: Classify the change such as AppDeployment, Config, ManualTouch, or PolicyDeployment. |
38 | 43 | - name: --rollout-type |
39 | 44 | short-summary: Specify the rollout urgency (Normal, Hotfix, or Emergency). |
| 45 | + - name: --stage-map-name --stagemap-name |
| 46 | + short-summary: StageMap name in the current subscription scope; the resource ID is built for you. |
40 | 47 | - name: --stage-map |
41 | 48 | short-summary: Reference an existing StageMap resource using resource-id=RESOURCE_ID and optional parameters key=value pairs. |
42 | 49 | - name: --links |
|
52 | 59 | - name: Create with staging rollout configuration |
53 | 60 | text: |- |
54 | 61 | az changesafety changestate create -g MyResourceGroup -n opsChange01 --rollout-type Hotfix --targets "resourceId=/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MyResourceGroup/providers/Microsoft.Web/sites/myApp,operation=POST" |
| 62 | + - name: Reference a StageMap by name |
| 63 | + text: |- |
| 64 | + az changesafety changestate create -g MyResourceGroup -n changestate003 --change-type ManualTouch --rollout-type Normal --stagemap-name rolloutStageMap --targets "resourceId=/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MyResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm,operation=DELETE" |
55 | 65 | """ |
56 | 66 |
|
57 | 67 | helps['changesafety changestate update'] = """ |
|
66 | 76 | short-summary: > |
67 | 77 | Optional target definitions to replace the existing list. Provide key=value pairs such as |
68 | 78 | resourceId=RESOURCE_ID,operation=DELETE. |
| 79 | + - name: --stage-map-name --stagemap-name |
| 80 | + short-summary: StageMap name in the current subscription scope; the resource ID is built for you. |
| 81 | + - name: --stage-map |
| 82 | + short-summary: Reference an existing StageMap resource using resource-id=RESOURCE_ID and optional parameters key=value pairs. |
69 | 83 | - name: --comments |
70 | 84 | short-summary: Provide notes about the latest update to the change state. |
71 | 85 | - name: --anticipated-start-time |
72 | | - short-summary: Update the expected start time in ISO 8601 format. |
| 86 | + short-summary: Update the expected start time in ISO 8601 format. If omitted, the current value is preserved. |
73 | 87 | - name: --anticipated-end-time |
74 | | - short-summary: Update the expected completion time in ISO 8601 format. |
| 88 | + short-summary: Update the expected completion time in ISO 8601 format. If omitted, the current value is preserved. |
75 | 89 | examples: |
76 | 90 | - name: Adjust rollout type and add a comment |
77 | 91 | text: |- |
|
0 commit comments