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
identityobjectInput Managed Identity Details (title: DppIdentityDetails)
propertiesobjectBackupVaultResource properties (title: BackupVault)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, 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_updateinsertsubscriptionId, resourceGroupName, vaultName, data__location, data__propertiesx-ms-authorization-auxiliaryCreates or updates a BackupVault resource belonging to a resource group.
updateupdatesubscriptionId, resourceGroupName, vaultNamex-ms-authorization-auxiliaryUpdates a BackupVault resource belonging to a resource group. For example, updating tags for a resource.
deletedeletesubscriptionId, resourceGroupName, vaultNameDeletes a BackupVault resource from the resource group.
check_name_availabilityexecresourceGroupName, subscriptionId, location

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 location in which uniqueness will be verified.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.
vaultNamestringThe name of the backup vault.
x-ms-authorization-auxiliarystring

SELECT examples

Returns a resource belonging to a resource group.

SELECT
identity,
properties
FROM azure.data_protection.backup_vaults
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND vaultName = '{{ vaultName }}' -- required
;

INSERT examples

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

INSERT INTO azure.data_protection.backup_vaults (
data__identity,
data__properties,
subscriptionId,
resourceGroupName,
vaultName,
x-ms-authorization-auxiliary
)
SELECT
'{{ identity }}',
'{{ properties }}' /* required */,
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ vaultName }}',
'{{ x-ms-authorization-auxiliary }}'
RETURNING
identity,
properties
;

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
data__identity = '{{ identity }}',
data__properties = '{{ properties }}',
data__tags = '{{ tags }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND vaultName = '{{ vaultName }}' --required
AND x-ms-authorization-auxiliary = '{{ x-ms-authorization-auxiliary}}'
RETURNING
identity,
properties;

DELETE examples

Deletes a BackupVault resource from the resource group.

DELETE FROM azure.data_protection.backup_vaults
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND vaultName = '{{ vaultName }}' --required
;

Lifecycle Methods

OK

EXEC azure.data_protection.backup_vaults.check_name_availability 
@resourceGroupName='{{ resourceGroupName }}' --required,
@subscriptionId='{{ subscriptionId }}' --required,
@location='{{ location }}' --required
@@json=
'{
"name": "{{ name }}",
"type": "{{ type }}"
}'
;