Skip to main content

vaults

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

Overview

Namevaults
TypeResource
Idazure.recovery_services.vaults

Fields

NameDatatypeDescription
backup_storage_versiontextfield from the properties object
bcdr_security_leveltextfield from the properties object
encryptiontextfield from the properties object
identitytextIdentity for the resource.
locationtextThe geo-location where the resource lives
monitoring_settingstextfield from the properties object
move_detailstextfield from the properties object
move_statetextfield from the properties object
private_endpoint_connectionstextfield from the properties object
private_endpoint_state_for_backuptextfield from the properties object
private_endpoint_state_for_site_recoverytextfield from the properties object
provisioning_statetextfield from the properties object
public_network_accesstextfield from the properties object
redundancy_settingstextfield from the properties object
resourceGroupNametextfield from the properties object
resource_guard_operation_requeststextfield from the properties object
restore_settingstextfield from the properties object
secure_scoretextfield from the properties object
security_settingstextfield from the properties object
skutextThe resource model definition representing SKU
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextResource tags.
upgrade_detailstextfield from the properties object
vaultNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, subscriptionId, vaultNameGet the Vault details.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdRetrieve a list of Vaults.
list_by_subscription_idSELECTsubscriptionIdFetches all the resources of the specified type in the subscription.
create_or_updateINSERTresourceGroupName, subscriptionId, vaultNameCreates or updates a Recovery Services vault.
deleteDELETEresourceGroupName, subscriptionId, vaultNameDeletes a vault.
updateUPDATEresourceGroupName, subscriptionId, vaultNameUpdates the vault.

SELECT examples

Fetches all the resources of the specified type in the subscription.

SELECT
backup_storage_version,
bcdr_security_level,
encryption,
identity,
location,
monitoring_settings,
move_details,
move_state,
private_endpoint_connections,
private_endpoint_state_for_backup,
private_endpoint_state_for_site_recovery,
provisioning_state,
public_network_access,
redundancy_settings,
resourceGroupName,
resource_guard_operation_requests,
restore_settings,
secure_score,
security_settings,
sku,
subscriptionId,
system_data,
tags,
upgrade_details,
vaultName
FROM azure.recovery_services.vw_vaults
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new vaults resource.

/*+ create */
INSERT INTO azure.recovery_services.vaults (
resourceGroupName,
subscriptionId,
vaultName,
tags,
location,
identity,
properties,
sku,
systemData
)
SELECT
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ vaultName }}',
'{{ tags }}',
'{{ location }}',
'{{ identity }}',
'{{ properties }}',
'{{ sku }}',
'{{ systemData }}'
;

UPDATE example

Updates a vaults resource.

/*+ update */
UPDATE azure.recovery_services.vaults
SET
location = '{{ location }}',
tags = '{{ tags }}',
properties = '{{ properties }}',
sku = '{{ sku }}',
identity = '{{ identity }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vaultName = '{{ vaultName }}';

DELETE example

Deletes the specified vaults resource.

/*+ delete */
DELETE FROM azure.recovery_services.vaults
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vaultName = '{{ vaultName }}';