@@ -486,76 +486,88 @@ class ChangeStateDelete(_ChangeStateDelete):
486486 pass
487487
488488
489- ChangeStateCreate .AZ_HELP ["examples" ] = [
490- {
491- "name" : "Create with StageMap reference and status link" ,
492- "text" : (
493- "az changesafety changestate create -g MyResourceGroup -n changestate002 "
494- "--change-type ManualTouch --rollout-type Normal "
495- "--stage-map \" {resource-id:/subscriptions/00000000-0000-0000-0000-000000000000/"
496- "resourceGroups/MyResourceGroup/providers/Microsoft.ChangeSafety/stageMaps/rolloutStageMap}\" "
497- "--targets \" resourceId=/subscriptions/00000000-0000-0000-0000-000000000000/"
498- "resourceGroups/MyResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm,operation=PATCH\" "
499- "--links \" [{name:status,uri:'https://contoso.com/change/rollout-002'}]\" \n "
500- "az changesafety changestate delete -g MyResourceGroup -n changestate002 --yes"
501- ),
502- },
503- {
504- "name" : "Create a change state for a VM rollout" ,
505- "text" : (
506- "az changesafety changestate create -g MyResourceGroup -n changestate001 "
507- "--change-type AppDeployment --rollout-type Normal "
508- "--targets \" resourceId=/subscriptions/00000000-0000-0000-0000-000000000000/"
509- "resourceGroups/MyResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm,operation=PUT\" "
510- ),
511- },
512- {
513- "name" : "Create with staging rollout configuration" ,
514- "text" : (
515- "az changesafety changestate create -g MyResourceGroup -n opsChange01 "
516- "--rollout-type Hotfix "
517- "--targets \" resourceId=/subscriptions/00000000-0000-0000-0000-000000000000/"
518- "resourceGroups/MyResourceGroup/providers/Microsoft.Web/sites/myApp,operation=POST\" "
519- ),
520- },
521- ]
522-
523- ChangeStateUpdate .AZ_HELP ["examples" ] = [
524- {
525- "name" : "Adjust rollout type and add a comment" ,
526- "text" : (
527- "az changesafety changestate update -g MyResourceGroup -n changestate001 "
528- "--rollout-type Emergency --comments \" Escalated to emergency rollout\" "
529- ),
530- },
531- {
532- "name" : "Update scheduling window" ,
533- "text" : (
534- "az changesafety changestate update -g MyResourceGroup -n changestate001 "
535- "--anticipated-start-time \" 2024-09-01T08:00:00Z\" "
536- "--anticipated-end-time \" 2024-09-01T12:00:00Z\" "
537- ),
538- },
539- {
540- "name" : "Replace the target definition" ,
541- "text" : (
542- "az changesafety changestate update -g MyResourceGroup -n changestate001 "
543- "--targets \" resourceId=/subscriptions/00000000-0000-0000-0000-000000000000/"
544- "resourceGroups/MyResourceGroup/providers/Microsoft.Sql/servers/myServer,operation=PATCH\" "
545- ),
546- },
547- ]
548-
549- ChangeStateDelete .AZ_HELP ["examples" ] = [
550- {
551- "name" : "Delete a change state without confirmation" ,
552- "text" : "az changesafety changestate delete -g MyResourceGroup -n changestate001 --yes" ,
553- },
554- ]
555-
556- ChangeStateShow .AZ_HELP ["examples" ] = [
557- {
558- "name" : "Show a change state" ,
559- "text" : "az changesafety changestate show -g MyResourceGroup -n changestate001" ,
560- },
561- ]
489+ ChangeStateCreate .AZ_HELP = {
490+ ** ChangeStateCreate .AZ_HELP ,
491+ "examples" : [
492+ {
493+ "name" : "Create with StageMap reference and status link" ,
494+ "text" : (
495+ "az changesafety changestate create -g MyResourceGroup -n changestate002 "
496+ "--change-type ManualTouch --rollout-type Normal "
497+ "--stage-map \" {resource-id:/subscriptions/00000000-0000-0000-0000-000000000000/"
498+ "resourceGroups/MyResourceGroup/providers/Microsoft.ChangeSafety/stageMaps/rolloutStageMap}\" "
499+ "--targets \" resourceId=/subscriptions/00000000-0000-0000-0000-000000000000/"
500+ "resourceGroups/MyResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm,operation=PATCH\" "
501+ "--links \" [{name:status,uri:'https://contoso.com/change/rollout-002'}]\" \n "
502+ "az changesafety changestate delete -g MyResourceGroup -n changestate002 --yes"
503+ ),
504+ },
505+ {
506+ "name" : "Create a change state for a VM rollout" ,
507+ "text" : (
508+ "az changesafety changestate create -g MyResourceGroup -n changestate001 "
509+ "--change-type AppDeployment --rollout-type Normal "
510+ "--targets \" resourceId=/subscriptions/00000000-0000-0000-0000-000000000000/"
511+ "resourceGroups/MyResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm,operation=PUT\" "
512+ ),
513+ },
514+ {
515+ "name" : "Create with staging rollout configuration" ,
516+ "text" : (
517+ "az changesafety changestate create -g MyResourceGroup -n opsChange01 "
518+ "--rollout-type Hotfix "
519+ "--targets \" resourceId=/subscriptions/00000000-0000-0000-0000-000000000000/"
520+ "resourceGroups/MyResourceGroup/providers/Microsoft.Web/sites/myApp,operation=POST\" "
521+ ),
522+ },
523+ ],
524+ }
525+
526+ ChangeStateUpdate .AZ_HELP = {
527+ ** ChangeStateUpdate .AZ_HELP ,
528+ "examples" : [
529+ {
530+ "name" : "Adjust rollout type and add a comment" ,
531+ "text" : (
532+ "az changesafety changestate update -g MyResourceGroup -n changestate001 "
533+ "--rollout-type Emergency --comments \" Escalated to emergency rollout\" "
534+ ),
535+ },
536+ {
537+ "name" : "Update scheduling window" ,
538+ "text" : (
539+ "az changesafety changestate update -g MyResourceGroup -n changestate001 "
540+ "--anticipated-start-time \" 2024-09-01T08:00:00Z\" "
541+ "--anticipated-end-time \" 2024-09-01T12:00:00Z\" "
542+ ),
543+ },
544+ {
545+ "name" : "Replace the target definition" ,
546+ "text" : (
547+ "az changesafety changestate update -g MyResourceGroup -n changestate001 "
548+ "--targets \" resourceId=/subscriptions/00000000-0000-0000-0000-000000000000/"
549+ "resourceGroups/MyResourceGroup/providers/Microsoft.Sql/servers/myServer,operation=PATCH\" "
550+ ),
551+ },
552+ ],
553+ }
554+
555+ ChangeStateDelete .AZ_HELP = {
556+ ** ChangeStateDelete .AZ_HELP ,
557+ "examples" : [
558+ {
559+ "name" : "Delete a change state without confirmation" ,
560+ "text" : "az changesafety changestate delete -g MyResourceGroup -n changestate001 --yes" ,
561+ },
562+ ],
563+ }
564+
565+ ChangeStateShow .AZ_HELP = {
566+ ** ChangeStateShow .AZ_HELP ,
567+ "examples" : [
568+ {
569+ "name" : "Show a change state" ,
570+ "text" : "az changesafety changestate show -g MyResourceGroup -n changestate001" ,
571+ },
572+ ],
573+ }
0 commit comments