Skip to content

Commit 959950b

Browse files
author
dragonfly91
committed
Including session records for register and unregister cmdlets.
1 parent 216c681 commit 959950b

File tree

4 files changed

+291
-6
lines changed

4 files changed

+291
-6
lines changed

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@
3939
<SpecificVersion>False</SpecificVersion>
4040
<HintPath>..\..\..\packages\Microsoft.Azure.Common.Authentication.1.0.25-preview\lib\net45\Microsoft.Azure.Common.Authentication.dll</HintPath>
4141
</Reference>
42-
<Reference Include="Microsoft.Azure.Management.BackupServicesManagment">
43-
<HintPath>..\..\..\..\..\azure-sdk-for-net\src\ResourceManagement\AzureBackup\BackupServicesManagment\bin\Net45-Debug\Microsoft.Azure.Management.BackupServicesManagment.dll</HintPath>
44-
</Reference>
4542
<Reference Include="Microsoft.Azure.ResourceManager, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
4643
<SpecificVersion>False</SpecificVersion>
4744
<HintPath>..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.0-preview\lib\net40\Microsoft.Azure.ResourceManager.dll</HintPath>
@@ -134,6 +131,10 @@
134131
<Compile Include="ScenarioTests\AzureBackupVaultTests.cs" />
135132
</ItemGroup>
136133
<ItemGroup>
134+
<ProjectReference Include="..\..\..\..\..\azure-sdk-for-net\src\ResourceManagement\AzureBackup\BackupServicesManagment\BackupServicesManagment.csproj">
135+
<Project>{38a6741c-77a3-42a8-a846-83373be57c7f}</Project>
136+
<Name>BackupServicesManagment</Name>
137+
</ProjectReference>
137138
<ProjectReference Include="..\..\..\Common\Commands.Common\Commands.Common.csproj">
138139
<Project>{5ee72c53-1720-4309-b54b-5fb79703195f}</Project>
139140
<Name>Commands.Common</Name>
@@ -173,6 +174,8 @@
173174
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
174175
</None>
175176
<None Include="SessionRecords\Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.AzureBackupContainerTests\GetAzureBackupContainerTests.json" />
177+
<None Include="SessionRecords\Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.AzureBackupContainerTests\RegisterAzureBackupContainerTest.json" />
178+
<None Include="SessionRecords\Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.AzureBackupContainerTests\UnregisterAzureBackupContainerTest.json" />
176179
<None Include="SessionRecords\Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.AzureBackupItemTestCases\DisableAzureBackupProtectionTest.json" />
177180
<None Include="SessionRecords\Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.AzureBackupItemTestCases\EnableAzureBackupProtectionTest.json" />
178181
<None Include="SessionRecords\Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.AzureBackupItemTestCases\ListAzureBackupItemTests.json" />
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
{
2+
"Entries": [
3+
{
4+
"RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backupseadev01/BackupVault/backuprn/containers?api-version=2014-09-01&dummy=%26ContainerType%3DIaasVMContainer%26FriendlyName%3Ddev01Testing",
5+
"EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3Vwc2VhZGV2MDEvQmFja3VwVmF1bHQvYmFja3Vwcm4vY29udGFpbmVycz9hcGktdmVyc2lvbj0yMDE0LTA5LTAxJmR1bW15PSUyNkNvbnRhaW5lclR5cGUlM0RJYWFzVk1Db250YWluZXIlMjZGcmllbmRseU5hbWUlM0RkZXYwMVRlc3Rpbmc=",
6+
"RequestMethod": "GET",
7+
"RequestBody": "",
8+
"RequestHeaders": {
9+
"Accept-Language": [
10+
"en-us"
11+
],
12+
"x-ms-version": [
13+
"2013-03-01"
14+
],
15+
"User-Agent": [
16+
"Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
17+
]
18+
},
19+
"ResponseBody": "{\r\n \"Objects\": [\r\n {\r\n \"FriendlyName\": \"dev01Testing\",\r\n \"SubscriptionId\": \"f5303a0b-fae4-4cdb-b44d-0e4c032dde26\",\r\n \"ContainerType\": \"IaasVMContainer\",\r\n \"ParentContainerName\": \"dev01Testing\",\r\n \"ParentContainerFriendlyName\": \"dev01Testing\",\r\n \"RegistrationStatus\": \"Registered\",\r\n \"HealthStatus\": \"Healthy\",\r\n \"PropertyBag\": null,\r\n \"InstanceId\": null,\r\n \"Name\": \"iaasvmcontainer;dev01testing;dev01testing\",\r\n \"OperationInProgress\": false\r\n }\r\n ],\r\n \"ResultCount\": 1,\r\n \"Skiptoken\": null\r\n}",
20+
"ResponseHeaders": {
21+
"Content-Length": [
22+
"425"
23+
],
24+
"Content-Type": [
25+
"application/json"
26+
],
27+
"Expires": [
28+
"-1"
29+
],
30+
"Pragma": [
31+
"no-cache"
32+
],
33+
"x-ms-request-id": [
34+
"440a2de2-c516-4b57-87ee-74839064470b"
35+
],
36+
"x-ms-client-request-id": [
37+
"cdc53ea3-207a-4d07-b535-32e8e48f5b14",
38+
"cdc53ea3-207a-4d07-b535-32e8e48f5b14"
39+
],
40+
"Strict-Transport-Security": [
41+
"max-age=31536000; includeSubDomains"
42+
],
43+
"x-ms-ratelimit-remaining-subscription-reads": [
44+
"14992"
45+
],
46+
"x-ms-correlation-request-id": [
47+
"440a2de2-c516-4b57-87ee-74839064470b"
48+
],
49+
"x-ms-routing-request-id": [
50+
"CENTRALUS:20150617T172637Z:440a2de2-c516-4b57-87ee-74839064470b"
51+
],
52+
"Cache-Control": [
53+
"no-cache"
54+
],
55+
"Date": [
56+
"Wed, 17 Jun 2015 17:26:37 GMT"
57+
],
58+
"Server": [
59+
"Microsoft-IIS/8.0"
60+
],
61+
"X-Powered-By": [
62+
"ASP.NET"
63+
]
64+
},
65+
"StatusCode": 200
66+
},
67+
{
68+
"RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backupseadev01/BackupVault/backuprn/containers/register?api-version=2014-09-01",
69+
"EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3Vwc2VhZGV2MDEvQmFja3VwVmF1bHQvYmFja3Vwcm4vY29udGFpbmVycy9yZWdpc3Rlcj9hcGktdmVyc2lvbj0yMDE0LTA5LTAx",
70+
"RequestMethod": "POST",
71+
"RequestBody": "{\r\n \"ContainerUniqueNameList\": [\r\n \"iaasvmcontainer;dev01testing;dev01testing\"\r\n ],\r\n \"ContainerType\": \"IaasVMContainer\"\r\n}",
72+
"RequestHeaders": {
73+
"Content-Type": [
74+
"application/json"
75+
],
76+
"Content-Length": [
77+
"129"
78+
],
79+
"Accept-Language": [
80+
"en-us"
81+
],
82+
"x-ms-version": [
83+
"2013-03-01"
84+
],
85+
"User-Agent": [
86+
"Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
87+
]
88+
},
89+
"ResponseBody": "\"4a6fddd3-bdfc-482e-b7db-446cf9d729bc\"",
90+
"ResponseHeaders": {
91+
"Content-Length": [
92+
"38"
93+
],
94+
"Content-Type": [
95+
"application/json"
96+
],
97+
"Expires": [
98+
"-1"
99+
],
100+
"Pragma": [
101+
"no-cache"
102+
],
103+
"x-ms-request-id": [
104+
"e6efbb84-1593-4db6-b064-31838096cc99"
105+
],
106+
"x-ms-client-request-id": [
107+
"d208a9ee-2876-4dc5-98e9-ed753b5a9014",
108+
"d208a9ee-2876-4dc5-98e9-ed753b5a9014"
109+
],
110+
"Strict-Transport-Security": [
111+
"max-age=31536000; includeSubDomains"
112+
],
113+
"x-ms-ratelimit-remaining-subscription-writes": [
114+
"1194"
115+
],
116+
"x-ms-correlation-request-id": [
117+
"e6efbb84-1593-4db6-b064-31838096cc99"
118+
],
119+
"x-ms-routing-request-id": [
120+
"CENTRALUS:20150617T172639Z:e6efbb84-1593-4db6-b064-31838096cc99"
121+
],
122+
"Cache-Control": [
123+
"no-cache"
124+
],
125+
"Date": [
126+
"Wed, 17 Jun 2015 17:26:39 GMT"
127+
],
128+
"Server": [
129+
"Microsoft-IIS/8.0"
130+
],
131+
"X-Powered-By": [
132+
"ASP.NET"
133+
]
134+
},
135+
"StatusCode": 202
136+
}
137+
],
138+
"Names": {},
139+
"Variables": {
140+
"SubscriptionId": "f5303a0b-fae4-4cdb-b44d-0e4c032dde26"
141+
}
142+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
{
2+
"Entries": [
3+
{
4+
"RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backupseadev01/BackupVault/backuprn/containers?api-version=2014-09-01&dummy=%26FriendlyName%3Ddev01Testing",
5+
"EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3Vwc2VhZGV2MDEvQmFja3VwVmF1bHQvYmFja3Vwcm4vY29udGFpbmVycz9hcGktdmVyc2lvbj0yMDE0LTA5LTAxJmR1bW15PSUyNkZyaWVuZGx5TmFtZSUzRGRldjAxVGVzdGluZw==",
6+
"RequestMethod": "GET",
7+
"RequestBody": "",
8+
"RequestHeaders": {
9+
"Accept-Language": [
10+
"en-us"
11+
],
12+
"x-ms-version": [
13+
"2013-03-01"
14+
],
15+
"User-Agent": [
16+
"Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
17+
]
18+
},
19+
"ResponseBody": "{\r\n \"Objects\": [\r\n {\r\n \"FriendlyName\": \"dev01Testing\",\r\n \"SubscriptionId\": \"f5303a0b-fae4-4cdb-b44d-0e4c032dde26\",\r\n \"ContainerType\": \"IaasVMContainer\",\r\n \"ParentContainerName\": \"dev01Testing\",\r\n \"ParentContainerFriendlyName\": \"dev01Testing\",\r\n \"RegistrationStatus\": \"Registering\",\r\n \"HealthStatus\": \"Healthy\",\r\n \"PropertyBag\": null,\r\n \"InstanceId\": null,\r\n \"Name\": \"iaasvmcontainer;dev01testing;dev01testing\",\r\n \"OperationInProgress\": false\r\n },\r\n {\r\n \"FriendlyName\": \"dev01Testing\",\r\n \"SubscriptionId\": \"f5303a0b-fae4-4cdb-b44d-0e4c032dde26\",\r\n \"ContainerType\": \"IaasVMServiceContainer\",\r\n \"ParentContainerName\": null,\r\n \"ParentContainerFriendlyName\": null,\r\n \"RegistrationStatus\": \"NotRegistered\",\r\n \"HealthStatus\": \"Healthy\",\r\n \"PropertyBag\": \"\",\r\n \"InstanceId\": null,\r\n \"Name\": \"dev01testing\",\r\n \"OperationInProgress\": false\r\n }\r\n ],\r\n \"ResultCount\": 2,\r\n \"Skiptoken\": null\r\n}",
20+
"ResponseHeaders": {
21+
"Content-Length": [
22+
"764"
23+
],
24+
"Content-Type": [
25+
"application/json"
26+
],
27+
"Expires": [
28+
"-1"
29+
],
30+
"Pragma": [
31+
"no-cache"
32+
],
33+
"x-ms-request-id": [
34+
"de369fec-4df6-4813-8ddb-24bceddba94e"
35+
],
36+
"x-ms-client-request-id": [
37+
"341c6fb9-6b4c-4773-8450-32cf85173c91",
38+
"341c6fb9-6b4c-4773-8450-32cf85173c91"
39+
],
40+
"Strict-Transport-Security": [
41+
"max-age=31536000; includeSubDomains"
42+
],
43+
"x-ms-ratelimit-remaining-subscription-reads": [
44+
"14991"
45+
],
46+
"x-ms-correlation-request-id": [
47+
"de369fec-4df6-4813-8ddb-24bceddba94e"
48+
],
49+
"x-ms-routing-request-id": [
50+
"CENTRALUS:20150617T172721Z:de369fec-4df6-4813-8ddb-24bceddba94e"
51+
],
52+
"Cache-Control": [
53+
"no-cache"
54+
],
55+
"Date": [
56+
"Wed, 17 Jun 2015 17:27:21 GMT"
57+
],
58+
"Server": [
59+
"Microsoft-IIS/8.0"
60+
],
61+
"X-Powered-By": [
62+
"ASP.NET"
63+
]
64+
},
65+
"StatusCode": 200
66+
},
67+
{
68+
"RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backupseadev01/BackupVault/backuprn/containers?api-version=2014-09-01",
69+
"EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3Vwc2VhZGV2MDEvQmFja3VwVmF1bHQvYmFja3Vwcm4vY29udGFpbmVycz9hcGktdmVyc2lvbj0yMDE0LTA5LTAx",
70+
"RequestMethod": "DELETE",
71+
"RequestBody": "{\r\n \"ContainerUniqueName\": \"iaasvmcontainer;dev01testing;dev01testing\",\r\n \"ContainerType\": \"IaasVMContainer\"\r\n}",
72+
"RequestHeaders": {
73+
"Content-Type": [
74+
"application/json"
75+
],
76+
"Content-Length": [
77+
"113"
78+
],
79+
"Accept-Language": [
80+
"en-us"
81+
],
82+
"User-Agent": [
83+
"Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
84+
]
85+
},
86+
"ResponseBody": "\"8386018b-db83-4f50-b496-a4e4e1ad1824\"",
87+
"ResponseHeaders": {
88+
"Content-Length": [
89+
"38"
90+
],
91+
"Content-Type": [
92+
"application/json"
93+
],
94+
"Expires": [
95+
"-1"
96+
],
97+
"Pragma": [
98+
"no-cache"
99+
],
100+
"x-ms-request-id": [
101+
"9756b21f-b792-4b7a-b2ae-825c6625302c"
102+
],
103+
"x-ms-client-request-id": [
104+
"75d2fb2f-daf1-4c97-865f-2a2f6230ee34",
105+
"75d2fb2f-daf1-4c97-865f-2a2f6230ee34"
106+
],
107+
"Strict-Transport-Security": [
108+
"max-age=31536000; includeSubDomains"
109+
],
110+
"x-ms-ratelimit-remaining-subscription-writes": [
111+
"1193"
112+
],
113+
"x-ms-correlation-request-id": [
114+
"9756b21f-b792-4b7a-b2ae-825c6625302c"
115+
],
116+
"x-ms-routing-request-id": [
117+
"CENTRALUS:20150617T172722Z:9756b21f-b792-4b7a-b2ae-825c6625302c"
118+
],
119+
"Cache-Control": [
120+
"no-cache"
121+
],
122+
"Date": [
123+
"Wed, 17 Jun 2015 17:27:22 GMT"
124+
],
125+
"Server": [
126+
"Microsoft-IIS/8.0"
127+
],
128+
"X-Powered-By": [
129+
"ASP.NET"
130+
]
131+
},
132+
"StatusCode": 202
133+
}
134+
],
135+
"Names": {},
136+
"Variables": {
137+
"SubscriptionId": "f5303a0b-fae4-4cdb-b44d-0e4c032dde26"
138+
}
139+
}

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,6 @@
6565
<Reference Include="Microsoft.Azure.Common.NetFramework">
6666
<HintPath>..\..\..\packages\Microsoft.Azure.Common.2.1.0\lib\net45\Microsoft.Azure.Common.NetFramework.dll</HintPath>
6767
</Reference>
68-
<Reference Include="Microsoft.Azure.Management.BackupServicesManagment">
69-
<HintPath>..\..\..\..\..\azure-sdk-for-net\src\ResourceManagement\AzureBackup\BackupServicesManagment\bin\Net45-Debug\Microsoft.Azure.Management.BackupServicesManagment.dll</HintPath>
70-
</Reference>
7168
<Reference Include="Microsoft.Azure.ResourceManager">
7269
<HintPath>..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.0-preview\lib\net40\Microsoft.Azure.ResourceManager.dll</HintPath>
7370
</Reference>
@@ -175,6 +172,10 @@
175172
<Compile Include="Properties\AssemblyInfo.cs" />
176173
</ItemGroup>
177174
<ItemGroup>
175+
<ProjectReference Include="..\..\..\..\..\azure-sdk-for-net\src\ResourceManagement\AzureBackup\BackupServicesManagment\BackupServicesManagment.csproj">
176+
<Project>{38a6741c-77a3-42a8-a846-83373be57c7f}</Project>
177+
<Name>BackupServicesManagment</Name>
178+
</ProjectReference>
178179
<ProjectReference Include="..\..\..\Common\Commands.Common\Commands.Common.csproj">
179180
<Project>{5ee72c53-1720-4309-b54b-5fb79703195f}</Project>
180181
<Name>Commands.Common</Name>

0 commit comments

Comments
 (0)