Skip to main content

replication_recovery_plans

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

Overview

Namereplication_recovery_plans
TypeResource
Idazure.recovery_services_site_recovery.replication_recovery_plans

Fields

NameDatatypeDescription
idtextResource Id
nametextResource Name
allowed_operationstextfield from the properties object
current_scenariotextfield from the properties object
current_scenario_statustextfield from the properties object
current_scenario_status_descriptiontextfield from the properties object
failover_deployment_modeltextfield from the properties object
friendly_nametextfield from the properties object
groupstextfield from the properties object
last_planned_failover_timetextfield from the properties object
last_test_failover_timetextfield from the properties object
last_unplanned_failover_timetextfield from the properties object
locationtextResource Location
primary_fabric_friendly_nametextfield from the properties object
primary_fabric_idtextfield from the properties object
provider_specific_detailstextfield from the properties object
recoveryPlanNametextfield from the properties object
recovery_fabric_friendly_nametextfield from the properties object
recovery_fabric_idtextfield from the properties object
replication_providerstextfield from the properties object
resourceGroupNametextfield from the properties object
resourceNametextfield from the properties object
subscriptionIdtextfield from the properties object
typetextResource Type

Methods

NameAccessible byRequired ParamsDescription
getSELECTrecoveryPlanName, resourceGroupName, resourceName, subscriptionIdGets the details of the recovery plan.
listSELECTresourceGroupName, resourceName, subscriptionIdLists the recovery plans in the vault.
createINSERTrecoveryPlanName, resourceGroupName, resourceName, subscriptionId, data__propertiesThe operation to create a recovery plan.
deleteDELETErecoveryPlanName, resourceGroupName, resourceName, subscriptionIdDelete a recovery plan.
updateUPDATErecoveryPlanName, resourceGroupName, resourceName, subscriptionIdThe operation to update a recovery plan.
failover_cancelEXECrecoveryPlanName, resourceGroupName, resourceName, subscriptionIdThe operation to cancel the failover of a recovery plan.
failover_commitEXECrecoveryPlanName, resourceGroupName, resourceName, subscriptionIdThe operation to commit the failover of a recovery plan.
planned_failoverEXECrecoveryPlanName, resourceGroupName, resourceName, subscriptionId, data__propertiesThe operation to start the planned failover of a recovery plan.
reprotectEXECrecoveryPlanName, resourceGroupName, resourceName, subscriptionIdThe operation to reprotect(reverse replicate) a recovery plan.
test_failoverEXECrecoveryPlanName, resourceGroupName, resourceName, subscriptionId, data__propertiesThe operation to start the test failover of a recovery plan.
test_failover_cleanupEXECrecoveryPlanName, resourceGroupName, resourceName, subscriptionId, data__propertiesThe operation to cleanup test failover of a recovery plan.
unplanned_failoverEXECrecoveryPlanName, resourceGroupName, resourceName, subscriptionId, data__propertiesThe operation to start the unplanned failover of a recovery plan.

SELECT examples

Lists the recovery plans in the vault.

SELECT
id,
name,
allowed_operations,
current_scenario,
current_scenario_status,
current_scenario_status_description,
failover_deployment_model,
friendly_name,
groups,
last_planned_failover_time,
last_test_failover_time,
last_unplanned_failover_time,
location,
primary_fabric_friendly_name,
primary_fabric_id,
provider_specific_details,
recoveryPlanName,
recovery_fabric_friendly_name,
recovery_fabric_id,
replication_providers,
resourceGroupName,
resourceName,
subscriptionId,
type
FROM azure.recovery_services_site_recovery.vw_replication_recovery_plans
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new replication_recovery_plans resource.

/*+ create */
INSERT INTO azure.recovery_services_site_recovery.replication_recovery_plans (
recoveryPlanName,
resourceGroupName,
resourceName,
subscriptionId,
data__properties,
properties
)
SELECT
'{{ recoveryPlanName }}',
'{{ resourceGroupName }}',
'{{ resourceName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}'
;

UPDATE example

Updates a replication_recovery_plans resource.

/*+ update */
UPDATE azure.recovery_services_site_recovery.replication_recovery_plans
SET
properties = '{{ properties }}'
WHERE
recoveryPlanName = '{{ recoveryPlanName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified replication_recovery_plans resource.

/*+ delete */
DELETE FROM azure.recovery_services_site_recovery.replication_recovery_plans
WHERE recoveryPlanName = '{{ recoveryPlanName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';