az migrate runbook definition step
Note
This reference is part of the migrate extension for the Azure CLI (version 2.75.0 or higher). The extension will automatically install the first time you run an az migrate runbook definition step command. Learn more about extensions.
Command group 'migrate runbook definition' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Manage individual steps in a runbook definition.
Commands
| Name | Description | Type | Status |
|---|---|---|---|
| az migrate runbook definition step add |
Add a step to the runbook definition. |
Extension | Preview |
| az migrate runbook definition step remove |
Remove a step from the runbook definition. |
Extension | Preview |
| az migrate runbook definition step update |
Update a step in the runbook definition. |
Extension | Preview |
az migrate runbook definition step add
Command group 'migrate runbook definition step' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Add a step to the runbook definition.
az migrate runbook definition step add --name --runbook-name
--project-name
--resource-group
--step-group-id
--step-name
--step-type {Approval, Manual}
[--acquire-policy-token]
[--change-reference]
[--depends-on-mapped-entities]
[--depends-on-per-entity]
[--depends-on-whole-step]
[--migration-entity-ids]
[--step-description]
Examples
Add a manual step to a step group.
az migrate runbook definition step add -g myRg \
--project-name myProject -n myRunbook \
--step-type Manual --step-name "Verify cutover" \
--step-group-id workstream-0
Add an approval step that waits for a whole step.
az migrate runbook definition step add -g myRg \
--project-name myProject -n myRunbook \
--step-type Approval --step-name "Change approval" \
--step-group-id workstream-0 --depends-on-whole-step step0
Add an approval that waits per entity (same entity upstream).
az migrate runbook definition step add -g myRg \
--project-name myProject -n myRunbook \
--step-type Approval --step-name "Approve cutover" \
--step-group-id workstream-0 --migration-entity-ids e1 e2 \
--depends-on-per-entity prepare-1
Add an approval with mapped-entity dependencies.
az migrate runbook definition step add -g myRg \
--project-name myProject -n myRunbook \
--step-type Approval --step-name "Approve" \
--step-group-id workstream-0 --migration-entity-ids e1 e2 \
--depends-on-mapped-entities "enable-1=e1:f1,e2:f2"
Add a manual step scoped to specific migration entities.
az migrate runbook definition step add -g myRg \
--project-name myProject -n myRunbook \
--step-type Manual --step-name "Post checks" \
--step-group-id workstream-0 \
--migration-entity-ids entity1 entity2
Required Parameters
Name of the runbook.
Name of the Azure Migrate project. You can configure the default using az configure --defaults migrate_project=<name>.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Id of the step group to add the step to.
Display name for the step.
Kind of step to add.
| Property | Value |
|---|---|
| Accepted values: | Approval, Manual |
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 related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
Mapped-entity dependencies, each as <stepId>=<dependentEntity>:<waitsForEntity>,.... Requires a step with entities.
Step ids this step waits for per entity (the same entity in the upstream step). Requires a step with entities.
Step ids this step waits for as a whole step (all entities).
Space-separated migration entity GUIDs to associate with the step.
Optional description for the step.
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 migrate runbook definition step remove
Command group 'migrate runbook definition step' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Remove a step from the runbook definition.
az migrate runbook definition step remove --name --runbook-name
--project-name
--resource-group
--step-id
[--acquire-policy-token]
[--change-reference]
[--yes]
Examples
Remove a step by id.
az migrate runbook definition step remove -g myRg \
--project-name myProject -n myRunbook --step-id step1
Required Parameters
Name of the runbook.
Name of the Azure Migrate project. You can configure the default using az configure --defaults migrate_project=<name>.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Id of the step to remove.
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 related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy 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.
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 migrate runbook definition step update
Command group 'migrate runbook definition step' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Update a step in the runbook definition.
az migrate runbook definition step update --name --runbook-name
--project-name
--resource-group
--step-id
[--acquire-policy-token]
[--change-reference]
[--depends-on-mapped-entities]
[--depends-on-per-entity]
[--depends-on-whole-step]
[--step-description]
[--step-name]
Examples
Rename a step and replace its dependencies.
az migrate runbook definition step update -g myRg \
--project-name myProject -n myRunbook \
--step-id step1 --step-name "New name" \
--depends-on-whole-step step0
Required Parameters
Name of the runbook.
Name of the Azure Migrate project. You can configure the default using az configure --defaults migrate_project=<name>.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Id of the step to update.
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 related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
Replace dependencies: mapped-entity dependencies, each as <stepId>=<dependentEntity>:<waitsForEntity>,.... Requires a step with entities.
Replace dependencies: step ids this step waits for per entity. Requires a step with entities.
Replace dependencies: step ids this step waits for as a whole step. Omit all --depends-on-* flags to keep the existing dependencies unchanged.
Updated description for the step.
Updated display name for the step.
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 |