Skip to main content

recovery_resources

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

Overview

Namerecovery_resources
TypeResource
Idazure.resilience_management.recovery_resources

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.
associatedIdentityobjectIdentity details associated to the resource, which will be used for performing any operations on it.
attentionReasonsarrayReason for the resource to be in need of attention.
errorDetailsobjectError details associated with the resource.
inclusionStatestringA state that indicates the resource status with respect to the recovery orchestration plan. Known values are: "Included" and "Excluded". (Included, Excluded)
needsAttentionbooleanIndicating if resource needs user attention and action, details will be found in attentionReasons.
protectionStatusstringA status that indicates the protection status of a resource with an Azure solution for regional or zonal recovery. Known values are: "Unknown", "Protected", "NotProtected", and "HighlyAvailable". (Unknown, Protected, NotProtected, HighlyAvailable)
provisioningStatestringProvisioning state. Known values are: "Succeeded", "Failed", "Canceled", "Provisioning", "Updating", "Deleting", and "Accepted". (Succeeded, Failed, Canceled, Provisioning, Updating, Deleting, Accepted)
recoveryGroupIdstringThe recovery orchestration group id associated with the recovery resources.
recoveryResourceUniqueIdstringA unique id for the recovery resource, which is a GUID. Required.
resourceIdstringResource ID of the Azure resource associated with the recovery orchestration plan and linked to the recovery resource.
resourceLocationstringOriginal location of the Azure resource associated with the recovery orchestration plan and linked to the recovery resource.
resourcePhysicalZonesarrayPhysical zones of the Azure resource associated with the recovery orchestration plan and linked to the recovery resource.
resourceProtectionSolutionsarrayA list of ResourceProtectionSolutions with which the recovery orchestration resource is protected.
selectedProtectionSolutionSettingobjectResource protection solution settings of the protection solutions recovery orchestration resource is protected with.
selectedProtectionSolutionTypestringA setting that indicates the protection solution selected. Known values are: "None", "AzureNative", "AzureSiteRecovery", "CrossZoneVMRecovery", and "CustomRunbook". (None, AzureNative, AzureSiteRecovery, CrossZoneVMRecovery, CustomRunbook)
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
getselectservice_group_name, recovery_plan_name, recovery_resource_nameGet a RecoveryResource.
listselectservice_group_name, recovery_plan_nameList RecoveryResource resources by RecoveryPlan.

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
recovery_plan_namestringThe name of the recovery orchestration plan. Required.
recovery_resource_namestringThe unique name (Guid) of the recovery resource. Required.
service_group_namestringThe name of the service group. Required.

SELECT examples

Get a RecoveryResource.

SELECT
id,
name,
associatedIdentity,
attentionReasons,
errorDetails,
inclusionState,
needsAttention,
protectionStatus,
provisioningState,
recoveryGroupId,
recoveryResourceUniqueId,
resourceId,
resourceLocation,
resourcePhysicalZones,
resourceProtectionSolutions,
selectedProtectionSolutionSetting,
selectedProtectionSolutionType,
systemData,
type
FROM azure.resilience_management.recovery_resources
WHERE service_group_name = '{{ service_group_name }}' -- required
AND recovery_plan_name = '{{ recovery_plan_name }}' -- required
AND recovery_resource_name = '{{ recovery_resource_name }}' -- required
;