Skip to main content

replication_protection_clusters

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

Overview

Namereplication_protection_clusters
TypeResource
Idazure.recovery_services_site_recovery.replication_protection_clusters

Fields

NameDatatypeDescription
idtextThe protection cluster Id.
nametextThe name of the protection cluster.
active_locationtextfield from the properties object
agent_cluster_idtextfield from the properties object
allowed_operationstextfield from the properties object
are_all_cluster_nodes_registeredtextfield from the properties object
cluster_fqdntextfield from the properties object
cluster_node_fqdnstextfield from the properties object
cluster_protected_item_idstextfield from the properties object
cluster_registered_nodestextfield from the properties object
current_scenariotextfield from the properties object
fabricNametextfield 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
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
protectionContainerNametextfield from the properties object
protection_cluster_typetextfield from the properties object
protection_statetextfield from the properties object
protection_state_descriptiontextfield from the properties object
provider_specific_detailstextfield from the properties object
provisioning_statetextfield 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
replicationProtectionClusterNametextfield from the properties object
replication_healthtextfield from the properties object
resourceGroupNametextfield from the properties object
resourceNametextfield from the properties object
shared_disk_propertiestextfield from the properties object
subscriptionIdtextfield from the properties object
test_failover_statetextfield from the properties object
test_failover_state_descriptiontextfield from the properties object
typetextThe Type of the object.

Methods

NameAccessible byRequired ParamsDescription
getSELECTfabricName, protectionContainerName, replicationProtectionClusterName, resourceGroupName, resourceName, subscriptionIdGets the details of an ASR replication protection cluster.
listSELECTresourceGroupName, resourceName, subscriptionIdGets the list of ASR replication protected clusters in the vault.
list_by_replication_protection_containersSELECTfabricName, protectionContainerName, resourceGroupName, resourceName, subscriptionIdGets the list of ASR replication protected clusters in the protection container.
createINSERTfabricName, protectionContainerName, replicationProtectionClusterName, resourceGroupName, resourceName, subscriptionIdThe operation to create an ASR replication protection cluster item.
apply_recovery_pointEXECfabricName, protectionContainerName, replicationProtectionClusterName, resourceGroupName, resourceName, subscriptionId, data__propertiesOperation to apply a new cluster recovery point on the Protection cluster.
failover_commitEXECfabricName, protectionContainerName, replicationProtectionClusterName, resourceGroupName, resourceName, subscriptionIdOperation to initiate commit failover of the replication protection cluster.
purgeEXECfabricName, protectionContainerName, replicationProtectionClusterName, resourceGroupName, resourceName, subscriptionIdThe operation to purge the replication protection cluster. This operation will force delete the replication protection cluster. Use the remove operation on replication protection cluster to perform a clean disable replication protection cluster.
repair_replicationEXECfabricName, protectionContainerName, replicationProtectionClusterName, resourceGroupName, resourceName, subscriptionIdThe operation to repair replication protection cluster.
test_failoverEXECfabricName, protectionContainerName, replicationProtectionClusterName, resourceGroupName, resourceName, subscriptionId, data__propertiesOperation to initiate a failover of the replication protection cluster.
test_failover_cleanupEXECfabricName, protectionContainerName, replicationProtectionClusterName, resourceGroupName, resourceName, subscriptionId, data__propertiesOperation to clean up the test failover of a replication protected cluster.
unplanned_failoverEXECfabricName, protectionContainerName, replicationProtectionClusterName, resourceGroupName, resourceName, subscriptionId, data__propertiesOperation to initiate a failover of the replication protection cluster.

SELECT examples

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

SELECT
id,
name,
active_location,
agent_cluster_id,
allowed_operations,
are_all_cluster_nodes_registered,
cluster_fqdn,
cluster_node_fqdns,
cluster_protected_item_ids,
cluster_registered_nodes,
current_scenario,
fabricName,
health_errors,
last_successful_failover_time,
last_successful_test_failover_time,
policy_friendly_name,
policy_id,
primary_fabric_friendly_name,
primary_fabric_provider,
primary_protection_container_friendly_name,
protectionContainerName,
protection_cluster_type,
protection_state,
protection_state_description,
provider_specific_details,
provisioning_state,
recovery_container_id,
recovery_fabric_friendly_name,
recovery_fabric_id,
recovery_protection_container_friendly_name,
replicationProtectionClusterName,
replication_health,
resourceGroupName,
resourceName,
shared_disk_properties,
subscriptionId,
test_failover_state,
test_failover_state_description,
type
FROM azure.recovery_services_site_recovery.vw_replication_protection_clusters
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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