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

NameDatatypeDescription
bcdr_security_leveltextfield from the properties object
feature_settingstextfield from the properties object
identitytextIdentity details
is_vault_protected_by_resource_guardtextfield from the properties object
monitoring_settingstextfield from the properties object
provisioning_statetextfield from the properties object
replicated_regionstextfield from the properties object
resourceGroupNametextfield from the properties object
resource_guard_operation_requeststextfield from the properties object
resource_move_detailstextfield from the properties object
resource_move_statetextfield from the properties object
secure_scoretextfield from the properties object
security_settingstextfield from the properties object
storage_settingstextfield from the properties object
subscriptionIdtextfield from the properties object
vaultNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, subscriptionId, vaultNameReturns a resource belonging to a resource group.
get_in_resource_groupSELECTresourceGroupName, subscriptionIdReturns resource collection belonging to a resource group.
get_in_subscriptionSELECTsubscriptionIdReturns resource collection belonging to a subscription.
create_or_updateINSERTresourceGroupName, subscriptionId, vaultName, data__propertiesCreates or updates a BackupVault resource belonging to a resource group.
deleteDELETEresourceGroupName, subscriptionId, vaultNameDeletes a BackupVault resource from the resource group.
updateUPDATEresourceGroupName, subscriptionId, vaultNameUpdates a BackupVault resource belonging to a resource group. For example, updating tags for a resource.
check_name_availabilityEXEClocation, resourceGroupName, subscriptionId

SELECT examples

Returns resource collection belonging to a subscription.

SELECT
bcdr_security_level,
feature_settings,
identity,
is_vault_protected_by_resource_guard,
monitoring_settings,
provisioning_state,
replicated_regions,
resourceGroupName,
resource_guard_operation_requests,
resource_move_details,
resource_move_state,
secure_score,
security_settings,
storage_settings,
subscriptionId,
vaultName
FROM azure.data_protection.vw_backup_vaults
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.data_protection.backup_vaults (
resourceGroupName,
subscriptionId,
vaultName,
data__properties,
identity,
properties
)
SELECT
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ vaultName }}',
'{{ data__properties }}',
'{{ identity }}',
'{{ properties }}'
;

UPDATE example

Updates a backup_vaults resource.

/*+ update */
UPDATE azure.data_protection.backup_vaults
SET
identity = '{{ identity }}',
properties = '{{ properties }}',
tags = '{{ tags }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vaultName = '{{ vaultName }}';

DELETE example

Deletes the specified backup_vaults resource.

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