Skip to content

Instantly share code, notes, and snippets.

@sdolgin
Created December 4, 2023 01:35
Show Gist options
  • Select an option

  • Save sdolgin/d2c88386be2865ad94cf2b03de4bbfbd to your computer and use it in GitHub Desktop.

Select an option

Save sdolgin/d2c88386be2865ad94cf2b03de4bbfbd to your computer and use it in GitHub Desktop.
Logic App - ASR Recovery Plan Failover
{
"definition": {
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
"actions": {
"Recovery_Plan_Failover": {
"inputs": {
"authentication": {
"type": "ManagedServiceIdentity"
},
"body": {
"properties": {
"failoverDirection": "PrimaryToRecovery",
"networkId": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}",
"networkType": "VmNetworkAsInput",
"providerSpecificDetails": [
{
"cloudServiceCreationOption": "UseRecoveryCloudService",
"instanceType": "A2A",
"multiVmSyncPointOption": "UsePerVmRecoveryPoint",
"recoveryPointType": "LatestProcessed"
}
]
}
},
"headers": {
"Content-Type": "application/json"
},
"method": "POST",
"uri": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/replicationRecoveryPlans/{recoveryPlanName}/unplannedFailover?api-version=2023-02-01"
},
"runAfter": {},
"type": "Http"
}
},
"contentVersion": "1.0.0.0",
"outputs": {},
"parameters": {
"$connections": {
"defaultValue": {},
"type": "Object"
}
},
"triggers": {
"When_a_HTTP_request_is_received": {
"kind": "Http",
"type": "Request"
}
}
},
"parameters": {
"$connections": {
"value": {}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment