Skip to main content

vault

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

Overview

Namevault
TypeResource
Idazure.recovery_services_data_replication.vault

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.
identityobjectThe managed service identities assigned to this resource.
locationstringThe geo-location where the resource lives. Required.
provisioningStatestringGets or sets the provisioning state of the vault. Known values are: "Canceled", "Creating", "Deleting", "Deleted", "Failed", "Succeeded", and "Updating". (Canceled, Creating, Deleting, Deleted, Failed, Succeeded, Updating)
serviceResourceIdstringGets or sets the service resource Id.
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".
vaultTypestringGets or sets the type of vault. Known values are: "DisasterRecovery" and "Migrate". (DisasterRecovery, Migrate)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, vault_name, subscription_idGets the details of the vault.
listselectresource_group_name, subscription_idcontinuationTokenGets the list of vaults in the given subscription and resource group.
list_by_subscriptionselectsubscription_idGets the list of vaults in the given subscription.
createinsertresource_group_name, vault_name, subscription_id, locationCreates the vault.
updateupdateresource_group_name, vault_name, subscription_idPerforms update on the vault.
deletedeleteresource_group_name, vault_name, subscription_idRemoves the 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 vault name. Required.
continuationTokenstringContinuation token from the previous call. Default value is None.

SELECT examples

Gets the details of the vault.

SELECT
id,
name,
identity,
location,
provisioningState,
serviceResourceId,
systemData,
tags,
type,
vaultType
FROM azure.recovery_services_data_replication.vault
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND vault_name = '{{ vault_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates the vault.

INSERT INTO azure.recovery_services_data_replication.vault (
tags,
location,
properties,
identity,
resource_group_name,
vault_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ identity }}',
'{{ resource_group_name }}',
'{{ vault_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
identity,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Performs update on the vault.

UPDATE azure.recovery_services_data_replication.vault
SET
tags = '{{ tags }}',
properties = '{{ properties }}',
identity = '{{ identity }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND vault_name = '{{ vault_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
identity,
location,
properties,
systemData,
tags,
type;

DELETE examples

Removes the vault.

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