Skip to main content

replication_fabrics

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

Overview

Namereplication_fabrics
TypeResource
Idazure.recovery_services_site_recovery.replication_fabrics

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
bcdrStatestringBCDR state of the fabric.
customDetailsobjectFabric specific settings.
encryptionDetailsobjectEncryption details for the fabric.
friendlyNamestringFriendly name of the fabric.
healthstringHealth of fabric.
healthErrorDetailsarrayFabric health error details.
internalIdentifierstringDra Registration Id.
locationstringResource Location.
rolloverEncryptionDetailsobjectRollover encryption details for the fabric.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, resource_name, fabric_name, subscription_id$filterGets the details of an ASR fabric. Gets the details of an Azure Site Recovery fabric.
listselectresource_group_name, resource_name, subscription_idGets the list of ASR fabrics. Gets a list of the Azure Site Recovery fabrics in the vault.
createinsertresource_group_name, resource_name, fabric_name, subscription_idCreates an Azure Site Recovery fabric. The operation to create an Azure Site Recovery fabric (for e.g. Hyper-V site).
deletedeleteresource_group_name, resource_name, fabric_name, subscription_idDeletes the site. The operation to delete or remove an Azure Site Recovery fabric.
purgeexecresource_group_name, resource_name, fabric_name, subscription_idPurges the site. The operation to purge(force delete) an Azure Site Recovery fabric.
check_consistencyexecresource_group_name, resource_name, fabric_name, subscription_idChecks the consistency of the ASR fabric. The operation to perform a consistency check on the fabric.
migrate_to_aadexecresource_group_name, resource_name, fabric_name, subscription_idMigrates the site to AAD. The operation to migrate an Azure Site Recovery fabric to AAD.
reassociate_gatewayexecresource_group_name, resource_name, fabric_name, subscription_idPerform failover of the process server. The operation to move replications from a process server to another process server.
renew_certificateexecresource_group_name, resource_name, fabric_name, subscription_idRenews certificate for the fabric. Renews the connection certificate for the ASR replication fabric.
remove_infraexecresource_group_name, resource_name, fabric_name, subscription_idRemoves the appliance's infrastructure under the fabric. Removes the appliance's infrastructure under the fabric.

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
fabric_namestringFabric name. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
resource_namestringThe name of the recovery services vault. Required.
subscription_idstring
$filterstringOData filter options. Default value is None.

SELECT examples

Gets the details of an ASR fabric. Gets the details of an Azure Site Recovery fabric.

SELECT
id,
name,
bcdrState,
customDetails,
encryptionDetails,
friendlyName,
health,
healthErrorDetails,
internalIdentifier,
location,
rolloverEncryptionDetails,
systemData,
type
FROM azure.recovery_services_site_recovery.replication_fabrics
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND resource_name = '{{ resource_name }}' -- required
AND fabric_name = '{{ fabric_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
AND $filter = '{{ $filter }}'
;

INSERT examples

Creates an Azure Site Recovery fabric. The operation to create an Azure Site Recovery fabric (for e.g. Hyper-V site).

INSERT INTO azure.recovery_services_site_recovery.replication_fabrics (
properties,
resource_group_name,
resource_name,
fabric_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ resource_name }}',
'{{ fabric_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
systemData,
type
;

DELETE examples

Deletes the site. The operation to delete or remove an Azure Site Recovery fabric.

DELETE FROM azure.recovery_services_site_recovery.replication_fabrics
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND resource_name = '{{ resource_name }}' --required
AND fabric_name = '{{ fabric_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Purges the site. The operation to purge(force delete) an Azure Site Recovery fabric.

EXEC azure.recovery_services_site_recovery.replication_fabrics.purge 
@resource_group_name='{{ resource_group_name }}' --required,
@resource_name='{{ resource_name }}' --required,
@fabric_name='{{ fabric_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;