Skip to content

Commit 7dc9785

Browse files
authored
[Hub Generated] Review request for Microsoft.RecoveryServices to add version stable/2023-01-15 (#22431)
* Adds base for updating Microsoft.RecoveryServices from version stable/2021-11-15 to version 2023-01-15 * Updates readme * Updates API version in new specs and examples * Adds RecoveryPointProperties for 2023-01-15 * Adds RecoveryPointProperties at missed places * Fixes API version in examples * Fixes model validation errors
1 parent f66499b commit 7dc9785

17 files changed

+5153
-1
lines changed

specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-15/bms.json

Lines changed: 4546 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"azureRegion": "southeastasia",
5+
"api-version": "2023-01-15"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000",
11+
"properties": {
12+
"tenantId": "33e01921-4d64-4f8c-a055-5bdaffd5e33d",
13+
"audience": "https://RecoveryServices/IaasCoord/aadmgmt/ecy",
14+
"servicePrincipalObjectId": "07e0a67b-cba3-4fcf-a58c-b670d5ced06d"
15+
}
16+
}
17+
}
18+
}
19+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"resourceGroupName": "SwaggerTestRg",
5+
"vaultName": "NetSDKTestRsVault",
6+
"api-version": "2023-01-15",
7+
"$filter": "backupManagementType eq 'AzureIaasVM' and itemType eq 'VM'"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"value": [
13+
{
14+
"id": "/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/protectionContainers/IaasVMContainer;iaasvmcontainer;iaasvm-rg;iaasvm-1/protectedItems/VM;iaasvmcontainer;iaasvm-rg;iaasvm-1",
15+
"name": "VM;iaasvmcontainer;iaasvm-rg;iaasvm-1",
16+
"type": "Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems",
17+
"properties": {
18+
"protectedItemType": "Microsoft.ClassicCompute/virtualMachines",
19+
"backupManagementType": "AzureIaasVM",
20+
"workloadType": "VM",
21+
"containerName": "iaasvmcontainer;iaasvm-rg;iaasvm-1",
22+
"sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.ClassicCompute/virtualMachines/iaasvm-1",
23+
"policyId": "/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupPolicies/testPolicy1",
24+
"lastRecoveryPoint": "2017-11-22T12:25:32.048723Z"
25+
}
26+
}
27+
]
28+
}
29+
}
30+
}
31+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"resourceGroupName": "rshhtestmdvmrg",
5+
"vaultName": "rshvault",
6+
"fabricName": "Azure",
7+
"containerName": "IaasVMContainer;iaasvmcontainerv2;rshhtestmdvmrg;rshmdvmsmall",
8+
"protectedItemName": "VM;iaasvmcontainerv2;rshhtestmdvmrg;rshmdvmsmall",
9+
"recoveryPointId": "26083826328862",
10+
"api-version": "2023-01-15",
11+
"parameters": {
12+
"properties": {
13+
"tenantId": "33e01921-4d64-4f8c-a055-5bdaffd5e33d",
14+
"audience": "https://RecoveryServices/IaasCoord/aadmgmt/ase",
15+
"servicePrincipalObjectId": "5ecd8123-cf74-4037-83e9-9246b227b351"
16+
}
17+
}
18+
},
19+
"responses": {
20+
"200": {
21+
"body": {
22+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rshhtestmdvmrg/providers/Microsoft.RecoveryServices/vaults/rshvault/backupFabrics/Azure/protectionContainers/IaasVMContainer;iaasvmcontainerv2;rshhtestmdvmrg;rshmdvmsmall/protectedItems/VM;iaasvmcontainerv2;rshhtestmdvmrg;rshmdvmsmall/recoveryPoints/26083826328862",
23+
"name": "26083826328862",
24+
"type": "Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems/recoveryPoints",
25+
"properties": {
26+
"objectType": "WorkloadCrrAccessToken",
27+
"accessTokenString": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IjVocE9ZWkdhZnk2VG50bUhKeGZZaEZKWHpQcyJ9.eyJVc2VySWRlbnRpdHlUeXBlIjoiQUFEIiwiQWFkVGVuYW50SWQiOiI3MmY5ODhiZi04NmYxLTQxYWYtOTFhYi0yZDdjZDAxMWRiNDciLCJBYWRTUE9iamVjdElkIjoiODlkMmY3NzQtODBkNy00YzU0LTgwMjQtMjY2YzIzZGI0ZWNiIiwiUmVzdG9yZVBvaW50UGVybWlzc2lvbnMiOiJSZWFkIiwiUmVzdG9yZVBvaW50SUQiOiJyZXNvdXJjZXMvMzYzOTI0OTUyNDMwMjg4Mjk3MS9wcm90ZWN0aW9uQ29udGFpbmVycy8xMDA2NjAwL3Byb3RlY3RlZEl0ZW1zLzIyNTIzNDUxNzI0OTY4MjgyMTEvcmVjb3ZlcnlQb2ludHMvMjI1Mjg4NDA2MDEwNDg4OTkwNyIsImlzcyI6Imh0dHBzOi8vUmVjb3ZlcnlTZXJ2aWNlIiwiYXVkIjoiaHR0cHM6Ly9SZWNvdmVyeVNlcnZpY2VzL1Byb3RlY3Rpb25TZXJ2aWNlIiwiZXhwIjoxNTcwMjAwOTEzLCJuYmYiOjE1NzAxMTQyMTN9.gOGEmAhrAio3M6gcQHZ7EpEAbz4o-JaLE6dIFa4bF_-6VaP4LiBU_Qemjev_s-2fKZTAk3AVEXevbxbKIX6DENALXyOy3cMZsSPIr7L0_VrC6nlNnrwMBpiwQWGLuPckh4LHhsQE2cgOKmsIifqb4XrSJlwNq18aT_XyV6ZlkKqog3w7n4f-_eANJXDjxzOvAzsDIjnw_R-rVBNUI8w5OyO01mK1s2xStYgCBLpkTNEw5dxTTNOv5wPzmgjgRa2p-GmecE0ZTUfsL3VUvzpzfO8tRHBTbUYIIAG2Cn9utmXLK-PmAAanJVCOQ0YuoNSTN40D1NhpklJOtyD_TKdmvA",
28+
"subscriptionId": "04cf684a-d41f-4550-9f70-7708a3a2283b",
29+
"resourceGroupName": "gaallaReportingV2",
30+
"resourceName": "garbvtd2",
31+
"resourceId": "3639249524302882971",
32+
"recoveryPointId": "2252884060104889907",
33+
"recoveryPointTime": "10/3/2019 1:35:19 AM",
34+
"containerName": "iaasvmcontainerv2;anubhtest;anubh-ext-2",
35+
"containerType": "IaasVMContainer",
36+
"backupManagementType": "AzureIaasVM",
37+
"datasourceType": "VM",
38+
"datasourceName": "anubh-ext-2",
39+
"datasourceId": "2252345172496828211",
40+
"datasourceContainerName": "iaasvmcontainerv2;anubhtest;anubh-ext-2",
41+
"coordinatorServiceStampUri": "https://sea-bvtd2-coord1-t56tl.ext.trafficmanager.net",
42+
"protectionServiceStampId": "253c2223-fefd-483d-912f-55fb46ce0eab",
43+
"protectionServiceStampUri": "https://sea-bvtd2-prot1-t56tl.ext.trafficmanager.net",
44+
"tokenExtendedInformation": "<IaaSVMRecoveryPointMetadataBase xmlns:i=\"http://www.w3.org/2001/XMLSchema-instance\" i:type=\"IaaSVMRecoveryPointMetadata_V2015_09\" xmlns=\"http://windowscloudbackup.com/CloudCommon/V2011_09\"><MetadataVersion>V2015_09</MetadataVersion><ContainerType i:nil=\"true\" /><InstantRpGCId>1a2311d9-66f5-47d3-a9fb-7a37da63934b;BackUpOperationJobId;e1ebcf24-81a5-434e-b64b-cc81be65ae16</InstantRpGCId><IsBlockBlobEnabled>false</IsBlockBlobEnabled><IsManagedVirtualMachine>false</IsManagedVirtualMachine><OriginalSAOption>true</OriginalSAOption><OsType>Windows</OsType><ReadMetadaFromConfigBlob i:nil=\"true\" /><RecoveryPointConsistencyType>CrashConsistent</RecoveryPointConsistencyType><RpDiskDetails i:nil=\"true\" /><SourceIaaSVMRPKeyAndSecret i:nil=\"true\" /><SourceIaaSVMStorageType>NormalStorage</SourceIaaSVMStorageType><VMSizeDescription>Standard_D2s_v3</VMSizeDescription></IaaSVMRecoveryPointMetadataBase>"
45+
}
46+
}
47+
},
48+
"400": {}
49+
}
50+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"azureRegion": "southeastasia",
5+
"api-version": "2023-01-15",
6+
"parameters": {
7+
"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Compute/VirtualMachines/testVm",
8+
"jobName": "02585cc9-d7f4-4b46-860c-14c048cce178"
9+
}
10+
},
11+
"responses": {
12+
"200": {
13+
"body": {
14+
"id": "/subscriptions/f2edfd5d-5496-4683-b94f-b3588c579009/providers/microsoft.recoveryservices/locations/eastus2euap/backupJobs/02585cc9-d7f4-4b46-860c-14c048cce178",
15+
"name": "02585cc9-d7f4-4b46-860c-14c048cce178",
16+
"type": "Microsoft.RecoveryServices/vaults/backupJobs",
17+
"properties": {
18+
"jobType": "AzureIaaSVMJob",
19+
"virtualMachineVersion": "Compute",
20+
"extendedInfo": {
21+
"tasksList": [],
22+
"propertyBag": {}
23+
},
24+
"entityFriendlyName": "sriniccylinux",
25+
"backupManagementType": "AzureIaasVM",
26+
"operation": "CrossRegionRestore",
27+
"status": "InProgress",
28+
"startTime": "2019-10-12T10:22:43.9139656Z",
29+
"activityId": "6e503ee3-1093-4a83-a62a-3b666cc8c028-2019-10-12T10:22:43Z-Ibz"
30+
}
31+
}
32+
}
33+
}
34+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"azureRegion": "southeastasia",
5+
"operationId": "00000000-0000-0000-0000-000000000000",
6+
"api-version": "2023-01-15",
7+
"parameters": {
8+
"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Compute/VirtualMachines/testVm"
9+
}
10+
},
11+
"responses": {
12+
"202": {
13+
"headers": {
14+
"Location": "location: https://centraluseuap.management.azure.com/subscriptions/f2edfd5d-5496-4683-b94f-b3588c579009/providers/microsoft.recoveryservices/locations/eastus2euap/backupCrrOperationResults/MTMzMDgzNzkwNjQxODEzODE2MDtkMTY3MzM3Yy0yM2I1LTQ5ODgtODkwZC0xY2MyMmQ5MTYyZjA=?api-version=2023-01-15-preview",
15+
"Azure-AsyncOperation": "azure-asyncoperation: https://centraluseuap.management.azure.com/subscriptions/f2edfd5d-5496-4683-b94f-b3588c579009/providers/microsoft.recoveryservices/locations/eastus2euap/backupCrrOperationsStatus/MTMzMDgzNzkwNjQxODEzODE2MDtkMTY3MzM3Yy0yM2I1LTQ5ODgtODkwZC0xY2MyMmQ5MTYyZjA=?api-version=2023-01-15-preview",
16+
"Retry-After": 60
17+
}
18+
},
19+
"200": {}
20+
}
21+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"azureRegion": "southeastasia",
5+
"operationId": "00000000-0000-0000-0000-000000000000",
6+
"api-version": "2023-01-15",
7+
"parameters": {
8+
"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Compute/VirtualMachines/testVm"
9+
}
10+
},
11+
"responses": {
12+
"200": {
13+
"body": {
14+
"id": "/subscriptions/f2edfd5d-5496-4683-b94f-b3588c579009/providers/microsoft.recoveryservices/locations/eastus2euap/backupCrrOperationsStatus/MTMzMDgzNzkwNjQxODEzODE2MDtkMTY3MzM3Yy0yM2I1LTQ5ODgtODkwZC0xY2MyMmQ5MTYyZjA=",
15+
"name": "MTMzMDgzNzkwNjQxODEzODE2MDtkMTY3MzM3Yy0yM2I1LTQ5ODgtODkwZC0xY2MyMmQ5MTYyZjA=",
16+
"status": "Succeeded",
17+
"startTime": "2019-10-14T06:46:44.3225024Z",
18+
"endTime": "2019-10-14T06:46:44Z"
19+
}
20+
}
21+
}
22+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"azureRegion": "southeastasia",
5+
"api-version": "2023-01-15",
6+
"parameters": {
7+
"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Compute/VirtualMachines/testVm",
8+
"jobName": "02585cc9-d7f4-4b46-860c-14c048cce178"
9+
}
10+
},
11+
"responses": {
12+
"200": {
13+
"body": {
14+
"value": [
15+
{
16+
"id": "/subscriptions/f2edfd5d-5496-4683-b94f-b3588c579009/providers/microsoft.recoveryservices/locations/eastus2euap/backupJobs/02585cc9-d7f4-4b46-860c-14c048cce178",
17+
"name": "02585cc9-d7f4-4b46-860c-14c048cce178",
18+
"type": "Microsoft.RecoveryServices/vaults/backupJobs",
19+
"properties": {
20+
"jobType": "AzureIaaSVMJob",
21+
"virtualMachineVersion": "Compute",
22+
"entityFriendlyName": "sriniccylinux",
23+
"backupManagementType": "AzureIaasVM",
24+
"operation": "CrossRegionRestore",
25+
"status": "InProgress",
26+
"startTime": "2019-10-12T10:22:43.9139656Z",
27+
"activityId": "6e503ee3-1093-4a83-a62a-3b666cc8c028-2019-10-12T10:22:43Z-Ibz"
28+
}
29+
}
30+
]
31+
}
32+
}
33+
}
34+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"resourceGroupName": "rshhtestmdvmrg",
5+
"vaultName": "rshvault",
6+
"fabricName": "Azure",
7+
"containerName": "IaasVMContainer;iaasvmcontainerv2;rshhtestmdvmrg;rshmdvmsmall",
8+
"protectedItemName": "VM;iaasvmcontainerv2;rshhtestmdvmrg;rshmdvmsmall",
9+
"api-version": "2023-01-15"
10+
},
11+
"responses": {
12+
"200": {
13+
"body": {
14+
"value": [
15+
{
16+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rshhtestmdvmrg/providers/Microsoft.RecoveryServices/vaults/rshvault/backupFabrics/Azure/protectionContainers/IaasVMContainer;iaasvmcontainerv2;rshhtestmdvmrg;rshmdvmsmall/protectedItems/VM;iaasvmcontainerv2;rshhtestmdvmrg;rshmdvmsmall/recoveryPoints/22244821112382",
17+
"name": "22244821112382",
18+
"type": "Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems/recoveryPoints",
19+
"properties": {
20+
"objectType": "IaasVMRecoveryPoint",
21+
"recoveryPointType": "CrashConsistent",
22+
"recoveryPointTime": "2017-12-21T22:48:25.4353958Z",
23+
"recoveryPointAdditionalInfo": "",
24+
"sourceVMStorageType": "NormalStorage",
25+
"isSourceVMEncrypted": false,
26+
"isInstantIlrSessionActive": false,
27+
"recoveryPointTierDetails": [
28+
{
29+
"type": "InstantRP",
30+
"status": "Valid"
31+
},
32+
{
33+
"type": "HardenedRP",
34+
"status": "Valid"
35+
}
36+
],
37+
"isManagedVirtualMachine": true,
38+
"virtualMachineSize": "Standard_D1",
39+
"originalStorageAccountOption": false
40+
}
41+
},
42+
{
43+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rshhtestmdvmrg/providers/Microsoft.RecoveryServices/vaults/rshvault/backupFabrics/Azure/protectionContainers/IaasVMContainer;iaasvmcontainerv2;rshhtestmdvmrg;rshmdvmsmall/protectedItems/VM;iaasvmcontainerv2;rshhtestmdvmrg;rshmdvmsmall/recoveryPoints/24977149827250",
44+
"name": "24977149827250",
45+
"type": "Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems/recoveryPoints",
46+
"properties": {
47+
"objectType": "IaasVMRecoveryPoint",
48+
"recoveryPointType": "CrashConsistent",
49+
"recoveryPointTime": "2017-12-20T22:49:44.3317945Z",
50+
"recoveryPointAdditionalInfo": "",
51+
"sourceVMStorageType": "NormalStorage",
52+
"isSourceVMEncrypted": false,
53+
"isInstantIlrSessionActive": false,
54+
"recoveryPointTierDetails": [
55+
{
56+
"type": "InstantRP",
57+
"status": "Valid"
58+
},
59+
{
60+
"type": "HardenedRP",
61+
"status": "Valid"
62+
}
63+
],
64+
"isManagedVirtualMachine": true,
65+
"virtualMachineSize": "Standard_D1",
66+
"originalStorageAccountOption": false,
67+
"zones": [
68+
"1"
69+
]
70+
}
71+
}
72+
],
73+
"nextLink": null
74+
}
75+
}
76+
}
77+
}

0 commit comments

Comments
 (0)