Skip to main content

fabric_agent

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

Overview

Namefabric_agent
TypeResource
Idazure.recovery_services_data_replication.fabric_agent

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.
authenticationIdentityobjectIdentity model. Required.
correlationIdstringGets or sets the fabric agent correlation Id.
customPropertiesobjectFabric agent model custom properties. Required.
healthErrorsarrayGets or sets the list of health errors.
isResponsivebooleanGets or sets a value indicating whether the fabric agent is responsive.
lastHeartbeatstring (date-time)Gets or sets the time when last heartbeat was sent by the fabric agent.
machineIdstringGets or sets the machine Id where fabric agent is running. Required.
machineNamestringGets or sets the machine name where fabric agent is running. Required.
provisioningStatestringGets or sets the provisioning state of the fabric agent. Known values are: "Canceled", "Creating", "Deleting", "Deleted", "Failed", "Succeeded", and "Updating". (Canceled, Creating, Deleting, Deleted, Failed, Succeeded, Updating)
resourceAccessIdentityobjectIdentity model. Required.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
versionNumberstringGets or sets the fabric agent version.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, fabric_name, fabric_agent_name, subscription_idGets the details of the fabric agent.
listselectresource_group_name, fabric_name, subscription_idGets the list of fabric agents in the given fabric.
createinsertresource_group_name, fabric_name, fabric_agent_name, subscription_idCreates the fabric agent.
deletedeleteresource_group_name, fabric_name, fabric_agent_name, subscription_idDeletes fabric agent.

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_agent_namestringThe fabric agent name. Required.
fabric_namestringThe fabric name. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Gets the details of the fabric agent.

SELECT
id,
name,
authenticationIdentity,
correlationId,
customProperties,
healthErrors,
isResponsive,
lastHeartbeat,
machineId,
machineName,
provisioningState,
resourceAccessIdentity,
systemData,
type,
versionNumber
FROM azure.recovery_services_data_replication.fabric_agent
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND fabric_name = '{{ fabric_name }}' -- required
AND fabric_agent_name = '{{ fabric_agent_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates the fabric agent.

INSERT INTO azure.recovery_services_data_replication.fabric_agent (
properties,
resource_group_name,
fabric_name,
fabric_agent_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ fabric_name }}',
'{{ fabric_agent_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

DELETE examples

Deletes fabric agent.

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