Skip to main content

backup_policies

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

Overview

Namebackup_policies
TypeResource
Idazure.data_protection.backup_policies

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringResource Id represents the complete path to the resource.
namestringResource name associated with the resource.
propertiesobjectBaseBackupPolicyResource properties (title: BaseBackupPolicy)
systemDataobjectMetadata pertaining to creation and last modification of the resource.
typestringResource type represents the complete path of the form Namespace/ResourceType/ResourceType/...

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, vaultName, backupPolicyNameGets a backup policy belonging to a backup vault
listselectsubscriptionId, resourceGroupName, vaultNameReturns list of backup policies belonging to a backup vault
create_or_updateinsertsubscriptionId, resourceGroupName, vaultName, backupPolicyName
deletedeletesubscriptionId, resourceGroupName, vaultName, backupPolicyName

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
backupPolicyNamestring
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.

SELECT examples

Gets a backup policy belonging to a backup vault

SELECT
id,
name,
properties,
systemData,
type
FROM azure.data_protection.backup_policies
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND vaultName = '{{ vaultName }}' -- required
AND backupPolicyName = '{{ backupPolicyName }}' -- required
;

INSERT examples

No description available.

INSERT INTO azure.data_protection.backup_policies (
data__properties,
subscriptionId,
resourceGroupName,
vaultName,
backupPolicyName
)
SELECT
'{{ properties }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ vaultName }}',
'{{ backupPolicyName }}'
RETURNING
id,
name,
properties,
systemData,
type
;

DELETE examples

No description available.

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