Skip to main content

backup_vaults

Creates, updates, deletes, gets or lists a backup_vaults resource.

Overview

Namebackup_vaults
TypeResource
Idazure.data_protection.backup_vaults

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
bcdrSecurityLevelstringSecurity Level of Backup Vault. Known values are: "Poor", "Fair", "Good", "Excellent", and "NotSupported". (Poor, Fair, Good, Excellent, NotSupported)
eTagstringOptional ETag.
featureSettingsobjectFeature Settings.
identityobjectInput Managed Identity Details.
isVaultProtectedByResourceGuardbooleanIs vault protected by resource guard.
locationstringThe geo-location where the resource lives. Required.
monitoringSettingsobjectMonitoring Settings.
provisioningStatestringProvisioning state of the BackupVault resource. Known values are: "Failed", "Provisioning", "Succeeded", "Unknown", and "Updating". (Failed, Provisioning, Succeeded, Unknown, Updating)
replicatedRegionsarrayList of replicated regions for Backup Vault.
resourceGuardOperationRequestsarrayResourceGuardOperationRequests on which LAC check will be performed.
resourceMoveDetailsobjectResource move details for backup vault.
resourceMoveStatestringResource move state for backup vault. Known values are: "Unknown", "InProgress", "PrepareFailed", "CommitFailed", "Failed", "PrepareTimedout", "CommitTimedout", "CriticalFailure", "PartialSuccess", and "MoveSucceeded". (Unknown, InProgress, PrepareFailed, CommitFailed, Failed, PrepareTimedout, CommitTimedout, CriticalFailure, PartialSuccess, MoveSucceeded)
secureScorestringSecure Score of Backup Vault. Known values are: "None", "Minimum", "Adequate", "Maximum", and "NotSupported". (None, Minimum, Adequate, Maximum, NotSupported)
securitySettingsobjectSecurity Settings.
storageSettingsarrayStorage Settings.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, vault_name, subscription_idReturns a resource belonging to a resource group.
check_name_availabilityselectresource_group_name, location, subscription_idAPI to check for resource name availability. API to check for resource name availability.
get_in_resource_groupselectresource_group_name, subscription_idReturns resource collection belonging to a resource group.
get_in_subscriptionselectsubscription_idReturns resource collection belonging to a subscription.
create_or_updateinsertresource_group_name, vault_name, subscription_id, location, propertiesx-ms-authorization-auxiliary, x-ms-deleted-vault-idCreates or updates a BackupVault resource belonging to a resource group.
updateupdateresource_group_name, vault_name, subscription_idx-ms-authorization-auxiliaryUpdates a BackupVault resource belonging to a resource group. For example, updating tags for a resource.
create_or_updatereplaceresource_group_name, vault_name, subscription_id, location, propertiesx-ms-authorization-auxiliary, x-ms-deleted-vault-idCreates or updates a BackupVault resource belonging to a resource group.
deletedeleteresource_group_name, vault_name, subscription_idDeletes a BackupVault resource from the resource group.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
locationstringThe name of the Azure region. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
vault_namestringThe name of the BackupVaultResource. Required.
x-ms-authorization-auxiliarystringDefault value is None.
x-ms-deleted-vault-idstringThe ID of the deleted backup vault to restore from during undelete flow. Default value is None.

SELECT examples

Returns a resource belonging to a resource group.

SELECT
id,
name,
bcdrSecurityLevel,
eTag,
featureSettings,
identity,
isVaultProtectedByResourceGuard,
location,
monitoringSettings,
provisioningState,
replicatedRegions,
resourceGuardOperationRequests,
resourceMoveDetails,
resourceMoveState,
secureScore,
securitySettings,
storageSettings,
systemData,
tags,
type
FROM azure.data_protection.backup_vaults
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND vault_name = '{{ vault_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or updates a BackupVault resource belonging to a resource group.

INSERT INTO azure.data_protection.backup_vaults (
tags,
location,
properties,
identity,
eTag,
resource_group_name,
vault_name,
subscription_id,
x-ms-authorization-auxiliary,
x-ms-deleted-vault-id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}' /* required */,
'{{ identity }}',
'{{ eTag }}',
'{{ resource_group_name }}',
'{{ vault_name }}',
'{{ subscription_id }}',
'{{ x-ms-authorization-auxiliary }}',
'{{ x-ms-deleted-vault-id }}'
RETURNING
id,
name,
eTag,
identity,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Updates a BackupVault resource belonging to a resource group. For example, updating tags for a resource.

UPDATE azure.data_protection.backup_vaults
SET
identity = '{{ identity }}',
properties = '{{ properties }}',
tags = '{{ tags }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND vault_name = '{{ vault_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND x-ms-authorization-auxiliary = '{{ x-ms-authorization-auxiliary}}'
RETURNING
id,
name,
eTag,
identity,
location,
properties,
systemData,
tags,
type;

REPLACE examples

Creates or updates a BackupVault resource belonging to a resource group.

REPLACE azure.data_protection.backup_vaults
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}',
identity = '{{ identity }}',
eTag = '{{ eTag }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND vault_name = '{{ vault_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
AND properties = '{{ properties }}' --required
AND x-ms-authorization-auxiliary = '{{ x-ms-authorization-auxiliary}}'
AND x-ms-deleted-vault-id = '{{ x-ms-deleted-vault-id}}'
RETURNING
id,
name,
eTag,
identity,
location,
properties,
systemData,
tags,
type;

DELETE examples

Deletes a BackupVault resource from the resource group.

DELETE FROM azure.data_protection.backup_vaults
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND vault_name = '{{ vault_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;