Share via


az backup recoveryconfig

Manage recovery configuration of an Azure workload backed up item.

Commands

Name Description Type Status
az backup recoveryconfig show

Construct the recovery configuration of an Azure workload backed up item.

Core GA

az backup recoveryconfig show

Construct the recovery configuration of an Azure workload backed up item.

az backup recoveryconfig show --restore-mode {AlternateWorkloadRestore, OriginalWorkloadRestore, RestoreAsFiles}
                              [--backup-management-type {AzureIaasVM, AzureStorage, AzureWorkload}]
                              [--container-name]
                              [--filepath]
                              [--from-full-rp-name]
                              [--ids]
                              [--item-name]
                              [--log-point-in-time]
                              [--resource-group]
                              [--rp-name]
                              [--subscription]
                              [--target-container-name]
                              [--target-instance-name]
                              [--target-item-name]
                              [--target-resource-group]
                              [--target-server-name]
                              [--target-server-type {HANAInstance, SAPHanaDatabase, SAPHanaSystem, SQLAG, SQLDatabase, SQLInstance}]
                              [--target-subscription-id]
                              [--target-vault-name]
                              [--vault-name]
                              [--workload-type {MSSQL, SAPASE, SAPHANA, SAPHanaDatabase, SQLDataBase}]

Examples

Construct the recovery configuration of an Azure workload backed up item. The configuration object stores all details such as the recovery mode, target destinations for the restore and application specific parameters like target physical paths for SQL.

az backup recoveryconfig show --container-name MyContainer --item-name MyItem --resource-group MyResourceGroup --vault-name MyVault --restore-mode OriginalWorkloadRestore

Required Parameters

--restore-mode

Specify the restore mode.

Accepted values: AlternateWorkloadRestore, OriginalWorkloadRestore, RestoreAsFiles

Optional Parameters

--backup-management-type

Specify the backup management type. Define how Azure Backup manages the backup of entities within the ARM resource. For eg: AzureWorkloads refers to workloads installed within Azure VMs, AzureStorage refers to entities within Storage account. Required only if friendly name is used as Container name.

Accepted values: AzureIaasVM, AzureStorage, AzureWorkload
Default value: AzureWorkload
--container-name -c

Name of the backup container. Accepts 'Name' or 'FriendlyName' from the output of az backup container list command. If 'FriendlyName' is passed then BackupManagementType is required.

--filepath

The path to which the DB should be restored as files.

--from-full-rp-name

Name of the starting Recovery point.

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--item-name -i

Name of the backed up item.

--log-point-in-time

Specify the point-in-time (in UTC) which will be restored.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--rp-name -r

Name of the recovery point.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--target-container-name

The target container to which the DB recovery point should be restored.

--target-instance-name

Specify the target instance name for the restore operation.

--target-item-name

Specify the target item name for the restore operation.

--target-resource-group

Specify the resource group of target item for Cross Region Restore. Default value will be same as --resource-group if not specified.

--target-server-name

Specify the parent server name of the target item.

--target-server-type

Specify the type of the server which should be discovered.

Accepted values: HANAInstance, SAPHanaDatabase, SAPHanaSystem, SQLAG, SQLDatabase, SQLInstance
--target-subscription-id

Specify the subscription of the target item for Cross Subscription Restore. Defaulted to source subscription if not specified.

--target-vault-name

Specify the vault name of target item for Cross Region Restore. Default value will be same as --vault-name if not specified.

--vault-name -v

Name of the Recovery services vault.

--workload-type

Specify the type of applications within the Resource which should be discovered and protected by Azure Backup. 'MSSQL' and 'SQLDataBase' can be used interchangeably for SQL in Azure VM, as can 'SAPHANA' and 'SAPHanaDatabase' for SAP HANA in Azure VM.

Accepted values: MSSQL, SAPASE, SAPHANA, SAPHanaDatabase, SQLDataBase
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.