Skip to content

Commit 12b9faa

Browse files
arpjajosuh
authored andcommitted
Updating existing CRR APIs with zone restore feature (Azure#12157)
* - Added change for support of cross zone restores. * - updating example json * - Fixing prettier
1 parent 5d03299 commit 12b9faa

File tree

3 files changed

+22
-2
lines changed

3 files changed

+22
-2
lines changed

specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2018-12-20/bms.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2858,6 +2858,13 @@
28582858
"recoveryPointDiskConfiguration": {
28592859
"$ref": "#/definitions/RecoveryPointDiskConfiguration",
28602860
"description": "Disk configuration"
2861+
},
2862+
"zones": {
2863+
"description": "Identifies the zone of the VM at the time of backup. Applicable only for zone-pinned Vms",
2864+
"type": "array",
2865+
"items": {
2866+
"type": "string"
2867+
}
28612868
}
28622869
},
28632870
"x-ms-discriminator-value": "IaasVMRecoveryPoint"
@@ -2953,6 +2960,13 @@
29532960
"diskEncryptionSetId": {
29542961
"description": "DiskEncryptionSet's ID - needed if the VM needs to be encrypted at rest during restore with customer managed key.",
29552962
"type": "string"
2963+
},
2964+
"zones": {
2965+
"description": "Target zone where the VM and its disks should be restored.",
2966+
"type": "array",
2967+
"items": {
2968+
"type": "string"
2969+
}
29562970
}
29572971
},
29582972
"x-ms-discriminator-value": "IaasVMRestoreRequest"

specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2018-12-20/examples/AzureIaasVm/RecoveryPoints_List.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,10 @@
6363
],
6464
"isManagedVirtualMachine": true,
6565
"virtualMachineSize": "Standard_D1",
66-
"originalStorageAccountOption": false
66+
"originalStorageAccountOption": false,
67+
"zones": [
68+
"1"
69+
]
6770
}
6871
}
6972
],

specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2018-12-20/examples/AzureIaasVm/TriggerCrossRegionRestore_Post.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@
4141
"targetDomainNameId": null,
4242
"targetResourceGroupId": "/subscriptions/f2edfd5d-5496-4683-b94f-b3588c579009/resourceGroups/00networkAckl",
4343
"targetVirtualMachineId": "/subscriptions/f2edfd5d-5496-4683-b94f-b3588c579009/resourceGroups/00networkAckl/providers/Microsoft.Compute/virtualMachines/gaallaVM",
44-
"virtualNetworkId": "/subscriptions/f2edfd5d-5496-4683-b94f-b3588c579009/resourceGroups/00networkAcklVaultCCY/providers/Microsoft.Network/virtualNetworks/00networkAcklVaultCCY-vnet"
44+
"virtualNetworkId": "/subscriptions/f2edfd5d-5496-4683-b94f-b3588c579009/resourceGroups/00networkAcklVaultCCY/providers/Microsoft.Network/virtualNetworks/00networkAcklVaultCCY-vnet",
45+
"zones": [
46+
"2"
47+
]
4548
}
4649
}
4750
},

0 commit comments

Comments
 (0)