Skip to content

Commit 096d418

Browse files
Merge pull request #30 from Azure/dev
PR from parent
2 parents 89df986 + ead1b01 commit 096d418

File tree

43 files changed

+2241
-5492
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+2241
-5492
lines changed

src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/Commands.AzureBackup.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
</Reference>
4242
<Reference Include="Microsoft.Azure.Management.BackupServicesManagement, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
4343
<SpecificVersion>False</SpecificVersion>
44-
<HintPath>..\..\..\packages\Microsoft.Azure.Management.BackupServices.1.0.1-preview\lib\net40\Microsoft.Azure.Management.BackupServicesManagement.dll</HintPath>
44+
<HintPath>..\..\..\packages\Microsoft.Azure.Management.BackupServices.1.0.2-preview\lib\net40\Microsoft.Azure.Management.BackupServicesManagement.dll</HintPath>
4545
</Reference>
4646
<Reference Include="Microsoft.Azure.ResourceManager, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
4747
<SpecificVersion>False</SpecificVersion>

src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupContainerTests.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ function Test-AzureBackupMarsContainerScenario
4242
Assert-AreEqual $container.ResourceName $vault.Name;
4343
Assert-AreEqual $container.Status $ContainerStatus;
4444

45+
Enable-AzureBackupContainerReregistration -Container $container
46+
4547
Unregister-AzureBackupContainer -Container $container -Force
4648

4749
$unregContainers = Get-AzureBackupContainer -vault $vault -type $ContainerType -name $ContainerName

src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.AzureBackupContainerTests/AzureBackupMarsContainerScenarioTests.json

Lines changed: 110 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
"en-us"
1111
],
1212
"x-ms-client-request-id": [
13-
"3bde4861-d6c7-4785-b954-c2fb7498260c-2015-07-17 19:46:07Z-PS"
13+
"c164ee99-024c-490f-909f-46fcbfce27e3-2015-07-22 12:42:18Z-PS"
1414
],
1515
"User-Agent": [
1616
"Microsoft.Azure.Management.BackupServices.BackupVaultServicesManagementClient/1.0.0.0"
1717
]
1818
},
19-
"ResponseBody": "{\r\n \"location\": \"westus\",\r\n \"name\": \"backuprn1\",\r\n \"etag\": \"327fe758-7f7b-4879-b708-4d5366d2c687\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"ProvisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn1\",\r\n \"type\": \"Microsoft.Backup/BackupVault\"\r\n}",
19+
"ResponseBody": "{\r\n \"location\": \"westus\",\r\n \"name\": \"backuprn1\",\r\n \"etag\": \"327fe758-7f7b-4879-b708-4d5366d2c687\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn1\",\r\n \"type\": \"Microsoft.Backup/BackupVault\"\r\n}",
2020
"ResponseHeaders": {
2121
"Content-Length": [
2222
"339"
@@ -31,28 +31,28 @@
3131
"no-cache"
3232
],
3333
"x-ms-request-id": [
34-
"650d6914-a58c-4610-90c4-578f43f4194a"
34+
"499ed874-b244-4ac2-ae34-905b70f28b7a"
3535
],
3636
"x-ms-client-request-id": [
37-
"3bde4861-d6c7-4785-b954-c2fb7498260c-2015-07-17 19:46:07Z-PS"
37+
"c164ee99-024c-490f-909f-46fcbfce27e3-2015-07-22 12:42:18Z-PS"
3838
],
3939
"Strict-Transport-Security": [
4040
"max-age=31536000; includeSubDomains"
4141
],
4242
"x-ms-ratelimit-remaining-subscription-reads": [
43-
"14995"
43+
"14993"
4444
],
4545
"x-ms-correlation-request-id": [
46-
"650d6914-a58c-4610-90c4-578f43f4194a"
46+
"499ed874-b244-4ac2-ae34-905b70f28b7a"
4747
],
4848
"x-ms-routing-request-id": [
49-
"CENTRALUS:20150717T194610Z:650d6914-a58c-4610-90c4-578f43f4194a"
49+
"CENTRALUS:20150722T124220Z:499ed874-b244-4ac2-ae34-905b70f28b7a"
5050
],
5151
"Cache-Control": [
5252
"no-cache"
5353
],
5454
"Date": [
55-
"Fri, 17 Jul 2015 19:46:10 GMT"
55+
"Wed, 22 Jul 2015 12:42:19 GMT"
5656
],
5757
"Server": [
5858
"Microsoft-IIS/8.0"
@@ -70,7 +70,7 @@
7070
"en-us"
7171
],
7272
"x-ms-client-request-id": [
73-
"3bde4861-d6c7-4785-b954-c2fb7498260c-2015-07-17 19:46:07Z-PS"
73+
"c164ee99-024c-490f-909f-46fcbfce27e3-2015-07-22 12:42:18Z-PS"
7474
],
7575
"User-Agent": [
7676
"Microsoft.Azure.Management.BackupServices.BackupVaultServicesManagementClient/1.0.0.0"
@@ -91,29 +91,29 @@
9191
"no-cache"
9292
],
9393
"x-ms-request-id": [
94-
"f28b0d83-8805-4900-92db-90809a187048"
94+
"eab30911-4bd3-4732-8ca1-c5010a84dd8b"
9595
],
9696
"x-ms-client-request-id": [
97-
"3bde4861-d6c7-4785-b954-c2fb7498260c-2015-07-17 19:46:07Z-PS",
98-
"3bde4861-d6c7-4785-b954-c2fb7498260c-2015-07-17 19:46:07Z-PS"
97+
"c164ee99-024c-490f-909f-46fcbfce27e3-2015-07-22 12:42:18Z-PS",
98+
"c164ee99-024c-490f-909f-46fcbfce27e3-2015-07-22 12:42:18Z-PS"
9999
],
100100
"Strict-Transport-Security": [
101101
"max-age=31536000; includeSubDomains"
102102
],
103103
"x-ms-ratelimit-remaining-subscription-reads": [
104-
"14994"
104+
"14992"
105105
],
106106
"x-ms-correlation-request-id": [
107-
"f28b0d83-8805-4900-92db-90809a187048"
107+
"eab30911-4bd3-4732-8ca1-c5010a84dd8b"
108108
],
109109
"x-ms-routing-request-id": [
110-
"CENTRALUS:20150717T194611Z:f28b0d83-8805-4900-92db-90809a187048"
110+
"CENTRALUS:20150722T124221Z:eab30911-4bd3-4732-8ca1-c5010a84dd8b"
111111
],
112112
"Cache-Control": [
113113
"no-cache"
114114
],
115115
"Date": [
116-
"Fri, 17 Jul 2015 19:46:11 GMT"
116+
"Wed, 22 Jul 2015 12:42:21 GMT"
117117
],
118118
"Server": [
119119
"Microsoft-IIS/8.0"
@@ -134,10 +134,10 @@
134134
"Microsoft.Azure.Management.BackupServices.BackupVaultServicesManagementClient/1.0.0.0"
135135
]
136136
},
137-
"ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"uniqueName\": \"dpmdrscaleint1.dpmdom02.selfhost.corp.microsoft.com\",\r\n \"containerType\": \"Machine\",\r\n \"properties\": {\r\n \"containerId\": 10034,\r\n \"friendlyName\": \"DPMDRSCALEINT1.DPMDOM02.SELFHOST.CORP.MICROSOFT.COM\",\r\n \"containerStampId\": \"eaf33dbc-a5b5-411a-a6af-1976a3f94602\",\r\n \"containerStampUri\": \"https://sea-dev01-prot-4bodw.ext.trafficmanager.net\",\r\n \"canReRegister\": false,\r\n \"customerType\": \"OBS\"\r\n }\r\n }\r\n ],\r\n \"nextLink\": null\r\n}",
137+
"ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"uniqueName\": \"dpmdrscaleint1.dpmdom02.selfhost.corp.microsoft.com\",\r\n \"containerType\": \"Machine\",\r\n \"properties\": {\r\n \"containerId\": 10034,\r\n \"friendlyName\": \"DPMDRSCALEINT1.DPMDOM02.SELFHOST.CORP.MICROSOFT.COM\",\r\n \"containerStampId\": \"eaf33dbc-a5b5-411a-a6af-1976a3f94602\",\r\n \"containerStampUri\": \"https://sea-dev01-prot-4bodw.ext.trafficmanager.net\",\r\n \"canReRegister\": true,\r\n \"customerType\": \"OBS\"\r\n }\r\n }\r\n ],\r\n \"nextLink\": null\r\n}",
138138
"ResponseHeaders": {
139139
"Content-Length": [
140-
"401"
140+
"400"
141141
],
142142
"Content-Type": [
143143
"application/json"
@@ -149,29 +149,29 @@
149149
"no-cache"
150150
],
151151
"x-ms-request-id": [
152-
"46a1fbfd-6e8b-4ab0-835b-1dcbe559162f"
152+
"fa7caa14-ec77-4ba2-8ffd-e847c2666e0f"
153153
],
154154
"x-ms-client-request-id": [
155-
"012da3f2-c253-475c-9f1a-516b11d3a906",
156-
"012da3f2-c253-475c-9f1a-516b11d3a906"
155+
"6ff22313-2e0b-4a95-b237-14f50997f221",
156+
"6ff22313-2e0b-4a95-b237-14f50997f221"
157157
],
158158
"Strict-Transport-Security": [
159159
"max-age=31536000; includeSubDomains"
160160
],
161161
"x-ms-ratelimit-remaining-subscription-reads": [
162-
"14993"
162+
"14991"
163163
],
164164
"x-ms-correlation-request-id": [
165-
"46a1fbfd-6e8b-4ab0-835b-1dcbe559162f"
165+
"fa7caa14-ec77-4ba2-8ffd-e847c2666e0f"
166166
],
167167
"x-ms-routing-request-id": [
168-
"CENTRALUS:20150717T194612Z:46a1fbfd-6e8b-4ab0-835b-1dcbe559162f"
168+
"CENTRALUS:20150722T124222Z:fa7caa14-ec77-4ba2-8ffd-e847c2666e0f"
169169
],
170170
"Cache-Control": [
171171
"no-cache"
172172
],
173173
"Date": [
174-
"Fri, 17 Jul 2015 19:46:11 GMT"
174+
"Wed, 22 Jul 2015 12:42:21 GMT"
175175
],
176176
"Server": [
177177
"Microsoft-IIS/8.0"
@@ -192,10 +192,10 @@
192192
"Microsoft.Azure.Management.BackupServices.BackupVaultServicesManagementClient/1.0.0.0"
193193
]
194194
},
195-
"ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"uniqueName\": \"dpmdrscaleint1.dpmdom02.selfhost.corp.microsoft.com\",\r\n \"containerType\": \"Machine\",\r\n \"properties\": {\r\n \"containerId\": 10034,\r\n \"friendlyName\": \"DPMDRSCALEINT1.DPMDOM02.SELFHOST.CORP.MICROSOFT.COM\",\r\n \"containerStampId\": \"eaf33dbc-a5b5-411a-a6af-1976a3f94602\",\r\n \"containerStampUri\": \"https://sea-dev01-prot-4bodw.ext.trafficmanager.net\",\r\n \"canReRegister\": false,\r\n \"customerType\": \"OBS\"\r\n }\r\n }\r\n ],\r\n \"nextLink\": null\r\n}",
195+
"ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"uniqueName\": \"dpmdrscaleint1.dpmdom02.selfhost.corp.microsoft.com\",\r\n \"containerType\": \"Machine\",\r\n \"properties\": {\r\n \"containerId\": 10034,\r\n \"friendlyName\": \"DPMDRSCALEINT1.DPMDOM02.SELFHOST.CORP.MICROSOFT.COM\",\r\n \"containerStampId\": \"eaf33dbc-a5b5-411a-a6af-1976a3f94602\",\r\n \"containerStampUri\": \"https://sea-dev01-prot-4bodw.ext.trafficmanager.net\",\r\n \"canReRegister\": true,\r\n \"customerType\": \"OBS\"\r\n }\r\n }\r\n ],\r\n \"nextLink\": null\r\n}",
196196
"ResponseHeaders": {
197197
"Content-Length": [
198-
"401"
198+
"400"
199199
],
200200
"Content-Type": [
201201
"application/json"
@@ -207,29 +207,29 @@
207207
"no-cache"
208208
],
209209
"x-ms-request-id": [
210-
"95e616a7-bb6a-434b-876d-8dc9271a9375"
210+
"5b3c8878-c9cf-46be-bdb3-19802eedb355"
211211
],
212212
"x-ms-client-request-id": [
213-
"add32202-8b85-48cd-bf42-76899a482387",
214-
"add32202-8b85-48cd-bf42-76899a482387"
213+
"27052a7f-7819-4c9f-ba06-70a027ba899f",
214+
"27052a7f-7819-4c9f-ba06-70a027ba899f"
215215
],
216216
"Strict-Transport-Security": [
217217
"max-age=31536000; includeSubDomains"
218218
],
219219
"x-ms-ratelimit-remaining-subscription-reads": [
220-
"14992"
220+
"14990"
221221
],
222222
"x-ms-correlation-request-id": [
223-
"95e616a7-bb6a-434b-876d-8dc9271a9375"
223+
"5b3c8878-c9cf-46be-bdb3-19802eedb355"
224224
],
225225
"x-ms-routing-request-id": [
226-
"CENTRALUS:20150717T194612Z:95e616a7-bb6a-434b-876d-8dc9271a9375"
226+
"CENTRALUS:20150722T124223Z:5b3c8878-c9cf-46be-bdb3-19802eedb355"
227227
],
228228
"Cache-Control": [
229229
"no-cache"
230230
],
231231
"Date": [
232-
"Fri, 17 Jul 2015 19:46:12 GMT"
232+
"Wed, 22 Jul 2015 12:42:22 GMT"
233233
],
234234
"Server": [
235235
"Microsoft-IIS/8.0"
@@ -265,36 +265,97 @@
265265
"no-cache"
266266
],
267267
"x-ms-request-id": [
268-
"ad8d0c5f-7388-48d1-8079-8cee7573cf09"
268+
"d3d15b49-b29c-44da-9690-6cf8ae84bc26"
269269
],
270270
"x-ms-client-request-id": [
271-
"7af25c88-040a-4ce3-9728-8f94fe64d42f",
272-
"7af25c88-040a-4ce3-9728-8f94fe64d42f"
271+
"fca52e4f-b2fc-4ac5-bfa2-18677f3f7f9c",
272+
"fca52e4f-b2fc-4ac5-bfa2-18677f3f7f9c"
273273
],
274274
"Strict-Transport-Security": [
275275
"max-age=31536000; includeSubDomains"
276276
],
277277
"x-ms-ratelimit-remaining-subscription-reads": [
278-
"14991"
278+
"14989"
279279
],
280280
"x-ms-correlation-request-id": [
281-
"ad8d0c5f-7388-48d1-8079-8cee7573cf09"
281+
"d3d15b49-b29c-44da-9690-6cf8ae84bc26"
282282
],
283283
"x-ms-routing-request-id": [
284-
"CENTRALUS:20150717T194618Z:ad8d0c5f-7388-48d1-8079-8cee7573cf09"
284+
"CENTRALUS:20150722T124231Z:d3d15b49-b29c-44da-9690-6cf8ae84bc26"
285285
],
286286
"Cache-Control": [
287287
"no-cache"
288288
],
289289
"Date": [
290-
"Fri, 17 Jul 2015 19:46:17 GMT"
290+
"Wed, 22 Jul 2015 12:42:30 GMT"
291291
],
292292
"Server": [
293293
"Microsoft-IIS/8.0"
294294
]
295295
},
296296
"StatusCode": 200
297297
},
298+
{
299+
"RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn1/backupContainers/10034/enableReRegister?api-version=2015-03-15",
300+
"EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuMS9iYWNrdXBDb250YWluZXJzLzEwMDM0L2VuYWJsZVJlUmVnaXN0ZXI/YXBpLXZlcnNpb249MjAxNS0wMy0xNQ==",
301+
"RequestMethod": "PATCH",
302+
"RequestBody": "{\r\n \"properties\": {\r\n \"enableReRegister\": true\r\n }\r\n}",
303+
"RequestHeaders": {
304+
"Content-Type": [
305+
"application/json"
306+
],
307+
"Content-Length": [
308+
"58"
309+
],
310+
"Accept-Language": [
311+
"en-us"
312+
],
313+
"x-ms-client-request-id": [
314+
"d4147693-3a31-4b4c-ab4c-4714de4c47fe-2015-07-22 12:42:23Z-PS"
315+
],
316+
"User-Agent": [
317+
"Microsoft.Azure.Management.BackupServices.BackupVaultServicesManagementClient/1.0.0.0"
318+
]
319+
},
320+
"ResponseBody": "",
321+
"ResponseHeaders": {
322+
"Content-Length": [
323+
"0"
324+
],
325+
"Expires": [
326+
"-1"
327+
],
328+
"Pragma": [
329+
"no-cache"
330+
],
331+
"x-ms-request-id": [
332+
"2c43793c-c4d7-4967-b315-b1e036aad163"
333+
],
334+
"x-ms-client-request-id": [
335+
"d4147693-3a31-4b4c-ab4c-4714de4c47fe-2015-07-22 12:42:23Z-PS",
336+
"d4147693-3a31-4b4c-ab4c-4714de4c47fe-2015-07-22 12:42:23Z-PS"
337+
],
338+
"Strict-Transport-Security": [
339+
"max-age=31536000; includeSubDomains"
340+
],
341+
"x-ms-ratelimit-remaining-subscription-writes": [
342+
"1198"
343+
],
344+
"x-ms-correlation-request-id": [
345+
"2c43793c-c4d7-4967-b315-b1e036aad163"
346+
],
347+
"x-ms-routing-request-id": [
348+
"CENTRALUS:20150722T124224Z:2c43793c-c4d7-4967-b315-b1e036aad163"
349+
],
350+
"Cache-Control": [
351+
"no-cache"
352+
],
353+
"Date": [
354+
"Wed, 22 Jul 2015 12:42:24 GMT"
355+
]
356+
},
357+
"StatusCode": 204
358+
},
298359
{
299360
"RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn1/backupContainers/10034/UnRegisterContainer?api-version=2015-03-15",
300361
"EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuMS9iYWNrdXBDb250YWluZXJzLzEwMDM0L1VuUmVnaXN0ZXJDb250YWluZXI/YXBpLXZlcnNpb249MjAxNS0wMy0xNQ==",
@@ -305,7 +366,7 @@
305366
"en-us"
306367
],
307368
"x-ms-client-request-id": [
308-
"3a02406f-4fc3-48b6-9621-c05d9d1c3cdb-2015-07-17 19:46:12Z-PS"
369+
"a0308b26-2cf6-416c-b73c-3ad6dfcd825e-2015-07-22 12:42:25Z-PS"
309370
],
310371
"User-Agent": [
311372
"Microsoft.Azure.Management.BackupServices.BackupVaultServicesManagementClient/1.0.0.0"
@@ -323,29 +384,29 @@
323384
"no-cache"
324385
],
325386
"x-ms-request-id": [
326-
"3577d465-9453-43bc-93ec-93603396aa9f"
387+
"029232e7-4fc9-4705-a0ab-d990cff5c3cb"
327388
],
328389
"x-ms-client-request-id": [
329-
"3a02406f-4fc3-48b6-9621-c05d9d1c3cdb-2015-07-17 19:46:12Z-PS",
330-
"3a02406f-4fc3-48b6-9621-c05d9d1c3cdb-2015-07-17 19:46:12Z-PS"
390+
"a0308b26-2cf6-416c-b73c-3ad6dfcd825e-2015-07-22 12:42:25Z-PS",
391+
"a0308b26-2cf6-416c-b73c-3ad6dfcd825e-2015-07-22 12:42:25Z-PS"
331392
],
332393
"Strict-Transport-Security": [
333394
"max-age=31536000; includeSubDomains"
334395
],
335396
"x-ms-ratelimit-remaining-subscription-writes": [
336-
"1199"
397+
"1197"
337398
],
338399
"x-ms-correlation-request-id": [
339-
"3577d465-9453-43bc-93ec-93603396aa9f"
400+
"029232e7-4fc9-4705-a0ab-d990cff5c3cb"
340401
],
341402
"x-ms-routing-request-id": [
342-
"CENTRALUS:20150717T194617Z:3577d465-9453-43bc-93ec-93603396aa9f"
403+
"CENTRALUS:20150722T124230Z:029232e7-4fc9-4705-a0ab-d990cff5c3cb"
343404
],
344405
"Cache-Control": [
345406
"no-cache"
346407
],
347408
"Date": [
348-
"Fri, 17 Jul 2015 19:46:17 GMT"
409+
"Wed, 22 Jul 2015 12:42:30 GMT"
349410
]
350411
},
351412
"StatusCode": 204

