Skip to content

Commit

Permalink
Updating existing CRR APIs with zone restore feature (#12157)
Browse files Browse the repository at this point in the history
* - Added change for support of cross zone restores.

* - updating example json

* - Fixing prettier
  • Loading branch information
arpja authored Dec 21, 2020
1 parent c31b92d commit 453f24e
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2858,6 +2858,13 @@
"recoveryPointDiskConfiguration": {
"$ref": "#/definitions/RecoveryPointDiskConfiguration",
"description": "Disk configuration"
},
"zones": {
"description": "Identifies the zone of the VM at the time of backup. Applicable only for zone-pinned Vms",
"type": "array",
"items": {
"type": "string"
}
}
},
"x-ms-discriminator-value": "IaasVMRecoveryPoint"
Expand Down Expand Up @@ -2953,6 +2960,13 @@
"diskEncryptionSetId": {
"description": "DiskEncryptionSet's ID - needed if the VM needs to be encrypted at rest during restore with customer managed key.",
"type": "string"
},
"zones": {
"description": "Target zone where the VM and its disks should be restored.",
"type": "array",
"items": {
"type": "string"
}
}
},
"x-ms-discriminator-value": "IaasVMRestoreRequest"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@
],
"isManagedVirtualMachine": true,
"virtualMachineSize": "Standard_D1",
"originalStorageAccountOption": false
"originalStorageAccountOption": false,
"zones": [
"1"
]
}
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@
"targetDomainNameId": null,
"targetResourceGroupId": "/subscriptions/f2edfd5d-5496-4683-b94f-b3588c579009/resourceGroups/00networkAckl",
"targetVirtualMachineId": "/subscriptions/f2edfd5d-5496-4683-b94f-b3588c579009/resourceGroups/00networkAckl/providers/Microsoft.Compute/virtualMachines/gaallaVM",
"virtualNetworkId": "/subscriptions/f2edfd5d-5496-4683-b94f-b3588c579009/resourceGroups/00networkAcklVaultCCY/providers/Microsoft.Network/virtualNetworks/00networkAcklVaultCCY-vnet"
"virtualNetworkId": "/subscriptions/f2edfd5d-5496-4683-b94f-b3588c579009/resourceGroups/00networkAcklVaultCCY/providers/Microsoft.Network/virtualNetworks/00networkAcklVaultCCY-vnet",
"zones": [
"2"
]
}
}
},
Expand Down

0 comments on commit 453f24e

Please sign in to comment.