|
15 | 15 | short-summary: Manage Change Safety resources. |
16 | 16 | """ |
17 | 17 |
|
18 | | -helps['changesafety changestate'] = """ |
| 18 | +helps['changesafety changerecord'] = """ |
19 | 19 | type: group |
20 | 20 | short-summary: Manage ChangeState resources that describe planned changes across targets. |
21 | 21 | """ |
22 | 22 |
|
23 | | -helps['changesafety changestate create'] = """ |
| 23 | +helps['changesafety changerecord create'] = """ |
24 | 24 | type: command |
25 | 25 | short-summary: Create a ChangeState resource. |
26 | 26 | long-summary: > |
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`. If you omit scheduling flags, the anticipated start time defaults |
| 30 | + `az changesafety changerecord`. If you omit scheduling flags, the anticipated start time defaults |
31 | 31 | to now and the anticipated end time defaults to eight hours later (UTC). |
32 | 32 | parameters: |
33 | 33 | - name: --targets |
|
51 | 51 | examples: |
52 | 52 | - name: Create with StageMap reference and status link |
53 | 53 | text: |- |
54 | | - az changesafety changestate create -g MyResourceGroup -n changestate002 --change-type ManualTouch --rollout-type Normal --stage-map "{resource-id:/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MyResourceGroup/providers/Microsoft.ChangeSafety/stageMaps/rolloutStageMap}" --targets "resourceId=/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MyResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm,operation=PATCH" --links "[{name:status,uri:'https://contoso.com/change/rollout-002'}]" |
55 | | - az changesafety changestate delete -g MyResourceGroup -n changestate002 --yes |
| 54 | + az changesafety changerecord create -g MyResourceGroup -n changerecord002 --change-type ManualTouch --rollout-type Normal --stage-map "{resource-id:/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MyResourceGroup/providers/Microsoft.ChangeSafety/stageMaps/rolloutStageMap}" --targets "resourceId=/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MyResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm,operation=PATCH" --links "[{name:status,uri:'https://contoso.com/change/rollout-002'}]" |
| 55 | + az changesafety changerecord delete -g MyResourceGroup -n changerecord002 --yes |
56 | 56 | - name: Create a change state for a VM rollout |
57 | 57 | text: |- |
58 | | - az changesafety changestate create -g MyResourceGroup -n changestate001 --change-type AppDeployment --rollout-type Normal --targets "resourceId=/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MyResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm,operation=PUT" |
| 58 | + az changesafety changerecord create -g MyResourceGroup -n changerecord001 --change-type AppDeployment --rollout-type Normal --targets "resourceId=/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MyResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm,operation=PUT" |
59 | 59 | - name: Create with staging rollout configuration |
60 | 60 | text: |- |
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" |
| 61 | + az changesafety changerecord create -g MyResourceGroup -n changerecord-ops01 --rollout-type Hotfix --targets "resourceId=/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MyResourceGroup/providers/Microsoft.Web/sites/myApp,operation=POST" |
62 | 62 | - name: Reference a StageMap by name |
63 | 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" |
| 64 | + az changesafety changerecord create -g MyResourceGroup -n changerecord003 --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" |
65 | 65 | """ |
66 | 66 |
|
67 | | -helps['changesafety changestate update'] = """ |
| 67 | +helps['changesafety changerecord update'] = """ |
68 | 68 | type: command |
69 | 69 | short-summary: Update an existing ChangeState resource. |
70 | 70 | long-summary: > |
71 | 71 | Use this command to modify descriptive metadata, rollout settings, or replace targets for an |
72 | 72 | existing ChangeState. When you pass --targets, the supplied definitions overwrite the previous set. |
73 | | - This command is also available through the alias `az change-safety change-state`. |
| 73 | + This command is also available through the alias `az change-safety change-record`. |
74 | 74 | parameters: |
75 | 75 | - name: --targets |
76 | 76 | short-summary: > |
|
89 | 89 | examples: |
90 | 90 | - name: Adjust rollout type and add a comment |
91 | 91 | text: |- |
92 | | - az changesafety changestate update -g MyResourceGroup -n changestate001 --rollout-type Emergency --comments "Escalated to emergency rollout" |
| 92 | + az changesafety changerecord update -g MyResourceGroup -n changerecord001 --rollout-type Emergency --comments "Escalated to emergency rollout" |
93 | 93 | - name: Update scheduling window |
94 | 94 | text: |- |
95 | | - az changesafety changestate update -g MyResourceGroup -n changestate001 --anticipated-start-time "2024-09-01T08:00:00Z" --anticipated-end-time "2024-09-01T12:00:00Z" |
| 95 | + az changesafety changerecord update -g MyResourceGroup -n changerecord001 --anticipated-start-time "2024-09-01T08:00:00Z" --anticipated-end-time "2024-09-01T12:00:00Z" |
96 | 96 | - name: Replace the target definition |
97 | 97 | text: |- |
98 | | - az changesafety changestate update -g MyResourceGroup -n changestate001 --targets "resourceId=/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MyResourceGroup/providers/Microsoft.Sql/servers/myServer,operation=PATCH" |
| 98 | + az changesafety changerecord update -g MyResourceGroup -n changerecord001 --targets "resourceId=/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MyResourceGroup/providers/Microsoft.Sql/servers/myServer,operation=PATCH" |
99 | 99 | """ |
100 | 100 |
|
101 | | -helps['changesafety changestate delete'] = """ |
| 101 | +helps['changesafety changerecord delete'] = """ |
102 | 102 | type: command |
103 | 103 | short-summary: Delete a ChangeState resource. |
104 | 104 | examples: |
105 | 105 | - name: Delete a change state without confirmation |
106 | 106 | text: |- |
107 | | - az changesafety changestate delete -g MyResourceGroup -n changestate001 --yes |
| 107 | + az changesafety changerecord delete -g MyResourceGroup -n changerecord001 --yes |
108 | 108 | """ |
109 | 109 |
|
110 | | -helps['changesafety changestate show'] = """ |
| 110 | +helps['changesafety changerecord show'] = """ |
111 | 111 | type: command |
112 | 112 | short-summary: Show details for a ChangeState resource. |
113 | 113 | examples: |
114 | 114 | - name: Show a change state |
115 | 115 | text: |- |
116 | | - az changesafety changestate show -g MyResourceGroup -n changestate001 |
| 116 | + az changesafety changerecord show -g MyResourceGroup -n changerecord001 |
117 | 117 | """ |
0 commit comments