Skip to main content

vaults

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

Overview

Namevaults
TypeResource
Idazure.recovery_services.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.
backupStorageVersionstringBackup storage version. Known values are: "V1", "V2", and "Unassigned". (V1, V2, Unassigned)
bcdrSecurityLevelstringSecurity levels of Recovery Services Vault for business continuity and disaster recovery. Known values are: "Poor", "Fair", "Good", and "Excellent". (Poor, Fair, Good, Excellent)
encryptionobjectCustomer Managed Key details of the resource.
etagstringetag for the resource.
identityobjectIdentity for the resource.
locationstringThe geo-location where the resource lives. Required.
monitoringSettingsobjectMonitoring Settings of the vault.
moveDetailsobjectThe details of the latest move operation performed on the Azure Resource.
moveStatestringThe State of the Resource after the move operation. Known values are: "Unknown", "InProgress", "PrepareFailed", "CommitFailed", "PrepareTimedout", "CommitTimedout", "MoveSucceeded", "Failure", "CriticalFailure", and "PartialSuccess". (Unknown, InProgress, PrepareFailed, CommitFailed, PrepareTimedout, CommitTimedout, MoveSucceeded, Failure, CriticalFailure, PartialSuccess)
privateEndpointConnectionsarrayList of private endpoint connection.
privateEndpointStateForBackupstringPrivate endpoint state for backup. Known values are: "None" and "Enabled". (None, Enabled)
privateEndpointStateForSiteRecoverystringPrivate endpoint state for site recovery. Known values are: "None" and "Enabled". (None, Enabled)
provisioningStatestringProvisioning State.
publicNetworkAccessstringproperty to enable or disable resource provider inbound network traffic from public clients. Known values are: "Enabled" and "Disabled". (Enabled, Disabled)
redundancySettingsobjectThe redundancy Settings of a Vault.
resourceGuardOperationRequestsarrayResourceGuardOperationRequests on which LAC check will be performed.
restoreSettingsobjectRestore Settings of the vault.
secureScorestringSecure Score of Recovery Services Vault. Known values are: "None", "Minimum", "Adequate", and "Maximum". (None, Minimum, Adequate, Maximum)
securitySettingsobjectSecurity Settings of the vault.
skuobjectIdentifies the unique system identifier for each Azure resource.
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".
upgradeDetailsobjectDetails for upgrading vault.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, vault_name, subscription_idGet the Vault details.
list_by_resource_groupselectresource_group_name, subscription_idRetrieve a list of Vaults.
list_by_subscription_idselectsubscription_idFetches all the resources of the specified type in the subscription.
create_or_updateinsertresource_group_name, vault_name, subscription_id, locationx-ms-authorization-auxiliaryCreates or updates a Recovery Services vault.
updateupdateresource_group_name, vault_name, subscription_idx-ms-authorization-auxiliaryUpdates the vault.
create_or_updatereplaceresource_group_name, vault_name, subscription_id, locationx-ms-authorization-auxiliaryCreates or updates a Recovery Services vault.
deletedeleteresource_group_name, vault_name, subscription_idDeletes a vault.

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
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
vault_namestringThe name of the Vault. Required.
x-ms-authorization-auxiliarystringDefault value is None.

SELECT examples

Get the Vault details.

SELECT
id,
name,
backupStorageVersion,
bcdrSecurityLevel,
encryption,
etag,
identity,
location,
monitoringSettings,
moveDetails,
moveState,
privateEndpointConnections,
privateEndpointStateForBackup,
privateEndpointStateForSiteRecovery,
provisioningState,
publicNetworkAccess,
redundancySettings,
resourceGuardOperationRequests,
restoreSettings,
secureScore,
securitySettings,
sku,
systemData,
tags,
type,
upgradeDetails
FROM azure.recovery_services.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 Recovery Services vault.

INSERT INTO azure.recovery_services.vaults (
tags,
location,
properties,
identity,
sku,
etag,
resource_group_name,
vault_name,
subscription_id,
x-ms-authorization-auxiliary
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ identity }}',
'{{ sku }}',
'{{ etag }}',
'{{ resource_group_name }}',
'{{ vault_name }}',
'{{ subscription_id }}',
'{{ x-ms-authorization-auxiliary }}'
RETURNING
id,
name,
etag,
identity,
location,
properties,
sku,
systemData,
tags,
type
;

UPDATE examples

Updates the vault.

UPDATE azure.recovery_services.vaults
SET
location = '{{ location }}',
tags = '{{ tags }}',
etag = '{{ etag }}',
properties = '{{ properties }}',
sku = '{{ sku }}',
identity = '{{ identity }}'
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,
sku,
systemData,
tags,
type;

REPLACE examples

Creates or updates a Recovery Services vault.

REPLACE azure.recovery_services.vaults
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}',
identity = '{{ identity }}',
sku = '{{ sku }}',
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 x-ms-authorization-auxiliary = '{{ x-ms-authorization-auxiliary}}'
RETURNING
id,
name,
etag,
identity,
location,
properties,
sku,
systemData,
tags,
type;

DELETE examples

Deletes a vault.

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