diff --git a/src/Accounts/Accounts.Test/SessionRecords/Microsoft.Azure.Commands.Profile.Test.SubscriptionCmdletTests/AllParameterSetsSucceed.json b/src/Accounts/Accounts.Test/SessionRecords/Microsoft.Azure.Commands.Profile.Test.SubscriptionCmdletTests/AllParameterSetsSucceed.json index d091fc13d62c..81634002d462 100644 --- a/src/Accounts/Accounts.Test/SessionRecords/Microsoft.Azure.Commands.Profile.Test.SubscriptionCmdletTests/AllParameterSetsSucceed.json +++ b/src/Accounts/Accounts.Test/SessionRecords/Microsoft.Azure.Commands.Profile.Test.SubscriptionCmdletTests/AllParameterSetsSucceed.json @@ -7,16 +7,16 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "daceec20-565a-46cc-9fe2-7e5d4162b004" + "31e24fa1-afbf-4696-8694-8a9ca10e98b0" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.28928.01", + "FxVersion/4.6.29017.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.ResourceManager.Version2019.06.01.SubscriptionClient/1.3.18" + "Microsoft.Azure.Management.ResourceManager.Version2019.06.01.SubscriptionClient/1.3.21" ] }, "ResponseHeaders": { @@ -27,16 +27,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-tenant-reads": [ - "11981" + "11993" ], "x-ms-request-id": [ - "ad8802d8-b759-4735-80f4-ace03f2afcce" + "dd8a80b1-59b0-499e-9963-306c0a886d02" ], "x-ms-correlation-request-id": [ - "ad8802d8-b759-4735-80f4-ace03f2afcce" + "dd8a80b1-59b0-499e-9963-306c0a886d02" ], "x-ms-routing-request-id": [ - "KOREASOUTH:20200713T081617Z:ad8802d8-b759-4735-80f4-ace03f2afcce" + "KOREASOUTH:20200805T080557Z:dd8a80b1-59b0-499e-9963-306c0a886d02" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -45,7 +45,7 @@ "nosniff" ], "Date": [ - "Mon, 13 Jul 2020 08:16:16 GMT" + "Wed, 05 Aug 2020 08:05:56 GMT" ], "Content-Type": [ "application/json; charset=utf-8" @@ -67,16 +67,16 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "9bee2872-b872-4468-ba6a-dd5c89572fe2" + "bd24a913-1d0e-48a8-81cb-e91ee99f7dff" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.28928.01", + "FxVersion/4.6.29017.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.ResourceManager.Version2019.06.01.SubscriptionClient/1.3.18" + "Microsoft.Azure.Management.ResourceManager.Version2019.06.01.SubscriptionClient/1.3.21" ] }, "ResponseHeaders": { @@ -87,16 +87,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-tenant-reads": [ - "11979" + "11992" ], "x-ms-request-id": [ - "70c3b23e-2044-4ad0-90d5-f9c0d80fd716" + "1bd50695-bbe6-44d8-9379-0bdf0ec349bb" ], "x-ms-correlation-request-id": [ - "70c3b23e-2044-4ad0-90d5-f9c0d80fd716" + "1bd50695-bbe6-44d8-9379-0bdf0ec349bb" ], "x-ms-routing-request-id": [ - "KOREASOUTH:20200713T081619Z:70c3b23e-2044-4ad0-90d5-f9c0d80fd716" + "KOREASOUTH:20200805T080558Z:1bd50695-bbe6-44d8-9379-0bdf0ec349bb" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -105,7 +105,7 @@ "nosniff" ], "Date": [ - "Mon, 13 Jul 2020 08:16:19 GMT" + "Wed, 05 Aug 2020 08:05:58 GMT" ], "Content-Type": [ "application/json; charset=utf-8" @@ -127,16 +127,16 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "de30c43f-adb1-4a3b-83c1-97f6aef3ee6f" + "6da25f35-efa1-4540-a1d3-566e5c2f67c0" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.28928.01", + "FxVersion/4.6.29017.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.ResourceManager.Version2019.06.01.SubscriptionClient/1.3.18" + "Microsoft.Azure.Management.ResourceManager.Version2019.06.01.SubscriptionClient/1.3.21" ] }, "ResponseHeaders": { @@ -147,16 +147,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-tenant-reads": [ - "11984" + "11993" ], "x-ms-request-id": [ - "f83eed9c-62ac-4a48-832b-d66b19d5b710" + "89d9dac6-0193-44c3-b0df-99ef457ce1cf" ], "x-ms-correlation-request-id": [ - "f83eed9c-62ac-4a48-832b-d66b19d5b710" + "89d9dac6-0193-44c3-b0df-99ef457ce1cf" ], "x-ms-routing-request-id": [ - "KOREASOUTH:20200713T081621Z:f83eed9c-62ac-4a48-832b-d66b19d5b710" + "KOREASOUTH:20200805T080600Z:89d9dac6-0193-44c3-b0df-99ef457ce1cf" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -165,7 +165,7 @@ "nosniff" ], "Date": [ - "Mon, 13 Jul 2020 08:16:20 GMT" + "Wed, 05 Aug 2020 08:05:59 GMT" ], "Content-Type": [ "application/json; charset=utf-8" @@ -187,16 +187,16 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "3656bf74-fe1b-4b06-946c-d93fa738ca43" + "f996d7e6-8830-4118-aa2c-1e6866b2ddfe" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.28928.01", + "FxVersion/4.6.29017.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.ResourceManager.Version2019.06.01.SubscriptionClient/1.3.18" + "Microsoft.Azure.Management.ResourceManager.Version2019.06.01.SubscriptionClient/1.3.21" ] }, "ResponseHeaders": { @@ -207,16 +207,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-tenant-reads": [ - "11978" + "11992" ], "x-ms-request-id": [ - "8816fee9-edb9-4e62-9e36-a68edddf2d8b" + "04ee134e-3e9e-4b5b-b3fb-e8d8008c990b" ], "x-ms-correlation-request-id": [ - "8816fee9-edb9-4e62-9e36-a68edddf2d8b" + "04ee134e-3e9e-4b5b-b3fb-e8d8008c990b" ], "x-ms-routing-request-id": [ - "KOREASOUTH:20200713T081622Z:8816fee9-edb9-4e62-9e36-a68edddf2d8b" + "KOREASOUTH:20200805T080601Z:04ee134e-3e9e-4b5b-b3fb-e8d8008c990b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -225,7 +225,7 @@ "nosniff" ], "Date": [ - "Mon, 13 Jul 2020 08:16:22 GMT" + "Wed, 05 Aug 2020 08:06:01 GMT" ], "Content-Type": [ "application/json; charset=utf-8" @@ -247,16 +247,16 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "11287fac-8ce5-4e71-8903-51a22994f12c" + "b6316a8a-3786-4bf1-aee6-3f6637eb8fc0" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.28928.01", + "FxVersion/4.6.29017.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.ResourceManager.Version2019.06.01.SubscriptionClient/1.3.18" + "Microsoft.Azure.Management.ResourceManager.Version2019.06.01.SubscriptionClient/1.3.21" ] }, "ResponseHeaders": { @@ -267,16 +267,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-tenant-reads": [ - "11974" + "11988" ], "x-ms-request-id": [ - "8cd03bb4-e04b-43f5-a0a0-c47894d091ef" + "cf16c338-1ee1-4586-9bd6-1d706677b37b" ], "x-ms-correlation-request-id": [ - "8cd03bb4-e04b-43f5-a0a0-c47894d091ef" + "cf16c338-1ee1-4586-9bd6-1d706677b37b" ], "x-ms-routing-request-id": [ - "KOREASOUTH:20200713T081624Z:8cd03bb4-e04b-43f5-a0a0-c47894d091ef" + "KOREASOUTH:20200805T080602Z:cf16c338-1ee1-4586-9bd6-1d706677b37b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -285,7 +285,7 @@ "nosniff" ], "Date": [ - "Mon, 13 Jul 2020 08:16:23 GMT" + "Wed, 05 Aug 2020 08:06:02 GMT" ], "Content-Type": [ "application/json; charset=utf-8" @@ -307,16 +307,16 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "31b89dec-162c-44cc-80a5-7aedecf0f6c2" + "d4b9469a-0f72-4e3c-916d-9351435a5b8d" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.28928.01", + "FxVersion/4.6.29017.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.ResourceManager.Version2019.06.01.SubscriptionClient/1.3.18" + "Microsoft.Azure.Management.ResourceManager.Version2019.06.01.SubscriptionClient/1.3.21" ] }, "ResponseHeaders": { @@ -327,16 +327,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-tenant-reads": [ - "11978" + "11995" ], "x-ms-request-id": [ - "18688cc7-95a3-4975-8da3-9744de0fd7a6" + "37e486ce-bc3d-4b15-a9c2-6d432c2f6299" ], "x-ms-correlation-request-id": [ - "18688cc7-95a3-4975-8da3-9744de0fd7a6" + "37e486ce-bc3d-4b15-a9c2-6d432c2f6299" ], "x-ms-routing-request-id": [ - "KOREASOUTH:20200713T081628Z:18688cc7-95a3-4975-8da3-9744de0fd7a6" + "KOREASOUTH:20200805T080604Z:37e486ce-bc3d-4b15-a9c2-6d432c2f6299" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -345,127 +345,7 @@ "nosniff" ], "Date": [ - "Mon, 13 Jul 2020 08:16:28 GMT" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "140" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/tenants/72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"tenantCategory\": \"Home\"\r\n }\r\n ]\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/tenants?api-version=2019-06-01", - "EncodedRequestUri": "L3RlbmFudHM/YXBpLXZlcnNpb249MjAxOS0wNi0wMQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "a65c90b3-506f-44e8-86b8-77e189251f19" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.28928.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.ResourceManager.Version2019.06.01.SubscriptionClient/1.3.18" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-tenant-reads": [ - "11973" - ], - "x-ms-request-id": [ - "2e4213ed-439a-4b88-be37-82b2cf2f2fd1" - ], - "x-ms-correlation-request-id": [ - "2e4213ed-439a-4b88-be37-82b2cf2f2fd1" - ], - "x-ms-routing-request-id": [ - "KOREASOUTH:20200713T081629Z:2e4213ed-439a-4b88-be37-82b2cf2f2fd1" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Mon, 13 Jul 2020 08:16:28 GMT" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "140" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/tenants/72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"tenantCategory\": \"Home\"\r\n }\r\n ]\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/tenants?api-version=2019-06-01", - "EncodedRequestUri": "L3RlbmFudHM/YXBpLXZlcnNpb249MjAxOS0wNi0wMQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "8f1a77f0-5a91-45b9-8800-2dffec8526a1" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.28928.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.ResourceManager.Version2019.06.01.SubscriptionClient/1.3.18" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-tenant-reads": [ - "11977" - ], - "x-ms-request-id": [ - "ad9981ff-f411-48db-a687-9d983ab481b6" - ], - "x-ms-correlation-request-id": [ - "ad9981ff-f411-48db-a687-9d983ab481b6" - ], - "x-ms-routing-request-id": [ - "KOREASOUTH:20200713T081632Z:ad9981ff-f411-48db-a687-9d983ab481b6" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Mon, 13 Jul 2020 08:16:32 GMT" + "Wed, 05 Aug 2020 08:06:03 GMT" ], "Content-Type": [ "application/json; charset=utf-8" @@ -487,16 +367,16 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "7671fd84-4541-4869-b2b6-9086c5a8c93b" + "b8dff27e-b1a8-4a00-83e8-75d6aef3cd7c" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.28928.01", + "FxVersion/4.6.29017.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.ResourceManager.Version2019.06.01.SubscriptionClient/1.3.18" + "Microsoft.Azure.Management.ResourceManager.Version2019.06.01.SubscriptionClient/1.3.21" ] }, "ResponseHeaders": { @@ -507,16 +387,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-tenant-reads": [ - "11976" + "11996" ], "x-ms-request-id": [ - "a4cf4433-65a0-4885-9619-b0fca5dd39fd" + "deb15749-9f75-44a3-b915-ee385b64dcff" ], "x-ms-correlation-request-id": [ - "a4cf4433-65a0-4885-9619-b0fca5dd39fd" + "deb15749-9f75-44a3-b915-ee385b64dcff" ], "x-ms-routing-request-id": [ - "KOREASOUTH:20200713T081618Z:a4cf4433-65a0-4885-9619-b0fca5dd39fd" + "KOREASOUTH:20200805T080558Z:deb15749-9f75-44a3-b915-ee385b64dcff" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -525,7 +405,7 @@ "nosniff" ], "Date": [ - "Mon, 13 Jul 2020 08:16:17 GMT" + "Wed, 05 Aug 2020 08:05:57 GMT" ], "Content-Type": [ "application/json; charset=utf-8" @@ -534,10 +414,10 @@ "-1" ], "Content-Length": [ - "908" + "969" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/c9cbd920-c00c-427c-852b-8aaf38badaeb\",\r\n \"authorizationSource\": \"RoleBased\",\r\n \"managedByTenants\": [\r\n {\r\n \"tenantId\": \"2f4a9838-26b7-47ee-be60-ccc1fdec5953\"\r\n }\r\n ],\r\n \"subscriptionId\": \"c9cbd920-c00c-427c-852b-8aaf38badaeb\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"displayName\": \"Azure SDK Powershell Test\",\r\n \"state\": \"Enabled\",\r\n \"subscriptionPolicies\": {\r\n \"locationPlacementId\": \"Internal_2014-09-01\",\r\n \"quotaId\": \"Internal_2014-09-01\",\r\n \"spendingLimit\": \"Off\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/6b085460-5f21-477e-ba44-1035046e9101\",\r\n \"authorizationSource\": \"RoleBased\",\r\n \"managedByTenants\": [],\r\n \"subscriptionId\": \"6b085460-5f21-477e-ba44-1035046e9101\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"displayName\": \"Azure SDK Infrastructure\",\r\n \"state\": \"Enabled\",\r\n \"subscriptionPolicies\": {\r\n \"locationPlacementId\": \"Internal_2014-09-01\",\r\n \"quotaId\": \"Internal_2014-09-01\",\r\n \"spendingLimit\": \"Off\"\r\n }\r\n }\r\n ],\r\n \"count\": {\r\n \"type\": \"Total\",\r\n \"value\": 2\r\n }\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/c9cbd920-c00c-427c-852b-8aaf38badaeb\",\r\n \"authorizationSource\": \"RoleBased\",\r\n \"managedByTenants\": [\r\n {\r\n \"tenantId\": \"2f4a9838-26b7-47ee-be60-ccc1fdec5953\"\r\n }\r\n ],\r\n \"subscriptionId\": \"c9cbd920-c00c-427c-852b-8aaf38badaeb\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"displayName\": \"Azure SDK Powershell Test\",\r\n \"state\": \"Enabled\",\r\n \"subscriptionPolicies\": {\r\n \"locationPlacementId\": \"Internal_2014-09-01\",\r\n \"quotaId\": \"Internal_2014-09-01\",\r\n \"spendingLimit\": \"Off\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f\",\r\n \"authorizationSource\": \"RoleBased\",\r\n \"managedByTenants\": [\r\n {\r\n \"tenantId\": \"2f4a9838-26b7-47ee-be60-ccc1fdec5953\"\r\n }\r\n ],\r\n \"subscriptionId\": \"9e223dbe-3399-4e19-88eb-0975f02ac87f\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"displayName\": \"Azure SDK Powershell Test - Manual\",\r\n \"state\": \"Enabled\",\r\n \"subscriptionPolicies\": {\r\n \"locationPlacementId\": \"Internal_2014-09-01\",\r\n \"quotaId\": \"Internal_2014-09-01\",\r\n \"spendingLimit\": \"Off\"\r\n }\r\n }\r\n ],\r\n \"count\": {\r\n \"type\": \"Total\",\r\n \"value\": 2\r\n }\r\n}", "StatusCode": 200 }, { @@ -547,16 +427,16 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "b62246cd-d285-4f8b-9f39-08defe02633c" + "a61a19a3-fa69-4053-a430-9144b273100c" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.28928.01", + "FxVersion/4.6.29017.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.ResourceManager.Version2019.06.01.SubscriptionClient/1.3.18" + "Microsoft.Azure.Management.ResourceManager.Version2019.06.01.SubscriptionClient/1.3.21" ] }, "ResponseHeaders": { @@ -567,16 +447,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-tenant-reads": [ - "11980" + "11992" ], "x-ms-request-id": [ - "c48b1d16-ee81-4512-b791-60de0b3f3f21" + "c12f57ad-c31c-4445-ae3e-4e515981e01c" ], "x-ms-correlation-request-id": [ - "c48b1d16-ee81-4512-b791-60de0b3f3f21" + "c12f57ad-c31c-4445-ae3e-4e515981e01c" ], "x-ms-routing-request-id": [ - "KOREASOUTH:20200713T081620Z:c48b1d16-ee81-4512-b791-60de0b3f3f21" + "KOREASOUTH:20200805T080559Z:c12f57ad-c31c-4445-ae3e-4e515981e01c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -585,7 +465,7 @@ "nosniff" ], "Date": [ - "Mon, 13 Jul 2020 08:16:20 GMT" + "Wed, 05 Aug 2020 08:05:59 GMT" ], "Content-Type": [ "application/json; charset=utf-8" @@ -594,10 +474,10 @@ "-1" ], "Content-Length": [ - "908" + "969" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/c9cbd920-c00c-427c-852b-8aaf38badaeb\",\r\n \"authorizationSource\": \"RoleBased\",\r\n \"managedByTenants\": [\r\n {\r\n \"tenantId\": \"2f4a9838-26b7-47ee-be60-ccc1fdec5953\"\r\n }\r\n ],\r\n \"subscriptionId\": \"c9cbd920-c00c-427c-852b-8aaf38badaeb\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"displayName\": \"Azure SDK Powershell Test\",\r\n \"state\": \"Enabled\",\r\n \"subscriptionPolicies\": {\r\n \"locationPlacementId\": \"Internal_2014-09-01\",\r\n \"quotaId\": \"Internal_2014-09-01\",\r\n \"spendingLimit\": \"Off\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/6b085460-5f21-477e-ba44-1035046e9101\",\r\n \"authorizationSource\": \"RoleBased\",\r\n \"managedByTenants\": [],\r\n \"subscriptionId\": \"6b085460-5f21-477e-ba44-1035046e9101\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"displayName\": \"Azure SDK Infrastructure\",\r\n \"state\": \"Enabled\",\r\n \"subscriptionPolicies\": {\r\n \"locationPlacementId\": \"Internal_2014-09-01\",\r\n \"quotaId\": \"Internal_2014-09-01\",\r\n \"spendingLimit\": \"Off\"\r\n }\r\n }\r\n ],\r\n \"count\": {\r\n \"type\": \"Total\",\r\n \"value\": 2\r\n }\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/c9cbd920-c00c-427c-852b-8aaf38badaeb\",\r\n \"authorizationSource\": \"RoleBased\",\r\n \"managedByTenants\": [\r\n {\r\n \"tenantId\": \"2f4a9838-26b7-47ee-be60-ccc1fdec5953\"\r\n }\r\n ],\r\n \"subscriptionId\": \"c9cbd920-c00c-427c-852b-8aaf38badaeb\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"displayName\": \"Azure SDK Powershell Test\",\r\n \"state\": \"Enabled\",\r\n \"subscriptionPolicies\": {\r\n \"locationPlacementId\": \"Internal_2014-09-01\",\r\n \"quotaId\": \"Internal_2014-09-01\",\r\n \"spendingLimit\": \"Off\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f\",\r\n \"authorizationSource\": \"RoleBased\",\r\n \"managedByTenants\": [\r\n {\r\n \"tenantId\": \"2f4a9838-26b7-47ee-be60-ccc1fdec5953\"\r\n }\r\n ],\r\n \"subscriptionId\": \"9e223dbe-3399-4e19-88eb-0975f02ac87f\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"displayName\": \"Azure SDK Powershell Test - Manual\",\r\n \"state\": \"Enabled\",\r\n \"subscriptionPolicies\": {\r\n \"locationPlacementId\": \"Internal_2014-09-01\",\r\n \"quotaId\": \"Internal_2014-09-01\",\r\n \"spendingLimit\": \"Off\"\r\n }\r\n }\r\n ],\r\n \"count\": {\r\n \"type\": \"Total\",\r\n \"value\": 2\r\n }\r\n}", "StatusCode": 200 }, { @@ -607,16 +487,16 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "6dcc61c0-74c5-4841-bbeb-ed20fbe0560a" + "0adab9ed-29f2-4da2-a927-6e005088fdca" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.28928.01", + "FxVersion/4.6.29017.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.ResourceManager.Version2019.06.01.SubscriptionClient/1.3.18" + "Microsoft.Azure.Management.ResourceManager.Version2019.06.01.SubscriptionClient/1.3.21" ] }, "ResponseHeaders": { @@ -627,16 +507,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-tenant-reads": [ - "11975" + "11991" ], "x-ms-request-id": [ - "bc1d2377-e4cb-4210-b47c-7d1ed82fe298" + "7c1ad3ff-e113-482c-a571-ebc44f9c23d6" ], "x-ms-correlation-request-id": [ - "bc1d2377-e4cb-4210-b47c-7d1ed82fe298" + "7c1ad3ff-e113-482c-a571-ebc44f9c23d6" ], "x-ms-routing-request-id": [ - "KOREASOUTH:20200713T081622Z:bc1d2377-e4cb-4210-b47c-7d1ed82fe298" + "KOREASOUTH:20200805T080600Z:7c1ad3ff-e113-482c-a571-ebc44f9c23d6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -645,7 +525,7 @@ "nosniff" ], "Date": [ - "Mon, 13 Jul 2020 08:16:21 GMT" + "Wed, 05 Aug 2020 08:06:00 GMT" ], "Content-Type": [ "application/json; charset=utf-8" @@ -654,10 +534,10 @@ "-1" ], "Content-Length": [ - "908" + "969" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/c9cbd920-c00c-427c-852b-8aaf38badaeb\",\r\n \"authorizationSource\": \"RoleBased\",\r\n \"managedByTenants\": [\r\n {\r\n \"tenantId\": \"2f4a9838-26b7-47ee-be60-ccc1fdec5953\"\r\n }\r\n ],\r\n \"subscriptionId\": \"c9cbd920-c00c-427c-852b-8aaf38badaeb\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"displayName\": \"Azure SDK Powershell Test\",\r\n \"state\": \"Enabled\",\r\n \"subscriptionPolicies\": {\r\n \"locationPlacementId\": \"Internal_2014-09-01\",\r\n \"quotaId\": \"Internal_2014-09-01\",\r\n \"spendingLimit\": \"Off\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/6b085460-5f21-477e-ba44-1035046e9101\",\r\n \"authorizationSource\": \"RoleBased\",\r\n \"managedByTenants\": [],\r\n \"subscriptionId\": \"6b085460-5f21-477e-ba44-1035046e9101\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"displayName\": \"Azure SDK Infrastructure\",\r\n \"state\": \"Enabled\",\r\n \"subscriptionPolicies\": {\r\n \"locationPlacementId\": \"Internal_2014-09-01\",\r\n \"quotaId\": \"Internal_2014-09-01\",\r\n \"spendingLimit\": \"Off\"\r\n }\r\n }\r\n ],\r\n \"count\": {\r\n \"type\": \"Total\",\r\n \"value\": 2\r\n }\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/c9cbd920-c00c-427c-852b-8aaf38badaeb\",\r\n \"authorizationSource\": \"RoleBased\",\r\n \"managedByTenants\": [\r\n {\r\n \"tenantId\": \"2f4a9838-26b7-47ee-be60-ccc1fdec5953\"\r\n }\r\n ],\r\n \"subscriptionId\": \"c9cbd920-c00c-427c-852b-8aaf38badaeb\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"displayName\": \"Azure SDK Powershell Test\",\r\n \"state\": \"Enabled\",\r\n \"subscriptionPolicies\": {\r\n \"locationPlacementId\": \"Internal_2014-09-01\",\r\n \"quotaId\": \"Internal_2014-09-01\",\r\n \"spendingLimit\": \"Off\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f\",\r\n \"authorizationSource\": \"RoleBased\",\r\n \"managedByTenants\": [\r\n {\r\n \"tenantId\": \"2f4a9838-26b7-47ee-be60-ccc1fdec5953\"\r\n }\r\n ],\r\n \"subscriptionId\": \"9e223dbe-3399-4e19-88eb-0975f02ac87f\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"displayName\": \"Azure SDK Powershell Test - Manual\",\r\n \"state\": \"Enabled\",\r\n \"subscriptionPolicies\": {\r\n \"locationPlacementId\": \"Internal_2014-09-01\",\r\n \"quotaId\": \"Internal_2014-09-01\",\r\n \"spendingLimit\": \"Off\"\r\n }\r\n }\r\n ],\r\n \"count\": {\r\n \"type\": \"Total\",\r\n \"value\": 2\r\n }\r\n}", "StatusCode": 200 }, { @@ -667,16 +547,16 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "50826532-7656-4ab4-9807-ce8240f01a4a" + "1711c6f4-d732-4a2c-924d-22d39f431c8a" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.28928.01", + "FxVersion/4.6.29017.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.ResourceManager.Version2019.06.01.SubscriptionClient/1.3.18" + "Microsoft.Azure.Management.ResourceManager.Version2019.06.01.SubscriptionClient/1.3.21" ] }, "ResponseHeaders": { @@ -687,16 +567,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-tenant-reads": [ - "11979" + "11990" ], "x-ms-request-id": [ - "11a14ea5-5b8e-43a8-89d6-3480f1e911f1" + "eb553c2d-3848-4f57-8828-42230188b505" ], "x-ms-correlation-request-id": [ - "11a14ea5-5b8e-43a8-89d6-3480f1e911f1" + "eb553c2d-3848-4f57-8828-42230188b505" ], "x-ms-routing-request-id": [ - "KOREASOUTH:20200713T081623Z:11a14ea5-5b8e-43a8-89d6-3480f1e911f1" + "KOREASOUTH:20200805T080601Z:eb553c2d-3848-4f57-8828-42230188b505" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -705,7 +585,7 @@ "nosniff" ], "Date": [ - "Mon, 13 Jul 2020 08:16:23 GMT" + "Wed, 05 Aug 2020 08:06:01 GMT" ], "Content-Type": [ "application/json; charset=utf-8" @@ -714,10 +594,10 @@ "-1" ], "Content-Length": [ - "908" + "969" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/c9cbd920-c00c-427c-852b-8aaf38badaeb\",\r\n \"authorizationSource\": \"RoleBased\",\r\n \"managedByTenants\": [\r\n {\r\n \"tenantId\": \"2f4a9838-26b7-47ee-be60-ccc1fdec5953\"\r\n }\r\n ],\r\n \"subscriptionId\": \"c9cbd920-c00c-427c-852b-8aaf38badaeb\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"displayName\": \"Azure SDK Powershell Test\",\r\n \"state\": \"Enabled\",\r\n \"subscriptionPolicies\": {\r\n \"locationPlacementId\": \"Internal_2014-09-01\",\r\n \"quotaId\": \"Internal_2014-09-01\",\r\n \"spendingLimit\": \"Off\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/6b085460-5f21-477e-ba44-1035046e9101\",\r\n \"authorizationSource\": \"RoleBased\",\r\n \"managedByTenants\": [],\r\n \"subscriptionId\": \"6b085460-5f21-477e-ba44-1035046e9101\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"displayName\": \"Azure SDK Infrastructure\",\r\n \"state\": \"Enabled\",\r\n \"subscriptionPolicies\": {\r\n \"locationPlacementId\": \"Internal_2014-09-01\",\r\n \"quotaId\": \"Internal_2014-09-01\",\r\n \"spendingLimit\": \"Off\"\r\n }\r\n }\r\n ],\r\n \"count\": {\r\n \"type\": \"Total\",\r\n \"value\": 2\r\n }\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/c9cbd920-c00c-427c-852b-8aaf38badaeb\",\r\n \"authorizationSource\": \"RoleBased\",\r\n \"managedByTenants\": [\r\n {\r\n \"tenantId\": \"2f4a9838-26b7-47ee-be60-ccc1fdec5953\"\r\n }\r\n ],\r\n \"subscriptionId\": \"c9cbd920-c00c-427c-852b-8aaf38badaeb\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"displayName\": \"Azure SDK Powershell Test\",\r\n \"state\": \"Enabled\",\r\n \"subscriptionPolicies\": {\r\n \"locationPlacementId\": \"Internal_2014-09-01\",\r\n \"quotaId\": \"Internal_2014-09-01\",\r\n \"spendingLimit\": \"Off\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f\",\r\n \"authorizationSource\": \"RoleBased\",\r\n \"managedByTenants\": [\r\n {\r\n \"tenantId\": \"2f4a9838-26b7-47ee-be60-ccc1fdec5953\"\r\n }\r\n ],\r\n \"subscriptionId\": \"9e223dbe-3399-4e19-88eb-0975f02ac87f\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"displayName\": \"Azure SDK Powershell Test - Manual\",\r\n \"state\": \"Enabled\",\r\n \"subscriptionPolicies\": {\r\n \"locationPlacementId\": \"Internal_2014-09-01\",\r\n \"quotaId\": \"Internal_2014-09-01\",\r\n \"spendingLimit\": \"Off\"\r\n }\r\n }\r\n ],\r\n \"count\": {\r\n \"type\": \"Total\",\r\n \"value\": 2\r\n }\r\n}", "StatusCode": 200 }, { @@ -727,16 +607,16 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "84e71657-d2f9-42c7-8dc6-8b6f52b7826f" + "37de4f25-25f1-486f-9f27-664e299a8cd4" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.28928.01", + "FxVersion/4.6.29017.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.ResourceManager.Version2019.06.01.SubscriptionClient/1.3.18" + "Microsoft.Azure.Management.ResourceManager.Version2019.06.01.SubscriptionClient/1.3.21" ] }, "ResponseHeaders": { @@ -747,16 +627,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-tenant-reads": [ - "11977" + "11989" ], "x-ms-request-id": [ - "8f3ddbc0-c0fa-4075-8de7-3beb8e815771" + "aff11118-8b7f-4e30-adc5-ec33baa5f61c" ], "x-ms-correlation-request-id": [ - "8f3ddbc0-c0fa-4075-8de7-3beb8e815771" + "aff11118-8b7f-4e30-adc5-ec33baa5f61c" ], "x-ms-routing-request-id": [ - "KOREASOUTH:20200713T081625Z:8f3ddbc0-c0fa-4075-8de7-3beb8e815771" + "KOREASOUTH:20200805T080602Z:aff11118-8b7f-4e30-adc5-ec33baa5f61c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -765,7 +645,7 @@ "nosniff" ], "Date": [ - "Mon, 13 Jul 2020 08:16:25 GMT" + "Wed, 05 Aug 2020 08:06:02 GMT" ], "Content-Type": [ "application/json; charset=utf-8" @@ -774,10 +654,10 @@ "-1" ], "Content-Length": [ - "908" + "969" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/c9cbd920-c00c-427c-852b-8aaf38badaeb\",\r\n \"authorizationSource\": \"RoleBased\",\r\n \"managedByTenants\": [\r\n {\r\n \"tenantId\": \"2f4a9838-26b7-47ee-be60-ccc1fdec5953\"\r\n }\r\n ],\r\n \"subscriptionId\": \"c9cbd920-c00c-427c-852b-8aaf38badaeb\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"displayName\": \"Azure SDK Powershell Test\",\r\n \"state\": \"Enabled\",\r\n \"subscriptionPolicies\": {\r\n \"locationPlacementId\": \"Internal_2014-09-01\",\r\n \"quotaId\": \"Internal_2014-09-01\",\r\n \"spendingLimit\": \"Off\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/6b085460-5f21-477e-ba44-1035046e9101\",\r\n \"authorizationSource\": \"RoleBased\",\r\n \"managedByTenants\": [],\r\n \"subscriptionId\": \"6b085460-5f21-477e-ba44-1035046e9101\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"displayName\": \"Azure SDK Infrastructure\",\r\n \"state\": \"Enabled\",\r\n \"subscriptionPolicies\": {\r\n \"locationPlacementId\": \"Internal_2014-09-01\",\r\n \"quotaId\": \"Internal_2014-09-01\",\r\n \"spendingLimit\": \"Off\"\r\n }\r\n }\r\n ],\r\n \"count\": {\r\n \"type\": \"Total\",\r\n \"value\": 2\r\n }\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/c9cbd920-c00c-427c-852b-8aaf38badaeb\",\r\n \"authorizationSource\": \"RoleBased\",\r\n \"managedByTenants\": [\r\n {\r\n \"tenantId\": \"2f4a9838-26b7-47ee-be60-ccc1fdec5953\"\r\n }\r\n ],\r\n \"subscriptionId\": \"c9cbd920-c00c-427c-852b-8aaf38badaeb\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"displayName\": \"Azure SDK Powershell Test\",\r\n \"state\": \"Enabled\",\r\n \"subscriptionPolicies\": {\r\n \"locationPlacementId\": \"Internal_2014-09-01\",\r\n \"quotaId\": \"Internal_2014-09-01\",\r\n \"spendingLimit\": \"Off\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f\",\r\n \"authorizationSource\": \"RoleBased\",\r\n \"managedByTenants\": [\r\n {\r\n \"tenantId\": \"2f4a9838-26b7-47ee-be60-ccc1fdec5953\"\r\n }\r\n ],\r\n \"subscriptionId\": \"9e223dbe-3399-4e19-88eb-0975f02ac87f\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"displayName\": \"Azure SDK Powershell Test - Manual\",\r\n \"state\": \"Enabled\",\r\n \"subscriptionPolicies\": {\r\n \"locationPlacementId\": \"Internal_2014-09-01\",\r\n \"quotaId\": \"Internal_2014-09-01\",\r\n \"spendingLimit\": \"Off\"\r\n }\r\n }\r\n ],\r\n \"count\": {\r\n \"type\": \"Total\",\r\n \"value\": 2\r\n }\r\n}", "StatusCode": 200 }, { @@ -787,16 +667,16 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "8fca3c84-2b56-4271-a0d3-3b28fce5f2ae" + "103a7721-21a2-4978-9394-aa86efe8eeaa" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.28928.01", + "FxVersion/4.6.29017.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.ResourceManager.Version2019.06.01.SubscriptionClient/1.3.18" + "Microsoft.Azure.Management.ResourceManager.Version2019.06.01.SubscriptionClient/1.3.21" ] }, "ResponseHeaders": { @@ -807,16 +687,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-tenant-reads": [ - "11983" + "11991" ], "x-ms-request-id": [ - "983d2377-dcd6-4329-93ab-2c130917f20a" + "7a0ce1b2-3d09-403c-976c-dc432649a2b8" ], "x-ms-correlation-request-id": [ - "983d2377-dcd6-4329-93ab-2c130917f20a" + "7a0ce1b2-3d09-403c-976c-dc432649a2b8" ], "x-ms-routing-request-id": [ - "KOREASOUTH:20200713T081629Z:983d2377-dcd6-4329-93ab-2c130917f20a" + "KOREASOUTH:20200805T080603Z:7a0ce1b2-3d09-403c-976c-dc432649a2b8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -825,7 +705,7 @@ "nosniff" ], "Date": [ - "Mon, 13 Jul 2020 08:16:29 GMT" + "Wed, 05 Aug 2020 08:06:03 GMT" ], "Content-Type": [ "application/json; charset=utf-8" @@ -834,10 +714,10 @@ "-1" ], "Content-Length": [ - "908" + "969" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/c9cbd920-c00c-427c-852b-8aaf38badaeb\",\r\n \"authorizationSource\": \"RoleBased\",\r\n \"managedByTenants\": [\r\n {\r\n \"tenantId\": \"2f4a9838-26b7-47ee-be60-ccc1fdec5953\"\r\n }\r\n ],\r\n \"subscriptionId\": \"c9cbd920-c00c-427c-852b-8aaf38badaeb\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"displayName\": \"Azure SDK Powershell Test\",\r\n \"state\": \"Enabled\",\r\n \"subscriptionPolicies\": {\r\n \"locationPlacementId\": \"Internal_2014-09-01\",\r\n \"quotaId\": \"Internal_2014-09-01\",\r\n \"spendingLimit\": \"Off\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/6b085460-5f21-477e-ba44-1035046e9101\",\r\n \"authorizationSource\": \"RoleBased\",\r\n \"managedByTenants\": [],\r\n \"subscriptionId\": \"6b085460-5f21-477e-ba44-1035046e9101\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"displayName\": \"Azure SDK Infrastructure\",\r\n \"state\": \"Enabled\",\r\n \"subscriptionPolicies\": {\r\n \"locationPlacementId\": \"Internal_2014-09-01\",\r\n \"quotaId\": \"Internal_2014-09-01\",\r\n \"spendingLimit\": \"Off\"\r\n }\r\n }\r\n ],\r\n \"count\": {\r\n \"type\": \"Total\",\r\n \"value\": 2\r\n }\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/c9cbd920-c00c-427c-852b-8aaf38badaeb\",\r\n \"authorizationSource\": \"RoleBased\",\r\n \"managedByTenants\": [\r\n {\r\n \"tenantId\": \"2f4a9838-26b7-47ee-be60-ccc1fdec5953\"\r\n }\r\n ],\r\n \"subscriptionId\": \"c9cbd920-c00c-427c-852b-8aaf38badaeb\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"displayName\": \"Azure SDK Powershell Test\",\r\n \"state\": \"Enabled\",\r\n \"subscriptionPolicies\": {\r\n \"locationPlacementId\": \"Internal_2014-09-01\",\r\n \"quotaId\": \"Internal_2014-09-01\",\r\n \"spendingLimit\": \"Off\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f\",\r\n \"authorizationSource\": \"RoleBased\",\r\n \"managedByTenants\": [\r\n {\r\n \"tenantId\": \"2f4a9838-26b7-47ee-be60-ccc1fdec5953\"\r\n }\r\n ],\r\n \"subscriptionId\": \"9e223dbe-3399-4e19-88eb-0975f02ac87f\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"displayName\": \"Azure SDK Powershell Test - Manual\",\r\n \"state\": \"Enabled\",\r\n \"subscriptionPolicies\": {\r\n \"locationPlacementId\": \"Internal_2014-09-01\",\r\n \"quotaId\": \"Internal_2014-09-01\",\r\n \"spendingLimit\": \"Off\"\r\n }\r\n }\r\n ],\r\n \"count\": {\r\n \"type\": \"Total\",\r\n \"value\": 2\r\n }\r\n}", "StatusCode": 200 }, { @@ -847,16 +727,16 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "fee2ead6-681a-4e89-9ab9-de5fa0af8c96" + "18269f91-783f-4192-804e-2428ada73edf" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.28928.01", + "FxVersion/4.6.29017.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.ResourceManager.Version2019.06.01.SubscriptionClient/1.3.18" + "Microsoft.Azure.Management.ResourceManager.Version2019.06.01.SubscriptionClient/1.3.21" ] }, "ResponseHeaders": { @@ -867,16 +747,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-tenant-reads": [ - "11976" + "11990" ], "x-ms-request-id": [ - "28fe5b04-174e-4a00-b79a-bc690097a89f" + "be8beedf-0be1-4188-93f0-78df0d382b87" ], "x-ms-correlation-request-id": [ - "28fe5b04-174e-4a00-b79a-bc690097a89f" + "be8beedf-0be1-4188-93f0-78df0d382b87" ], "x-ms-routing-request-id": [ - "KOREASOUTH:20200713T081630Z:28fe5b04-174e-4a00-b79a-bc690097a89f" + "KOREASOUTH:20200805T080604Z:be8beedf-0be1-4188-93f0-78df0d382b87" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -885,7 +765,7 @@ "nosniff" ], "Date": [ - "Mon, 13 Jul 2020 08:16:30 GMT" + "Wed, 05 Aug 2020 08:06:04 GMT" ], "Content-Type": [ "application/json; charset=utf-8" @@ -894,10 +774,10 @@ "-1" ], "Content-Length": [ - "908" + "969" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/c9cbd920-c00c-427c-852b-8aaf38badaeb\",\r\n \"authorizationSource\": \"RoleBased\",\r\n \"managedByTenants\": [\r\n {\r\n \"tenantId\": \"2f4a9838-26b7-47ee-be60-ccc1fdec5953\"\r\n }\r\n ],\r\n \"subscriptionId\": \"c9cbd920-c00c-427c-852b-8aaf38badaeb\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"displayName\": \"Azure SDK Powershell Test\",\r\n \"state\": \"Enabled\",\r\n \"subscriptionPolicies\": {\r\n \"locationPlacementId\": \"Internal_2014-09-01\",\r\n \"quotaId\": \"Internal_2014-09-01\",\r\n \"spendingLimit\": \"Off\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/6b085460-5f21-477e-ba44-1035046e9101\",\r\n \"authorizationSource\": \"RoleBased\",\r\n \"managedByTenants\": [],\r\n \"subscriptionId\": \"6b085460-5f21-477e-ba44-1035046e9101\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"displayName\": \"Azure SDK Infrastructure\",\r\n \"state\": \"Enabled\",\r\n \"subscriptionPolicies\": {\r\n \"locationPlacementId\": \"Internal_2014-09-01\",\r\n \"quotaId\": \"Internal_2014-09-01\",\r\n \"spendingLimit\": \"Off\"\r\n }\r\n }\r\n ],\r\n \"count\": {\r\n \"type\": \"Total\",\r\n \"value\": 2\r\n }\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/c9cbd920-c00c-427c-852b-8aaf38badaeb\",\r\n \"authorizationSource\": \"RoleBased\",\r\n \"managedByTenants\": [\r\n {\r\n \"tenantId\": \"2f4a9838-26b7-47ee-be60-ccc1fdec5953\"\r\n }\r\n ],\r\n \"subscriptionId\": \"c9cbd920-c00c-427c-852b-8aaf38badaeb\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"displayName\": \"Azure SDK Powershell Test\",\r\n \"state\": \"Enabled\",\r\n \"subscriptionPolicies\": {\r\n \"locationPlacementId\": \"Internal_2014-09-01\",\r\n \"quotaId\": \"Internal_2014-09-01\",\r\n \"spendingLimit\": \"Off\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f\",\r\n \"authorizationSource\": \"RoleBased\",\r\n \"managedByTenants\": [\r\n {\r\n \"tenantId\": \"2f4a9838-26b7-47ee-be60-ccc1fdec5953\"\r\n }\r\n ],\r\n \"subscriptionId\": \"9e223dbe-3399-4e19-88eb-0975f02ac87f\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"displayName\": \"Azure SDK Powershell Test - Manual\",\r\n \"state\": \"Enabled\",\r\n \"subscriptionPolicies\": {\r\n \"locationPlacementId\": \"Internal_2014-09-01\",\r\n \"quotaId\": \"Internal_2014-09-01\",\r\n \"spendingLimit\": \"Off\"\r\n }\r\n }\r\n ],\r\n \"count\": {\r\n \"type\": \"Total\",\r\n \"value\": 2\r\n }\r\n}", "StatusCode": 200 }, { @@ -907,16 +787,16 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "976beaf2-bbc4-4e29-9acd-533d0f5c33f7" + "d8781d49-57f8-42e3-a03d-c80b301cf167" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.28928.01", + "FxVersion/4.6.29017.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.ResourceManager.Version2019.06.01.SubscriptionClient/1.3.18" + "Microsoft.Azure.Management.ResourceManager.Version2019.06.01.SubscriptionClient/1.3.21" ] }, "ResponseHeaders": { @@ -927,16 +807,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-tenant-reads": [ - "11972" + "11994" ], "x-ms-request-id": [ - "d688d9d2-b6ba-47ab-a94e-dc1ecaeedbb1" + "ba1a7e6f-cd18-4e2d-9b82-32a319ed0854" ], "x-ms-correlation-request-id": [ - "d688d9d2-b6ba-47ab-a94e-dc1ecaeedbb1" + "ba1a7e6f-cd18-4e2d-9b82-32a319ed0854" ], "x-ms-routing-request-id": [ - "KOREASOUTH:20200713T081642Z:d688d9d2-b6ba-47ab-a94e-dc1ecaeedbb1" + "KOREASOUTH:20200805T080605Z:ba1a7e6f-cd18-4e2d-9b82-32a319ed0854" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -945,7 +825,7 @@ "nosniff" ], "Date": [ - "Mon, 13 Jul 2020 08:16:41 GMT" + "Wed, 05 Aug 2020 08:06:05 GMT" ], "Content-Type": [ "application/json; charset=utf-8" @@ -954,15 +834,15 @@ "-1" ], "Content-Length": [ - "908" + "969" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/c9cbd920-c00c-427c-852b-8aaf38badaeb\",\r\n \"authorizationSource\": \"RoleBased\",\r\n \"managedByTenants\": [\r\n {\r\n \"tenantId\": \"2f4a9838-26b7-47ee-be60-ccc1fdec5953\"\r\n }\r\n ],\r\n \"subscriptionId\": \"c9cbd920-c00c-427c-852b-8aaf38badaeb\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"displayName\": \"Azure SDK Powershell Test\",\r\n \"state\": \"Enabled\",\r\n \"subscriptionPolicies\": {\r\n \"locationPlacementId\": \"Internal_2014-09-01\",\r\n \"quotaId\": \"Internal_2014-09-01\",\r\n \"spendingLimit\": \"Off\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/6b085460-5f21-477e-ba44-1035046e9101\",\r\n \"authorizationSource\": \"RoleBased\",\r\n \"managedByTenants\": [],\r\n \"subscriptionId\": \"6b085460-5f21-477e-ba44-1035046e9101\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"displayName\": \"Azure SDK Infrastructure\",\r\n \"state\": \"Enabled\",\r\n \"subscriptionPolicies\": {\r\n \"locationPlacementId\": \"Internal_2014-09-01\",\r\n \"quotaId\": \"Internal_2014-09-01\",\r\n \"spendingLimit\": \"Off\"\r\n }\r\n }\r\n ],\r\n \"count\": {\r\n \"type\": \"Total\",\r\n \"value\": 2\r\n }\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/c9cbd920-c00c-427c-852b-8aaf38badaeb\",\r\n \"authorizationSource\": \"RoleBased\",\r\n \"managedByTenants\": [\r\n {\r\n \"tenantId\": \"2f4a9838-26b7-47ee-be60-ccc1fdec5953\"\r\n }\r\n ],\r\n \"subscriptionId\": \"c9cbd920-c00c-427c-852b-8aaf38badaeb\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"displayName\": \"Azure SDK Powershell Test\",\r\n \"state\": \"Enabled\",\r\n \"subscriptionPolicies\": {\r\n \"locationPlacementId\": \"Internal_2014-09-01\",\r\n \"quotaId\": \"Internal_2014-09-01\",\r\n \"spendingLimit\": \"Off\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f\",\r\n \"authorizationSource\": \"RoleBased\",\r\n \"managedByTenants\": [\r\n {\r\n \"tenantId\": \"2f4a9838-26b7-47ee-be60-ccc1fdec5953\"\r\n }\r\n ],\r\n \"subscriptionId\": \"9e223dbe-3399-4e19-88eb-0975f02ac87f\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"displayName\": \"Azure SDK Powershell Test - Manual\",\r\n \"state\": \"Enabled\",\r\n \"subscriptionPolicies\": {\r\n \"locationPlacementId\": \"Internal_2014-09-01\",\r\n \"quotaId\": \"Internal_2014-09-01\",\r\n \"spendingLimit\": \"Off\"\r\n }\r\n }\r\n ],\r\n \"count\": {\r\n \"type\": \"Total\",\r\n \"value\": 2\r\n }\r\n}", "StatusCode": 200 } ], "Names": {}, "Variables": { - "SubscriptionId": "6b085460-5f21-477e-ba44-1035046e9101" + "SubscriptionId": "c9cbd920-c00c-427c-852b-8aaf38badaeb" } } \ No newline at end of file diff --git a/src/Accounts/Accounts.Test/SubscriptionCmdletTests.ps1 b/src/Accounts/Accounts.Test/SubscriptionCmdletTests.ps1 index 1558a5910d6f..a087b318d01a 100644 --- a/src/Accounts/Accounts.Test/SubscriptionCmdletTests.ps1 +++ b/src/Accounts/Accounts.Test/SubscriptionCmdletTests.ps1 @@ -45,6 +45,7 @@ function Test-GetSubscriptionsEndToEnd Assert-True {$mostSubscriptions.Count -gt 0} $tenantSubscriptions = Get-AzSubscription -Tenant $tenant Assert-True {$tenantSubscriptions.Count -gt 0} + Assert-NotNull $subscription.SubscriptionPolicies } <# diff --git a/src/Accounts/Accounts.Test/UnitTest/PSAzureSubscriptionTest.cs b/src/Accounts/Accounts.Test/UnitTest/PSAzureSubscriptionTest.cs new file mode 100644 index 000000000000..fd381ddae40f --- /dev/null +++ b/src/Accounts/Accounts.Test/UnitTest/PSAzureSubscriptionTest.cs @@ -0,0 +1,53 @@ +using Microsoft.Azure.Commands.Common.Authentication.Abstractions; +using Microsoft.Azure.Commands.Profile.Models; +using Microsoft.Azure.Internal.Subscriptions.Models; +using Microsoft.WindowsAzure.Commands.ScenarioTest; +using Newtonsoft.Json; +using System; +using Xunit; + +namespace Microsoft.Azure.Commands.Profile.Test.UnitTest +{ + public class PSAzureSubscriptionTest + { + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void NewPSAzureSubscription() + { + string locationPlacementId = "Internal_2014-09-01"; + string quotaId= "Internal_2014-09-01"; + SpendingLimit spendingLimit = SpendingLimit.Off; + var subscriptionPolicies = new SubscriptionPolicies(locationPlacementId, quotaId, spendingLimit); + + // test PSAzureSubscriptionPolicies' constructors + var psAzureSubscriptionPolicies = new PSAzureSubscriptionPolicy(subscriptionPolicies); + Assert.Equal(psAzureSubscriptionPolicies.LocationPlacementId, locationPlacementId); + Assert.Equal(psAzureSubscriptionPolicies.QuotaId, quotaId); + Assert.Equal(psAzureSubscriptionPolicies.SpendingLimit, spendingLimit.ToString()); + + var psAzureSubscriptionPolicies2 = new PSAzureSubscriptionPolicy(JsonConvert.SerializeObject(subscriptionPolicies)); + Assert.Equal(psAzureSubscriptionPolicies2.LocationPlacementId, locationPlacementId); + Assert.Equal(psAzureSubscriptionPolicies2.QuotaId, quotaId); + Assert.Equal(psAzureSubscriptionPolicies2.SpendingLimit, spendingLimit.ToString()); + + var sub = new AzureSubscription + { + Id = new Guid().ToString(), + Name = "Contoso Test Subscription", + State = "Enabled", + }; + sub.SetAccount("me@contoso.com"); + sub.SetEnvironment("testCloud"); + sub.SetTenant(new Guid("3c0ff8a7-e8bb-40e8-ae66-271343379af6").ToString()); + sub.SetSubscriptionPolicies(JsonConvert.SerializeObject(subscriptionPolicies)); + + // test PSAzureSubscription's constructor + var psAzureSubscription = new PSAzureSubscription(sub); + Assert.NotNull(psAzureSubscription.SubscriptionPolicies); + Assert.Equal(psAzureSubscription.SubscriptionPolicies.LocationPlacementId, locationPlacementId); + Assert.Equal(psAzureSubscription.SubscriptionPolicies.QuotaId, quotaId); + Assert.Equal(psAzureSubscription.SubscriptionPolicies.SpendingLimit, spendingLimit.ToString()); + } + } +} diff --git a/src/Accounts/Accounts/Accounts.format.ps1xml b/src/Accounts/Accounts/Accounts.format.ps1xml index c57c01ea7e95..60a05a222f74 100644 --- a/src/Accounts/Accounts/Accounts.format.ps1xml +++ b/src/Accounts/Accounts/Accounts.format.ps1xml @@ -171,5 +171,45 @@ + + Microsoft.Azure.Commands.Profile.Models.PSAzureSubscriptionPolicy + + Microsoft.Azure.Commands.Profile.Models.PSAzureSubscriptionPolicy + + + + + Left + + + + Left + + + + Left + + + + + + + + Left + locationPlacementId + + + Left + QuotaId + + + Left + SpendingLimit + + + + + + diff --git a/src/Accounts/Accounts/ChangeLog.md b/src/Accounts/Accounts/ChangeLog.md index 4a001ee885ff..04cc065ff0df 100644 --- a/src/Accounts/Accounts/ChangeLog.md +++ b/src/Accounts/Accounts/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Exposed SubscriptionPolicies in `Get-AzSubscription` [#12551] ## Version 1.9.2 * Updated `Connect-AzAccount` to accept parameter `MaxContextPopulation` [#9865] diff --git a/src/Accounts/Authentication.ResourceManager/Models/PSAzureSubscription.cs b/src/Accounts/Authentication.ResourceManager/Models/PSAzureSubscription.cs index 4ac28ac933c6..15112885f7a3 100644 --- a/src/Accounts/Authentication.ResourceManager/Models/PSAzureSubscription.cs +++ b/src/Accounts/Authentication.ResourceManager/Models/PSAzureSubscription.cs @@ -152,6 +152,19 @@ public string CurrentStorageAccountName } } + private PSAzureSubscriptionPolicy _subscriptionPolicies; + + public PSAzureSubscriptionPolicy SubscriptionPolicies { + get + { + if (this._subscriptionPolicies == null) + { + this._subscriptionPolicies= new PSAzureSubscriptionPolicy(this.GetSubscriptionPolicies()); + } + return this._subscriptionPolicies; + } + } + public IDictionary ExtendedProperties { get; } = new Dictionary(StringComparer.OrdinalIgnoreCase); public string CurrentStorageAccount diff --git a/src/Accounts/Authentication.ResourceManager/Models/PSAzureSubscriptionPolicy.cs b/src/Accounts/Authentication.ResourceManager/Models/PSAzureSubscriptionPolicy.cs new file mode 100644 index 000000000000..3a40abdd7a8a --- /dev/null +++ b/src/Accounts/Authentication.ResourceManager/Models/PSAzureSubscriptionPolicy.cs @@ -0,0 +1,49 @@ +using Newtonsoft.Json; +using Microsoft.Azure.Internal.Subscriptions.Models; + +namespace Microsoft.Azure.Commands.Profile.Models +{ + public class PSAzureSubscriptionPolicy + { + /// + /// Default constructor + /// + public PSAzureSubscriptionPolicy() + { + + } + + /// + /// object constructor + /// + /// Json string to convert + public PSAzureSubscriptionPolicy(SubscriptionPolicies subscriptionPolicies) + { + if (subscriptionPolicies != null) + { + this.LocationPlacementId = subscriptionPolicies.LocationPlacementId; + this.QuotaId = subscriptionPolicies.QuotaId; + this.SpendingLimit = subscriptionPolicies.SpendingLimit.ToString(); + } + } + + /// + /// string constructor + /// + /// Json string to convert + public PSAzureSubscriptionPolicy(string azureSubscriptionPolicies) : this(string.IsNullOrEmpty(azureSubscriptionPolicies)?null:JsonConvert.DeserializeObject(azureSubscriptionPolicies)) { } + + public string LocationPlacementId { get; private set; } + + public string QuotaId { get; private set; } + + public string SpendingLimit { get; private set; } + + public override string ToString() + { + return JsonConvert.SerializeObject(this, Formatting.Indented, + new JsonSerializerSettings() { NullValueHandling = NullValueHandling.Ignore }); + } + + } +} \ No newline at end of file diff --git a/tools/Common.Netcore.Dependencies.targets b/tools/Common.Netcore.Dependencies.targets index d4286cbd90f9..c43418ec61df 100644 --- a/tools/Common.Netcore.Dependencies.targets +++ b/tools/Common.Netcore.Dependencies.targets @@ -3,21 +3,21 @@ - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + @@ -32,7 +32,7 @@ - $(NugetPackageRoot)\microsoft.azure.powershell.storage\1.3.20-preview\tools\ + $(NugetPackageRoot)\microsoft.azure.powershell.storage\1.3.21-preview\tools\