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

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe protection cluster Id.
namestringThe name of the protection cluster.
propertiesobjectThe custom data.
typestringThe Type of the object.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceName, resourceGroupName, subscriptionId, fabricName, protectionContainerName, replicationProtectionClusterNameapi-versionGets the details of an ASR replication protection cluster.
list_by_replication_protection_containersselectresourceName, resourceGroupName, subscriptionId, fabricName, protectionContainerNameapi-versionGets the list of ASR replication protected clusters in the protection container.
listselectresourceName, resourceGroupName, subscriptionIdapi-version, skipToken, $filterGets the list of ASR replication protected clusters in the vault.
createinsertresourceName, resourceGroupName, subscriptionId, fabricName, protectionContainerName, replicationProtectionClusterNameapi-versionThe operation to create an ASR replication protection cluster item.
purgeexecresourceName, resourceGroupName, subscriptionId, fabricName, protectionContainerName, replicationProtectionClusterNameapi-versionThe 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.
apply_recovery_pointexecresourceName, resourceGroupName, subscriptionId, fabricName, protectionContainerName, replicationProtectionClusterName, propertiesapi-versionOperation to apply a new cluster recovery point on the Protection cluster.
failover_commitexecresourceName, resourceGroupName, subscriptionId, fabricName, protectionContainerName, replicationProtectionClusterNameapi-versionOperation to initiate commit failover of the replication protection cluster.
repair_replicationexecresourceName, resourceGroupName, subscriptionId, fabricName, protectionContainerName, replicationProtectionClusterNameapi-versionThe operation to repair replication protection cluster.
test_failoverexecresourceName, resourceGroupName, subscriptionId, fabricName, protectionContainerName, replicationProtectionClusterName, propertiesapi-versionOperation to initiate a failover of the replication protection cluster.
test_failover_cleanupexecresourceName, resourceGroupName, subscriptionId, fabricName, protectionContainerName, replicationProtectionClusterName, propertiesapi-versionOperation to clean up the test failover of a replication protected cluster.
unplanned_failoverexecresourceName, resourceGroupName, subscriptionId, fabricName, protectionContainerName, replicationProtectionClusterName, propertiesapi-versionOperation to initiate a failover of the replication protection cluster.

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
fabricNamestringFabric name.
protectionContainerNamestringProtection container name.
replicationProtectionClusterNamestringReplication protection cluster name.
resourceGroupNamestringThe name of the resource group where the recovery services vault is present.
resourceNamestringThe name of the recovery services vault.
subscriptionIdstringThe subscription Id.
$filterstringOData filter options.
api-versionstringClient Api Version.
skipTokenstringThe pagination token. Possible values: "FabricId" or "FabricId_CloudId" or null.

SELECT examples

Gets the details of an ASR replication protection cluster.

SELECT
id,
name,
properties,
type
FROM azure.recovery_services_site_recovery.replication_protection_clusters
WHERE resourceName = '{{ resourceName }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND fabricName = '{{ fabricName }}' -- required
AND protectionContainerName = '{{ protectionContainerName }}' -- required
AND replicationProtectionClusterName = '{{ replicationProtectionClusterName }}' -- required
AND api-version = '{{ api-version }}'
;

INSERT examples

The operation to create an ASR replication protection cluster item.

INSERT INTO azure.recovery_services_site_recovery.replication_protection_clusters (
data__properties,
resourceName,
resourceGroupName,
subscriptionId,
fabricName,
protectionContainerName,
replicationProtectionClusterName,
api-version
)
SELECT
'{{ properties }}',
'{{ resourceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ fabricName }}',
'{{ protectionContainerName }}',
'{{ replicationProtectionClusterName }}',
'{{ api-version }}'
RETURNING
id,
name,
properties,
type
;

Lifecycle Methods

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

EXEC azure.recovery_services_site_recovery.replication_protection_clusters.purge 
@resourceName='{{ resourceName }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@subscriptionId='{{ subscriptionId }}' --required,
@fabricName='{{ fabricName }}' --required,
@protectionContainerName='{{ protectionContainerName }}' --required,
@replicationProtectionClusterName='{{ replicationProtectionClusterName }}' --required,
@api-version='{{ api-version }}'
;