|
27 | 27 | Provide at least one target definition to describe which resources or operations the ChangeRecord |
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 changesafety changerecord`. If you omit scheduling flags, the anticipated start time defaults |
31 | | - to now and the anticipated end time defaults to eight hours later (UTC). |
| 30 | + `az changesafety changerecord`. If you omit scheduling flags, the anticipated start time |
| 31 | + defaults to now and the anticipated end time defaults to eight hours later (UTC). |
32 | 32 | parameters: |
33 | 33 | - name: --targets |
34 | 34 | short-summary: > |
35 | 35 | One or more target definitions expressed as key=value pairs (for example |
36 | | - resourceId=RESOURCE_ID,operation=CREATE,resourceType=Microsoft.Compute/virtualMachines). |
| 36 | + resourceId=RESOURCE_ID,operation=DELETE,resourceType=Microsoft.Compute/virtualMachines). |
| 37 | + - name: --description |
| 38 | + short-summary: A description of the change being performed. |
37 | 39 | - name: --anticipated-start-time |
38 | 40 | short-summary: Expected start time in ISO 8601 format. Defaults to current UTC time when omitted. |
39 | 41 | - name: --anticipated-end-time |
40 | 42 | short-summary: Expected completion time in ISO 8601 format. Defaults to eight hours after the anticipated start time when omitted. |
41 | 43 | - name: --change-type |
42 | 44 | short-summary: Classify the change such as AppDeployment, Config, ManualTouch, or PolicyDeployment. |
43 | 45 | - name: --rollout-type |
44 | | - short-summary: Specify the rollout urgency (Normal, Hotfix, or Emergency). |
| 46 | + short-summary: Specify the rollout type (Normal, Hotfix, or Emergency). |
45 | 47 | - name: --stage-map-name --stagemap-name |
46 | 48 | short-summary: StageMap name in the current subscription scope; the resource ID is built for you. |
47 | 49 | - name: --stage-map |
|
53 | 55 | text: |- |
54 | 56 | 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 | 57 | az changesafety changerecord delete -g MyResourceGroup -n changerecord002 --yes |
56 | | - - name: Create a change state for a VM rollout |
| 58 | + - name: Create a ChangeRecord for a VM rollout |
57 | 59 | text: |- |
58 | 60 | 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" |
| 61 | + - name: Create a ChangeRecord for deleting a Traffic Manager profile |
| 62 | + text: |- |
| 63 | + az changesafety changerecord create -g MyResourceGroup -n delete-trafficmanager --change-type ManualTouch --rollout-type Hotfix --targets "resourceId=/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MyResourceGroup/providers/Microsoft.Network/trafficManagerProfiles/myProfile,operation=DELETE" --description "Delete Traffic Manager profile" |
59 | 64 | - name: Create with staging rollout configuration |
60 | 65 | text: |- |
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" |
| 66 | + az changesafety changerecord create -g MyResourceGroup -n changerecord-ops01 --change-type AppDeployment --rollout-type Hotfix --targets "resourceId=/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MyResourceGroup/providers/Microsoft.Web/sites/myApp,operation=POST" |
62 | 67 | - name: Reference a StageMap by name |
63 | 68 | text: |- |
64 | 69 | 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" |
|
68 | 73 | type: command |
69 | 74 | short-summary: Update an existing ChangeRecord resource. |
70 | 75 | long-summary: > |
71 | | - Use this command to modify descriptive metadata, rollout settings, or replace targets for an |
72 | | - existing ChangeRecord. When you pass --targets, the supplied definitions overwrite the previous set. |
73 | | - This command is also available through the alias `az change-safety change-record`. |
| 76 | + Use this command to modify descriptive metadata, rollout settings, or scheduling for an |
| 77 | + existing ChangeRecord. Note: The changeDefinition (targets) cannot be modified after creation. |
74 | 78 | parameters: |
75 | | - - name: --targets |
76 | | - short-summary: > |
77 | | - Optional target definitions to replace the existing list. Provide key=value pairs such as |
78 | | - resourceId=RESOURCE_ID,operation=DELETE. |
79 | 79 | - name: --stage-map-name --stagemap-name |
80 | 80 | short-summary: StageMap name in the current subscription scope; the resource ID is built for you. |
81 | 81 | - name: --stage-map |
82 | 82 | short-summary: Reference an existing StageMap resource using resource-id=RESOURCE_ID and optional parameters key=value pairs. |
83 | 83 | - name: --comments |
84 | | - short-summary: Provide notes about the latest update to the change state. |
| 84 | + short-summary: Provide notes about the latest update to the ChangeRecord. |
| 85 | + - name: --description |
| 86 | + short-summary: Update the description of the change. |
85 | 87 | - name: --anticipated-start-time |
86 | 88 | short-summary: Update the expected start time in ISO 8601 format. If omitted, the current value is preserved. |
87 | 89 | - name: --anticipated-end-time |
|
93 | 95 | - name: Update scheduling window |
94 | 96 | text: |- |
95 | 97 | 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 | | - - name: Replace the target definition |
| 98 | + - name: Update description |
97 | 99 | text: |- |
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" |
| 100 | + az changesafety changerecord update -g MyResourceGroup -n changerecord001 --description "Updated rollout for production deployment" |
99 | 101 | """ |
100 | 102 |
|
101 | 103 | helps['changesafety changerecord delete'] = """ |
|
0 commit comments