replication_fabrics
Creates, updates, deletes, gets or lists a replication_fabrics
resource.
Overview
Name | replication_fabrics |
Type | Resource |
Id | azure.recovery_services_site_recovery.replication_fabrics |
Fields
- vw_replication_fabrics
- replication_fabrics
Name | Datatype | Description |
---|---|---|
id | text | Resource Id |
name | text | Resource Name |
bcdr_state | text | field from the properties object |
custom_details | text | field from the properties object |
encryption_details | text | field from the properties object |
fabricName | text | field from the properties object |
friendly_name | text | field from the properties object |
health | text | field from the properties object |
health_error_details | text | field from the properties object |
internal_identifier | text | field from the properties object |
location | text | Resource Location |
resourceGroupName | text | field from the properties object |
resourceName | text | field from the properties object |
rollover_encryption_details | text | field from the properties object |
subscriptionId | text | field from the properties object |
type | text | Resource Type |
Name | Datatype | Description |
---|---|---|
id | string | Resource Id |
name | string | Resource Name |
location | string | Resource Location |
properties | object | Fabric properties. |
type | string | Resource Type |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | fabricName, resourceGroupName, resourceName, subscriptionId | Gets the details of an Azure Site Recovery fabric. |
list | SELECT | resourceGroupName, resourceName, subscriptionId | Gets a list of the Azure Site Recovery fabrics in the vault. |
create | INSERT | fabricName, resourceGroupName, resourceName, subscriptionId | The operation to create an Azure Site Recovery fabric (for e.g. Hyper-V site). |
delete | DELETE | fabricName, resourceGroupName, resourceName, subscriptionId | The operation to delete or remove an Azure Site Recovery fabric. |
check_consistency | EXEC | fabricName, resourceGroupName, resourceName, subscriptionId | The operation to perform a consistency check on the fabric. |
migrate_to_aad | EXEC | fabricName, resourceGroupName, resourceName, subscriptionId | The operation to migrate an Azure Site Recovery fabric to AAD. |
purge | EXEC | fabricName, resourceGroupName, resourceName, subscriptionId | The operation to purge(force delete) an Azure Site Recovery fabric. |
reassociate_gateway | EXEC | fabricName, resourceGroupName, resourceName, subscriptionId | The operation to move replications from a process server to another process server. |
remove_infra | EXEC | fabricName, resourceGroupName, resourceName, subscriptionId | |
renew_certificate | EXEC | fabricName, resourceGroupName, resourceName, subscriptionId | Renews the connection certificate for the ASR replication fabric. |
SELECT
examples
Gets a list of the Azure Site Recovery fabrics in the vault.
- vw_replication_fabrics
- replication_fabrics
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 }}';
SELECT
id,
name,
location,
properties,
type
FROM azure.recovery_services_site_recovery.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.recovery_services_site_recovery.replication_fabrics (
fabricName,
resourceGroupName,
resourceName,
subscriptionId,
properties
)
SELECT
'{{ fabricName }}',
'{{ resourceGroupName }}',
'{{ resourceName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: customDetails
value:
- name: instanceType
value: string
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 }}';