Share via


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 [--backup-storage-redundancy {GeoRedundant, LocallyRedundant, ZoneRedundant}]
                       [--classic-alerts {Disable, Enable}]
                       [--cross-region-restore-flag {Disabled, Enabled}]
                       [--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]
                       [--tenant-id]

Examples

Update immutability settings of a Recovery Services vault.

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

Optional Parameters

--backup-storage-redundancy

Set backup storage properties for a Recovery Services vault.

Accepted values: GeoRedundant, LocallyRedundant, ZoneRedundant
--classic-alerts

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

Accepted values: Disable, Enable
--cross-region-restore-flag

Set cross-region-restore feature state for a Recovery Services Vault. Default: False.

Accepted values: Disabled, Enabled
--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.

--tenant-id

ID of the tenant if the Resource Guard protecting the vault exists in a different tenant.

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.