Skip to main content

replication_protected_items

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

Overview

Namereplication_protected_items
TypeResource
Idazure.recovery_services_site_recovery.replication_protected_items

Fields

NameDatatypeDescription
idtextResource Id
nametextResource Name
active_locationtextfield from the properties object
allowed_operationstextfield from the properties object
current_scenariotextfield from the properties object
event_correlation_idtextfield from the properties object
fabricNametextfield from the properties object
failover_healthtextfield from the properties object
failover_recovery_point_idtextfield from the properties object
friendly_nametextfield from the properties object
health_errorstextfield from the properties object
last_successful_failover_timetextfield from the properties object
last_successful_test_failover_timetextfield from the properties object
locationtextResource Location
policy_friendly_nametextfield from the properties object
policy_idtextfield from the properties object
primary_fabric_friendly_nametextfield from the properties object
primary_fabric_providertextfield from the properties object
primary_protection_container_friendly_nametextfield from the properties object
protectable_item_idtextfield from the properties object
protected_item_typetextfield from the properties object
protectionContainerNametextfield from the properties object
protection_statetextfield from the properties object
protection_state_descriptiontextfield from the properties object
provider_specific_detailstextfield from the properties object
recovery_container_idtextfield from the properties object
recovery_fabric_friendly_nametextfield from the properties object
recovery_fabric_idtextfield from the properties object
recovery_protection_container_friendly_nametextfield from the properties object
recovery_services_provider_idtextfield from the properties object
replicatedProtectedItemNametextfield from the properties object
replication_healthtextfield from the properties object
resourceGroupNametextfield from the properties object
resourceNametextfield from the properties object
subscriptionIdtextfield from the properties object
switch_provider_statetextfield from the properties object
switch_provider_state_descriptiontextfield from the properties object
test_failover_statetextfield from the properties object
test_failover_state_descriptiontextfield from the properties object
typetextResource Type

Methods

NameAccessible byRequired ParamsDescription
getSELECTfabricName, protectionContainerName, replicatedProtectedItemName, resourceGroupName, resourceName, subscriptionIdGets the details of an ASR replication protected item.
listSELECTresourceGroupName, resourceName, subscriptionIdGets the list of ASR replication protected items in the vault.
list_by_replication_protection_containersSELECTfabricName, protectionContainerName, resourceGroupName, resourceName, subscriptionIdGets the list of ASR replication protected items in the protection container.
createINSERTfabricName, protectionContainerName, replicatedProtectedItemName, resourceGroupName, resourceName, subscriptionIdThe operation to create an ASR replication protected item (Enable replication).
deleteDELETEfabricName, protectionContainerName, replicatedProtectedItemName, resourceGroupName, resourceName, subscriptionId, data__propertiesThe operation to disable replication on a replication protected item. This will also remove the item.
updateUPDATEfabricName, protectionContainerName, replicatedProtectedItemName, resourceGroupName, resourceName, subscriptionIdThe operation to update the recovery settings of an ASR replication protected item.
add_disksEXECfabricName, protectionContainerName, replicatedProtectedItemName, resourceGroupName, resourceName, subscriptionIdOperation to add disks(s) to the replication protected item.
apply_recovery_pointEXECfabricName, protectionContainerName, replicatedProtectedItemName, resourceGroupName, resourceName, subscriptionId, data__propertiesThe operation to change the recovery point of a failed over replication protected item.
failover_cancelEXECfabricName, protectionContainerName, replicatedProtectedItemName, resourceGroupName, resourceName, subscriptionIdOperation to cancel the failover of the replication protected item.
failover_commitEXECfabricName, protectionContainerName, replicatedProtectedItemName, resourceGroupName, resourceName, subscriptionIdOperation to commit the failover of the replication protected item.
planned_failoverEXECfabricName, protectionContainerName, replicatedProtectedItemName, resourceGroupName, resourceName, subscriptionIdOperation to initiate a planned failover of the replication protected item.
purgeEXECfabricName, protectionContainerName, replicatedProtectedItemName, resourceGroupName, resourceName, subscriptionIdThe operation to delete or purge a replication protected item. This operation will force delete the replication protected item. Use the remove operation on replication protected item to perform a clean disable replication for the item.
remove_disksEXECfabricName, protectionContainerName, replicatedProtectedItemName, resourceGroupName, resourceName, subscriptionIdOperation to remove disk(s) from the replication protected item.
repair_replicationEXECfabricName, protectionContainerName, replicatedProtectedItemName, resourceGroupName, resourceName, subscriptionIdThe operation to start resynchronize/repair replication for a replication protected item requiring resynchronization.
reprotectEXECfabricName, protectionContainerName, replicatedProtectedItemName, resourceGroupName, resourceName, subscriptionIdOperation to reprotect or reverse replicate a failed over replication protected item.
resolve_health_errorsEXECfabricName, protectionContainerName, replicatedProtectedItemName, resourceGroupName, resourceName, subscriptionIdOperation to resolve health issues of the replication protected item.
switch_providerEXECfabricName, protectionContainerName, replicatedProtectedItemName, resourceGroupName, resourceName, subscriptionIdOperation to initiate a switch provider of the replication protected item.
test_failoverEXECfabricName, protectionContainerName, replicatedProtectedItemName, resourceGroupName, resourceName, subscriptionId, data__propertiesOperation to perform a test failover of the replication protected item.
test_failover_cleanupEXECfabricName, protectionContainerName, replicatedProtectedItemName, resourceGroupName, resourceName, subscriptionId, data__propertiesOperation to clean up the test failover of a replication protected item.
unplanned_failoverEXECfabricName, protectionContainerName, replicatedProtectedItemName, resourceGroupName, resourceName, subscriptionId, data__propertiesOperation to initiate a failover of the replication protected item.

