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

NameDatatypeDescription
idtextResource Id
nametextResource Name
bcdr_statetextfield from the properties object
custom_detailstextfield from the properties object
encryption_detailstextfield from the properties object
fabricNametextfield from the properties object
friendly_nametextfield from the properties object
healthtextfield from the properties object
health_error_detailstextfield from the properties object
internal_identifiertextfield from the properties object
locationtextResource Location
resourceGroupNametextfield from the properties object
resourceNametextfield from the properties object
rollover_encryption_detailstextfield from the properties object
subscriptionIdtextfield from the properties object
typetextResource Type

Methods

NameAccessible byRequired ParamsDescription
getSELECTfabricName, resourceGroupName, resourceName, subscriptionIdGets the details of an Azure Site Recovery fabric.
listSELECTresourceGroupName, resourceName, subscriptionIdGets a list of the Azure Site Recovery fabrics in the vault.
createINSERTfabricName, resourceGroupName, resourceName, subscriptionIdThe operation to create an Azure Site Recovery fabric (for e.g. Hyper-V site).
deleteDELETEfabricName, resourceGroupName, resourceName, subscriptionIdThe operation to delete or remove an Azure Site Recovery fabric.
check_consistencyEXECfabricName, resourceGroupName, resourceName, subscriptionIdThe operation to perform a consistency check on the fabric.
migrate_to_aadEXECfabricName, resourceGroupName, resourceName, subscriptionIdThe operation to migrate an Azure Site Recovery fabric to AAD.
purgeEXECfabricName, resourceGroupName, resourceName, subscriptionIdThe operation to purge(force delete) an Azure Site Recovery fabric.
reassociate_gatewayEXECfabricName, resourceGroupName, resourceName, subscriptionIdThe operation to move replications from a process server to another process server.
remove_infraEXECfabricName, resourceGroupName, resourceName, subscriptionId
renew_certificateEXECfabricName, resourceGroupName, resourceName, subscriptionIdRenews the connection certificate for the ASR replication fabric.

SELECT examples

Gets a list of the Azure Site Recovery fabrics in the vault.

SELECT
id,
name,
bcdr_state,
custom_details,
encryption_details,
fabricName,
friendly_name,
health,
health_error_details,
internal_identifier,
location,
resourceGroupName,
resourceName,
rollover_encryption_details,
subscriptionId,
type
FROM azure.recovery_services_site_recovery.vw_replication_fabrics
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

DELETE example

Deletes the specified replication_fabrics resource.

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