az backup item

An item which is already protected or backed up to an Azure Recovery services vault with an associated policy.

Commands

az backup item list List all backed up items within a container.
az backup item set-policy Update the policy associated with this item. Use this to change policies of the backup item.
az backup item show Show details of a particular backed up item.

az backup item list

List all backed up items within a container.

az backup item list --resource-group
--vault-name
[--backup-management-type {AzureIaasVM, AzureStorage}]
[--container-name]
[--subscription]
[--workload-type {AzureFileShare, VM}]

Examples

List all backed up items within a container. (autogenerated)

az backup item list --resource-group MyResourceGroup --vault-name MyVault

Required Parameters

--resource-group -g

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

--vault-name -v

Name of the Recovery services vault.

Optional Parameters

--backup-management-type

Specifiy 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
--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.

--subscription

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

--workload-type

Specifiy the type of applications within the Resource which should be discovered and protected by Azure Backup.

accepted values: AzureFileShare, VM

az backup item set-policy

Update the policy associated with this item. Use this to change policies of the backup item.

az backup item set-policy --container-name
--policy-name
[--backup-management-type]
[--ids]
[--name]
[--resource-group]
[--subscription]
[--vault-name]
[--workload-type {AzureFileShare, VM}]

Examples

Update the policy associated with this item. Use this to change policies of the backup item.

az backup item set-policy --vault-name MyVault --resource-group MyResourceGroup --container-name MyContainer --name MyItem --policy-name MyPolicy

Required Parameters

--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.

--policy-name -p

Name of the Backup policy. You can use the backup policy list command to get the name of a backup policy.

Optional Parameters

--backup-management-type

Specifiy 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.

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. If provided, no other 'Resource Id' arguments should be specified.

--name -n

Name of the backed up item. You can use the backup item list command to get the name of a backed up item.

--resource-group -g

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

--subscription

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

--vault-name -v

Name of the Recovery services vault.

--workload-type

Specifiy the type of applications within the Resource which should be discovered and protected by Azure Backup.

accepted values: AzureFileShare, VM

az backup item show

Show details of a particular backed up item.

az backup item show --container-name
--name
[--backup-management-type {AzureIaasVM, AzureStorage}]
[--ids]
[--resource-group]
[--subscription]
[--vault-name]
[--workload-type {AzureFileShare, VM}]

Examples

Show details of a particular backed up item. (autogenerated)

az backup item show --container-name MyContainer --ids {ids} --name MyBackedUpItem

Show details of a particular backed up item. (autogenerated)

az backup item show --container-name MyContainer --name MyBackedUpItem --resource-group MyResourceGroup --vault-name MyVault

Required Parameters

--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.

--name -n

Name of the backed up item. You can use the backup item list command to get the name of a backed up item.

Optional Parameters

--backup-management-type

Specifiy 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
--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. If provided, no other 'Resource Id' arguments should be specified.

--resource-group -g

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

--subscription

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

--vault-name -v

Name of the Recovery services vault.

--workload-type

Specifiy the type of applications within the Resource which should be discovered and protected by Azure Backup.

accepted values: AzureFileShare, VM