Skip to main content

protection_intents

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

Overview

Nameprotection_intents
TypeResource
Idazure.recovery_services_backup.protection_intents

Fields

NameDatatypeDescription
idtextFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
nametextThe name of the resource
backup_management_typetextfield from the properties object
fabricNametextfield from the properties object
intentObjectNametextfield from the properties object
item_idtextfield from the properties object
policy_idtextfield from the properties object
protection_intent_item_typetextfield from the properties object
protection_statetextfield from the properties object
resourceGroupNametextfield from the properties object
source_resource_idtextfield from the properties object
subscriptionIdtextfield from the properties object
typetextThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
vaultNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTfabricName, intentObjectName, resourceGroupName, subscriptionId, vaultNameProvides the details of the protection intent up item. This is an asynchronous operation. To know the status of the operation,
call the GetItemOperationResult API.
create_or_updateINSERTfabricName, intentObjectName, resourceGroupName, subscriptionId, vaultNameCreate Intent for Enabling backup of an item. This is a synchronous operation.
deleteDELETEfabricName, intentObjectName, resourceGroupName, subscriptionId, vaultNameUsed to remove intent from an item
validateEXECazureRegion, subscriptionId

SELECT examples

Provides the details of the protection intent up item. This is an asynchronous operation. To know the status of the operation, call the GetItemOperationResult API.

SELECT
id,
name,
backup_management_type,
fabricName,
intentObjectName,
item_id,
policy_id,
protection_intent_item_type,
protection_state,
resourceGroupName,
source_resource_id,
subscriptionId,
type,
vaultName
FROM azure.recovery_services_backup.vw_protection_intents
WHERE fabricName = '{{ fabricName }}'
AND intentObjectName = '{{ intentObjectName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vaultName = '{{ vaultName }}';

INSERT example

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

/*+ create */
INSERT INTO azure.recovery_services_backup.protection_intents (
fabricName,
intentObjectName,
resourceGroupName,
subscriptionId,
vaultName,
properties
)
SELECT
'{{ fabricName }}',
'{{ intentObjectName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ vaultName }}',
'{{ properties }}'
;

DELETE example

Deletes the specified protection_intents resource.

/*+ delete */
DELETE FROM azure.recovery_services_backup.protection_intents
WHERE fabricName = '{{ fabricName }}'
AND intentObjectName = '{{ intentObjectName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vaultName = '{{ vaultName }}';