diff --git a/src/Subscription/Subscription.Test/ScenarioTests/SubscriptionTests.cs b/src/Subscription/Subscription.Test/ScenarioTests/SubscriptionTests.cs index eb9c2f5ce5fd..29a2daa973b9 100644 --- a/src/Subscription/Subscription.Test/ScenarioTests/SubscriptionTests.cs +++ b/src/Subscription/Subscription.Test/ScenarioTests/SubscriptionTests.cs @@ -41,5 +41,19 @@ public void TestNewSubscription() { TestController.NewInstance.RunPowerShellTest(_logger, "Test-NewSubscription"); } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestUpdateRenameSubscription() + { + TestController.NewInstance.RunPowerShellTest(_logger, "Test-UpdateRenameSubscription"); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestUpdateCancelSubscription() + { + TestController.NewInstance.RunPowerShellTest(_logger, "Test-UpdateCancelSubscription"); + } } } diff --git a/src/Subscription/Subscription.Test/ScenarioTests/SubscriptionTests.ps1 b/src/Subscription/Subscription.Test/ScenarioTests/SubscriptionTests.ps1 index cd2c4e604c31..2ca1936b9eb5 100644 --- a/src/Subscription/Subscription.Test/ScenarioTests/SubscriptionTests.ps1 +++ b/src/Subscription/Subscription.Test/ScenarioTests/SubscriptionTests.ps1 @@ -19,7 +19,7 @@ Create subscription function Test-NewSubscription { # $accounts = Get-AzEnrollmentAccount - $accounts = @(@{ ObjectId = "cdf813b6-bdc2-4df5-b150-00ccfd7580e2" }) + $accounts = @(@{ ObjectId = "455fd0a7-b04e-4a92-9e1b-d0650c8ba276" }) # Verify the caller has at least one enrollment account. Assert-True { $accounts.Count -gt 0 } @@ -31,3 +31,21 @@ function Test-NewSubscription Assert-AreEqual $myNewSubName $newSub.Name Assert-NotNull $newSub.SubscriptionId } + +function Test-UpdateRenameSubscription +{ + $subId = "21cba39d-cbbc-487f-9749-43c5c960f269" + + $updateSub = Update-AzSubscription -SubscriptionId $subId -Action "Rename" -Name "RenameFromPowershell" + + Assert-NotNull updateSub.SubscriptionId +} + +function Test-UpdateCancelSubscription +{ + $subId = "21cba39d-cbbc-487f-9749-43c5c960f269" + + $updateSub = Update-AzSubscription -SubscriptionId $subId -Action "Cancel" + + Assert-NotNull updateSub.SubscriptionId +} diff --git a/src/Subscription/Subscription.Test/SessionRecords/Subscription.Test.ScenarioTests.SubscriptionTests/TestNewSubscription.json b/src/Subscription/Subscription.Test/SessionRecords/Subscription.Test.ScenarioTests.SubscriptionTests/TestNewSubscription.json index 4d1705d5b7af..99d679ffe71e 100644 --- a/src/Subscription/Subscription.Test/SessionRecords/Subscription.Test.ScenarioTests.SubscriptionTests/TestNewSubscription.json +++ b/src/Subscription/Subscription.Test/SessionRecords/Subscription.Test.ScenarioTests.SubscriptionTests/TestNewSubscription.json @@ -1,2472 +1,243 @@ { "Entries": [ { - "RequestUri": "/providers/Microsoft.Billing/enrollmentAccounts/cdf813b6-bdc2-4df5-b150-00ccfd7580e2/providers/Microsoft.Subscription/createSubscription?api-version=2018-03-01-preview", - "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuQmlsbGluZy9lbnJvbGxtZW50QWNjb3VudHMvY2RmODEzYjYtYmRjMi00ZGY1LWIxNTAtMDBjY2ZkNzU4MGUyL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3Vic2NyaXB0aW9uL2NyZWF0ZVN1YnNjcmlwdGlvbj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/providers/Microsoft.Billing/enrollmentAccounts/455fd0a7-b04e-4a92-9e1b-d0650c8ba276/providers/Microsoft.Subscription/createSubscription?api-version=2019-10-01-preview", + "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuQmlsbGluZy9lbnJvbGxtZW50QWNjb3VudHMvNDU1ZmQwYTctYjA0ZS00YTkyLTllMWItZDA2NTBjOGJhMjc2L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3Vic2NyaXB0aW9uL2NyZWF0ZVN1YnNjcmlwdGlvbj9hcGktdmVyc2lvbj0yMDE5LTEwLTAxLXByZXZpZXc=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"displayName\": \"ps2774\",\r\n \"owners\": [],\r\n \"offerType\": \"MS-AZR-0017P\"\r\n}", + "RequestBody": "{\r\n \"displayName\": \"ps3132\",\r\n \"owners\": [],\r\n \"offerType\": \"MS-AZR-0017P\"\r\n}", "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "80" - ], "x-ms-client-request-id": [ - "a86b07a0-b562-478f-9ad8-3d33afbdf862" + "3c3a8825-cfb3-40b5-9b5c-27080125a78d" ], - "accept-language": [ + "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.7.2633.0", - "OSName/Windows10Enterprise", - "OSVersion/6.3.16299", - "Microsoft.Azure.Management.Subscription.SubscriptionClient/1.1.0.0" - ] - }, - "ResponseBody": "{}", - "ResponseHeaders": { - "Content-Length": [ - "2" + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Subscription.SubscriptionClient/1.1.4.0" ], "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ - "-1" + "Content-Length": [ + "80" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" ], "Pragma": [ "no-cache" ], - "Retry-After": [ - "10" - ], - "api-supported-versions": [ - "2017-11-01-preview, 2018-03-01-preview" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-tenant-writes": [ - "1199" + "Location": [ + "https://management.azure.com/providers/Microsoft.Subscription/subscriptionOperations/ZWYzZGRkOWUtNDljMy00MWI2LWE2MjEtZDM4YTQ0ZjA3NzU1?api-version=2019-10-01-preview" ], - "x-ms-request-id": [ - "b6565c93-cea5-461e-b66d-3a58639d8e48" + "Retry-After": [ + "30" ], "x-ms-correlation-request-id": [ - "b6565c93-cea5-461e-b66d-3a58639d8e48" - ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180329T221923Z:b6565c93-cea5-461e-b66d-3a58639d8e48" + "7b8de195-e00a-498a-ae44-8d73cd574b67" ], - "Cache-Control": [ - "no-cache" + "request-id": [ + "7b8de195-e00a-498a-ae44-8d73cd574b67" ], - "Date": [ - "Thu, 29 Mar 2018 22:19:22 GMT" + "x-gsm": [ + "1.0.0.0" ], - "Location": [ - "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview" + "X-Content-Type-Options": [ + "nosniff" ], "Server": [ - "Microsoft-IIS/8.5" + "Microsoft-IIS/10.0" ], "X-AspNet-Version": [ "4.0.30319" ], "X-Powered-By": [ "ASP.NET" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview", - "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3Vic2NyaXB0aW9uL3N1YnNjcmlwdGlvbk9wZXJhdGlvbnMvYTQzODM2YzAtNGU0NC00MjRmLThjMzUtYjcwNjlhOTU2MjU5P2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.7.2633.0", - "OSName/Windows10Enterprise", - "OSVersion/6.3.16299", - "Microsoft.Azure.Management.Subscription.SubscriptionClient/1.1.0.0" - ] - }, - "ResponseBody": "{}", - "ResponseHeaders": { - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "10" - ], - "api-supported-versions": [ - "2017-11-01-preview, 2018-03-01-preview" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" ], - "x-ms-ratelimit-remaining-tenant-reads": [ - "14983" + "x-ms-ratelimit-remaining-tenant-resource-requests": [ + "499" ], "x-ms-request-id": [ - "26d4c3b1-3a23-4a2c-b6f5-0f188183fa67" - ], - "x-ms-correlation-request-id": [ - "26d4c3b1-3a23-4a2c-b6f5-0f188183fa67" + "7b8de195-e00a-498a-ae44-8d73cd574b67" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20180329T221933Z:26d4c3b1-3a23-4a2c-b6f5-0f188183fa67" + "WESTUS:20200622T192222Z:7b8de195-e00a-498a-ae44-8d73cd574b67" ], - "Cache-Control": [ - "no-cache" + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "Date": [ - "Thu, 29 Mar 2018 22:19:33 GMT" - ], - "Location": [ - "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview" + "Mon, 22 Jun 2020 19:22:21 GMT" ], - "Server": [ - "Microsoft-IIS/8.5" + "Content-Length": [ + "2" ], - "X-AspNet-Version": [ - "4.0.30319" + "Content-Type": [ + "application/json; charset=utf-8" ], - "X-Powered-By": [ - "ASP.NET" + "Expires": [ + "-1" ] }, + "ResponseBody": "{}", "StatusCode": 202 }, { - "RequestUri": "/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview", - "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3Vic2NyaXB0aW9uL3N1YnNjcmlwdGlvbk9wZXJhdGlvbnMvYTQzODM2YzAtNGU0NC00MjRmLThjMzUtYjcwNjlhOTU2MjU5P2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==", + "RequestUri": "/providers/Microsoft.Subscription/subscriptionOperations/ZWYzZGRkOWUtNDljMy00MWI2LWE2MjEtZDM4YTQ0ZjA3NzU1?api-version=2019-10-01-preview", + "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3Vic2NyaXB0aW9uL3N1YnNjcmlwdGlvbk9wZXJhdGlvbnMvWldZelpHUmtPV1V0TkRsak15MDBNV0kyTFdFMk1qRXRaRE00WVRRMFpqQTNOelUxP2FwaS12ZXJzaW9uPTIwMTktMTAtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.7.2633.0", - "OSName/Windows10Enterprise", - "OSVersion/6.3.16299", - "Microsoft.Azure.Management.Subscription.SubscriptionClient/1.1.0.0" + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Subscription.SubscriptionClient/1.1.4.0" ] }, - "ResponseBody": "{}", "ResponseHeaders": { - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" + "Cache-Control": [ + "no-cache" ], "Pragma": [ "no-cache" ], - "Retry-After": [ - "10" - ], - "api-supported-versions": [ - "2017-11-01-preview, 2018-03-01-preview" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" + "Vary": [ + "Accept-Encoding" ], "x-ms-ratelimit-remaining-tenant-reads": [ - "14982" - ], - "x-ms-request-id": [ - "c2ef993f-88c1-4f7f-8b0e-45c3c74bcb47" + "11999" ], "x-ms-correlation-request-id": [ - "c2ef993f-88c1-4f7f-8b0e-45c3c74bcb47" + "098ee31c-ad4b-40af-a9ca-ba18c58ff94b" ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180329T221944Z:c2ef993f-88c1-4f7f-8b0e-45c3c74bcb47" - ], - "Cache-Control": [ - "no-cache" + "request-id": [ + "098ee31c-ad4b-40af-a9ca-ba18c58ff94b" ], - "Date": [ - "Thu, 29 Mar 2018 22:19:44 GMT" + "x-gsm": [ + "1.0.0.0" ], - "Location": [ - "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview" + "X-Content-Type-Options": [ + "nosniff" ], "Server": [ - "Microsoft-IIS/8.5" + "Microsoft-IIS/10.0" ], "X-AspNet-Version": [ "4.0.30319" ], "X-Powered-By": [ "ASP.NET" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview", - "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3Vic2NyaXB0aW9uL3N1YnNjcmlwdGlvbk9wZXJhdGlvbnMvYTQzODM2YzAtNGU0NC00MjRmLThjMzUtYjcwNjlhOTU2MjU5P2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.7.2633.0", - "OSName/Windows10Enterprise", - "OSVersion/6.3.16299", - "Microsoft.Azure.Management.Subscription.SubscriptionClient/1.1.0.0" - ] - }, - "ResponseBody": "{}", - "ResponseHeaders": { - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "10" - ], - "api-supported-versions": [ - "2017-11-01-preview, 2018-03-01-preview" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-tenant-reads": [ - "14981" ], "x-ms-request-id": [ - "0c6e6b7f-366e-43f5-a55a-d8fed6388ade" - ], - "x-ms-correlation-request-id": [ - "0c6e6b7f-366e-43f5-a55a-d8fed6388ade" + "098ee31c-ad4b-40af-a9ca-ba18c58ff94b" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20180329T221954Z:0c6e6b7f-366e-43f5-a55a-d8fed6388ade" + "WESTUS:20200622T192252Z:098ee31c-ad4b-40af-a9ca-ba18c58ff94b" ], - "Cache-Control": [ - "no-cache" + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "Date": [ - "Thu, 29 Mar 2018 22:19:54 GMT" - ], - "Location": [ - "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview" + "Mon, 22 Jun 2020 19:22:52 GMT" ], - "Server": [ - "Microsoft-IIS/8.5" + "Content-Length": [ + "74" ], - "X-AspNet-Version": [ - "4.0.30319" + "Content-Type": [ + "application/json; charset=utf-8" ], - "X-Powered-By": [ - "ASP.NET" + "Expires": [ + "-1" ] }, - "StatusCode": 202 + "ResponseBody": "{\r\n \"subscriptionLink\": \"/subscriptions/ef3ddd9e-49c3-41b6-a621-d38a44f07755\"\r\n}", + "StatusCode": 200 }, { - "RequestUri": "/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview", - "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3Vic2NyaXB0aW9uL3N1YnNjcmlwdGlvbk9wZXJhdGlvbnMvYTQzODM2YzAtNGU0NC00MjRmLThjMzUtYjcwNjlhOTU2MjU5P2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==", + "RequestUri": "/providers/Microsoft.Subscription/subscriptionOperations/ZWYzZGRkOWUtNDljMy00MWI2LWE2MjEtZDM4YTQ0ZjA3NzU1?api-version=2019-10-01-preview", + "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3Vic2NyaXB0aW9uL3N1YnNjcmlwdGlvbk9wZXJhdGlvbnMvWldZelpHUmtPV1V0TkRsak15MDBNV0kyTFdFMk1qRXRaRE00WVRRMFpqQTNOelUxP2FwaS12ZXJzaW9uPTIwMTktMTAtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.7.2633.0", - "OSName/Windows10Enterprise", - "OSVersion/6.3.16299", - "Microsoft.Azure.Management.Subscription.SubscriptionClient/1.1.0.0" + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Subscription.SubscriptionClient/1.1.4.0" ] }, - "ResponseBody": "{}", "ResponseHeaders": { - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" + "Cache-Control": [ + "no-cache" ], "Pragma": [ "no-cache" ], - "Retry-After": [ - "10" - ], - "api-supported-versions": [ - "2017-11-01-preview, 2018-03-01-preview" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" + "Vary": [ + "Accept-Encoding" ], "x-ms-ratelimit-remaining-tenant-reads": [ - "14983" - ], - "x-ms-request-id": [ - "292ce99a-bb30-400f-b372-cb87ceaa3ccb" + "11998" ], "x-ms-correlation-request-id": [ - "292ce99a-bb30-400f-b372-cb87ceaa3ccb" - ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180329T222005Z:292ce99a-bb30-400f-b372-cb87ceaa3ccb" + "b81e5f48-9d6d-4b7e-969e-8a764b0ad84a" ], - "Cache-Control": [ - "no-cache" + "request-id": [ + "b81e5f48-9d6d-4b7e-969e-8a764b0ad84a" ], - "Date": [ - "Thu, 29 Mar 2018 22:20:05 GMT" + "x-gsm": [ + "1.0.0.0" ], - "Location": [ - "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview" + "X-Content-Type-Options": [ + "nosniff" ], "Server": [ - "Microsoft-IIS/8.5" + "Microsoft-IIS/10.0" ], "X-AspNet-Version": [ "4.0.30319" ], "X-Powered-By": [ "ASP.NET" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview", - "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3Vic2NyaXB0aW9uL3N1YnNjcmlwdGlvbk9wZXJhdGlvbnMvYTQzODM2YzAtNGU0NC00MjRmLThjMzUtYjcwNjlhOTU2MjU5P2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.7.2633.0", - "OSName/Windows10Enterprise", - "OSVersion/6.3.16299", - "Microsoft.Azure.Management.Subscription.SubscriptionClient/1.1.0.0" - ] - }, - "ResponseBody": "{}", - "ResponseHeaders": { - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "10" - ], - "api-supported-versions": [ - "2017-11-01-preview, 2018-03-01-preview" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-tenant-reads": [ - "14982" ], "x-ms-request-id": [ - "1674f133-23f9-439e-b8db-fd90fa8ee056" - ], - "x-ms-correlation-request-id": [ - "1674f133-23f9-439e-b8db-fd90fa8ee056" + "b81e5f48-9d6d-4b7e-969e-8a764b0ad84a" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20180329T222016Z:1674f133-23f9-439e-b8db-fd90fa8ee056" + "WESTUS:20200622T192253Z:b81e5f48-9d6d-4b7e-969e-8a764b0ad84a" ], - "Cache-Control": [ - "no-cache" + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "Date": [ - "Thu, 29 Mar 2018 22:20:16 GMT" + "Mon, 22 Jun 2020 19:22:52 GMT" ], - "Location": [ - "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview" + "Content-Length": [ + "74" ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview", - "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3Vic2NyaXB0aW9uL3N1YnNjcmlwdGlvbk9wZXJhdGlvbnMvYTQzODM2YzAtNGU0NC00MjRmLThjMzUtYjcwNjlhOTU2MjU5P2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.7.2633.0", - "OSName/Windows10Enterprise", - "OSVersion/6.3.16299", - "Microsoft.Azure.Management.Subscription.SubscriptionClient/1.1.0.0" - ] - }, - "ResponseBody": "{}", - "ResponseHeaders": { - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "10" - ], - "api-supported-versions": [ - "2017-11-01-preview, 2018-03-01-preview" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-tenant-reads": [ - "14981" - ], - "x-ms-request-id": [ - "eb69bd43-b9d9-4e77-92a1-b8d7b158f9c1" - ], - "x-ms-correlation-request-id": [ - "eb69bd43-b9d9-4e77-92a1-b8d7b158f9c1" - ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180329T222026Z:eb69bd43-b9d9-4e77-92a1-b8d7b158f9c1" - ], - "Connection": [ - "close" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 29 Mar 2018 22:20:26 GMT" - ], - "Location": [ - "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview", - "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3Vic2NyaXB0aW9uL3N1YnNjcmlwdGlvbk9wZXJhdGlvbnMvYTQzODM2YzAtNGU0NC00MjRmLThjMzUtYjcwNjlhOTU2MjU5P2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.7.2633.0", - "OSName/Windows10Enterprise", - "OSVersion/6.3.16299", - "Microsoft.Azure.Management.Subscription.SubscriptionClient/1.1.0.0" - ] - }, - "ResponseBody": "{}", - "ResponseHeaders": { - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "10" - ], - "api-supported-versions": [ - "2017-11-01-preview, 2018-03-01-preview" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-tenant-reads": [ - "14980" - ], - "x-ms-request-id": [ - "eafc9c49-e001-497d-a6b2-691edd31bb0e" - ], - "x-ms-correlation-request-id": [ - "eafc9c49-e001-497d-a6b2-691edd31bb0e" - ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180329T222038Z:eafc9c49-e001-497d-a6b2-691edd31bb0e" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 29 Mar 2018 22:20:37 GMT" - ], - "Location": [ - "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview", - "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3Vic2NyaXB0aW9uL3N1YnNjcmlwdGlvbk9wZXJhdGlvbnMvYTQzODM2YzAtNGU0NC00MjRmLThjMzUtYjcwNjlhOTU2MjU5P2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.7.2633.0", - "OSName/Windows10Enterprise", - "OSVersion/6.3.16299", - "Microsoft.Azure.Management.Subscription.SubscriptionClient/1.1.0.0" - ] - }, - "ResponseBody": "{}", - "ResponseHeaders": { - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "10" - ], - "api-supported-versions": [ - "2017-11-01-preview, 2018-03-01-preview" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-tenant-reads": [ - "14979" - ], - "x-ms-request-id": [ - "598db02b-e7fd-41ac-a59d-aab9f84dccee" - ], - "x-ms-correlation-request-id": [ - "598db02b-e7fd-41ac-a59d-aab9f84dccee" - ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180329T222048Z:598db02b-e7fd-41ac-a59d-aab9f84dccee" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 29 Mar 2018 22:20:47 GMT" - ], - "Location": [ - "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview", - "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3Vic2NyaXB0aW9uL3N1YnNjcmlwdGlvbk9wZXJhdGlvbnMvYTQzODM2YzAtNGU0NC00MjRmLThjMzUtYjcwNjlhOTU2MjU5P2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.7.2633.0", - "OSName/Windows10Enterprise", - "OSVersion/6.3.16299", - "Microsoft.Azure.Management.Subscription.SubscriptionClient/1.1.0.0" - ] - }, - "ResponseBody": "{}", - "ResponseHeaders": { - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "10" - ], - "api-supported-versions": [ - "2017-11-01-preview, 2018-03-01-preview" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-tenant-reads": [ - "14978" - ], - "x-ms-request-id": [ - "2c39da2e-4732-4db5-b0a3-99db5400ea8f" - ], - "x-ms-correlation-request-id": [ - "2c39da2e-4732-4db5-b0a3-99db5400ea8f" - ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180329T222059Z:2c39da2e-4732-4db5-b0a3-99db5400ea8f" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 29 Mar 2018 22:20:58 GMT" - ], - "Location": [ - "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview", - "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3Vic2NyaXB0aW9uL3N1YnNjcmlwdGlvbk9wZXJhdGlvbnMvYTQzODM2YzAtNGU0NC00MjRmLThjMzUtYjcwNjlhOTU2MjU5P2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.7.2633.0", - "OSName/Windows10Enterprise", - "OSVersion/6.3.16299", - "Microsoft.Azure.Management.Subscription.SubscriptionClient/1.1.0.0" - ] - }, - "ResponseBody": "{}", - "ResponseHeaders": { - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "10" - ], - "api-supported-versions": [ - "2017-11-01-preview, 2018-03-01-preview" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-tenant-reads": [ - "14977" - ], - "x-ms-request-id": [ - "1a526681-6da0-4a0a-87b2-e5f37aaed18f" - ], - "x-ms-correlation-request-id": [ - "1a526681-6da0-4a0a-87b2-e5f37aaed18f" - ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180329T222109Z:1a526681-6da0-4a0a-87b2-e5f37aaed18f" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 29 Mar 2018 22:21:08 GMT" - ], - "Location": [ - "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview", - "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3Vic2NyaXB0aW9uL3N1YnNjcmlwdGlvbk9wZXJhdGlvbnMvYTQzODM2YzAtNGU0NC00MjRmLThjMzUtYjcwNjlhOTU2MjU5P2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.7.2633.0", - "OSName/Windows10Enterprise", - "OSVersion/6.3.16299", - "Microsoft.Azure.Management.Subscription.SubscriptionClient/1.1.0.0" - ] - }, - "ResponseBody": "{}", - "ResponseHeaders": { - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "10" - ], - "api-supported-versions": [ - "2017-11-01-preview, 2018-03-01-preview" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-tenant-reads": [ - "14976" - ], - "x-ms-request-id": [ - "2050afbd-decd-4ab3-b27a-dd8e7c2f4387" - ], - "x-ms-correlation-request-id": [ - "2050afbd-decd-4ab3-b27a-dd8e7c2f4387" - ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180329T222120Z:2050afbd-decd-4ab3-b27a-dd8e7c2f4387" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 29 Mar 2018 22:21:20 GMT" - ], - "Location": [ - "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview", - "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3Vic2NyaXB0aW9uL3N1YnNjcmlwdGlvbk9wZXJhdGlvbnMvYTQzODM2YzAtNGU0NC00MjRmLThjMzUtYjcwNjlhOTU2MjU5P2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.7.2633.0", - "OSName/Windows10Enterprise", - "OSVersion/6.3.16299", - "Microsoft.Azure.Management.Subscription.SubscriptionClient/1.1.0.0" - ] - }, - "ResponseBody": "{}", - "ResponseHeaders": { - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "10" - ], - "api-supported-versions": [ - "2017-11-01-preview, 2018-03-01-preview" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-tenant-reads": [ - "14975" - ], - "x-ms-request-id": [ - "66420b5b-3e3b-473e-b570-00d65898a9d1" - ], - "x-ms-correlation-request-id": [ - "66420b5b-3e3b-473e-b570-00d65898a9d1" - ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180329T222130Z:66420b5b-3e3b-473e-b570-00d65898a9d1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 29 Mar 2018 22:21:30 GMT" - ], - "Location": [ - "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview", - "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3Vic2NyaXB0aW9uL3N1YnNjcmlwdGlvbk9wZXJhdGlvbnMvYTQzODM2YzAtNGU0NC00MjRmLThjMzUtYjcwNjlhOTU2MjU5P2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.7.2633.0", - "OSName/Windows10Enterprise", - "OSVersion/6.3.16299", - "Microsoft.Azure.Management.Subscription.SubscriptionClient/1.1.0.0" - ] - }, - "ResponseBody": "{}", - "ResponseHeaders": { - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "10" - ], - "api-supported-versions": [ - "2017-11-01-preview, 2018-03-01-preview" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-tenant-reads": [ - "14974" - ], - "x-ms-request-id": [ - "d9fb41b2-8244-4aa3-a707-11b8c35f44f4" - ], - "x-ms-correlation-request-id": [ - "d9fb41b2-8244-4aa3-a707-11b8c35f44f4" - ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180329T222141Z:d9fb41b2-8244-4aa3-a707-11b8c35f44f4" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 29 Mar 2018 22:21:41 GMT" - ], - "Location": [ - "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview", - "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3Vic2NyaXB0aW9uL3N1YnNjcmlwdGlvbk9wZXJhdGlvbnMvYTQzODM2YzAtNGU0NC00MjRmLThjMzUtYjcwNjlhOTU2MjU5P2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.7.2633.0", - "OSName/Windows10Enterprise", - "OSVersion/6.3.16299", - "Microsoft.Azure.Management.Subscription.SubscriptionClient/1.1.0.0" - ] - }, - "ResponseBody": "{}", - "ResponseHeaders": { - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "10" - ], - "api-supported-versions": [ - "2017-11-01-preview, 2018-03-01-preview" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-tenant-reads": [ - "14973" - ], - "x-ms-request-id": [ - "cd92205f-ff7d-45e7-8c5a-29aa82b4567f" - ], - "x-ms-correlation-request-id": [ - "cd92205f-ff7d-45e7-8c5a-29aa82b4567f" - ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180329T222152Z:cd92205f-ff7d-45e7-8c5a-29aa82b4567f" - ], - "Connection": [ - "close" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 29 Mar 2018 22:21:52 GMT" - ], - "Location": [ - "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview", - "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3Vic2NyaXB0aW9uL3N1YnNjcmlwdGlvbk9wZXJhdGlvbnMvYTQzODM2YzAtNGU0NC00MjRmLThjMzUtYjcwNjlhOTU2MjU5P2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.7.2633.0", - "OSName/Windows10Enterprise", - "OSVersion/6.3.16299", - "Microsoft.Azure.Management.Subscription.SubscriptionClient/1.1.0.0" - ] - }, - "ResponseBody": "{}", - "ResponseHeaders": { - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "10" - ], - "api-supported-versions": [ - "2017-11-01-preview, 2018-03-01-preview" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-tenant-reads": [ - "14983" - ], - "x-ms-request-id": [ - "b6284d09-4de9-4ca2-b86a-7cea360df583" - ], - "x-ms-correlation-request-id": [ - "b6284d09-4de9-4ca2-b86a-7cea360df583" - ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180329T222203Z:b6284d09-4de9-4ca2-b86a-7cea360df583" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 29 Mar 2018 22:22:03 GMT" - ], - "Location": [ - "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview", - "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3Vic2NyaXB0aW9uL3N1YnNjcmlwdGlvbk9wZXJhdGlvbnMvYTQzODM2YzAtNGU0NC00MjRmLThjMzUtYjcwNjlhOTU2MjU5P2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.7.2633.0", - "OSName/Windows10Enterprise", - "OSVersion/6.3.16299", - "Microsoft.Azure.Management.Subscription.SubscriptionClient/1.1.0.0" - ] - }, - "ResponseBody": "{}", - "ResponseHeaders": { - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "10" - ], - "api-supported-versions": [ - "2017-11-01-preview, 2018-03-01-preview" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-tenant-reads": [ - "14982" - ], - "x-ms-request-id": [ - "f45ed1f1-02d0-4594-872f-97197c604f2c" - ], - "x-ms-correlation-request-id": [ - "f45ed1f1-02d0-4594-872f-97197c604f2c" - ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180329T222214Z:f45ed1f1-02d0-4594-872f-97197c604f2c" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 29 Mar 2018 22:22:13 GMT" - ], - "Location": [ - "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview", - "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3Vic2NyaXB0aW9uL3N1YnNjcmlwdGlvbk9wZXJhdGlvbnMvYTQzODM2YzAtNGU0NC00MjRmLThjMzUtYjcwNjlhOTU2MjU5P2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.7.2633.0", - "OSName/Windows10Enterprise", - "OSVersion/6.3.16299", - "Microsoft.Azure.Management.Subscription.SubscriptionClient/1.1.0.0" - ] - }, - "ResponseBody": "{}", - "ResponseHeaders": { - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "10" - ], - "api-supported-versions": [ - "2017-11-01-preview, 2018-03-01-preview" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-tenant-reads": [ - "14981" - ], - "x-ms-request-id": [ - "75dcbb79-61d5-4c3e-b4ee-47faa91740b0" - ], - "x-ms-correlation-request-id": [ - "75dcbb79-61d5-4c3e-b4ee-47faa91740b0" - ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180329T222224Z:75dcbb79-61d5-4c3e-b4ee-47faa91740b0" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 29 Mar 2018 22:22:23 GMT" - ], - "Location": [ - "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview", - "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3Vic2NyaXB0aW9uL3N1YnNjcmlwdGlvbk9wZXJhdGlvbnMvYTQzODM2YzAtNGU0NC00MjRmLThjMzUtYjcwNjlhOTU2MjU5P2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.7.2633.0", - "OSName/Windows10Enterprise", - "OSVersion/6.3.16299", - "Microsoft.Azure.Management.Subscription.SubscriptionClient/1.1.0.0" - ] - }, - "ResponseBody": "{}", - "ResponseHeaders": { - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "10" - ], - "api-supported-versions": [ - "2017-11-01-preview, 2018-03-01-preview" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-tenant-reads": [ - "14980" - ], - "x-ms-request-id": [ - "f7162161-add4-4750-a660-8eb6f7f0dc87" - ], - "x-ms-correlation-request-id": [ - "f7162161-add4-4750-a660-8eb6f7f0dc87" - ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180329T222235Z:f7162161-add4-4750-a660-8eb6f7f0dc87" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 29 Mar 2018 22:22:34 GMT" - ], - "Location": [ - "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview", - "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3Vic2NyaXB0aW9uL3N1YnNjcmlwdGlvbk9wZXJhdGlvbnMvYTQzODM2YzAtNGU0NC00MjRmLThjMzUtYjcwNjlhOTU2MjU5P2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.7.2633.0", - "OSName/Windows10Enterprise", - "OSVersion/6.3.16299", - "Microsoft.Azure.Management.Subscription.SubscriptionClient/1.1.0.0" - ] - }, - "ResponseBody": "{}", - "ResponseHeaders": { - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "10" - ], - "api-supported-versions": [ - "2017-11-01-preview, 2018-03-01-preview" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-tenant-reads": [ - "14979" - ], - "x-ms-request-id": [ - "05b58472-19cf-41c1-8bf6-de33c6679a54" - ], - "x-ms-correlation-request-id": [ - "05b58472-19cf-41c1-8bf6-de33c6679a54" - ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180329T222246Z:05b58472-19cf-41c1-8bf6-de33c6679a54" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 29 Mar 2018 22:22:46 GMT" - ], - "Location": [ - "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview", - "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3Vic2NyaXB0aW9uL3N1YnNjcmlwdGlvbk9wZXJhdGlvbnMvYTQzODM2YzAtNGU0NC00MjRmLThjMzUtYjcwNjlhOTU2MjU5P2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.7.2633.0", - "OSName/Windows10Enterprise", - "OSVersion/6.3.16299", - "Microsoft.Azure.Management.Subscription.SubscriptionClient/1.1.0.0" - ] - }, - "ResponseBody": "{}", - "ResponseHeaders": { - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "10" - ], - "api-supported-versions": [ - "2017-11-01-preview, 2018-03-01-preview" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-tenant-reads": [ - "14978" - ], - "x-ms-request-id": [ - "4f6d6004-acff-45d7-9295-624486931c83" - ], - "x-ms-correlation-request-id": [ - "4f6d6004-acff-45d7-9295-624486931c83" - ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180329T222256Z:4f6d6004-acff-45d7-9295-624486931c83" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 29 Mar 2018 22:22:55 GMT" - ], - "Location": [ - "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview", - "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3Vic2NyaXB0aW9uL3N1YnNjcmlwdGlvbk9wZXJhdGlvbnMvYTQzODM2YzAtNGU0NC00MjRmLThjMzUtYjcwNjlhOTU2MjU5P2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.7.2633.0", - "OSName/Windows10Enterprise", - "OSVersion/6.3.16299", - "Microsoft.Azure.Management.Subscription.SubscriptionClient/1.1.0.0" - ] - }, - "ResponseBody": "{}", - "ResponseHeaders": { - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "10" - ], - "api-supported-versions": [ - "2017-11-01-preview, 2018-03-01-preview" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-tenant-reads": [ - "14977" - ], - "x-ms-request-id": [ - "4f6ceb23-c972-46ad-b94a-52811e81df30" - ], - "x-ms-correlation-request-id": [ - "4f6ceb23-c972-46ad-b94a-52811e81df30" - ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180329T222307Z:4f6ceb23-c972-46ad-b94a-52811e81df30" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 29 Mar 2018 22:23:06 GMT" - ], - "Location": [ - "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview", - "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3Vic2NyaXB0aW9uL3N1YnNjcmlwdGlvbk9wZXJhdGlvbnMvYTQzODM2YzAtNGU0NC00MjRmLThjMzUtYjcwNjlhOTU2MjU5P2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.7.2633.0", - "OSName/Windows10Enterprise", - "OSVersion/6.3.16299", - "Microsoft.Azure.Management.Subscription.SubscriptionClient/1.1.0.0" - ] - }, - "ResponseBody": "{}", - "ResponseHeaders": { - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "10" - ], - "api-supported-versions": [ - "2017-11-01-preview, 2018-03-01-preview" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-tenant-reads": [ - "14976" - ], - "x-ms-request-id": [ - "da91df80-0ef0-4d48-b6cf-ff3f1af1db99" - ], - "x-ms-correlation-request-id": [ - "da91df80-0ef0-4d48-b6cf-ff3f1af1db99" - ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180329T222317Z:da91df80-0ef0-4d48-b6cf-ff3f1af1db99" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 29 Mar 2018 22:23:17 GMT" - ], - "Location": [ - "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview", - "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3Vic2NyaXB0aW9uL3N1YnNjcmlwdGlvbk9wZXJhdGlvbnMvYTQzODM2YzAtNGU0NC00MjRmLThjMzUtYjcwNjlhOTU2MjU5P2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.7.2633.0", - "OSName/Windows10Enterprise", - "OSVersion/6.3.16299", - "Microsoft.Azure.Management.Subscription.SubscriptionClient/1.1.0.0" - ] - }, - "ResponseBody": "{}", - "ResponseHeaders": { - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "10" - ], - "api-supported-versions": [ - "2017-11-01-preview, 2018-03-01-preview" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-tenant-reads": [ - "14975" - ], - "x-ms-request-id": [ - "09bbe7f0-5b14-40f4-9554-e6efb2a44f0b" - ], - "x-ms-correlation-request-id": [ - "09bbe7f0-5b14-40f4-9554-e6efb2a44f0b" - ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180329T222328Z:09bbe7f0-5b14-40f4-9554-e6efb2a44f0b" - ], - "Connection": [ - "close" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 29 Mar 2018 22:23:28 GMT" - ], - "Location": [ - "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview", - "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3Vic2NyaXB0aW9uL3N1YnNjcmlwdGlvbk9wZXJhdGlvbnMvYTQzODM2YzAtNGU0NC00MjRmLThjMzUtYjcwNjlhOTU2MjU5P2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.7.2633.0", - "OSName/Windows10Enterprise", - "OSVersion/6.3.16299", - "Microsoft.Azure.Management.Subscription.SubscriptionClient/1.1.0.0" - ] - }, - "ResponseBody": "{}", - "ResponseHeaders": { - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "10" - ], - "api-supported-versions": [ - "2017-11-01-preview, 2018-03-01-preview" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-tenant-reads": [ - "14980" - ], - "x-ms-request-id": [ - "b4e2dd87-2ea6-40dc-9dec-e74da4b7138b" - ], - "x-ms-correlation-request-id": [ - "b4e2dd87-2ea6-40dc-9dec-e74da4b7138b" - ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180329T222339Z:b4e2dd87-2ea6-40dc-9dec-e74da4b7138b" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 29 Mar 2018 22:23:39 GMT" - ], - "Location": [ - "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview", - "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3Vic2NyaXB0aW9uL3N1YnNjcmlwdGlvbk9wZXJhdGlvbnMvYTQzODM2YzAtNGU0NC00MjRmLThjMzUtYjcwNjlhOTU2MjU5P2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.7.2633.0", - "OSName/Windows10Enterprise", - "OSVersion/6.3.16299", - "Microsoft.Azure.Management.Subscription.SubscriptionClient/1.1.0.0" - ] - }, - "ResponseBody": "{}", - "ResponseHeaders": { - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "10" - ], - "api-supported-versions": [ - "2017-11-01-preview, 2018-03-01-preview" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-tenant-reads": [ - "14979" - ], - "x-ms-request-id": [ - "0d7256d4-e0c2-4891-9a65-14f1eb04acb2" - ], - "x-ms-correlation-request-id": [ - "0d7256d4-e0c2-4891-9a65-14f1eb04acb2" - ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180329T222350Z:0d7256d4-e0c2-4891-9a65-14f1eb04acb2" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 29 Mar 2018 22:23:50 GMT" - ], - "Location": [ - "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview", - "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3Vic2NyaXB0aW9uL3N1YnNjcmlwdGlvbk9wZXJhdGlvbnMvYTQzODM2YzAtNGU0NC00MjRmLThjMzUtYjcwNjlhOTU2MjU5P2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.7.2633.0", - "OSName/Windows10Enterprise", - "OSVersion/6.3.16299", - "Microsoft.Azure.Management.Subscription.SubscriptionClient/1.1.0.0" - ] - }, - "ResponseBody": "{}", - "ResponseHeaders": { - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "10" - ], - "api-supported-versions": [ - "2017-11-01-preview, 2018-03-01-preview" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-tenant-reads": [ - "14978" - ], - "x-ms-request-id": [ - "a4feba53-efba-4f43-92bc-34afc76a1821" - ], - "x-ms-correlation-request-id": [ - "a4feba53-efba-4f43-92bc-34afc76a1821" - ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180329T222400Z:a4feba53-efba-4f43-92bc-34afc76a1821" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 29 Mar 2018 22:24:00 GMT" - ], - "Location": [ - "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview", - "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3Vic2NyaXB0aW9uL3N1YnNjcmlwdGlvbk9wZXJhdGlvbnMvYTQzODM2YzAtNGU0NC00MjRmLThjMzUtYjcwNjlhOTU2MjU5P2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.7.2633.0", - "OSName/Windows10Enterprise", - "OSVersion/6.3.16299", - "Microsoft.Azure.Management.Subscription.SubscriptionClient/1.1.0.0" - ] - }, - "ResponseBody": "{}", - "ResponseHeaders": { - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "10" - ], - "api-supported-versions": [ - "2017-11-01-preview, 2018-03-01-preview" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-tenant-reads": [ - "14977" - ], - "x-ms-request-id": [ - "c1234af2-125c-4b72-9fef-95dd6515b4a0" - ], - "x-ms-correlation-request-id": [ - "c1234af2-125c-4b72-9fef-95dd6515b4a0" - ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180329T222411Z:c1234af2-125c-4b72-9fef-95dd6515b4a0" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 29 Mar 2018 22:24:11 GMT" - ], - "Location": [ - "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview", - "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3Vic2NyaXB0aW9uL3N1YnNjcmlwdGlvbk9wZXJhdGlvbnMvYTQzODM2YzAtNGU0NC00MjRmLThjMzUtYjcwNjlhOTU2MjU5P2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.7.2633.0", - "OSName/Windows10Enterprise", - "OSVersion/6.3.16299", - "Microsoft.Azure.Management.Subscription.SubscriptionClient/1.1.0.0" - ] - }, - "ResponseBody": "{}", - "ResponseHeaders": { - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "10" - ], - "api-supported-versions": [ - "2017-11-01-preview, 2018-03-01-preview" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-tenant-reads": [ - "14976" - ], - "x-ms-request-id": [ - "6daf5346-722e-44d5-b412-d66764ddfc69" - ], - "x-ms-correlation-request-id": [ - "6daf5346-722e-44d5-b412-d66764ddfc69" - ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180329T222422Z:6daf5346-722e-44d5-b412-d66764ddfc69" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 29 Mar 2018 22:24:21 GMT" - ], - "Location": [ - "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview", - "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3Vic2NyaXB0aW9uL3N1YnNjcmlwdGlvbk9wZXJhdGlvbnMvYTQzODM2YzAtNGU0NC00MjRmLThjMzUtYjcwNjlhOTU2MjU5P2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.7.2633.0", - "OSName/Windows10Enterprise", - "OSVersion/6.3.16299", - "Microsoft.Azure.Management.Subscription.SubscriptionClient/1.1.0.0" - ] - }, - "ResponseBody": "{}", - "ResponseHeaders": { - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "10" - ], - "api-supported-versions": [ - "2017-11-01-preview, 2018-03-01-preview" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-tenant-reads": [ - "14975" - ], - "x-ms-request-id": [ - "472268f1-716c-4902-9165-661b075e370c" - ], - "x-ms-correlation-request-id": [ - "472268f1-716c-4902-9165-661b075e370c" - ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180329T222432Z:472268f1-716c-4902-9165-661b075e370c" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 29 Mar 2018 22:24:32 GMT" - ], - "Location": [ - "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview", - "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3Vic2NyaXB0aW9uL3N1YnNjcmlwdGlvbk9wZXJhdGlvbnMvYTQzODM2YzAtNGU0NC00MjRmLThjMzUtYjcwNjlhOTU2MjU5P2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.7.2633.0", - "OSName/Windows10Enterprise", - "OSVersion/6.3.16299", - "Microsoft.Azure.Management.Subscription.SubscriptionClient/1.1.0.0" - ] - }, - "ResponseBody": "{}", - "ResponseHeaders": { - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "10" - ], - "api-supported-versions": [ - "2017-11-01-preview, 2018-03-01-preview" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-tenant-reads": [ - "14974" - ], - "x-ms-request-id": [ - "16b3e231-639b-4476-9106-e124d0d55b4a" - ], - "x-ms-correlation-request-id": [ - "16b3e231-639b-4476-9106-e124d0d55b4a" - ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180329T222443Z:16b3e231-639b-4476-9106-e124d0d55b4a" - ], - "Connection": [ - "close" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 29 Mar 2018 22:24:42 GMT" - ], - "Location": [ - "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview", - "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3Vic2NyaXB0aW9uL3N1YnNjcmlwdGlvbk9wZXJhdGlvbnMvYTQzODM2YzAtNGU0NC00MjRmLThjMzUtYjcwNjlhOTU2MjU5P2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.7.2633.0", - "OSName/Windows10Enterprise", - "OSVersion/6.3.16299", - "Microsoft.Azure.Management.Subscription.SubscriptionClient/1.1.0.0" - ] - }, - "ResponseBody": "{}", - "ResponseHeaders": { - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "10" - ], - "api-supported-versions": [ - "2017-11-01-preview, 2018-03-01-preview" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-tenant-reads": [ - "14973" - ], - "x-ms-request-id": [ - "ff125612-e2c7-4a52-9637-966465d4eb41" - ], - "x-ms-correlation-request-id": [ - "ff125612-e2c7-4a52-9637-966465d4eb41" - ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180329T222454Z:ff125612-e2c7-4a52-9637-966465d4eb41" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 29 Mar 2018 22:24:54 GMT" - ], - "Location": [ - "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview", - "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3Vic2NyaXB0aW9uL3N1YnNjcmlwdGlvbk9wZXJhdGlvbnMvYTQzODM2YzAtNGU0NC00MjRmLThjMzUtYjcwNjlhOTU2MjU5P2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.7.2633.0", - "OSName/Windows10Enterprise", - "OSVersion/6.3.16299", - "Microsoft.Azure.Management.Subscription.SubscriptionClient/1.1.0.0" - ] - }, - "ResponseBody": "{\r\n \"subscriptionLink\": \"/subscriptions/67950582-3efc-4e2e-9858-cbb3828ed52e\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "74" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "api-supported-versions": [ - "2017-11-01-preview, 2018-03-01-preview" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-tenant-reads": [ - "14974" - ], - "x-ms-request-id": [ - "f49f11c9-7c65-4ef8-8c2e-66abbb28ef46" - ], - "x-ms-correlation-request-id": [ - "f49f11c9-7c65-4ef8-8c2e-66abbb28ef46" - ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180329T222505Z:f49f11c9-7c65-4ef8-8c2e-66abbb28ef46" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 29 Mar 2018 22:25:05 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/providers/Microsoft.Subscription/subscriptionOperations/a43836c0-4e44-424f-8c35-b7069a956259?api-version=2018-03-01-preview", - "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3Vic2NyaXB0aW9uL3N1YnNjcmlwdGlvbk9wZXJhdGlvbnMvYTQzODM2YzAtNGU0NC00MjRmLThjMzUtYjcwNjlhOTU2MjU5P2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.7.2633.0", - "OSName/Windows10Enterprise", - "OSVersion/6.3.16299", - "Microsoft.Azure.Management.Subscription.SubscriptionClient/1.1.0.0" - ] - }, - "ResponseBody": "{\r\n \"subscriptionLink\": \"/subscriptions/67950582-3efc-4e2e-9858-cbb3828ed52e\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "74" - ], - "Content-Type": [ - "application/json; charset=utf-8" + "Content-Type": [ + "application/json; charset=utf-8" ], "Expires": [ "-1" - ], - "Pragma": [ - "no-cache" - ], - "api-supported-versions": [ - "2017-11-01-preview, 2018-03-01-preview" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-tenant-reads": [ - "14973" - ], - "x-ms-request-id": [ - "db8a4f2c-f298-47b6-a536-5dd874fb06db" - ], - "x-ms-correlation-request-id": [ - "db8a4f2c-f298-47b6-a536-5dd874fb06db" - ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180329T222506Z:db8a4f2c-f298-47b6-a536-5dd874fb06db" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 29 Mar 2018 22:25:06 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" ] }, + "ResponseBody": "{\r\n \"subscriptionLink\": \"/subscriptions/ef3ddd9e-49c3-41b6-a621-d38a44f07755\"\r\n}", "StatusCode": 200 } ], "Names": { "Test-NewSubscription": [ - "ps2774" + "ps3132" ] }, "Variables": { - "SubscriptionId": "06a21397-583f-4901-807f-2f68de2fb65a" + "SubscriptionId": "21cba39d-cbbc-487f-9749-43c5c960f269" } } \ No newline at end of file diff --git a/src/Subscription/Subscription.Test/SessionRecords/Subscription.Test.ScenarioTests.SubscriptionTests/TestUpdateCancelSubscription.json b/src/Subscription/Subscription.Test/SessionRecords/Subscription.Test.ScenarioTests.SubscriptionTests/TestUpdateCancelSubscription.json new file mode 100644 index 000000000000..51795c6a7ec3 --- /dev/null +++ b/src/Subscription/Subscription.Test/SessionRecords/Subscription.Test.ScenarioTests.SubscriptionTests/TestUpdateCancelSubscription.json @@ -0,0 +1,86 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/21cba39d-cbbc-487f-9749-43c5c960f269/providers/Microsoft.Subscription/cancel?api-version=2019-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjFjYmEzOWQtY2JiYy00ODdmLTk3NDktNDNjNWM5NjBmMjY5L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3Vic2NyaXB0aW9uL2NhbmNlbD9hcGktdmVyc2lvbj0yMDE5LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "2dfb692e-f389-4264-ae26-bb79e7c64574" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Subscription.SubscriptionClient/1.1.4.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "0b8fdd49-96e1-424b-a0d1-725451e072bc" + ], + "request-id": [ + "0b8fdd49-96e1-424b-a0d1-725451e072bc" + ], + "x-gsm": [ + "1.0.0.0" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-request-id": [ + "0b8fdd49-96e1-424b-a0d1-725451e072bc" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200619T225218Z:0b8fdd49-96e1-424b-a0d1-725451e072bc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Date": [ + "Fri, 19 Jun 2020 22:52:17 GMT" + ], + "Content-Length": [ + "57" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"subscriptionId\": \"21cba39d-cbbc-487f-9749-43c5c960f269\"\r\n}", + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "21cba39d-cbbc-487f-9749-43c5c960f269" + } +} \ No newline at end of file diff --git a/src/Subscription/Subscription.Test/SessionRecords/Subscription.Test.ScenarioTests.SubscriptionTests/TestUpdateRenameSubscription.json b/src/Subscription/Subscription.Test/SessionRecords/Subscription.Test.ScenarioTests.SubscriptionTests/TestUpdateRenameSubscription.json new file mode 100644 index 000000000000..9e14f81bdcc5 --- /dev/null +++ b/src/Subscription/Subscription.Test/SessionRecords/Subscription.Test.ScenarioTests.SubscriptionTests/TestUpdateRenameSubscription.json @@ -0,0 +1,92 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/21cba39d-cbbc-487f-9749-43c5c960f269/providers/Microsoft.Subscription/rename?api-version=2019-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjFjYmEzOWQtY2JiYy00ODdmLTk3NDktNDNjNWM5NjBmMjY5L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3Vic2NyaXB0aW9uL3JlbmFtZT9hcGktdmVyc2lvbj0yMDE5LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"subscriptionName\": \"RenameFromPowershell\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "07b39a23-6005-465f-adf2-c088d0ab601d" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Subscription.SubscriptionClient/1.1.4.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "50" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "aa0d95c5-3b21-4ee4-97d0-91fb5a735293" + ], + "request-id": [ + "aa0d95c5-3b21-4ee4-97d0-91fb5a735293" + ], + "x-gsm": [ + "1.0.0.0" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-request-id": [ + "aa0d95c5-3b21-4ee4-97d0-91fb5a735293" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200619T224730Z:aa0d95c5-3b21-4ee4-97d0-91fb5a735293" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Date": [ + "Fri, 19 Jun 2020 22:47:29 GMT" + ], + "Content-Length": [ + "57" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"subscriptionId\": \"21cba39d-cbbc-487f-9749-43c5c960f269\"\r\n}", + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "21cba39d-cbbc-487f-9749-43c5c960f269" + } +} \ No newline at end of file diff --git a/src/Subscription/Subscription.Test/Subscription.Test.csproj b/src/Subscription/Subscription.Test/Subscription.Test.csproj index a5646eea7a85..89fa3267df76 100644 --- a/src/Subscription/Subscription.Test/Subscription.Test.csproj +++ b/src/Subscription/Subscription.Test/Subscription.Test.csproj @@ -11,7 +11,7 @@ - + \ No newline at end of file diff --git a/src/Subscription/Subscription/Az.Subscription.psd1 b/src/Subscription/Subscription/Az.Subscription.psd1 index 39820dcce98f..32eb90a23b6e 100644 --- a/src/Subscription/Subscription/Az.Subscription.psd1 +++ b/src/Subscription/Subscription/Az.Subscription.psd1 @@ -72,7 +72,7 @@ NestedModules = @('Microsoft.Azure.PowerShell.Cmdlets.Subscription.dll') FunctionsToExport = @() # Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. -CmdletsToExport = 'New-AzSubscription' +CmdletsToExport = 'New-AzSubscription','Update-AzSubscription' # Variables to export from this module # VariablesToExport = @() diff --git a/src/Subscription/Subscription/ChangeLog.md b/src/Subscription/Subscription/ChangeLog.md index 3c0bc513c214..17531656ede6 100644 --- a/src/Subscription/Subscription/ChangeLog.md +++ b/src/Subscription/Subscription/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Added new cmdlet `Update-AzSubscription` ## Version 0.7.2 -* Update references in .psd1 to use relative path \ No newline at end of file +* Update references in .psd1 to use relative path diff --git a/src/Subscription/Subscription/Cmdlets/NewAzureRmSubscription.cs b/src/Subscription/Subscription/Cmdlets/NewAzureRmSubscription.cs index 456de5862a65..27764e87bee7 100644 --- a/src/Subscription/Subscription/Cmdlets/NewAzureRmSubscription.cs +++ b/src/Subscription/Subscription/Cmdlets/NewAzureRmSubscription.cs @@ -90,15 +90,20 @@ public override void ExecuteCmdlet() { if (this.ShouldProcess(target: this.Name, action: "Create subscription")) { - var owners = this.ResolveObjectIds(this.OwnerObjectId, this.OwnerApplicationId, this.OwnerSignInName).Select(id => new AdPrincipal() { ObjectId = id }).ToArray(); + SubscriptionCreationResult result = new SubscriptionCreationResult(); + + var owners = this + .ResolveObjectIds(this.OwnerObjectId, this.OwnerApplicationId, this.OwnerSignInName) + .Select(id => new AdPrincipal() { ObjectId = id }).ToArray(); // Create the subscription. - var result = this.SubscriptionClient.SubscriptionFactory.CreateSubscriptionInEnrollmentAccount(EnrollmentAccountObjectId, new SubscriptionCreationParameters() - { - DisplayName = this.Name, - OfferType = this.OfferType, - Owners = owners - }); + result = this.SubscriptionClient.Subscription.CreateSubscriptionInEnrollmentAccount( + EnrollmentAccountObjectId, new SubscriptionCreationParameters() + { + DisplayName = this.Name, + OfferType = this.OfferType, + Owners = owners + }); // Write output. var createdSubscription = new AzureSubscription() diff --git a/src/Subscription/Subscription/Cmdlets/UpdateAzureRmSubscription.cs b/src/Subscription/Subscription/Cmdlets/UpdateAzureRmSubscription.cs new file mode 100644 index 000000000000..86802c6efcf8 --- /dev/null +++ b/src/Subscription/Subscription/Cmdlets/UpdateAzureRmSubscription.cs @@ -0,0 +1,84 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System.Management.Automation; +using Microsoft.Azure.Commands.Common.Authentication; +using Microsoft.Azure.Commands.Common.Authentication.Abstractions; +using Microsoft.Azure.Commands.ResourceManager.Common; +using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters; +using Microsoft.Azure.Commands.Subscription.Models; +using Microsoft.Azure.Management.Subscription; +using Microsoft.Azure.Management.Subscription.Models; + +namespace Microsoft.Azure.Commands.Subscription.Cmdlets +{ + [Cmdlet("Update", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "Subscription", SupportsShouldProcess = + true), OutputType(typeof(PSAzureSubscription))] + public class UpdateAzureRmSubscription : AzureRmLongRunningCmdlet + { + private ISubscriptionClient _subscriptionClient; + + /// + /// Gets or sets the subscription client. + /// + public ISubscriptionClient SubscriptionClient + { + get + { + return _subscriptionClient ?? + (_subscriptionClient = + AzureSession.Instance.ClientFactory.CreateArmClient(DefaultContext, + AzureEnvironment.Endpoint.ResourceManager)); + } + set { _subscriptionClient = value; } + } + + [Parameter(Mandatory = true, HelpMessage = "Subscription Id to update")] + public string SubscriptionId { get; set; } + + [Parameter(Mandatory = true, HelpMessage = "Action to perform on subscription")] + [PSArgumentCompleter("Cancel", "Enable", "Rename")] + public string Action { get; set; } + + [Parameter(Mandatory = false, HelpMessage = "Name of the subscription")] + public string Name { get; set; } + + public override void ExecuteCmdlet() + { + if (this.ShouldProcess(target: this.SubscriptionId, action: "Update subscription")) + { + // Updates the subscription. + + if (Action == "Cancel") + { + var result = this.SubscriptionClient.Subscription.Cancel(SubscriptionId); + WriteObject(result); + } + else if (Action == "Enable") + { + var result = this.SubscriptionClient.Subscription.Enable(SubscriptionId); + WriteObject(result); + } + else + { + var result = this.SubscriptionClient.Subscription.Rename(SubscriptionId, new SubscriptionName() + { + SubscriptionNameProperty = Name + }); + WriteObject(result); + } + } + } + } +} diff --git a/src/Subscription/Subscription/StartupScripts/AzureRmSubscriptionStartup.ps1 b/src/Subscription/Subscription/StartupScripts/AzureRmSubscriptionStartup.ps1 index 12a61b414eaf..bb1fd42b6502 100644 --- a/src/Subscription/Subscription/StartupScripts/AzureRmSubscriptionStartup.ps1 +++ b/src/Subscription/Subscription/StartupScripts/AzureRmSubscriptionStartup.ps1 @@ -6,4 +6,14 @@ ForEach-Object { [System.Management.Automation.CompletionResult]::new($_, $_, 'ParameterValue', $_) } +} + +Register-ArgumentCompleter -CommandName Update-AzSubscription -ParameterName Action -ScriptBlock { + param($commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameter) + + $values = "Cancel", "Rename", "Enable" + $values | + ForEach-Object { + [System.Management.Automation.CompletionResult]::new($_, $_, 'ParameterValue', $_) + } } \ No newline at end of file diff --git a/src/Subscription/Subscription/Subscription.csproj b/src/Subscription/Subscription/Subscription.csproj index 1ada8c1b07e8..55c5e1a448fb 100644 --- a/src/Subscription/Subscription/Subscription.csproj +++ b/src/Subscription/Subscription/Subscription.csproj @@ -11,7 +11,7 @@ - + \ No newline at end of file diff --git a/src/Subscription/Subscription/help/Az.Subscription.md b/src/Subscription/Subscription/help/Az.Subscription.md index a2c5add9a20d..eecaf681bd34 100644 --- a/src/Subscription/Subscription/help/Az.Subscription.md +++ b/src/Subscription/Subscription/help/Az.Subscription.md @@ -1,4 +1,4 @@ ---- +--- Module Name: Az.Subscription Module Guid: 8074e741-0979-4b4e-8f9b-7243f213d98a Download Help Link: https://docs.microsoft.com/en-us/powershell/module/az.subscription @@ -14,3 +14,6 @@ The topics in this section document the Azure PowerShell cmdlets for Azure Subsc ### [New-AzSubscription](New-AzSubscription.md) Creates an Azure subscription. +### [Update-AzSubscription](Update-AzSubscription.md) +Updates the Azure subscription + diff --git a/src/Subscription/Subscription/help/Update-AzSubscription.md b/src/Subscription/Subscription/help/Update-AzSubscription.md new file mode 100644 index 000000000000..617946a92219 --- /dev/null +++ b/src/Subscription/Subscription/help/Update-AzSubscription.md @@ -0,0 +1,158 @@ +--- +external help file: Microsoft.Azure.PowerShell.Cmdlets.Subscription.dll-Help.xml +Module Name: Az.Subscription +online version:https://docs.microsoft.com/en-us/powershell/module/az.subscription/update-azsubscription +schema: 2.0.0 +--- + +# Update-AzSubscription + +## SYNOPSIS +Updates an Azure Subscription + +## SYNTAX + +``` +Update-AzSubscription -SubscriptionId -Action [-Name ] [-AsJob] + [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + +## DESCRIPTION +The **Update-AzSubscription** cmdlet updates an Azure subscription + +## EXAMPLES + +### Example 1 +```powershell +PS C:\> Update-AzSubscription -SubscriptionId "86869d42-1782-4337-98b0-c905fb937d46" -Action "Cancel" + +Name : My Subscription +Id : 86869d42-1782-4337-98b0-c905fb937d46 +TenantId : a5dcb057-fd83-4384-9d49-5198004d33a5 +State : Enabled + +``` +Updates the subscription + +## PARAMETERS + +### -Action +Action to perform on subscription + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AsJob +Run cmdlet in the background + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer +Parameter Sets: (All) +Aliases: AzContext, AzureRmContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +Name of the subscription + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription Id to update + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### None + +## OUTPUTS + +### Microsoft.Azure.Commands.Subscription.Models.PSAzureSubscription + +## NOTES + +## RELATED LINKS