SELECT examples

Gets the list of ASR replication protected items in the vault.

SELECT
id,
name,
active_location,
allowed_operations,
current_scenario,
event_correlation_id,
fabricName,
failover_health,
failover_recovery_point_id,
friendly_name,
health_errors,
last_successful_failover_time,
last_successful_test_failover_time,
location,
policy_friendly_name,
policy_id,
primary_fabric_friendly_name,
primary_fabric_provider,
primary_protection_container_friendly_name,
protectable_item_id,
protected_item_type,
protectionContainerName,
protection_state,
protection_state_description,
provider_specific_details,
recovery_container_id,
recovery_fabric_friendly_name,
recovery_fabric_id,
recovery_protection_container_friendly_name,
recovery_services_provider_id,
replicatedProtectedItemName,
replication_health,
resourceGroupName,
resourceName,
subscriptionId,
switch_provider_state,
switch_provider_state_description,
test_failover_state,
test_failover_state_description,
type
FROM azure.recovery_services_site_recovery.vw_replication_protected_items
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.recovery_services_site_recovery.replication_protected_items (
fabricName,
protectionContainerName,
replicatedProtectedItemName,
resourceGroupName,
resourceName,
subscriptionId,
properties
)
SELECT
'{{ fabricName }}',
'{{ protectionContainerName }}',
'{{ replicatedProtectedItemName }}',
'{{ resourceGroupName }}',
'{{ resourceName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

UPDATE example

Updates a replication_protected_items resource.

/*+ update */
UPDATE azure.recovery_services_site_recovery.replication_protected_items
SET
properties = '{{ properties }}'
WHERE
fabricName = '{{ fabricName }}'
AND protectionContainerName = '{{ protectionContainerName }}'
AND replicatedProtectedItemName = '{{ replicatedProtectedItemName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified replication_protected_items resource.

/*+ delete */
DELETE FROM azure.recovery_services_site_recovery.replication_protected_items
WHERE fabricName = '{{ fabricName }}'
AND protectionContainerName = '{{ protectionContainerName }}'
AND replicatedProtectedItemName = '{{ replicatedProtectedItemName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND data__properties = '{{ data__properties }}';