az resiliency recovery-plan
Note
This reference is part of the resiliency extension for the Azure CLI (version 2.75.0 or higher). The extension will automatically install the first time you run an az resiliency recovery-plan command. Learn more about extensions.
Manage Recovery Plan.
Commands
| Name | Description | Type | Status |
|---|---|---|---|
| az resiliency recovery-plan check-readiness |
This action performs the necessary readiness check on the recovery orchestration plan to ensure it is in the desired state and eligible for all recovery actions, including all protected resources. |
Extension | GA |
| az resiliency recovery-plan create |
Create a RecoveryPlan. |
Extension | GA |
| az resiliency recovery-plan delete |
Delete a RecoveryPlan. |
Extension | GA |
| az resiliency recovery-plan failover |
This action triggers the failover operation on the recovery orchestration plan for the qualified resources. |
Extension | GA |
| az resiliency recovery-plan finalize |
This action finalizes the recovery orchestration plan, ensuring all necessary configurations are in place. |
Extension | GA |
| az resiliency recovery-plan identity |
Manage Identity. |
Extension | GA |
| az resiliency recovery-plan identity assign |
Assign the user or system managed identities. |
Extension | GA |
| az resiliency recovery-plan identity remove |
Remove the user or system managed identities. |
Extension | GA |
| az resiliency recovery-plan identity show |
Show the details of managed identities. |
Extension | GA |
| az resiliency recovery-plan identity wait |
Place the CLI in a waiting state until a condition is met. |
Extension | GA |
| az resiliency recovery-plan list |
List RecoveryPlan resources by tenant. |
Extension | GA |
| az resiliency recovery-plan recovery-job |
Manage Recovery Job. |
Extension | GA |
| az resiliency recovery-plan recovery-job list |
List RecoveryJob resources by RecoveryPlan. |
Extension | GA |
| az resiliency recovery-plan recovery-job recovery-job-resource |
Manage Recovery Job Resource. |
Extension | GA |
| az resiliency recovery-plan recovery-job recovery-job-resource list |
List RecoveryJobResource resources by RecoveryJob. |
Extension | GA |
| az resiliency recovery-plan recovery-job recovery-job-resource show |
Get a RecoveryJobResource. |
Extension | GA |
| az resiliency recovery-plan recovery-job resume |
This action resumes the ongoing recovery orchestration job that was paused for required user intervention. |
Extension | GA |
| az resiliency recovery-plan recovery-job retry |
This action retries the ongoing recovery orchestration job for resources that failed in previous attempts. |
Extension | GA |
| az resiliency recovery-plan recovery-job show |
Get a RecoveryJob. |
Extension | GA |
| az resiliency recovery-plan recovery-resource |
Manage Recovery Resource. |
Extension | GA |
| az resiliency recovery-plan recovery-resource list |
List RecoveryResource resources by RecoveryPlan. |
Extension | GA |
| az resiliency recovery-plan recovery-resource show |
Get a RecoveryResource. |
Extension | GA |
| az resiliency recovery-plan reprotect |
This action triggers the reprotect operation on the recovery orchestration plan for the qualified resources. |
Extension | GA |
| az resiliency recovery-plan show |
Get a RecoveryPlan. |
Extension | GA |
| az resiliency recovery-plan update |
Update a RecoveryPlan. |
Extension | GA |
| az resiliency recovery-plan update-resource |
This action adds or updates the resources to be included in the recovery orchestration plan. |
Extension | GA |
| az resiliency recovery-plan validate-for-failover |
This action checks if the recovery orchestration plan is eligible for failover operation, ensuring it meets the necessary criteria and provides a list of qualified and unqualified resources. |
Extension | GA |
| az resiliency recovery-plan validate-for-operation |
This action checks if the recovery orchestration plan is eligible for operations like failover and reprotect, ensuring it meets the necessary criteria. |
Extension | GA |
| az resiliency recovery-plan validate-for-reprotect |
This action checks if the recovery orchestration plan is eligible for reprotect operation, ensuring it meets the necessary criteria and provides a list of qualified and unqualified resources. |
Extension | GA |
| az resiliency recovery-plan wait |
Place the CLI in a waiting state until a condition is met. |
Extension | GA |
az resiliency recovery-plan check-readiness
This action performs the necessary readiness check on the recovery orchestration plan to ensure it is in the desired state and eligible for all recovery actions, including all protected resources.
az resiliency recovery-plan check-readiness --operation-id
--recovery-plan-name
--service-group-name
[--acquire-policy-token]
[--change-reference]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
Examples
RecoveryPlanActions_CheckReadiness_MaximumSet
az resiliency recovery-plan check-readiness --service-group-name sampleServiceGroupName --operation-id qmn --recovery-plan-name samplePlanName
Required Parameters
A GUID that represents the Long Running OperationId.
The name of the recovery orchestration plan.
The name of the service group.
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 wait for the long-running operation to finish.
| Property | Value |
|---|---|
| Accepted values: | 0, 1, f, false, n, no, t, true, y, yes |
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 resiliency recovery-plan create
Create a RecoveryPlan.
az resiliency recovery-plan create --recovery-plan-name
--service-group-name
[--acquire-policy-token]
[--change-reference]
[--mi-system-assigned --system-assigned]
[--mi-user-assigned --user-assigned]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--plan-description]
[--plan-type {Regional, Zonal}]
[--recovery-groups --recovery-groups-setting]
Examples
Create a zonal recovery plan with a system-assigned identity
az resiliency recovery-plan create --service-group-name sampleServiceGroupName --recovery-plan-name samplePlanName --plan-type Zonal --plan-description "Sample plan" --recovery-groups "{default-group:{group-unique-id:b7e2a1c4-9f3b-4e2d-8c6a-2f7e4d1b5a9f,order-id:0,description:'Default recovery group'}}" --system-assigned
Required Parameters
The name of the recovery orchestration plan.
The name of the service group.
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 |
Set the system managed identity.
| Property | Value |
|---|---|
| Parameter group: | Identity Arguments |
Set the user managed identities. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
| Property | Value |
|---|---|
| Parameter group: | Identity Arguments |
Do not wait for the long-running operation to finish.
| Property | Value |
|---|---|
| Accepted values: | 0, 1, f, false, n, no, t, true, y, yes |
A description of the recovery orchestration plan.
| Property | Value |
|---|---|
| Parameter group: | Properties Arguments |
The type of the recovery orchestration plan, which can be set during creation but cannot be changed afterward.
| Property | Value |
|---|---|
| Parameter group: | Properties Arguments |
| Accepted values: | Regional, Zonal |
Settings for the recovery orchestration groups associated with the recovery orchestration plan. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
| Property | Value |
|---|---|
| Parameter group: | Properties Arguments |
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 resiliency recovery-plan delete
Delete a RecoveryPlan.
az resiliency recovery-plan delete --recovery-plan-name
--service-group-name
[--acquire-policy-token]
[--change-reference]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--yes]
Examples
RecoveryPlans_Delete_MaximumSet
az resiliency recovery-plan delete --service-group-name sampleServiceGroupName --recovery-plan-name samplePlanName
Required Parameters
The name of the recovery orchestration plan.
The name of the service group.
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 wait for the long-running operation to finish.
| Property | Value |
|---|---|
| Accepted values: | 0, 1, f, false, n, no, t, true, y, yes |
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 resiliency recovery-plan failover
This action triggers the failover operation on the recovery orchestration plan for the qualified resources.
az resiliency recovery-plan failover --failover-direction {FromSpecificLocations}
--operation-id
--recovery-plan-name
--service-group-name
[--acquire-policy-token]
[--change-reference]
[--failover-properties --failover-request-properties]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
Examples
RecoveryPlanActions_Failover_MaximumSet
az resiliency recovery-plan failover --service-group-name sampleServiceGroupName --operation-id qmn --recovery-plan-name samplePlanName --failover-direction FromSpecificLocations --failover-request-properties "{source-locations:[westus],selected-resource-ids:[/providers/Microsoft.Management/serviceGroups/sampleServiceGroupName/providers/Microsoft.AzureResilienceManagement/recoveryPlans/samplePlanName/recoveryResources/12345678-9012-3456-7890-123456789012],execution-configurations:{user-consent:Allowed}}"
Required Parameters
Type of Failover direction.
| Property | Value |
|---|---|
| Parameter group: | Body Arguments |
| Accepted values: | FromSpecificLocations |
A GUID that represents the Long Running OperationId.
The name of the recovery orchestration plan.
The name of the service group.
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 |
Additional properties for Failover. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
| Property | Value |
|---|---|
| Parameter group: | Body Arguments |
Do not wait for the long-running operation to finish.
| Property | Value |
|---|---|
| Accepted values: | 0, 1, f, false, n, no, t, true, y, yes |
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 resiliency recovery-plan finalize
This action finalizes the recovery orchestration plan, ensuring all necessary configurations are in place.
az resiliency recovery-plan finalize --operation-id
--recovery-plan-name
--service-group-name
[--acquire-policy-token]
[--change-reference]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
Examples
RecoveryPlanActions_Finalize_MaximumSet
az resiliency recovery-plan finalize --service-group-name sampleServiceGroupName --operation-id qmn --recovery-plan-name samplePlanName
Required Parameters
A GUID that represents the Long Running OperationId.
The name of the recovery orchestration plan.
The name of the service group.
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 wait for the long-running operation to finish.
| Property | Value |
|---|---|
| Accepted values: | 0, 1, f, false, n, no, t, true, y, yes |
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 resiliency recovery-plan list
List RecoveryPlan resources by tenant.
az resiliency recovery-plan list --service-group-name
[--max-items]
[--next-token]
[--skip-token]
[--top]
Examples
RecoveryPlans_List_MaximumSet
az resiliency recovery-plan list --service-group-name sampleServiceGroupName --skip-token jfpmvvhtt --top 44
Required Parameters
The name of the service group.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Total number of items to return in the command's output. If the total number of items available is more than the value specified, a token is provided in the command's output. To resume pagination, provide the token value in --next-token argument of a subsequent command.
| Property | Value |
|---|---|
| Parameter group: | Pagination Arguments |
Token to specify where to start paginating. This is the token value from a previously truncated response.
| Property | Value |
|---|---|
| Parameter group: | Pagination Arguments |
Skip over when retrieving results.
Number of elements to return when retrieving results.
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 resiliency recovery-plan reprotect
This action triggers the reprotect operation on the recovery orchestration plan for the qualified resources.
az resiliency recovery-plan reprotect --operation-id
--recovery-plan-name
--service-group-name
[--acquire-policy-token]
[--change-reference]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--reprotect-properties --reprotect-request-properties]
Examples
RecoveryPlanActions_Reprotect_MaximumSet
az resiliency recovery-plan reprotect --service-group-name sampleServiceGroupName --operation-id qmn --recovery-plan-name samplePlanName --reprotect-request-properties "{selected-resource-ids:[/providers/Microsoft.Management/serviceGroups/sampleServiceGroupName/providers/Microsoft.AzureResilienceManagement/recoveryPlans/samplePlanName/recoveryResources/12345678-9012-3456-7890-123456789012]}"
Required Parameters
A GUID that represents the Long Running OperationId.
The name of the recovery orchestration plan.
The name of the service group.
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 wait for the long-running operation to finish.
| Property | Value |
|---|---|
| Accepted values: | 0, 1, f, false, n, no, t, true, y, yes |
Additional properties for Reprotect. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
| Property | Value |
|---|---|
| Parameter group: | Body Arguments |
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 resiliency recovery-plan show
Get a RecoveryPlan.
az resiliency recovery-plan show --recovery-plan-name
--service-group-name
Examples
RecoveryPlans_Get_MaximumSet
az resiliency recovery-plan show --service-group-name sampleServiceGroupName --recovery-plan-name samplePlanName
Required Parameters
The name of the recovery orchestration plan.
The name of the service group.
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 resiliency recovery-plan update
Update a RecoveryPlan.
az resiliency recovery-plan update --recovery-plan-name
--service-group-name
[--acquire-policy-token]
[--change-reference]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--plan-description]
[--recovery-groups --recovery-groups-setting]
Examples
Update the description of a recovery plan
az resiliency recovery-plan update --service-group-name sampleServiceGroupName --recovery-plan-name samplePlanName --plan-description "Updated sample plan"
Required Parameters
The name of the recovery orchestration plan.
The name of the service group.
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 wait for the long-running operation to finish.
| Property | Value |
|---|---|
| Accepted values: | 0, 1, f, false, n, no, t, true, y, yes |
A description of the recovery orchestration plan.
| Property | Value |
|---|---|
| Parameter group: | Properties Arguments |
Settings for the recovery orchestration groups associated with the recovery orchestration plan. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
| Property | Value |
|---|---|
| Parameter group: | Properties Arguments |
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 resiliency recovery-plan update-resource
This action adds or updates the resources to be included in the recovery orchestration plan.
az resiliency recovery-plan update-resource --operation-id
--recovery-plan-name
--service-group-name
[--acquire-policy-token]
[--change-reference]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--resources-to-remove]
[--resources-to-update]
Examples
Include a resource in a recovery plan
az resiliency recovery-plan update-resource --service-group-name sampleServiceGroupName --recovery-plan-name samplePlanName --operation-id 3f1c2a4b-5d6e-4f70-8a9b-0c1d2e3f4a5b --resources-to-update "[{recovery-resource-unique-id:e2a7b8d1-4c3f-4e2b-9a1c-7f6e2d8b5c4a,inclusion-state:Included,selected-protection-solution-type:AzureNative,selected-protection-solution-setting:{azure-native:{}},associated-identity:{type:UserAssigned,user-assigned-identity:/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uami1}}]"
Required Parameters
A GUID that represents the Long Running OperationId.
The name of the recovery orchestration plan.
The name of the service group.
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 wait for the long-running operation to finish.
| Property | Value |
|---|---|
| Accepted values: | 0, 1, f, false, n, no, t, true, y, yes |
A list of recovery orchestration resources that need to be removed from the recovery orchestration plan. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
| Property | Value |
|---|---|
| Parameter group: | Body Arguments |
A list of recovery orchestration resources whose properties need to be updated. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
| Property | Value |
|---|---|
| Parameter group: | Body Arguments |
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 resiliency recovery-plan validate-for-failover
This action checks if the recovery orchestration plan is eligible for failover operation, ensuring it meets the necessary criteria and provides a list of qualified and unqualified resources.
az resiliency recovery-plan validate-for-failover --failover-direction {FromSpecificLocations}
--operation-id
--recovery-plan-name
--service-group-name
[--acquire-policy-token]
[--change-reference]
[--failover-properties --failover-request-properties]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
Examples
RecoveryPlanActions_ValidateForFailover_MaximumSet
az resiliency recovery-plan validate-for-failover --service-group-name sampleServiceGroupName --operation-id qmn --recovery-plan-name samplePlanName --failover-direction FromSpecificLocations --failover-request-properties "{source-locations:[westus]}"
Required Parameters
Type of Failover direction.
| Property | Value |
|---|---|
| Parameter group: | Body Arguments |
| Accepted values: | FromSpecificLocations |
A GUID that represents the Long Running OperationId.
The name of the recovery orchestration plan.
The name of the service group.
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 |
Additional properties for Failover. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
| Property | Value |
|---|---|
| Parameter group: | Body Arguments |
Do not wait for the long-running operation to finish.
| Property | Value |
|---|---|
| Accepted values: | 0, 1, f, false, n, no, t, true, y, yes |
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 resiliency recovery-plan validate-for-operation
This action checks if the recovery orchestration plan is eligible for operations like failover and reprotect, ensuring it meets the necessary criteria.
az resiliency recovery-plan validate-for-operation --operation-id
--operation-name {Failover, FailoverCommit, Reprotect, TestFailover, TestFailoverCleanup}
--recovery-plan-name
--service-group-name
[--acquire-policy-token]
[--change-reference]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
Examples
RecoveryPlanActions_ValidateForOperation_MaximumSet
az resiliency recovery-plan validate-for-operation --service-group-name sampleServiceGroupName --operation-id qmn --recovery-plan-name samplePlanName --operation-name Failover
Required Parameters
A GUID that represents the Long Running OperationId.
Operation Name to validate.
| Property | Value |
|---|---|
| Parameter group: | Body Arguments |
| Accepted values: | Failover, FailoverCommit, Reprotect, TestFailover, TestFailoverCleanup |
The name of the recovery orchestration plan.
The name of the service group.
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 wait for the long-running operation to finish.
| Property | Value |
|---|---|
| Accepted values: | 0, 1, f, false, n, no, t, true, y, yes |
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 resiliency recovery-plan validate-for-reprotect
This action checks if the recovery orchestration plan is eligible for reprotect operation, ensuring it meets the necessary criteria and provides a list of qualified and unqualified resources.
az resiliency recovery-plan validate-for-reprotect --operation-id
--recovery-plan-name
--service-group-name
[--acquire-policy-token]
[--change-reference]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--reprotect-properties --reprotect-request-properties]
Examples
RecoveryPlanActions_ValidateForReprotect_MaximumSet
az resiliency recovery-plan validate-for-reprotect --service-group-name nrhlfd --operation-id qmn --recovery-plan-name samplePlanName --reprotect-request-properties "{selected-resource-ids:[/providers/Microsoft.Management/serviceGroups/sampleServiceGroupName/providers/Microsoft.AzureResilienceManagement/recoveryPlans/samplePlanName/recoveryResources/12345678-9012-3456-7890-123456789012]}"
Required Parameters
A GUID that represents the Long Running OperationId.
The name of the recovery orchestration plan.
The name of the service group.
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 wait for the long-running operation to finish.
| Property | Value |
|---|---|
| Accepted values: | 0, 1, f, false, n, no, t, true, y, yes |
Additional properties for Reprotect. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
| Property | Value |
|---|---|
| Parameter group: | Body Arguments |
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 resiliency recovery-plan wait
Place the CLI in a waiting state until a condition is met.
az resiliency recovery-plan wait --recovery-plan-name
--service-group-name
[--acquire-policy-token]
[--change-reference]
[--created]
[--custom]
[--deleted]
[--exists]
[--interval]
[--timeout]
[--updated]
Required Parameters
The name of the recovery orchestration plan.
The name of the service group.
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 |
Wait until created with 'provisioningState' at 'Succeeded'.
| Property | Value |
|---|---|
| Parameter group: | Wait Condition Arguments |
| Default value: | False |
Wait until the condition satisfies a custom JMESPath query. E.g. provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running'].
| Property | Value |
|---|---|
| Parameter group: | Wait Condition Arguments |
Wait until deleted.
| Property | Value |
|---|---|
| Parameter group: | Wait Condition Arguments |
| Default value: | False |
Wait until the resource exists.
| Property | Value |
|---|---|
| Parameter group: | Wait Condition Arguments |
| Default value: | False |
Polling interval in seconds.
| Property | Value |
|---|---|
| Parameter group: | Wait Condition Arguments |
| Default value: | 30 |
Maximum wait in seconds.
| Property | Value |
|---|---|
| Parameter group: | Wait Condition Arguments |
| Default value: | 3600 |
Wait until updated with provisioningState at 'Succeeded'.
| Property | Value |
|---|---|
| Parameter group: | Wait Condition Arguments |
| 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 |