Replication Recovery Plans - Planned Failover
Execute planned failover of the recovery plan.
The operation to start the planned failover of a recovery plan.
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/plannedFailover?api-version=2026-05-01
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
recovery
|
path | True |
string |
Name of the recovery plan. |
|
resource
|
path | True |
string minLength: 1maxLength: 90 |
The name of the resource group. The name is case insensitive. |
|
resource
|
path | True |
string |
The name of the Vault |
|
subscription
|
path | True |
string (uuid) |
The ID of the target subscription. The value must be an UUID. |
|
api-version
|
query | True |
string minLength: 1 |
The API version to use for this operation. |
Request Body
| Name | Required | Type | Description |
|---|---|---|---|
| properties | True |
The recovery plan planned failover input properties. |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
Azure operation completed successfully. |
|
| 202 Accepted |
Resource operation accepted. Headers
|
Security
azure_auth
Azure Active Directory OAuth2 Flow.
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
| Name | Description |
|---|---|
| user_impersonation | impersonate your user account |
Examples
Execute planned failover of the recovery plan.
Sample request
POST https://management.azure.com/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationRecoveryPlans/RPtest1/plannedFailover?api-version=2026-05-01
{
"properties": {
"failoverDirection": "PrimaryToRecovery",
"providerSpecificDetails": [
{
"instanceType": "HyperVReplicaAzure"
}
]
}
}
Sample response
Azure-AsyncOperation: https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationOperationStatus/a93f3cd5-9035-4b1e-a2c9-b16df6d5d34b?api-version=2026-05-01
{
"name": "RPtest1",
"type": "Microsoft.RecoveryServices/vaults/replicationRecoveryPlans",
"id": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationRecoveryPlans/RPtest1",
"properties": {
"allowedOperations": [
"PlannedFailover",
"UnplannedFailover",
"TestFailover",
"Commit"
],
"currentScenario": {
"jobId": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationJobs/d4821a53-90da-4fcb-bc11-a280d13e3350",
"scenarioName": "PlannedFailover",
"startTime": "2017-04-27T07:34:02.6176524Z"
},
"currentScenarioStatus": "Succeeded",
"currentScenarioStatusDescription": "Completed",
"failoverDeploymentModel": "ResourceManager",
"friendlyName": "RPtest1",
"groups": [
{
"endGroupActions": [],
"groupType": "Shutdown",
"replicationProtectedItems": [],
"startGroupActions": []
},
{
"endGroupActions": [],
"groupType": "Failover",
"replicationProtectedItems": [],
"startGroupActions": []
},
{
"endGroupActions": [],
"groupType": "Boot",
"replicationProtectedItems": [
{
"id": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/cloud1/replicationProtectionContainers/cloud_6d224fc6-f326-5d35-96de-fbf51efb3179/replicationProtectedItems/f8491e4f-817a-40dd-a90c-af773978c75b",
"virtualMachineId": "f8491e4f-817a-40dd-a90c-af773978c75b"
}
],
"startGroupActions": []
},
{
"endGroupActions": [],
"groupType": "Boot",
"replicationProtectedItems": [
{
"id": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/cloud1/replicationProtectionContainers/cloud_6d224fc6-f326-5d35-96de-fbf51efb3179/replicationProtectedItems/c0c14913-3d7a-48ea-9531-cc99e0e686e6",
"virtualMachineId": "c0c14913-3d7a-48ea-9531-cc99e0e686e6"
}
],
"startGroupActions": []
}
],
"lastPlannedFailoverTime": "2017-04-27T07:33:49.1372448Z",
"lastTestFailoverTime": "2017-04-27T07:00:27.8354747Z",
"primaryFabricFriendlyName": "cloud1",
"primaryFabricId": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/cloud1",
"recoveryFabricFriendlyName": "Microsoft Azure",
"recoveryFabricId": "Microsoft Azure",
"replicationProviders": [
"HyperVReplicaAzure"
]
}
}
Azure-AsyncOperation: https://management.azure.com/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationOperationStatus/a93f3cd5-9035-4b1e-a2c9-b16df6d5d34b?api-version=2026-05-01
Retry-After: 30
Definitions
| Name | Description |
|---|---|
|
A2ARp |
The recovery point type. |
|
Alternate |
The ALR option. |
|
created |
The type of identity that created the resource. |
|
Current |
Current scenario details of the protected entity. |
|
Data |
The data sync option. |
|
Extended |
Extended location of the resource. |
|
Extended |
The extended location type. |
|
Hyper |
The recovery point type. |
|
In |
The recovery point type. |
|
In |
The recovery point type. |
|
Multi |
A value indicating whether multi VM sync enabled VMs should use multi VM sync points for failover. |
|
Possible |
The failover direction. |
|
Recovery |
Recovery plan details. |
|
Recovery |
Recovery plan A2A specific details. |
|
Recovery |
Recovery plan A2A failover input. |
|
Recovery |
Recovery plan action details. |
|
Recovery |
The fabric location. |
|
Recovery |
Recovery plan Automation runbook action details. |
|
Recovery |
Recovery plan group details. |
|
Recovery |
The group type. |
|
Recovery |
Recovery plan HVR Azure failback input. |
|
Recovery |
Recovery plan HVR Azure failover input. |
|
Recovery |
Recovery plan InMageAzureV2 failover input. |
|
Recovery |
Recovery plan InMage failover input. |
|
Recovery |
Recovery plan InMageRcmFailback failover input. |
|
Recovery |
Recovery plan InMageRcm failover input. |
|
Recovery |
Recovery plan manual action details. |
|
Recovery |
Recovery plan planned failover input. |
|
Recovery |
Recovery plan planned failover input properties. |
|
Recovery |
The recovery point type. |
|
Recovery |
Recovery plan properties. |
|
Recovery |
Recovery plan protected item. |
|
Recovery |
Recovery plan script action details. |
|
Replication |
The list of failover types. |
|
Rp |
The recovery point type. |
|
system |
Metadata pertaining to creation and last modification of the resource. |
A2ARpRecoveryPointType
The recovery point type.
| Value | Description |
|---|---|
| Latest |
Latest |
| LatestApplicationConsistent |
LatestApplicationConsistent |
| LatestCrashConsistent |
LatestCrashConsistent |
| LatestProcessed |
LatestProcessed |
AlternateLocationRecoveryOption
The ALR option.
| Value | Description |
|---|---|
| CreateVmIfNotFound |
CreateVmIfNotFound |
| NoAction |
NoAction |
createdByType
The type of identity that created the resource.
| Value | Description |
|---|---|
| User | |
| Application | |
| ManagedIdentity | |
| Key |
CurrentScenarioDetails
Current scenario details of the protected entity.
| Name | Type | Description |
|---|---|---|
| jobId |
string |
ARM Id of the job being executed. |
| scenarioName |
string |
Scenario name. |
| startTime |
string (date-time) |
Start time of the workflow. |
DataSyncStatus
The data sync option.
| Value | Description |
|---|---|
| ForDownTime |
ForDownTime |
| ForSynchronization |
ForSynchronization |
ExtendedLocation
Extended location of the resource.
| Name | Type | Description |
|---|---|---|
| name |
string |
The name of the extended location. |
| type |
The extended location type. |
ExtendedLocationType
The extended location type.
| Value | Description |
|---|---|
| EdgeZone |
EdgeZone |
HyperVReplicaAzureRpRecoveryPointType
The recovery point type.
| Value | Description |
|---|---|
| Latest |
Latest |
| LatestApplicationConsistent |
LatestApplicationConsistent |
| LatestProcessed |
LatestProcessed |
InMageRcmFailbackRecoveryPointType
The recovery point type.
| Value | Description |
|---|---|
| ApplicationConsistent |
ApplicationConsistent |
| CrashConsistent |
CrashConsistent |
InMageV2RpRecoveryPointType
The recovery point type.
| Value | Description |
|---|---|
| Latest |
Latest |
| LatestApplicationConsistent |
LatestApplicationConsistent |
| LatestCrashConsistent |
LatestCrashConsistent |
| LatestProcessed |
LatestProcessed |
MultiVmSyncPointOption
A value indicating whether multi VM sync enabled VMs should use multi VM sync points for failover.
| Value | Description |
|---|---|
| UseMultiVmSyncRecoveryPoint |
UseMultiVmSyncRecoveryPoint |
| UsePerVmRecoveryPoint |
UsePerVmRecoveryPoint |
PossibleOperationsDirections
The failover direction.
| Value | Description |
|---|---|
| PrimaryToRecovery |
PrimaryToRecovery |
| RecoveryToPrimary |
RecoveryToPrimary |
RecoveryPlan
Recovery plan details.
| Name | Type | Description |
|---|---|---|
| id |
string (arm-id) |
Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
| location |
string |
Resource Location |
| name |
string |
The name of the resource |
| properties |
The custom details. |
|
| systemData |
Azure Resource Manager metadata containing createdBy and modifiedBy information. |
|
| type |
string |
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
RecoveryPlanA2ADetails
Recovery plan A2A specific details.
| Name | Type | Description |
|---|---|---|
| instanceType |
string:
A2A |
Gets the Instance type. |
| primaryExtendedLocation |
The primary extended location. |
|
| primaryZone |
string |
The primary zone. |
| recoveryExtendedLocation |
The recovery extended location. |
|
| recoveryZone |
string |
The recovery zone. |
RecoveryPlanA2AFailoverInput
Recovery plan A2A failover input.
| Name | Type | Description |
|---|---|---|
| cloudServiceCreationOption |
string |
A value indicating whether to use recovery cloud service for TFO or not. |
| instanceType |
string:
A2A |
The class type. |
| multiVmSyncPointOption |
A value indicating whether multi VM sync enabled VMs should use multi VM sync points for failover. |
|
| recoveryPointType |
The recovery point type. |
RecoveryPlanAction
Recovery plan action details.
| Name | Type | Description |
|---|---|---|
| actionName |
string |
The action name. |
| customDetails | RecoveryPlanActionDetails: |
The custom details. |
| failoverDirections |
The list of failover directions. |
|
| failoverTypes |
The list of failover types. |
RecoveryPlanActionLocation
The fabric location.
| Value | Description |
|---|---|
| Primary |
Primary |
| Recovery |
Recovery |
RecoveryPlanAutomationRunbookActionDetails
Recovery plan Automation runbook action details.
| Name | Type | Description |
|---|---|---|
| fabricLocation |
The fabric location. |
|
| instanceType |
string:
Automation |
Gets the type of action details (see RecoveryPlanActionDetailsTypes enum for possible values). |
| runbookId |
string |
The runbook ARM Id. |
| timeout |
string |
The runbook timeout. |
RecoveryPlanGroup
Recovery plan group details.
| Name | Type | Description |
|---|---|---|
| endGroupActions |
The end group actions. |
|
| groupType |
The group type. |
|
| replicationProtectedItems |
The list of protected items. |
|
| startGroupActions |
The start group actions. |
RecoveryPlanGroupType
The group type.
| Value | Description |
|---|---|
| Shutdown |
Shutdown |
| Boot |
Boot |
| Failover |
Failover |
RecoveryPlanHyperVReplicaAzureFailbackInput
Recovery plan HVR Azure failback input.
| Name | Type | Description |
|---|---|---|
| dataSyncOption |
The data sync option. |
|
| instanceType |
string:
Hyper |
The class type. |
| recoveryVmCreationOption |
The ALR option. |
RecoveryPlanHyperVReplicaAzureFailoverInput
Recovery plan HVR Azure failover input.
| Name | Type | Description |
|---|---|---|
| instanceType |
string:
Hyper |
The class type. |
| primaryKekCertificatePfx |
string |
The primary KEK certificate PFX. |
| recoveryPointType |
The recovery point type. |
|
| secondaryKekCertificatePfx |
string |
The secondary KEK certificate PFX. |
RecoveryPlanInMageAzureV2FailoverInput
Recovery plan InMageAzureV2 failover input.
| Name | Type | Description |
|---|---|---|
| instanceType |
string:
In |
The class type. |
| recoveryPointType |
The recovery point type. |
|
| useMultiVmSyncPoint |
string |
A value indicating whether multi VM sync enabled VMs should use multi VM sync points for failover. |
RecoveryPlanInMageFailoverInput
Recovery plan InMage failover input.
| Name | Type | Description |
|---|---|---|
| instanceType |
string:
In |
The class type. |
| recoveryPointType |
The recovery point type. |
RecoveryPlanInMageRcmFailbackFailoverInput
Recovery plan InMageRcmFailback failover input.
| Name | Type | Description |
|---|---|---|
| instanceType |
string:
In |
The class type. |
| recoveryPointType |
The recovery point type. |
|
| useMultiVmSyncPoint |
string |
A value indicating whether multi VM sync enabled VMs should use multi VM sync points for failover. |
RecoveryPlanInMageRcmFailoverInput
Recovery plan InMageRcm failover input.
| Name | Type | Description |
|---|---|---|
| instanceType |
string:
In |
The class type. |
| recoveryPointType |
The recovery point type. |
|
| useMultiVmSyncPoint |
string |
A value indicating whether multi VM sync enabled VMs should use multi VM sync points for failover. |
RecoveryPlanManualActionDetails
Recovery plan manual action details.
| Name | Type | Description |
|---|---|---|
| description |
string |
The manual action description. |
| instanceType |
string:
Manual |
Gets the type of action details (see RecoveryPlanActionDetailsTypes enum for possible values). |
RecoveryPlanPlannedFailoverInput
Recovery plan planned failover input.
| Name | Type | Description |
|---|---|---|
| properties |
The recovery plan planned failover input properties. |
RecoveryPlanPlannedFailoverInputProperties
Recovery plan planned failover input properties.
| Name | Type | Description |
|---|---|---|
| failoverDirection |
The failover direction. |
|
| providerSpecificDetails | RecoveryPlanProviderSpecificFailoverInput[]: |
The provider specific properties. |
RecoveryPlanPointType
The recovery point type.
| Value | Description |
|---|---|
| Latest |
Latest |
| LatestApplicationConsistent |
LatestApplicationConsistent |
| LatestCrashConsistent |
LatestCrashConsistent |
| LatestProcessed |
LatestProcessed |
RecoveryPlanProperties
Recovery plan properties.
| Name | Type | Description |
|---|---|---|
| allowedOperations |
string[] |
The list of allowed operations. |
| currentScenario |
The current scenario details. |
|
| currentScenarioStatus |
string |
The recovery plan status. |
| currentScenarioStatusDescription |
string |
The recovery plan status description. |
| failoverDeploymentModel |
string |
The failover deployment model. |
| friendlyName |
string |
The friendly name. |
| groups |
The recovery plan groups. |
|
| lastPlannedFailoverTime |
string (date-time) |
The start time of the last planned failover. |
| lastTestFailoverTime |
string (date-time) |
The start time of the last test failover. |
| lastUnplannedFailoverTime |
string (date-time) |
The start time of the last unplanned failover. |
| primaryFabricFriendlyName |
string |
The primary fabric friendly name. |
| primaryFabricId |
string |
The primary fabric Id. |
| providerSpecificDetails | RecoveryPlanProviderSpecificDetails[]: |
The provider id and provider specific details. |
| recoveryFabricFriendlyName |
string |
The recovery fabric friendly name. |
| recoveryFabricId |
string |
The recovery fabric Id. |
| replicationProviders |
string[] |
The list of replication providers. |
RecoveryPlanProtectedItem
Recovery plan protected item.
| Name | Type | Description |
|---|---|---|
| id |
string |
The ARM Id of the recovery plan protected item. |
| virtualMachineId |
string |
The virtual machine Id. |
RecoveryPlanScriptActionDetails
Recovery plan script action details.
| Name | Type | Description |
|---|---|---|
| fabricLocation |
The fabric location. |
|
| instanceType |
string:
Script |
Gets the type of action details (see RecoveryPlanActionDetailsTypes enum for possible values). |
| path |
string |
The script path. |
| timeout |
string |
The script timeout. |
ReplicationProtectedItemOperation
The list of failover types.
| Value | Description |
|---|---|
| ReverseReplicate |
ReverseReplicate |
| Commit |
Commit |
| PlannedFailover |
PlannedFailover |
| UnplannedFailover |
UnplannedFailover |
| DisableProtection |
DisableProtection |
| TestFailover |
TestFailover |
| TestFailoverCleanup |
TestFailoverCleanup |
| Failback |
Failback |
| FinalizeFailback |
FinalizeFailback |
| CancelFailover |
CancelFailover |
| ChangePit |
ChangePit |
| RepairReplication |
RepairReplication |
| SwitchProtection |
SwitchProtection |
| CompleteMigration |
CompleteMigration |
RpInMageRecoveryPointType
The recovery point type.
| Value | Description |
|---|---|
| LatestTime |
LatestTime |
| LatestTag |
LatestTag |
| Custom |
Custom |
systemData
Metadata pertaining to creation and last modification of the resource.
| Name | Type | Description |
|---|---|---|
| createdAt |
string (date-time) |
The timestamp of resource creation (UTC). |
| createdBy |
string |
The identity that created the resource. |
| createdByType |
The type of identity that created the resource. |
|
| lastModifiedAt |
string (date-time) |
The timestamp of resource last modification (UTC) |
| lastModifiedBy |
string |
The identity that last modified the resource. |
| lastModifiedByType |
The type of identity that last modified the resource. |