az backup vault

Online storage entity in Azure used to hold data such as backup copies, recovery points and backup policies.

Commands

Name Description Type Status
az backup vault backup-properties

Properties of the Recovery Services vault.

Core GA
az backup vault backup-properties set

Sets backup related properties of the Recovery Services vault.

Core GA
az backup vault backup-properties show

Gets backup related properties of the Recovery Services vault.

Core GA
az backup vault create

Create a new Recovery Services vault or update an existing one.

Core GA
az backup vault delete

Delete an existing Recovery services vault.

Core GA
az backup vault encryption

Encryption details of a Recovery Services Vault.

Core GA
az backup vault encryption show

Show details of encryption properties of a Recovery Services Vault.

Core GA
az backup vault encryption update

Update encryption properties of a Recovery Services Vault.

Core GA
az backup vault identity

Identity details of a Recovery Services Vault.

Core GA
az backup vault identity assign

Assign Identities to Recovery Services vault.

Core GA
az backup vault identity remove

Remove Identities of Recovery Services vault.

Core GA
az backup vault identity show

Show Identities of Recovery Services vault.

Core GA
az backup vault list

List Recovery service vaults within a subscription.

Core GA
az backup vault list-soft-deleted-containers

List soft-deleted containers within a particular Recovery Services vault.

Core GA
az backup vault resource-guard-mapping

Resource Guard Mapping details of the Recovery Services vault.

Core GA
az backup vault resource-guard-mapping delete

Delete resource guard mapping of the Recovery Services vault.

Core GA
az backup vault resource-guard-mapping show

Get resource guard mapping of the Recovery Services vault.

Core GA
az backup vault resource-guard-mapping update

Create/Update resource guard mapping of the Recovery Services vault.

Core GA
az backup vault show

Show details of a particular Recovery service vault.

Core GA
az backup vault update

Update an existing Recovery Services vault.

Core GA

az backup vault create

Create a new Recovery Services vault or update an existing one.

az backup vault create --location
                       --name
                       --resource-group
                       [--classic-alerts {Disable, Enable}]
                       [--cross-subscription-restore-state {Disable, Enable, PermanentlyDisable}]
                       [--immutability-state {Disabled, Locked, Unlocked}]
                       [--job-failure-alerts {Disable, Enable}]
                       [--public-network-access {Disable, Enable}]
                       [--tags]

Examples

Create a new Recovery Services vault or update an existing one. (autogenerated)

az backup vault create --location westus2 --name MyRecoveryServicesVault --resource-group MyResourceGroup

Required Parameters

--location -l

Location. Values from: az account list-locations. You can configure the default location using az configure --defaults location=<location>.

--name -n

Name of the Recovery services vault.

--resource-group -g

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

Optional Parameters

--classic-alerts

Use this property to specify whether backup alerts from the classic solution should be received.

accepted values: Disable, Enable
--cross-subscription-restore-state

Use this parameter to configure cross subscription restore settings for the vault. By default, the property is "Enabled" for the vault.

accepted values: Disable, Enable, PermanentlyDisable
--immutability-state

Use this parameter to configure immutability settings for the vault. By default, immutability is "Disabled" for the vault. "Unlocked" means that immutability is enabled for the vault and can be reversed. "Locked" means that immutability is enabled for the vault and cannot be reversed.

accepted values: Disabled, Locked, Unlocked
--job-failure-alerts

Use this property to specify whether built-in Azure Monitor alerts should be received for every job failure.

accepted values: Disable, Enable
--public-network-access

Use this property to specify whether public network access for the vault should be enabled or disabled. It is enabled by default. For setting up private endpoints, it has to be disabled.

accepted values: Disable, Enable
--tags

Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.

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.

az backup vault delete

Delete an existing Recovery services vault.

az backup vault delete [--force]
                       [--ids]
                       [--name]
                       [--resource-group]
                       [--subscription]
                       [--yes]

Examples

Delete an existing Recovery services vault. (autogenerated)

az backup vault delete --name MyRecoveryServicesVault --resource-group MyResourceGroup --yes

Optional Parameters

--force

Force completion of the requested action.

default value: False
--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.

--name -n

Name of the Recovery services vault.

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

--yes -y

Do not prompt for confirmation.

default value: False
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.

az backup vault list

List Recovery service vaults within a subscription.

az backup vault list [--resource-group]

Optional Parameters

--resource-group -g

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

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.

az backup vault list-soft-deleted-containers

List soft-deleted containers within a particular Recovery Services vault.

az backup vault list-soft-deleted-containers --backup-management-type {AzureIaasVM, AzureStorage, AzureWorkload}
                                             [--ids]
                                             [--name]
                                             [--resource-group]
                                             [--subscription]

Examples

List soft deleted containers

az backup vault list-soft-deleted-containers --name MyRecoveryServicesVault --resource-group MyResourceGroup --backup-management-type AzureIaasVM

Required 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

Optional Parameters

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

--name -n

Name of the Recovery services vault.

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

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.

az backup vault show

Show details of a particular Recovery service vault.

az backup vault show [--ids]
                     [--name]
                     [--resource-group]
                     [--subscription]

Examples

Show details of a particular Recovery service vault. (autogenerated)

az backup vault show --name MyRecoveryServicesVault --resource-group MyResourceGroup

Optional Parameters

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

--name -n

Name of the Recovery services vault.

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

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.

az backup vault update

Update an existing Recovery Services vault.

az backup vault update [--classic-alerts {Disable, Enable}]
                       [--cross-subscription-restore-state {Disable, Enable, PermanentlyDisable}]
                       [--ids]
                       [--immutability-state {Disabled, Locked, Unlocked}]
                       [--job-failure-alerts {Disable, Enable}]
                       [--name]
                       [--public-network-access {Disable, Enable}]
                       [--resource-group]
                       [--subscription]
                       [--tags]

Examples

Update immutability settings of a Recovery Services vault.

az backup vault update --name MyRecoveryServicesVault --resource-group MyResourceGroup --immutability-state Unlocked

Optional Parameters

--classic-alerts

Use this property to specify whether backup alerts from the classic solution should be received.

accepted values: Disable, Enable
--cross-subscription-restore-state

Use this parameter to configure cross subscription restore settings for the vault. By default, the property is "Enabled" for the vault.

accepted values: Disable, Enable, PermanentlyDisable
--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.

--immutability-state

Use this parameter to configure immutability settings for the vault. By default, immutability is "Disabled" for the vault. "Unlocked" means that immutability is enabled for the vault and can be reversed. "Locked" means that immutability is enabled for the vault and cannot be reversed.

accepted values: Disabled, Locked, Unlocked
--job-failure-alerts

Use this property to specify whether built-in Azure Monitor alerts should be received for every job failure.

accepted values: Disable, Enable
--name -n

Name of the Recovery services vault.

--public-network-access

Use this property to specify whether public network access for the vault should be enabled or disabled. It is enabled by default. For setting up private endpoints, it has to be disabled.

accepted values: Disable, Enable
--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.

--tags

Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.

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.