src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<package id="Microsoft.Azure.Common" version="2.1.0" targetFramework="net45" />
55
<package id="Microsoft.Azure.Common.Authentication" version="1.0.27-preview" targetFramework="net45" />
66
<package id="Microsoft.Azure.Common.Dependencies" version="1.0.0" targetFramework="net45" />
7-
<package id="Microsoft.Azure.Management.BackupServices" version="1.0.1-preview" targetFramework="net45" />
7+
<package id="Microsoft.Azure.Management.BackupServices" version="1.0.2-preview" targetFramework="net45" />
88
<package id="Microsoft.Azure.Management.Resources" version="2.18.0-preview" targetFramework="net45" />
99
<package id="Microsoft.Azure.Test.Framework" version="1.0.5571.32271-prerelease" targetFramework="net45" />
1010
<package id="Microsoft.Azure.Test.HttpRecorder" version="1.0.5571.32271-prerelease" targetFramework="net45" />

src/ResourceManager/AzureBackup/Commands.AzureBackup/AzureBackupClientAdapter/ContainerAdapter.cs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,23 @@ public void UnregisterMachineContainer(long containerId)
6363
{
6464
AzureBackupVaultClient.Container.UnregisterMarsContainer(containerId.ToString(), GetCustomRequestHeaders());
6565
}
66+
67+
/// <summary>
68+
/// Enable container reregistration
69+
/// </summary>
70+
/// <param name="containerId"></param>
71+
/// <returns></returns>
72+
public void EnableMachineContainerReregistration(long containerId)
73+
{
74+
EnableReregistrationRequest request = new EnableReregistrationRequest()
75+
{
76+
ContainerReregistrationState = new ContainerReregistrationState()
77+
{
78+
EnableReregistration = true,
79+
},
80+
};
81+
82+
AzureBackupVaultClient.Container.EnableMarsContainerReregistration(containerId.ToString(), request, GetCustomRequestHeaders());
83+
}
6684
}
6785
}

0 commit comments

Comments
 (0)