Skip to main content

fabric

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

Overview

Namefabric
TypeResource
Idazure.recovery_services_data_replication.fabric

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.
customPropertiesobjectFabric model custom properties. Required.
healthstringGets or sets the fabric health. Known values are: "Normal", "Warning", and "Critical". (Normal, Warning, Critical)
healthErrorsarrayGets or sets the list of health errors.
locationstringThe geo-location where the resource lives. Required.
provisioningStatestringGets or sets the provisioning state of the fabric. Known values are: "Canceled", "Creating", "Deleting", "Deleted", "Failed", "Succeeded", and "Updating". (Canceled, Creating, Deleting, Deleted, Failed, Succeeded, Updating)
serviceEndpointstringGets or sets the service endpoint.
serviceResourceIdstringGets or sets the service resource Id.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
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, fabric_name, subscription_idGets the details of the fabric.
listselectresource_group_name, subscription_idcontinuationTokenGets the list of fabrics in the given subscription and resource group.
list_by_subscriptionselectsubscription_idGets the list of fabrics in the given subscription.
createinsertresource_group_name, fabric_name, subscription_id, locationCreates the fabric.
updateupdateresource_group_name, fabric_name, subscription_idPerforms update on the fabric.
deletedeleteresource_group_name, fabric_name, subscription_idRemoves 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_namestringThe fabric name. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
continuationTokenstringContinuation token from the previous call. Default value is None.

SELECT examples

Gets the details of the fabric.

SELECT
id,
name,
customProperties,
health,
healthErrors,
location,
provisioningState,
serviceEndpoint,
serviceResourceId,
systemData,
tags,
type
FROM azure.recovery_services_data_replication.fabric
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND fabric_name = '{{ fabric_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates the fabric.

INSERT INTO azure.recovery_services_data_replication.fabric (
tags,
location,
properties,
resource_group_name,
fabric_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ resource_group_name }}',
'{{ fabric_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Performs update on the fabric.

UPDATE azure.recovery_services_data_replication.fabric
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND fabric_name = '{{ fabric_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

DELETE examples

Removes the fabric.

DELETE FROM azure.recovery_services_data_replication.fabric
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND fabric_name = '{{ fabric_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;