Skip to main content

replication_recovery_services_providers

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

Overview

Namereplication_recovery_services_providers
TypeResource
Idazure.recovery_services_site_recovery.replication_recovery_services_providers

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.
allowedScenariosarrayThe scenarios allowed on this provider.
authenticationIdentityDetailsobjectThe authentication identity details.
biosIdstringThe Bios Id.
connectionStatusstringA value indicating whether DRA is responsive.
dataPlaneAuthenticationIdentityDetailsobjectThe data plane authentication identity details.
draIdentifierstringThe DRA Id.
fabricFriendlyNamestringThe fabric friendly name.
fabricTypestringType of the site.
friendlyNamestringFriendly name of the DRA.
healthErrorDetailsarrayThe recovery services provider health error details.
lastHeartBeatstring (date-time)Time when last heartbeat was sent by the DRA.
locationstringResource Location.
machineIdstringThe machine Id.
machineNamestringThe machine name.
protectedItemCountintegerNumber of protected VMs currently managed by the DRA.
providerVersionstringThe provider version.
providerVersionDetailsobjectThe provider version details.
providerVersionExpiryDatestring (date-time)Expiry date of the version.
providerVersionStatestringDRA version status.
resourceAccessIdentityDetailsobjectThe resource access identity details.
serverVersionstringThe fabric provider.
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, provider_name, subscription_idGets the details of a recovery services provider. Gets the details of registered recovery services provider.
list_by_replication_fabricsselectresource_group_name, resource_name, fabric_name, subscription_idGets the list of registered recovery services providers for the fabric. Lists the registered recovery services providers for the specified fabric.
listselectresource_group_name, resource_name, subscription_idGets the list of registered recovery services providers in the vault. This is a view only api. Lists the registered recovery services providers in the vault.
createinsertresource_group_name, resource_name, fabric_name, provider_name, subscription_id, propertiesAdds a recovery services provider. The operation to add a recovery services provider.
deletedeleteresource_group_name, resource_name, fabric_name, provider_name, subscription_idDeletes provider from fabric. Note: Deleting provider for any fabric other than SingleHost is unsupported. To maintain backward compatibility for released clients the object "deleteRspInput" is used (if the object is empty we assume that it is old client and continue the old behavior). The operation to removes/delete(unregister) a recovery services provider from the vault.
purgeexecresource_group_name, resource_name, fabric_name, provider_name, subscription_idPurges recovery service provider from fabric. The operation to purge(force delete) a recovery services provider from the vault.
refresh_providerexecresource_group_name, resource_name, fabric_name, provider_name, subscription_idRefresh details from the recovery services provider. The operation to refresh the information from the recovery services provider.

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.
provider_namestringRecovery services provider name. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
resource_namestringThe name of the Vault. Required.
subscription_idstring

SELECT examples

Gets the details of a recovery services provider. Gets the details of registered recovery services provider.

SELECT
id,
name,
allowedScenarios,
authenticationIdentityDetails,
biosId,
connectionStatus,
dataPlaneAuthenticationIdentityDetails,
draIdentifier,
fabricFriendlyName,
fabricType,
friendlyName,
healthErrorDetails,
lastHeartBeat,
location,
machineId,
machineName,
protectedItemCount,
providerVersion,
providerVersionDetails,
providerVersionExpiryDate,
providerVersionState,
resourceAccessIdentityDetails,
serverVersion,
systemData,
type
FROM azure.recovery_services_site_recovery.replication_recovery_services_providers
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND resource_name = '{{ resource_name }}' -- required
AND fabric_name = '{{ fabric_name }}' -- required
AND provider_name = '{{ provider_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Adds a recovery services provider. The operation to add a recovery services provider.

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

DELETE examples

Deletes provider from fabric. Note: Deleting provider for any fabric other than SingleHost is unsupported. To maintain backward compatibility for released clients the object "deleteRspInput" is used (if the object is empty we assume that it is old client and continue the old behavior). The operation to removes/delete(unregister) a recovery services provider from the vault.

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

Lifecycle Methods

Purges recovery service provider from fabric. The operation to purge(force delete) a recovery services provider from the vault.

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