diff --git a/src/ResourceManagement/ContainerRegistry/ContainerRegistry.Tests/Helpers/ContainerRegistryTestUtilities.cs b/src/ResourceManagement/ContainerRegistry/ContainerRegistry.Tests/Helpers/ContainerRegistryTestUtilities.cs index e52d3ac51372..3d599579b91a 100644 --- a/src/ResourceManagement/ContainerRegistry/ContainerRegistry.Tests/Helpers/ContainerRegistryTestUtilities.cs +++ b/src/ResourceManagement/ContainerRegistry/ContainerRegistry.Tests/Helpers/ContainerRegistryTestUtilities.cs @@ -82,7 +82,7 @@ public static string CreateStorageAccount(StorageManagementClient client, Resour var createRequest = client.StorageAccounts.Create(resourceGroup.Name, storageName, new StorageAccountCreateParameters { Location = resourceGroup.Location, - Sku = new Sku { Name = SkuName.StandardLRS }, + Sku = new Microsoft.Azure.Management.Storage.Models.Sku { Name = SkuName.StandardLRS }, Kind = Kind.Storage }); @@ -92,19 +92,23 @@ public static string CreateStorageAccount(StorageManagementClient client, Resour public static string CreateContainerRegistry(ContainerRegistryManagementClient client, ResourceGroup resourceGroup, string storageName, string storageKey) { string registryName = TestUtilities.GenerateName("acrregistry"); - Registry registry = GetDefaultRegistryProperties(resourceGroup, storageName, storageKey); + RegistryCreateParameters parameters = GetDefaultRegistryCreateParameters(resourceGroup, storageName, storageKey); - var createRequest = client.Registries.CreateOrUpdate(resourceGroup.Name, registryName, registry); + var createRequest = client.Registries.Create(resourceGroup.Name, registryName, parameters); return registryName; } - public static Registry GetDefaultRegistryProperties(ResourceGroup resourceGroup, string storageName, string storageKey) + public static RegistryCreateParameters GetDefaultRegistryCreateParameters(ResourceGroup resourceGroup, string storageName, string storageKey) { - Registry registry = new Registry + RegistryCreateParameters parameters = new RegistryCreateParameters { Location = resourceGroup.Location, - StorageAccount = new StorageAccountProperties + Sku = new Microsoft.Azure.Management.ContainerRegistry.Models.Sku + { + Name = "Basic" + }, + StorageAccount = new StorageAccountParameters { Name = storageName, AccessKey = storageKey @@ -112,7 +116,7 @@ public static Registry GetDefaultRegistryProperties(ResourceGroup resourceGroup, Tags = DefaultTags }; - return registry; + return parameters; } public static string GetStorageAccessKey(StorageManagementClient client, ResourceGroup resourceGroup, string storageName) @@ -126,12 +130,15 @@ public static void VerifyRegistryProperties(Registry registry, string storageNam Assert.NotNull(registry.Id); Assert.NotNull(registry.Name); Assert.NotNull(registry.Location); + Assert.NotNull(registry.Sku); + Assert.Equal(registry.Sku.Name, "Basic"); + Assert.Equal(registry.Sku.Tier, Microsoft.Azure.Management.ContainerRegistry.Models.SkuTier.Basic); + Assert.Equal(registry.ProvisioningState, Microsoft.Azure.Management.ContainerRegistry.Models.ProvisioningState.Succeeded); Assert.NotNull(registry.AdminUserEnabled); Assert.NotNull(registry.LoginServer); Assert.NotNull(registry.CreationDate); Assert.NotNull(registry.StorageAccount); Assert.NotNull(registry.StorageAccount.Name); - Assert.Null(registry.StorageAccount.AccessKey); Assert.Equal(registry.StorageAccount.Name, storageName); diff --git a/src/ResourceManagement/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryCheckNameTest.json b/src/ResourceManagement/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryCheckNameTest.json index 111e47376fbe..9fb990e4b50c 100644 --- a/src/ResourceManagement/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryCheckNameTest.json +++ b/src/ResourceManagement/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryCheckNameTest.json @@ -1,13 +1,13 @@ { "Entries": [ { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.ContainerRegistry?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "1f2455ed-b113-44a6-9fe6-6d733fe2bc1a" + "060c9c9d-62e7-4eca-9cb7-d459f734dc7f" ], "accept-language": [ "en-US" @@ -17,7 +17,7 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry\",\r\n \"namespace\": \"Microsoft.ContainerRegistry\",\r\n \"authorization\": {\r\n \"applicationId\": \"6a0ec4d3-30cb-4a83-91c0-ae56bc0e3d26\",\r\n \"roleDefinitionId\": \"78e18383-93eb-418a-9887-bc9271046576\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"registries\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"registries/GetCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"East US\",\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"swagger\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"East US\",\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.ContainerRegistry\",\r\n \"namespace\": \"Microsoft.ContainerRegistry\",\r\n \"authorization\": {\r\n \"applicationId\": \"6a0ec4d3-30cb-4a83-91c0-ae56bc0e3d26\",\r\n \"roleDefinitionId\": \"78e18383-93eb-418a-9887-bc9271046576\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"registries\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\",\r\n \"2016-06-27-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"registries/GetCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/listCredentials\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredential\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West US\",\r\n \"East US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\",\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -29,7 +29,7 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:38:38 GMT" + "Thu, 16 Mar 2017 22:56:05 GMT" ], "Pragma": [ "no-cache" @@ -38,16 +38,16 @@ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14932" + "14990" ], "x-ms-request-id": [ - "c9abdedb-d1ae-4e7b-97ec-32a04d7403ff" + "37dd45ac-2238-4300-bf70-9a53964bc66e" ], "x-ms-correlation-request-id": [ - "c9abdedb-d1ae-4e7b-97ec-32a04d7403ff" + "37dd45ac-2238-4300-bf70-9a53964bc66e" ], "x-ms-routing-request-id": [ - "WESTUS2:20161206T033839Z:c9abdedb-d1ae-4e7b-97ec-32a04d7403ff" + "WESTUS2:20170316T225606Z:37dd45ac-2238-4300-bf70-9a53964bc66e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -56,8 +56,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/acr_rg6863?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlZ3JvdXBzL2Fjcl9yZzY4NjM/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg130?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlZ3JvdXBzL2Fjcl9yZzEzMD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"westus\"\r\n}", "RequestHeaders": { @@ -68,7 +68,7 @@ "28" ], "x-ms-client-request-id": [ - "9dfec152-ce2b-4cf3-b2c6-12a7984983b4" + "1ecb15f0-f2a8-4613-a867-8d02cb610b65" ], "accept-language": [ "en-US" @@ -78,10 +78,10 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg6863\",\r\n \"name\": \"acr_rg6863\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg130\",\r\n \"name\": \"acr_rg130\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "173" + "171" ], "Content-Type": [ "application/json; charset=utf-8" @@ -93,22 +93,22 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:38:39 GMT" + "Thu, 16 Mar 2017 22:56:06 GMT" ], "Pragma": [ "no-cache" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1189" + "1185" ], "x-ms-request-id": [ - "8962016b-b7f9-4593-8d9a-0e890505599b" + "c3f722d0-6f02-493e-91ac-de336192ea3a" ], "x-ms-correlation-request-id": [ - "8962016b-b7f9-4593-8d9a-0e890505599b" + "c3f722d0-6f02-493e-91ac-de336192ea3a" ], "x-ms-routing-request-id": [ - "WESTUS2:20161206T033839Z:8962016b-b7f9-4593-8d9a-0e890505599b" + "WESTUS2:20170316T225606Z:c3f722d0-6f02-493e-91ac-de336192ea3a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -117,8 +117,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg6863/providers/Microsoft.Storage/storageAccounts/acrstorage610?api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzY4NjMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlNjEwP2FwaS12ZXJzaW9uPTIwMTYtMDEtMDE=", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg130/providers/Microsoft.Storage/storageAccounts/acrstorage5345?api-version=2016-01-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzEzMC9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL2FjcnN0b3JhZ2U1MzQ1P2FwaS12ZXJzaW9uPTIwMTYtMDEtMDE=", "RequestMethod": "PUT", "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\"\r\n}", "RequestHeaders": { @@ -129,7 +129,7 @@ "96" ], "x-ms-client-request-id": [ - "8f4465ae-e44c-47ed-9fd7-6fd95b88a1df" + "2b07dbd0-68b9-4c65-bd63-ab7c9ea1c79d" ], "accept-language": [ "en-US" @@ -151,13 +151,13 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:38:39 GMT" + "Thu, 16 Mar 2017 22:56:07 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.Storage/operations/98a78e27-c7aa-4d72-a029-bcdb0acc8e9c?monitor=true&api-version=2016-01-01" + "https://management.azure.com/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.Storage/operations/47e8748b-1867-44fe-ac4a-ee96e5eca922?monitor=true&api-version=2016-01-01" ], "Retry-After": [ "17" @@ -167,16 +167,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1188" + "1184" ], "x-ms-request-id": [ - "25f0f58c-02cc-446b-86d1-590d1050d57a" + "cda0e802-0fe9-4acd-9106-d05fc169a731" ], "x-ms-correlation-request-id": [ - "25f0f58c-02cc-446b-86d1-590d1050d57a" + "cda0e802-0fe9-4acd-9106-d05fc169a731" ], "x-ms-routing-request-id": [ - "WESTUS2:20161206T033840Z:25f0f58c-02cc-446b-86d1-590d1050d57a" + "WESTUS2:20170316T225608Z:cda0e802-0fe9-4acd-9106-d05fc169a731" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -185,8 +185,8 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.Storage/operations/98a78e27-c7aa-4d72-a029-bcdb0acc8e9c?monitor=true&api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9vcGVyYXRpb25zLzk4YTc4ZTI3LWM3YWEtNGQ3Mi1hMDI5LWJjZGIwYWNjOGU5Yz9tb25pdG9yPXRydWUmYXBpLXZlcnNpb249MjAxNi0wMS0wMQ==", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.Storage/operations/47e8748b-1867-44fe-ac4a-ee96e5eca922?monitor=true&api-version=2016-01-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9vcGVyYXRpb25zLzQ3ZTg3NDhiLTE4NjctNDRmZS1hYzRhLWVlOTZlNWVjYTkyMj9tb25pdG9yPXRydWUmYXBpLXZlcnNpb249MjAxNi0wMS0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -195,7 +195,7 @@ "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg6863/providers/Microsoft.Storage/storageAccounts/acrstorage610\",\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\",\r\n \"name\": \"acrstorage610\",\r\n \"properties\": {\r\n \"creationTime\": \"2016-12-06T03:38:40.3576429Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://acrstorage610.blob.core.windows.net/\",\r\n \"file\": \"https://acrstorage610.file.core.windows.net/\",\r\n \"queue\": \"https://acrstorage610.queue.core.windows.net/\",\r\n \"table\": \"https://acrstorage610.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"statusOfPrimary\": \"available\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"tags\": {},\r\n \"type\": \"Microsoft.Storage/storageAccounts\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg130/providers/Microsoft.Storage/storageAccounts/acrstorage5345\",\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\",\r\n \"name\": \"acrstorage5345\",\r\n \"properties\": {\r\n \"creationTime\": \"2017-03-16T22:56:07.7550247Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://acrstorage5345.blob.core.windows.net/\",\r\n \"file\": \"https://acrstorage5345.file.core.windows.net/\",\r\n \"queue\": \"https://acrstorage5345.queue.core.windows.net/\",\r\n \"table\": \"https://acrstorage5345.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"statusOfPrimary\": \"available\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"tags\": {},\r\n \"type\": \"Microsoft.Storage/storageAccounts\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -207,7 +207,7 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:39:09 GMT" + "Thu, 16 Mar 2017 22:56:38 GMT" ], "Pragma": [ "no-cache" @@ -223,16 +223,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "e81f82e3-84c7-4611-a7e6-94f8a95ea9e0" + "3a4c2840-0a7e-4533-9186-721f9d6d86c0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14931" + "14989" ], "x-ms-correlation-request-id": [ - "e81f82e3-84c7-4611-a7e6-94f8a95ea9e0" + "3a4c2840-0a7e-4533-9186-721f9d6d86c0" ], "x-ms-routing-request-id": [ - "WESTUS2:20161206T033910Z:e81f82e3-84c7-4611-a7e6-94f8a95ea9e0" + "WESTUS2:20170316T225639Z:3a4c2840-0a7e-4533-9186-721f9d6d86c0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -241,13 +241,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg6863/providers/Microsoft.Storage/storageAccounts/acrstorage610/listKeys?api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzY4NjMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlNjEwL2xpc3RLZXlzP2FwaS12ZXJzaW9uPTIwMTYtMDEtMDE=", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg130/providers/Microsoft.Storage/storageAccounts/acrstorage5345/listKeys?api-version=2016-01-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzEzMC9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL2FjcnN0b3JhZ2U1MzQ1L2xpc3RLZXlzP2FwaS12ZXJzaW9uPTIwMTYtMDEtMDE=", "RequestMethod": "POST", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "44df4ca1-80cc-4060-834d-8c8caae1be2e" + "2be52d97-14fe-4e30-9277-07b51689a153" ], "accept-language": [ "en-US" @@ -257,7 +257,7 @@ "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" ] }, - "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"bSiop7ePM3THdgC8ciRDa4V/83+0G0I0soMcpnR0BJmrGay1iHL511h37i7zZfdFgLqgn7MLOBp3LjKRo1E4uQ==\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"ew+8yhMab1rUUz9UxLgxO/dQ/GyFPO87lxQvtCkVnaNQfAjYRzZocogaOD8USNn6bLK5s02VB0lPnf0kvd4xVw==\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"S/HB2nelE4UpnKyjQ8w9miTohq6PpnOffxVACsRGTg+Svk2A3DO+g51lp1Ty9nCKsS7qXoTRRdAx5FC4t3s/xQ==\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"BQd9rn6zE5L9wDAs/JaBTJM54LDoyZnSEmMQYuvkvucG7C0e+WZ1dFXypBwg2oqgej3yKDAxIbhkpjPf+xcuLg==\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -269,7 +269,7 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:39:10 GMT" + "Thu, 16 Mar 2017 22:56:38 GMT" ], "Pragma": [ "no-cache" @@ -285,16 +285,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "bada00cc-9bd3-467a-b732-d5cb9df316c9" + "5a872545-a333-4dc9-bcfb-6c2a54f2c20c" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1187" + "1183" ], "x-ms-correlation-request-id": [ - "bada00cc-9bd3-467a-b732-d5cb9df316c9" + "5a872545-a333-4dc9-bcfb-6c2a54f2c20c" ], "x-ms-routing-request-id": [ - "WESTUS2:20161206T033910Z:bada00cc-9bd3-467a-b732-d5cb9df316c9" + "WESTUS2:20170316T225639Z:5a872545-a333-4dc9-bcfb-6c2a54f2c20c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -303,26 +303,26 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry/checkNameAvailability?api-version=2016-06-27-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnkvY2hlY2tOYW1lQXZhaWxhYmlsaXR5P2FwaS12ZXJzaW9uPTIwMTYtMDYtMjctcHJldmlldw==", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.ContainerRegistry/checkNameAvailability?api-version=2017-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnkvY2hlY2tOYW1lQXZhaWxhYmlsaXR5P2FwaS12ZXJzaW9uPTIwMTctMDMtMDE=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"name\": \"acrregistry422\",\r\n \"type\": \"Microsoft.ContainerRegistry/registries\"\r\n}", + "RequestBody": "{\r\n \"name\": \"acrregistry5548\",\r\n \"type\": \"Microsoft.ContainerRegistry/registries\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "85" + "86" ], "x-ms-client-request-id": [ - "4797bb3c-5062-4d37-b93f-fe263a79b56a" + "5e0ebdba-0b86-4bee-84be-460225775ad7" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.0.0-preview" + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" ] }, "ResponseBody": "{\r\n \"nameAvailable\": true\r\n}", @@ -337,7 +337,7 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:39:10 GMT" + "Thu, 16 Mar 2017 22:56:39 GMT" ], "Pragma": [ "no-cache" @@ -346,59 +346,53 @@ "chunked" ], "Server": [ - "Microsoft-IIS/8.5" + "Microsoft-HTTPAPI/2.0" ], "Vary": [ "Accept-Encoding" ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14930" + "14988" ], "x-ms-request-id": [ - "24a53d65-a38a-4dfe-928d-3492a645d3f0" + "c4fa4d27-9fb2-4d99-a735-16b0bc59eb05" ], "x-ms-correlation-request-id": [ - "24a53d65-a38a-4dfe-928d-3492a645d3f0" + "c4fa4d27-9fb2-4d99-a735-16b0bc59eb05" ], "x-ms-routing-request-id": [ - "WESTUS2:20161206T033911Z:24a53d65-a38a-4dfe-928d-3492a645d3f0" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" + "WESTUS2:20170316T225640Z:c4fa4d27-9fb2-4d99-a735-16b0bc59eb05" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry/checkNameAvailability?api-version=2016-06-27-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnkvY2hlY2tOYW1lQXZhaWxhYmlsaXR5P2FwaS12ZXJzaW9uPTIwMTYtMDYtMjctcHJldmlldw==", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.ContainerRegistry/checkNameAvailability?api-version=2017-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnkvY2hlY2tOYW1lQXZhaWxhYmlsaXR5P2FwaS12ZXJzaW9uPTIwMTctMDMtMDE=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"name\": \"CAPS\",\r\n \"type\": \"Microsoft.ContainerRegistry/registries\"\r\n}", + "RequestBody": "{\r\n \"name\": \"Microsoft\",\r\n \"type\": \"Microsoft.ContainerRegistry/registries\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "75" + "80" ], "x-ms-client-request-id": [ - "600a5dcd-ec9c-4f15-85a9-b6ba4af9f37d" + "37aee96c-fd71-4ec2-b4f3-f13e394c3266" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.0.0-preview" + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" ] }, - "ResponseBody": "{\r\n \"nameAvailable\": false,\r\n \"reason\": \"Invalid\",\r\n \"message\": \"Registry names may contain alpha numeric characters only and must be between 5 and 50 characters\"\r\n}", + "ResponseBody": "{\r\n \"nameAvailable\": false,\r\n \"reason\": \"Invalid\",\r\n \"message\": \"The specified registry name is disallowed\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -410,7 +404,7 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:39:10 GMT" + "Thu, 16 Mar 2017 22:56:39 GMT" ], "Pragma": [ "no-cache" @@ -419,40 +413,34 @@ "chunked" ], "Server": [ - "Microsoft-IIS/8.5" + "Microsoft-HTTPAPI/2.0" ], "Vary": [ "Accept-Encoding" ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14929" + "14987" ], "x-ms-request-id": [ - "6631862b-1c94-40bf-85ce-d95b46eca4a0" + "ea8832fc-3a86-4462-8415-0fe50b866217" ], "x-ms-correlation-request-id": [ - "6631862b-1c94-40bf-85ce-d95b46eca4a0" + "ea8832fc-3a86-4462-8415-0fe50b866217" ], "x-ms-routing-request-id": [ - "WESTUS2:20161206T033911Z:6631862b-1c94-40bf-85ce-d95b46eca4a0" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" + "WESTUS2:20170316T225640Z:ea8832fc-3a86-4462-8415-0fe50b866217" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry/checkNameAvailability?api-version=2016-06-27-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnkvY2hlY2tOYW1lQXZhaWxhYmlsaXR5P2FwaS12ZXJzaW9uPTIwMTYtMDYtMjctcHJldmlldw==", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.ContainerRegistry/checkNameAvailability?api-version=2017-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnkvY2hlY2tOYW1lQXZhaWxhYmlsaXR5P2FwaS12ZXJzaW9uPTIwMTctMDMtMDE=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"name\": \"acrregistry9167\",\r\n \"type\": \"Microsoft.ContainerRegistry/registries\"\r\n}", + "RequestBody": "{\r\n \"name\": \"acrregistry6760\",\r\n \"type\": \"Microsoft.ContainerRegistry/registries\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -461,17 +449,17 @@ "86" ], "x-ms-client-request-id": [ - "1bfa3855-8939-4b96-8fd2-5c831452752e" + "e0454ff5-2ba2-45d2-9cd5-f38799106907" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.0.0-preview" + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" ] }, - "ResponseBody": "{\r\n \"nameAvailable\": false,\r\n \"reason\": \"AlreadyExists\",\r\n \"message\": \"The registry acrregistry9167 is already in use.\"\r\n}", + "ResponseBody": "{\r\n \"nameAvailable\": false,\r\n \"reason\": \"AlreadyExists\",\r\n \"message\": \"The registry acrregistry6760 is already in use.\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -483,7 +471,7 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:39:14 GMT" + "Thu, 16 Mar 2017 22:56:42 GMT" ], "Pragma": [ "no-cache" @@ -492,59 +480,53 @@ "chunked" ], "Server": [ - "Microsoft-IIS/8.5" + "Microsoft-HTTPAPI/2.0" ], "Vary": [ "Accept-Encoding" ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14928" + "14986" ], "x-ms-request-id": [ - "d372391c-16c3-4de1-8a18-4a2baaecd8a7" + "3b383815-17eb-4b57-a394-8b0b6d4834cf" ], "x-ms-correlation-request-id": [ - "d372391c-16c3-4de1-8a18-4a2baaecd8a7" + "3b383815-17eb-4b57-a394-8b0b6d4834cf" ], "x-ms-routing-request-id": [ - "WESTUS2:20161206T033915Z:d372391c-16c3-4de1-8a18-4a2baaecd8a7" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" + "WESTUS2:20170316T225643Z:3b383815-17eb-4b57-a394-8b0b6d4834cf" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg6863/providers/Microsoft.ContainerRegistry/registries/acrregistry9167?api-version=2016-06-27-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzY4NjMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5OTE2Nz9hcGktdmVyc2lvbj0yMDE2LTA2LTI3LXByZXZpZXc=", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg130/providers/Microsoft.ContainerRegistry/registries/acrregistry6760?api-version=2017-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzEzMC9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbnRhaW5lclJlZ2lzdHJ5L3JlZ2lzdHJpZXMvYWNycmVnaXN0cnk2NzYwP2FwaS12ZXJzaW9uPTIwMTctMDMtMDE=", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage610\",\r\n \"accessKey\": \"bSiop7ePM3THdgC8ciRDa4V/83+0G0I0soMcpnR0BJmrGay1iHL511h37i7zZfdFgLqgn7MLOBp3LjKRo1E4uQ==\"\r\n }\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", + "RequestBody": "{\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n },\r\n \"properties\": {\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage5345\",\r\n \"accessKey\": \"S/HB2nelE4UpnKyjQ8w9miTohq6PpnOffxVACsRGTg+Svk2A3DO+g51lp1Ty9nCKsS7qXoTRRdAx5FC4t3s/xQ==\"\r\n }\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "292" + "332" ], "x-ms-client-request-id": [ - "b9971e95-1671-4d47-9ec6-5fdc3781a20f" + "4b9ff5c7-45c3-45d2-b620-1860c1c3d32b" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.0.0-preview" + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/acr_rg6863/providers/Microsoft.ContainerRegistry/registries/acrregistry9167\",\r\n \"name\": \"acrregistry9167\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry9167-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-12-06T03:39:13.6250133Z\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage610\"\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg130/providers/Microsoft.ContainerRegistry/registries/acrregistry6760\",\r\n \"name\": \"acrregistry6760\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry6760.azurecr.io\",\r\n \"creationDate\": \"2017-03-16T22:56:42.4447349Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage5345\"\r\n }\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -556,7 +538,7 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:39:14 GMT" + "Thu, 16 Mar 2017 22:56:42 GMT" ], "Pragma": [ "no-cache" @@ -565,31 +547,25 @@ "chunked" ], "Server": [ - "Microsoft-IIS/8.5" + "Microsoft-HTTPAPI/2.0" ], "Vary": [ "Accept-Encoding" ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1186" + "1182" ], "x-ms-request-id": [ - "f89b39b5-d895-488a-a956-08a763a98b5e" + "85f6f2c2-82b9-47fd-9fa3-28256215009d" ], "x-ms-correlation-request-id": [ - "f89b39b5-d895-488a-a956-08a763a98b5e" + "85f6f2c2-82b9-47fd-9fa3-28256215009d" ], "x-ms-routing-request-id": [ - "WESTUS2:20161206T033914Z:f89b39b5-d895-488a-a956-08a763a98b5e" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" + "WESTUS2:20170316T225643Z:85f6f2c2-82b9-47fd-9fa3-28256215009d" ] }, "StatusCode": 200 @@ -597,19 +573,19 @@ ], "Names": { "CreateResourceGroup": [ - "acr_rg6863" + "acr_rg130" ], "CreateStorageAccount": [ - "acrstorage610" + "acrstorage5345" ], "ContainerRegistryCheckNameTest": [ - "acrregistry422" + "acrregistry5548" ], "CreateContainerRegistry": [ - "acrregistry9167" + "acrregistry6760" ] }, "Variables": { - "SubscriptionId": "84c559c6-30a0-417c-ba06-8a2253b388c3" + "SubscriptionId": "3eb31d8d-2879-4706-89b4-4dc4047726c6" } } \ No newline at end of file diff --git a/src/ResourceManagement/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryCreateTest.json b/src/ResourceManagement/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryCreateTest.json index 66bfdd970ec3..8b4ec685d443 100644 --- a/src/ResourceManagement/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryCreateTest.json +++ b/src/ResourceManagement/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryCreateTest.json @@ -1,13 +1,13 @@ { "Entries": [ { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.ContainerRegistry?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "1866ba67-9a7d-48d8-ad6d-e8f1927c40ee" + "c9893638-06dc-432f-8687-c0a9f49f5dfe" ], "accept-language": [ "en-US" @@ -17,7 +17,7 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry\",\r\n \"namespace\": \"Microsoft.ContainerRegistry\",\r\n \"authorization\": {\r\n \"applicationId\": \"6a0ec4d3-30cb-4a83-91c0-ae56bc0e3d26\",\r\n \"roleDefinitionId\": \"78e18383-93eb-418a-9887-bc9271046576\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"registries\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"registries/GetCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"East US\",\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"swagger\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"East US\",\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.ContainerRegistry\",\r\n \"namespace\": \"Microsoft.ContainerRegistry\",\r\n \"authorization\": {\r\n \"applicationId\": \"6a0ec4d3-30cb-4a83-91c0-ae56bc0e3d26\",\r\n \"roleDefinitionId\": \"78e18383-93eb-418a-9887-bc9271046576\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"registries\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\",\r\n \"2016-06-27-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"registries/GetCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/listCredentials\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredential\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West US\",\r\n \"East US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\",\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -29,7 +29,7 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:37:58 GMT" + "Thu, 16 Mar 2017 22:54:57 GMT" ], "Pragma": [ "no-cache" @@ -38,16 +38,16 @@ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14807" + "14981" ], "x-ms-request-id": [ - "9b92e55f-6135-4483-a3be-38cb6b03d8e0" + "a989aba4-f088-49da-adf3-0035505cd7f3" ], "x-ms-correlation-request-id": [ - "9b92e55f-6135-4483-a3be-38cb6b03d8e0" + "a989aba4-f088-49da-adf3-0035505cd7f3" ], "x-ms-routing-request-id": [ - "WESTUS2:20161206T033758Z:9b92e55f-6135-4483-a3be-38cb6b03d8e0" + "WESTUS2:20170316T225457Z:a989aba4-f088-49da-adf3-0035505cd7f3" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -56,8 +56,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/acr_rg6169?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlZ3JvdXBzL2Fjcl9yZzYxNjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg3844?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlZ3JvdXBzL2Fjcl9yZzM4NDQ/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"westus\"\r\n}", "RequestHeaders": { @@ -68,7 +68,7 @@ "28" ], "x-ms-client-request-id": [ - "333255bb-7fb4-4ec0-b053-8da5b4359f73" + "99791b0e-d205-44e8-8f18-962304c2d692" ], "accept-language": [ "en-US" @@ -78,7 +78,7 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg6169\",\r\n \"name\": \"acr_rg6169\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg3844\",\r\n \"name\": \"acr_rg3844\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "173" @@ -93,22 +93,22 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:37:59 GMT" + "Thu, 16 Mar 2017 22:54:57 GMT" ], "Pragma": [ "no-cache" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1193" + "1180" ], "x-ms-request-id": [ - "02892038-3e43-4e69-a8a6-17a8bf8861cc" + "3fdbc2bf-127b-4622-96d7-9d94504853ac" ], "x-ms-correlation-request-id": [ - "02892038-3e43-4e69-a8a6-17a8bf8861cc" + "3fdbc2bf-127b-4622-96d7-9d94504853ac" ], "x-ms-routing-request-id": [ - "WESTUS2:20161206T033759Z:02892038-3e43-4e69-a8a6-17a8bf8861cc" + "WESTUS2:20170316T225458Z:3fdbc2bf-127b-4622-96d7-9d94504853ac" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -117,8 +117,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg6169/providers/Microsoft.Storage/storageAccounts/acrstorage1690?api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzYxNjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlMTY5MD9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg3844/providers/Microsoft.Storage/storageAccounts/acrstorage5516?api-version=2016-01-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzM4NDQvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlNTUxNj9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", "RequestMethod": "PUT", "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\"\r\n}", "RequestHeaders": { @@ -129,7 +129,7 @@ "96" ], "x-ms-client-request-id": [ - "c92e8021-5d9b-4c94-b3a2-a08290275a8a" + "ef35c44e-8d8a-42fb-8137-01a80af9e7cb" ], "accept-language": [ "en-US" @@ -151,13 +151,13 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:37:59 GMT" + "Thu, 16 Mar 2017 22:54:59 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.Storage/operations/e566bacb-2d82-44a1-a421-e8e86eb624c5?monitor=true&api-version=2016-01-01" + "https://management.azure.com/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.Storage/operations/b44eeab4-a4b7-4f25-8be2-b49879f44820?monitor=true&api-version=2016-01-01" ], "Retry-After": [ "17" @@ -167,16 +167,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1192" + "1179" ], "x-ms-request-id": [ - "d68d041b-c456-4ac9-bb62-e7460be2ea8a" + "90befa48-ccb3-4759-b09c-b3b950eefc45" ], "x-ms-correlation-request-id": [ - "d68d041b-c456-4ac9-bb62-e7460be2ea8a" + "90befa48-ccb3-4759-b09c-b3b950eefc45" ], "x-ms-routing-request-id": [ - "WESTUS2:20161206T033800Z:d68d041b-c456-4ac9-bb62-e7460be2ea8a" + "WESTUS2:20170316T225459Z:90befa48-ccb3-4759-b09c-b3b950eefc45" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -185,8 +185,8 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.Storage/operations/e566bacb-2d82-44a1-a421-e8e86eb624c5?monitor=true&api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9vcGVyYXRpb25zL2U1NjZiYWNiLTJkODItNDRhMS1hNDIxLWU4ZTg2ZWI2MjRjNT9tb25pdG9yPXRydWUmYXBpLXZlcnNpb249MjAxNi0wMS0wMQ==", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.Storage/operations/b44eeab4-a4b7-4f25-8be2-b49879f44820?monitor=true&api-version=2016-01-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9vcGVyYXRpb25zL2I0NGVlYWI0LWE0YjctNGYyNS04YmUyLWI0OTg3OWY0NDgyMD9tb25pdG9yPXRydWUmYXBpLXZlcnNpb249MjAxNi0wMS0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -195,7 +195,7 @@ "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg6169/providers/Microsoft.Storage/storageAccounts/acrstorage1690\",\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\",\r\n \"name\": \"acrstorage1690\",\r\n \"properties\": {\r\n \"creationTime\": \"2016-12-06T03:38:00.1590353Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://acrstorage1690.blob.core.windows.net/\",\r\n \"file\": \"https://acrstorage1690.file.core.windows.net/\",\r\n \"queue\": \"https://acrstorage1690.queue.core.windows.net/\",\r\n \"table\": \"https://acrstorage1690.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"statusOfPrimary\": \"available\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"tags\": {},\r\n \"type\": \"Microsoft.Storage/storageAccounts\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg3844/providers/Microsoft.Storage/storageAccounts/acrstorage5516\",\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\",\r\n \"name\": \"acrstorage5516\",\r\n \"properties\": {\r\n \"creationTime\": \"2017-03-16T22:54:59.2635223Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://acrstorage5516.blob.core.windows.net/\",\r\n \"file\": \"https://acrstorage5516.file.core.windows.net/\",\r\n \"queue\": \"https://acrstorage5516.queue.core.windows.net/\",\r\n \"table\": \"https://acrstorage5516.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"statusOfPrimary\": \"available\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"tags\": {},\r\n \"type\": \"Microsoft.Storage/storageAccounts\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -207,7 +207,7 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:38:30 GMT" + "Thu, 16 Mar 2017 22:55:29 GMT" ], "Pragma": [ "no-cache" @@ -223,16 +223,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "5cb7fa9b-cade-4ab6-bdde-3e34a5d1242e" + "cb31d1c6-abe3-437e-b1f8-429803cccb9f" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14805" + "14981" ], "x-ms-correlation-request-id": [ - "5cb7fa9b-cade-4ab6-bdde-3e34a5d1242e" + "cb31d1c6-abe3-437e-b1f8-429803cccb9f" ], "x-ms-routing-request-id": [ - "WESTUS2:20161206T033830Z:5cb7fa9b-cade-4ab6-bdde-3e34a5d1242e" + "WESTUS2:20170316T225530Z:cb31d1c6-abe3-437e-b1f8-429803cccb9f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -241,13 +241,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg6169/providers/Microsoft.Storage/storageAccounts/acrstorage1690/listKeys?api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzYxNjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlMTY5MC9saXN0S2V5cz9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg3844/providers/Microsoft.Storage/storageAccounts/acrstorage5516/listKeys?api-version=2016-01-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzM4NDQvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlNTUxNi9saXN0S2V5cz9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", "RequestMethod": "POST", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "3ceeee08-177b-4147-b76d-3ef7511eb555" + "4f7a9b94-d1b0-4a43-9d76-fa5c75c4c9af" ], "accept-language": [ "en-US" @@ -257,7 +257,7 @@ "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" ] }, - "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"lU2y7aKcUUbuUQwCys6OsF2+Nwf343r93dHsAr2kexwj70f80CH01ugRGPZJYMv0c4YCKSocqVaw6Do82bdEeQ==\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"cNCpCQNalwwqdJnNgho1N7ocfK8I2DzaamOs2Z3zjZokeFoQK4OQD3y/S7yPWWcXHKGZPg+G+pOEMdWU1Yph3A==\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"iEGtqp2ZNlb2v4DeDANC+DA45w3JDJXHmNVOtJ+c6kaIFRBxkw38LOMqsc9v+GE9WirfqiqDMAQF84sMlzsb6w==\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"KRzW0lpeLoBeNU2WyUx6V9iVXe+IfYipggO2UXZyFuqCxUg9DfFvfjzr5wkP0jAJ/WvP1FQLl0/myXhh1jMMCQ==\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -269,7 +269,7 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:38:30 GMT" + "Thu, 16 Mar 2017 22:55:29 GMT" ], "Pragma": [ "no-cache" @@ -285,16 +285,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "69c10ea9-fb07-445c-8f05-9a6e62060eb5" + "a5ee8330-9532-40a2-9e8b-5fa49754517f" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1191" + "1178" ], "x-ms-correlation-request-id": [ - "69c10ea9-fb07-445c-8f05-9a6e62060eb5" + "a5ee8330-9532-40a2-9e8b-5fa49754517f" ], "x-ms-routing-request-id": [ - "WESTUS2:20161206T033830Z:69c10ea9-fb07-445c-8f05-9a6e62060eb5" + "WESTUS2:20170316T225530Z:a5ee8330-9532-40a2-9e8b-5fa49754517f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -303,29 +303,29 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg6169/providers/Microsoft.ContainerRegistry/registries/acrregistry5570?api-version=2016-06-27-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzYxNjkvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5NTU3MD9hcGktdmVyc2lvbj0yMDE2LTA2LTI3LXByZXZpZXc=", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg3844/providers/Microsoft.ContainerRegistry/registries/acrregistry807?api-version=2017-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzM4NDQvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5ODA3P2FwaS12ZXJzaW9uPTIwMTctMDMtMDE=", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage1690\",\r\n \"accessKey\": \"lU2y7aKcUUbuUQwCys6OsF2+Nwf343r93dHsAr2kexwj70f80CH01ugRGPZJYMv0c4YCKSocqVaw6Do82bdEeQ==\"\r\n }\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", + "RequestBody": "{\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n },\r\n \"properties\": {\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage5516\",\r\n \"accessKey\": \"iEGtqp2ZNlb2v4DeDANC+DA45w3JDJXHmNVOtJ+c6kaIFRBxkw38LOMqsc9v+GE9WirfqiqDMAQF84sMlzsb6w==\"\r\n }\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "293" + "332" ], "x-ms-client-request-id": [ - "aef44cc4-93e0-4553-9066-486e09d309a0" + "fe8474d6-109f-4293-ae6d-315f7c184e5c" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.0.0-preview" + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/acr_rg6169/providers/Microsoft.ContainerRegistry/registries/acrregistry5570\",\r\n \"name\": \"acrregistry5570\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry5570-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-12-06T03:38:32.1073488Z\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage1690\"\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg3844/providers/Microsoft.ContainerRegistry/registries/acrregistry807\",\r\n \"name\": \"acrregistry807\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry807.azurecr.io\",\r\n \"creationDate\": \"2017-03-16T22:55:32.9755213Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage5516\"\r\n }\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -337,7 +337,7 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:38:33 GMT" + "Thu, 16 Mar 2017 22:55:59 GMT" ], "Pragma": [ "no-cache" @@ -346,59 +346,53 @@ "chunked" ], "Server": [ - "Microsoft-IIS/8.5" + "Microsoft-HTTPAPI/2.0" ], "Vary": [ "Accept-Encoding" ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1190" + "1177" ], "x-ms-request-id": [ - "5fa40ef7-4be3-47d1-924a-f8a8b795a36c" + "86b78256-5fbf-4e25-bb60-344a0b2d7f6b" ], "x-ms-correlation-request-id": [ - "5fa40ef7-4be3-47d1-924a-f8a8b795a36c" + "86b78256-5fbf-4e25-bb60-344a0b2d7f6b" ], "x-ms-routing-request-id": [ - "WESTUS2:20161206T033833Z:5fa40ef7-4be3-47d1-924a-f8a8b795a36c" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" + "WESTUS2:20170316T225559Z:86b78256-5fbf-4e25-bb60-344a0b2d7f6b" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg6169/providers/Microsoft.ContainerRegistry/registries/acrregistry1542?api-version=2016-06-27-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzYxNjkvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5MTU0Mj9hcGktdmVyc2lvbj0yMDE2LTA2LTI3LXByZXZpZXc=", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg3844/providers/Microsoft.ContainerRegistry/registries/acrregistry5094?api-version=2017-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzM4NDQvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5NTA5ND9hcGktdmVyc2lvbj0yMDE3LTAzLTAx", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage1690\",\r\n \"accessKey\": \"lU2y7aKcUUbuUQwCys6OsF2+Nwf343r93dHsAr2kexwj70f80CH01ugRGPZJYMv0c4YCKSocqVaw6Do82bdEeQ==\"\r\n }\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", + "RequestBody": "{\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n },\r\n \"properties\": {\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage5516\",\r\n \"accessKey\": \"iEGtqp2ZNlb2v4DeDANC+DA45w3JDJXHmNVOtJ+c6kaIFRBxkw38LOMqsc9v+GE9WirfqiqDMAQF84sMlzsb6w==\"\r\n }\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "324" + "363" ], "x-ms-client-request-id": [ - "90dc8ca9-03b0-4d6a-b1ca-f3c1a8cc0531" + "3a4ba901-c32d-4bbd-a69b-1900f91d71f4" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.0.0-preview" + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/acr_rg6169/providers/Microsoft.ContainerRegistry/registries/acrregistry1542\",\r\n \"name\": \"acrregistry1542\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry1542-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-12-06T03:38:34.2434505Z\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage1690\"\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg3844/providers/Microsoft.ContainerRegistry/registries/acrregistry5094\",\r\n \"name\": \"acrregistry5094\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry5094.azurecr.io\",\r\n \"creationDate\": \"2017-03-16T22:56:00.9029153Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage5516\"\r\n }\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -410,7 +404,7 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:38:35 GMT" + "Thu, 16 Mar 2017 22:56:01 GMT" ], "Pragma": [ "no-cache" @@ -419,31 +413,25 @@ "chunked" ], "Server": [ - "Microsoft-IIS/8.5" + "Microsoft-HTTPAPI/2.0" ], "Vary": [ "Accept-Encoding" ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1189" + "1176" ], "x-ms-request-id": [ - "9b5efed6-9ded-4860-829b-d72f18a3dd3c" + "2d051354-0e55-46ab-8e2c-f1771df6051f" ], "x-ms-correlation-request-id": [ - "9b5efed6-9ded-4860-829b-d72f18a3dd3c" + "2d051354-0e55-46ab-8e2c-f1771df6051f" ], "x-ms-routing-request-id": [ - "WESTUS2:20161206T033835Z:9b5efed6-9ded-4860-829b-d72f18a3dd3c" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" + "WESTUS2:20170316T225601Z:2d051354-0e55-46ab-8e2c-f1771df6051f" ] }, "StatusCode": 200 @@ -451,17 +439,17 @@ ], "Names": { "CreateResourceGroup": [ - "acr_rg6169" + "acr_rg3844" ], "CreateStorageAccount": [ - "acrstorage1690" + "acrstorage5516" ], "ContainerRegistryCreateTest": [ - "acrregistry5570", - "acrregistry1542" + "acrregistry807", + "acrregistry5094" ] }, "Variables": { - "SubscriptionId": "84c559c6-30a0-417c-ba06-8a2253b388c3" + "SubscriptionId": "3eb31d8d-2879-4706-89b4-4dc4047726c6" } } \ No newline at end of file diff --git a/src/ResourceManagement/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryDeleteTest.json b/src/ResourceManagement/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryDeleteTest.json index d0f8c536446f..ce9433468a3b 100644 --- a/src/ResourceManagement/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryDeleteTest.json +++ b/src/ResourceManagement/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryDeleteTest.json @@ -1,13 +1,13 @@ { "Entries": [ { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.ContainerRegistry?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "6d519edd-3dee-44cc-957e-ce22b8c47f05" + "b96ba4cf-46e1-4381-a4f7-ecac752927ff" ], "accept-language": [ "en-US" @@ -17,7 +17,7 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry\",\r\n \"namespace\": \"Microsoft.ContainerRegistry\",\r\n \"authorization\": {\r\n \"applicationId\": \"6a0ec4d3-30cb-4a83-91c0-ae56bc0e3d26\",\r\n \"roleDefinitionId\": \"78e18383-93eb-418a-9887-bc9271046576\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"registries\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"registries/GetCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"East US\",\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"swagger\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"East US\",\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.ContainerRegistry\",\r\n \"namespace\": \"Microsoft.ContainerRegistry\",\r\n \"authorization\": {\r\n \"applicationId\": \"6a0ec4d3-30cb-4a83-91c0-ae56bc0e3d26\",\r\n \"roleDefinitionId\": \"78e18383-93eb-418a-9887-bc9271046576\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"registries\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\",\r\n \"2016-06-27-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"registries/GetCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/listCredentials\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredential\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West US\",\r\n \"East US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\",\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -29,7 +29,7 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:37:16 GMT" + "Thu, 16 Mar 2017 22:53:52 GMT" ], "Pragma": [ "no-cache" @@ -38,16 +38,16 @@ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14995" + "14993" ], "x-ms-request-id": [ - "047aa4f9-fcf6-494a-b9e0-540aba29159a" + "76319a52-1f99-4745-96e5-b7dffa19565e" ], "x-ms-correlation-request-id": [ - "047aa4f9-fcf6-494a-b9e0-540aba29159a" + "76319a52-1f99-4745-96e5-b7dffa19565e" ], "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033717Z:047aa4f9-fcf6-494a-b9e0-540aba29159a" + "CENTRALUS:20170316T225352Z:76319a52-1f99-4745-96e5-b7dffa19565e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -56,8 +56,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/acr_rg4076?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlZ3JvdXBzL2Fjcl9yZzQwNzY/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg3822?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlZ3JvdXBzL2Fjcl9yZzM4MjI/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"westus\"\r\n}", "RequestHeaders": { @@ -68,7 +68,7 @@ "28" ], "x-ms-client-request-id": [ - "6d55b506-2077-42f0-b37d-58c7d7c4e8c6" + "8f046bfc-9469-4875-b864-ae72cdfea73d" ], "accept-language": [ "en-US" @@ -78,7 +78,7 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg4076\",\r\n \"name\": \"acr_rg4076\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg3822\",\r\n \"name\": \"acr_rg3822\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "173" @@ -93,22 +93,22 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:37:17 GMT" + "Thu, 16 Mar 2017 22:53:53 GMT" ], "Pragma": [ "no-cache" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" + "1197" ], "x-ms-request-id": [ - "9d8ac2a5-372c-41c6-8125-318345515c5c" + "342e98a3-869b-4097-bf62-6ac083cf7a0d" ], "x-ms-correlation-request-id": [ - "9d8ac2a5-372c-41c6-8125-318345515c5c" + "342e98a3-869b-4097-bf62-6ac083cf7a0d" ], "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033717Z:9d8ac2a5-372c-41c6-8125-318345515c5c" + "CENTRALUS:20170316T225353Z:342e98a3-869b-4097-bf62-6ac083cf7a0d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -117,8 +117,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg4076/providers/Microsoft.Storage/storageAccounts/acrstorage4358?api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzQwNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlNDM1OD9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg3822/providers/Microsoft.Storage/storageAccounts/acrstorage8486?api-version=2016-01-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzM4MjIvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlODQ4Nj9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", "RequestMethod": "PUT", "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\"\r\n}", "RequestHeaders": { @@ -129,7 +129,7 @@ "96" ], "x-ms-client-request-id": [ - "adc270e3-b8c3-4662-8a62-4747ade814e4" + "39fc6665-412b-40fe-abf1-3021091a732c" ], "accept-language": [ "en-US" @@ -151,13 +151,13 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:37:18 GMT" + "Thu, 16 Mar 2017 22:53:54 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.Storage/operations/a1474d06-2e49-4acb-845d-6f314ed91a83?monitor=true&api-version=2016-01-01" + "https://management.azure.com/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.Storage/operations/34262009-be6f-4a5a-b863-e7da8c7ff9d8?monitor=true&api-version=2016-01-01" ], "Retry-After": [ "17" @@ -167,16 +167,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1197" + "1196" ], "x-ms-request-id": [ - "8ed76558-343c-4f01-bf03-38622fca2d03" + "89829535-f1df-46e5-858b-845b88498e73" ], "x-ms-correlation-request-id": [ - "8ed76558-343c-4f01-bf03-38622fca2d03" + "89829535-f1df-46e5-858b-845b88498e73" ], "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033718Z:8ed76558-343c-4f01-bf03-38622fca2d03" + "CENTRALUS:20170316T225354Z:89829535-f1df-46e5-858b-845b88498e73" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -185,8 +185,8 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.Storage/operations/a1474d06-2e49-4acb-845d-6f314ed91a83?monitor=true&api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9vcGVyYXRpb25zL2ExNDc0ZDA2LTJlNDktNGFjYi04NDVkLTZmMzE0ZWQ5MWE4Mz9tb25pdG9yPXRydWUmYXBpLXZlcnNpb249MjAxNi0wMS0wMQ==", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.Storage/operations/34262009-be6f-4a5a-b863-e7da8c7ff9d8?monitor=true&api-version=2016-01-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9vcGVyYXRpb25zLzM0MjYyMDA5LWJlNmYtNGE1YS1iODYzLWU3ZGE4YzdmZjlkOD9tb25pdG9yPXRydWUmYXBpLXZlcnNpb249MjAxNi0wMS0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -195,7 +195,7 @@ "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg4076/providers/Microsoft.Storage/storageAccounts/acrstorage4358\",\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\",\r\n \"name\": \"acrstorage4358\",\r\n \"properties\": {\r\n \"creationTime\": \"2016-12-06T03:37:18.7771252Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://acrstorage4358.blob.core.windows.net/\",\r\n \"file\": \"https://acrstorage4358.file.core.windows.net/\",\r\n \"queue\": \"https://acrstorage4358.queue.core.windows.net/\",\r\n \"table\": \"https://acrstorage4358.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"statusOfPrimary\": \"available\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"tags\": {},\r\n \"type\": \"Microsoft.Storage/storageAccounts\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg3822/providers/Microsoft.Storage/storageAccounts/acrstorage8486\",\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\",\r\n \"name\": \"acrstorage8486\",\r\n \"properties\": {\r\n \"creationTime\": \"2017-03-16T22:53:54.729397Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://acrstorage8486.blob.core.windows.net/\",\r\n \"file\": \"https://acrstorage8486.file.core.windows.net/\",\r\n \"queue\": \"https://acrstorage8486.queue.core.windows.net/\",\r\n \"table\": \"https://acrstorage8486.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"statusOfPrimary\": \"available\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"tags\": {},\r\n \"type\": \"Microsoft.Storage/storageAccounts\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -207,7 +207,7 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:37:48 GMT" + "Thu, 16 Mar 2017 22:54:24 GMT" ], "Pragma": [ "no-cache" @@ -223,16 +223,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "83fd7018-4fff-4a13-be38-9f0dcaa6aa41" + "674300de-8a92-49e7-a8fd-1cbcdca77911" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14994" + "14992" ], "x-ms-correlation-request-id": [ - "83fd7018-4fff-4a13-be38-9f0dcaa6aa41" + "674300de-8a92-49e7-a8fd-1cbcdca77911" ], "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033749Z:83fd7018-4fff-4a13-be38-9f0dcaa6aa41" + "CENTRALUS:20170316T225425Z:674300de-8a92-49e7-a8fd-1cbcdca77911" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -241,13 +241,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg4076/providers/Microsoft.Storage/storageAccounts/acrstorage4358/listKeys?api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzQwNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlNDM1OC9saXN0S2V5cz9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg3822/providers/Microsoft.Storage/storageAccounts/acrstorage8486/listKeys?api-version=2016-01-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzM4MjIvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlODQ4Ni9saXN0S2V5cz9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", "RequestMethod": "POST", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "a434f942-f9cc-4947-a598-a4c236a3fd4d" + "325317cd-6890-4c73-86ad-3c30009e588a" ], "accept-language": [ "en-US" @@ -257,7 +257,7 @@ "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" ] }, - "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"GgBwMq3mpgeR2k9CKKZjEyEOFnBUzykemIlnVVw2GN3Z1OhFOFbQ83opRkWTdeJ1MCi7VDJR7mi40kA4/WRnDQ==\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"XkpfeLlC52K+RhLOGeZ7fo7LPMbnIfF6uKuDgQnp1SNHvOzhGJBXYqjoBgEcEezmcQiGfmY6su/61dSCSW3Elw==\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"H7HeVdoiFI54kD7+nATzO027hQ6rLvKdYETqORURd+AmRQwnhMoEdkyPHUlH8TORffd35YcAJyayQOW0wDjWEw==\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"bC3PcP8JFDA9xvXtA3cYuoifRE8HqbRDFnjG3ALUoB9ZLzc2ATrdvY5ZqC6vcwAWqaqZQOlYQX5YwCNV70iUhQ==\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -269,7 +269,7 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:37:48 GMT" + "Thu, 16 Mar 2017 22:54:24 GMT" ], "Pragma": [ "no-cache" @@ -285,16 +285,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "95956122-97ac-4fab-a76b-60ba55a912e6" + "5766b74f-3550-4fa7-a575-e1abd3e376c8" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1196" + "1195" ], "x-ms-correlation-request-id": [ - "95956122-97ac-4fab-a76b-60ba55a912e6" + "5766b74f-3550-4fa7-a575-e1abd3e376c8" ], "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033749Z:95956122-97ac-4fab-a76b-60ba55a912e6" + "CENTRALUS:20170316T225425Z:5766b74f-3550-4fa7-a575-e1abd3e376c8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -303,20 +303,20 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg4076/providers/Microsoft.ContainerRegistry/registries/doesnotexist?api-version=2016-06-27-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzQwNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2RvZXNub3RleGlzdD9hcGktdmVyc2lvbj0yMDE2LTA2LTI3LXByZXZpZXc=", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg3822/providers/Microsoft.ContainerRegistry/registries/doesnotexist?api-version=2017-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzM4MjIvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2RvZXNub3RleGlzdD9hcGktdmVyc2lvbj0yMDE3LTAzLTAx", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "efb6021b-b012-4eb3-bff8-48c40ef610f8" + "0e81f88d-d9c9-4d2e-a6c7-3d12df61e04b" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.0.0-preview" + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" ] }, "ResponseBody": "", @@ -328,22 +328,22 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:37:48 GMT" + "Thu, 16 Mar 2017 22:54:25 GMT" ], "Pragma": [ "no-cache" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1195" + "1194" ], "x-ms-request-id": [ - "7d8545b3-5d0c-4c80-92ab-e1669fc09f3f" + "e16e0a98-7f9c-41a5-85b9-e266a96665b4" ], "x-ms-correlation-request-id": [ - "7d8545b3-5d0c-4c80-92ab-e1669fc09f3f" + "e16e0a98-7f9c-41a5-85b9-e266a96665b4" ], "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033749Z:7d8545b3-5d0c-4c80-92ab-e1669fc09f3f" + "CENTRALUS:20170316T225425Z:e16e0a98-7f9c-41a5-85b9-e266a96665b4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -352,29 +352,29 @@ "StatusCode": 204 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg4076/providers/Microsoft.ContainerRegistry/registries/acrregistry5314?api-version=2016-06-27-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzQwNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5NTMxND9hcGktdmVyc2lvbj0yMDE2LTA2LTI3LXByZXZpZXc=", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg3822/providers/Microsoft.ContainerRegistry/registries/acrregistry4222?api-version=2017-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzM4MjIvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5NDIyMj9hcGktdmVyc2lvbj0yMDE3LTAzLTAx", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage4358\",\r\n \"accessKey\": \"GgBwMq3mpgeR2k9CKKZjEyEOFnBUzykemIlnVVw2GN3Z1OhFOFbQ83opRkWTdeJ1MCi7VDJR7mi40kA4/WRnDQ==\"\r\n }\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", + "RequestBody": "{\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n },\r\n \"properties\": {\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage8486\",\r\n \"accessKey\": \"H7HeVdoiFI54kD7+nATzO027hQ6rLvKdYETqORURd+AmRQwnhMoEdkyPHUlH8TORffd35YcAJyayQOW0wDjWEw==\"\r\n }\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "293" + "332" ], "x-ms-client-request-id": [ - "ffc59a20-3025-49cb-b7a9-6b8242772920" + "e3bcee92-0a6c-4494-92a4-bc71aa55179c" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.0.0-preview" + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/acr_rg4076/providers/Microsoft.ContainerRegistry/registries/acrregistry5314\",\r\n \"name\": \"acrregistry5314\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry5314-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-12-06T03:37:50.9126491Z\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage4358\"\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg3822/providers/Microsoft.ContainerRegistry/registries/acrregistry4222\",\r\n \"name\": \"acrregistry4222\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry4222.azurecr.io\",\r\n \"creationDate\": \"2017-03-16T22:54:47.0144318Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage8486\"\r\n }\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -386,7 +386,7 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:37:51 GMT" + "Thu, 16 Mar 2017 22:54:48 GMT" ], "Pragma": [ "no-cache" @@ -395,50 +395,44 @@ "chunked" ], "Server": [ - "Microsoft-IIS/8.5" + "Microsoft-HTTPAPI/2.0" ], "Vary": [ "Accept-Encoding" ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1194" + "1193" ], "x-ms-request-id": [ - "c03daac7-22ff-4b54-8220-d6d563b24184" + "95841333-8683-4930-a86b-a088a113960e" ], "x-ms-correlation-request-id": [ - "c03daac7-22ff-4b54-8220-d6d563b24184" + "95841333-8683-4930-a86b-a088a113960e" ], "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033752Z:c03daac7-22ff-4b54-8220-d6d563b24184" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" + "CENTRALUS:20170316T225449Z:95841333-8683-4930-a86b-a088a113960e" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg4076/providers/Microsoft.ContainerRegistry/registries/acrregistry5314?api-version=2016-06-27-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzQwNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5NTMxND9hcGktdmVyc2lvbj0yMDE2LTA2LTI3LXByZXZpZXc=", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg3822/providers/Microsoft.ContainerRegistry/registries/acrregistry4222?api-version=2017-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzM4MjIvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5NDIyMj9hcGktdmVyc2lvbj0yMDE3LTAzLTAx", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "cf81ba92-1e60-4248-9e73-f935595b40ed" + "d1804061-ce22-40b1-b6d5-362e5bee2773" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.0.0-preview" + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" ] }, "ResponseBody": "", @@ -453,53 +447,47 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:37:52 GMT" + "Thu, 16 Mar 2017 22:54:50 GMT" ], "Pragma": [ "no-cache" ], "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" + "Microsoft-HTTPAPI/2.0" ], - "X-Powered-By": [ - "ASP.NET" + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1193" + "1192" ], "x-ms-request-id": [ - "64bae69a-fae2-4d38-8632-94d8c2ec025f" + "ec6444eb-a82e-45e2-8050-82d509024806" ], "x-ms-correlation-request-id": [ - "64bae69a-fae2-4d38-8632-94d8c2ec025f" + "ec6444eb-a82e-45e2-8050-82d509024806" ], "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033753Z:64bae69a-fae2-4d38-8632-94d8c2ec025f" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" + "CENTRALUS:20170316T225451Z:ec6444eb-a82e-45e2-8050-82d509024806" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg4076/providers/Microsoft.ContainerRegistry/registries/acrregistry5314?api-version=2016-06-27-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzQwNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5NTMxND9hcGktdmVyc2lvbj0yMDE2LTA2LTI3LXByZXZpZXc=", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg3822/providers/Microsoft.ContainerRegistry/registries/acrregistry4222?api-version=2017-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzM4MjIvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5NDIyMj9hcGktdmVyc2lvbj0yMDE3LTAzLTAx", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "bbfefdd2-d273-4686-ab61-c22bb932932d" + "7ff2b18e-97e4-401e-8055-53167c552697" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.0.0-preview" + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" ] }, "ResponseBody": "", @@ -511,22 +499,22 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:37:53 GMT" + "Thu, 16 Mar 2017 22:54:50 GMT" ], "Pragma": [ "no-cache" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1192" + "1191" ], "x-ms-request-id": [ - "3480d3f4-989e-48db-a044-223c32fe3bf3" + "23390d66-2889-46bc-a129-9f1c812e8ecc" ], "x-ms-correlation-request-id": [ - "3480d3f4-989e-48db-a044-223c32fe3bf3" + "23390d66-2889-46bc-a129-9f1c812e8ecc" ], "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033753Z:3480d3f4-989e-48db-a044-223c32fe3bf3" + "CENTRALUS:20170316T225451Z:23390d66-2889-46bc-a129-9f1c812e8ecc" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -537,16 +525,16 @@ ], "Names": { "CreateResourceGroup": [ - "acr_rg4076" + "acr_rg3822" ], "CreateStorageAccount": [ - "acrstorage4358" + "acrstorage8486" ], "CreateContainerRegistry": [ - "acrregistry5314" + "acrregistry4222" ] }, "Variables": { - "SubscriptionId": "84c559c6-30a0-417c-ba06-8a2253b388c3" + "SubscriptionId": "3eb31d8d-2879-4706-89b4-4dc4047726c6" } } \ No newline at end of file diff --git a/src/ResourceManagement/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryGetCredentialsTest.json b/src/ResourceManagement/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryGetCredentialsTest.json deleted file mode 100644 index 31c3bfd21702..000000000000 --- a/src/ResourceManagement/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryGetCredentialsTest.json +++ /dev/null @@ -1,597 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "623aa301-69db-49cd-93f1-e72a7231bf54" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry\",\r\n \"namespace\": \"Microsoft.ContainerRegistry\",\r\n \"authorization\": {\r\n \"applicationId\": \"6a0ec4d3-30cb-4a83-91c0-ae56bc0e3d26\",\r\n \"roleDefinitionId\": \"78e18383-93eb-418a-9887-bc9271046576\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"registries\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"registries/GetCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"East US\",\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"swagger\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"East US\",\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 06 Dec 2016 03:34:37 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14991" - ], - "x-ms-request-id": [ - "cf30832f-89f1-4c4b-895b-f0cdb641e19e" - ], - "x-ms-correlation-request-id": [ - "cf30832f-89f1-4c4b-895b-f0cdb641e19e" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033437Z:cf30832f-89f1-4c4b-895b-f0cdb641e19e" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/acr_rg7766?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlZ3JvdXBzL2Fjcl9yZzc3NjY/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"westus\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "28" - ], - "x-ms-client-request-id": [ - "7463753d-1526-402b-8731-7089ee14c1e9" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7766\",\r\n \"name\": \"acr_rg7766\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "173" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 06 Dec 2016 03:34:38 GMT" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-request-id": [ - "ab1769c5-3e00-4448-9152-237d38558041" - ], - "x-ms-correlation-request-id": [ - "ab1769c5-3e00-4448-9152-237d38558041" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033438Z:ab1769c5-3e00-4448-9152-237d38558041" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7766/providers/Microsoft.Storage/storageAccounts/acrstorage591?api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzc3NjYvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlNTkxP2FwaS12ZXJzaW9uPTIwMTYtMDEtMDE=", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "96" - ], - "x-ms-client-request-id": [ - "876215a9-30d9-4229-8541-910afd5ac63c" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 06 Dec 2016 03:34:39 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.Storage/operations/cd8598ed-ff81-4468-a71d-265c7962cb54?monitor=true&api-version=2016-01-01" - ], - "Retry-After": [ - "17" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" - ], - "x-ms-request-id": [ - "b945f852-80fe-4c60-a7bb-08f08a3d7266" - ], - "x-ms-correlation-request-id": [ - "b945f852-80fe-4c60-a7bb-08f08a3d7266" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033439Z:b945f852-80fe-4c60-a7bb-08f08a3d7266" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.Storage/operations/cd8598ed-ff81-4468-a71d-265c7962cb54?monitor=true&api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9vcGVyYXRpb25zL2NkODU5OGVkLWZmODEtNDQ2OC1hNzFkLTI2NWM3OTYyY2I1ND9tb25pdG9yPXRydWUmYXBpLXZlcnNpb249MjAxNi0wMS0wMQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7766/providers/Microsoft.Storage/storageAccounts/acrstorage591\",\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\",\r\n \"name\": \"acrstorage591\",\r\n \"properties\": {\r\n \"creationTime\": \"2016-12-06T03:34:39.3706388Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://acrstorage591.blob.core.windows.net/\",\r\n \"file\": \"https://acrstorage591.file.core.windows.net/\",\r\n \"queue\": \"https://acrstorage591.queue.core.windows.net/\",\r\n \"table\": \"https://acrstorage591.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"statusOfPrimary\": \"available\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"tags\": {},\r\n \"type\": \"Microsoft.Storage/storageAccounts\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 06 Dec 2016 03:35:09 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "d09315af-0a67-4f65-aec9-dac0da6c8e1f" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14992" - ], - "x-ms-correlation-request-id": [ - "d09315af-0a67-4f65-aec9-dac0da6c8e1f" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033509Z:d09315af-0a67-4f65-aec9-dac0da6c8e1f" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7766/providers/Microsoft.Storage/storageAccounts/acrstorage591/listKeys?api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzc3NjYvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlNTkxL2xpc3RLZXlzP2FwaS12ZXJzaW9uPTIwMTYtMDEtMDE=", - "RequestMethod": "POST", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "02f30a25-59b0-42b0-97ec-1efd4fe1a384" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" - ] - }, - "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"3unULxaJeyOiONo7gyA5jr5i/5pz9gNp/ACPE4uOIRDPgt6T7muYL2vEXVNQOGLDAVfuE3WzY3haUGrUPjsgcQ==\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"FnjKZfj7eBAd93P5xXQ28SEPRq5TspBDugtAtrqixDyyoWAFXyOoWDJLvhdd/n2Wh4ZKqjDr1sP6nG8CWmcd9A==\"\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 06 Dec 2016 03:35:09 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "1769286f-dcf6-4668-a89e-0e76e146cc09" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1197" - ], - "x-ms-correlation-request-id": [ - "1769286f-dcf6-4668-a89e-0e76e146cc09" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033509Z:1769286f-dcf6-4668-a89e-0e76e146cc09" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7766/providers/Microsoft.ContainerRegistry/registries/acrregistry1982?api-version=2016-06-27-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzc3NjYvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5MTk4Mj9hcGktdmVyc2lvbj0yMDE2LTA2LTI3LXByZXZpZXc=", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage591\",\r\n \"accessKey\": \"3unULxaJeyOiONo7gyA5jr5i/5pz9gNp/ACPE4uOIRDPgt6T7muYL2vEXVNQOGLDAVfuE3WzY3haUGrUPjsgcQ==\"\r\n }\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "292" - ], - "x-ms-client-request-id": [ - "30df4e41-f72d-4192-b2f9-9e045af04027" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.0.0-preview" - ] - }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/acr_rg7766/providers/Microsoft.ContainerRegistry/registries/acrregistry1982\",\r\n \"name\": \"acrregistry1982\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry1982-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-12-06T03:35:11.4327776Z\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage591\"\r\n }\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 06 Dec 2016 03:35:12 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Vary": [ - "Accept-Encoding" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1196" - ], - "x-ms-request-id": [ - "0a365dfd-df39-4a60-a526-250f4b74681f" - ], - "x-ms-correlation-request-id": [ - "0a365dfd-df39-4a60-a526-250f4b74681f" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033512Z:0a365dfd-df39-4a60-a526-250f4b74681f" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7766/providers/Microsoft.ContainerRegistry/registries/acrregistry1982/getCredentials?api-version=2016-06-27-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzc3NjYvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5MTk4Mi9nZXRDcmVkZW50aWFscz9hcGktdmVyc2lvbj0yMDE2LTA2LTI3LXByZXZpZXc=", - "RequestMethod": "POST", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "e51b7407-ce1b-437a-806d-5ec097d9c2ec" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.0.0-preview" - ] - }, - "ResponseBody": "{\r\n \"message\": \"Cannot perform credential operations for /subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/acr_rg7766/providers/Microsoft.ContainerRegistry/registries/acrregistry1982 as Admin user is disabled. Enable Admin user feature and try again.\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "265" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 06 Dec 2016 03:35:12 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1195" - ], - "x-ms-request-id": [ - "fa2781ca-051b-4cf9-83e6-ce292aaa651d" - ], - "x-ms-correlation-request-id": [ - "fa2781ca-051b-4cf9-83e6-ce292aaa651d" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033512Z:fa2781ca-051b-4cf9-83e6-ce292aaa651d" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 400 - }, - { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7766/providers/Microsoft.ContainerRegistry/registries/acrregistry1982/getCredentials?api-version=2016-06-27-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzc3NjYvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5MTk4Mi9nZXRDcmVkZW50aWFscz9hcGktdmVyc2lvbj0yMDE2LTA2LTI3LXByZXZpZXc=", - "RequestMethod": "POST", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "1bb3c36d-c53e-45ca-bc39-2398453ed5e3" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.0.0-preview" - ] - }, - "ResponseBody": "{\r\n \"username\": \"acrregistry1982\",\r\n \"password\": \"/=fzu=+Yh=s/0X+85++/PFdiE0DIh=C2\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 06 Dec 2016 03:35:13 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Vary": [ - "Accept-Encoding" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1193" - ], - "x-ms-request-id": [ - "0e1cfe10-c6c4-45bc-bbd2-9ddf27ca72fb" - ], - "x-ms-correlation-request-id": [ - "0e1cfe10-c6c4-45bc-bbd2-9ddf27ca72fb" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033513Z:0e1cfe10-c6c4-45bc-bbd2-9ddf27ca72fb" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7766/providers/Microsoft.ContainerRegistry/registries/acrregistry1982?api-version=2016-06-27-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzc3NjYvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5MTk4Mj9hcGktdmVyc2lvbj0yMDE2LTA2LTI3LXByZXZpZXc=", - "RequestMethod": "PATCH", - "RequestBody": "{\r\n \"properties\": {\r\n \"adminUserEnabled\": true\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "58" - ], - "x-ms-client-request-id": [ - "e3ad3163-06eb-4611-a6a1-cc4315544e55" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.0.0-preview" - ] - }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/acr_rg7766/providers/Microsoft.ContainerRegistry/registries/acrregistry1982\",\r\n \"name\": \"acrregistry1982\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry1982-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-12-06T03:35:12.1733394Z\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage591\"\r\n }\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 06 Dec 2016 03:35:13 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Vary": [ - "Accept-Encoding" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1194" - ], - "x-ms-request-id": [ - "9eca3a6a-109b-4912-a8c7-6b97d2c6a40f" - ], - "x-ms-correlation-request-id": [ - "9eca3a6a-109b-4912-a8c7-6b97d2c6a40f" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033513Z:9eca3a6a-109b-4912-a8c7-6b97d2c6a40f" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 200 - } - ], - "Names": { - "CreateResourceGroup": [ - "acr_rg7766" - ], - "CreateStorageAccount": [ - "acrstorage591" - ], - "CreateContainerRegistry": [ - "acrregistry1982" - ] - }, - "Variables": { - "SubscriptionId": "84c559c6-30a0-417c-ba06-8a2253b388c3" - } -} \ No newline at end of file diff --git a/src/ResourceManagement/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryGetTest.json b/src/ResourceManagement/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryGetTest.json index 3342ce6ec8e4..2b3656483dcb 100644 --- a/src/ResourceManagement/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryGetTest.json +++ b/src/ResourceManagement/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryGetTest.json @@ -1,13 +1,13 @@ { "Entries": [ { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.ContainerRegistry?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "921ebe12-4f41-4387-9a64-76e8805fbcca" + "41059e2e-0fea-4d73-b461-c86720c42774" ], "accept-language": [ "en-US" @@ -17,7 +17,7 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry\",\r\n \"namespace\": \"Microsoft.ContainerRegistry\",\r\n \"authorization\": {\r\n \"applicationId\": \"6a0ec4d3-30cb-4a83-91c0-ae56bc0e3d26\",\r\n \"roleDefinitionId\": \"78e18383-93eb-418a-9887-bc9271046576\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"registries\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"registries/GetCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"East US\",\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"swagger\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"East US\",\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.ContainerRegistry\",\r\n \"namespace\": \"Microsoft.ContainerRegistry\",\r\n \"authorization\": {\r\n \"applicationId\": \"6a0ec4d3-30cb-4a83-91c0-ae56bc0e3d26\",\r\n \"roleDefinitionId\": \"78e18383-93eb-418a-9887-bc9271046576\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"registries\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\",\r\n \"2016-06-27-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"registries/GetCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/listCredentials\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredential\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West US\",\r\n \"East US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\",\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -29,7 +29,7 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:30:37 GMT" + "Thu, 16 Mar 2017 22:45:57 GMT" ], "Pragma": [ "no-cache" @@ -38,16 +38,16 @@ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14929" + "14996" ], "x-ms-request-id": [ - "d1c1926f-a102-4a1f-90a8-6827790020ef" + "8a8e859c-95af-407b-90da-2e1b4311e704" ], "x-ms-correlation-request-id": [ - "d1c1926f-a102-4a1f-90a8-6827790020ef" + "8a8e859c-95af-407b-90da-2e1b4311e704" ], "x-ms-routing-request-id": [ - "WESTUS2:20161206T033038Z:d1c1926f-a102-4a1f-90a8-6827790020ef" + "WESTUS2:20170316T224558Z:8a8e859c-95af-407b-90da-2e1b4311e704" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -56,8 +56,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/acr_rg9093?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlZ3JvdXBzL2Fjcl9yZzkwOTM/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg9843?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlZ3JvdXBzL2Fjcl9yZzk4NDM/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"westus\"\r\n}", "RequestHeaders": { @@ -68,7 +68,7 @@ "28" ], "x-ms-client-request-id": [ - "38728e4c-ab0e-44f3-9d20-297242b5eb2b" + "ce54ebbd-22c1-4dde-86f4-659db2c94cfc" ], "accept-language": [ "en-US" @@ -78,7 +78,7 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg9093\",\r\n \"name\": \"acr_rg9093\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg9843\",\r\n \"name\": \"acr_rg9843\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "173" @@ -93,22 +93,22 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:30:37 GMT" + "Thu, 16 Mar 2017 22:45:58 GMT" ], "Pragma": [ "no-cache" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1190" + "1198" ], "x-ms-request-id": [ - "5c7266e6-38b2-41cb-acb6-78a2f396ae1e" + "016cf2ab-362e-4eaf-8100-fa61d9e3c84e" ], "x-ms-correlation-request-id": [ - "5c7266e6-38b2-41cb-acb6-78a2f396ae1e" + "016cf2ab-362e-4eaf-8100-fa61d9e3c84e" ], "x-ms-routing-request-id": [ - "WESTUS2:20161206T033038Z:5c7266e6-38b2-41cb-acb6-78a2f396ae1e" + "WESTUS2:20170316T224558Z:016cf2ab-362e-4eaf-8100-fa61d9e3c84e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -117,8 +117,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg9093/providers/Microsoft.Storage/storageAccounts/acrstorage4122?api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzkwOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlNDEyMj9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg9843/providers/Microsoft.Storage/storageAccounts/acrstorage5985?api-version=2016-01-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzk4NDMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlNTk4NT9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", "RequestMethod": "PUT", "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\"\r\n}", "RequestHeaders": { @@ -129,7 +129,7 @@ "96" ], "x-ms-client-request-id": [ - "825a5fcf-ec14-410d-a6b5-2da2fa805ca1" + "3289b3a2-e3ec-429e-bfa0-d3c23bf8b3a6" ], "accept-language": [ "en-US" @@ -151,13 +151,13 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:30:38 GMT" + "Thu, 16 Mar 2017 22:45:58 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.Storage/operations/cf1b3b68-172d-46ba-a163-0738c692f5db?monitor=true&api-version=2016-01-01" + "https://management.azure.com/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.Storage/operations/8d99bedd-6f7b-4e25-aaa4-d4b762f3746b?monitor=true&api-version=2016-01-01" ], "Retry-After": [ "17" @@ -167,16 +167,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1189" + "1197" ], "x-ms-request-id": [ - "53bb76b7-2f10-4466-ad05-d21feb8e1ce9" + "640e8a2a-b944-42c5-86e8-21f4e55913ad" ], "x-ms-correlation-request-id": [ - "53bb76b7-2f10-4466-ad05-d21feb8e1ce9" + "640e8a2a-b944-42c5-86e8-21f4e55913ad" ], "x-ms-routing-request-id": [ - "WESTUS2:20161206T033039Z:53bb76b7-2f10-4466-ad05-d21feb8e1ce9" + "WESTUS2:20170316T224559Z:640e8a2a-b944-42c5-86e8-21f4e55913ad" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -185,8 +185,8 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.Storage/operations/cf1b3b68-172d-46ba-a163-0738c692f5db?monitor=true&api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9vcGVyYXRpb25zL2NmMWIzYjY4LTE3MmQtNDZiYS1hMTYzLTA3MzhjNjkyZjVkYj9tb25pdG9yPXRydWUmYXBpLXZlcnNpb249MjAxNi0wMS0wMQ==", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.Storage/operations/8d99bedd-6f7b-4e25-aaa4-d4b762f3746b?monitor=true&api-version=2016-01-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9vcGVyYXRpb25zLzhkOTliZWRkLTZmN2ItNGUyNS1hYWE0LWQ0Yjc2MmYzNzQ2Yj9tb25pdG9yPXRydWUmYXBpLXZlcnNpb249MjAxNi0wMS0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -195,7 +195,7 @@ "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg9093/providers/Microsoft.Storage/storageAccounts/acrstorage4122\",\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\",\r\n \"name\": \"acrstorage4122\",\r\n \"properties\": {\r\n \"creationTime\": \"2016-12-06T03:30:39.7382152Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://acrstorage4122.blob.core.windows.net/\",\r\n \"file\": \"https://acrstorage4122.file.core.windows.net/\",\r\n \"queue\": \"https://acrstorage4122.queue.core.windows.net/\",\r\n \"table\": \"https://acrstorage4122.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"statusOfPrimary\": \"available\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"tags\": {},\r\n \"type\": \"Microsoft.Storage/storageAccounts\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg9843/providers/Microsoft.Storage/storageAccounts/acrstorage5985\",\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\",\r\n \"name\": \"acrstorage5985\",\r\n \"properties\": {\r\n \"creationTime\": \"2017-03-16T22:45:59.8424177Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://acrstorage5985.blob.core.windows.net/\",\r\n \"file\": \"https://acrstorage5985.file.core.windows.net/\",\r\n \"queue\": \"https://acrstorage5985.queue.core.windows.net/\",\r\n \"table\": \"https://acrstorage5985.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"statusOfPrimary\": \"available\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"tags\": {},\r\n \"type\": \"Microsoft.Storage/storageAccounts\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -207,7 +207,7 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:31:10 GMT" + "Thu, 16 Mar 2017 22:46:32 GMT" ], "Pragma": [ "no-cache" @@ -223,16 +223,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "f5440d47-cc6f-48b2-a62c-0406621a1904" + "fe63b8d5-9ee0-413c-bb6e-5cca67335a5e" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14927" + "14995" ], "x-ms-correlation-request-id": [ - "f5440d47-cc6f-48b2-a62c-0406621a1904" + "fe63b8d5-9ee0-413c-bb6e-5cca67335a5e" ], "x-ms-routing-request-id": [ - "WESTUS2:20161206T033110Z:f5440d47-cc6f-48b2-a62c-0406621a1904" + "WESTUS2:20170316T224632Z:fe63b8d5-9ee0-413c-bb6e-5cca67335a5e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -241,13 +241,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg9093/providers/Microsoft.Storage/storageAccounts/acrstorage4122/listKeys?api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzkwOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlNDEyMi9saXN0S2V5cz9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg9843/providers/Microsoft.Storage/storageAccounts/acrstorage5985/listKeys?api-version=2016-01-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzk4NDMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlNTk4NS9saXN0S2V5cz9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", "RequestMethod": "POST", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "1d2b43b1-1e58-484b-a366-4cb2bba233a9" + "4bf6fc89-c5cb-40d0-a191-7b9f034f251a" ], "accept-language": [ "en-US" @@ -257,7 +257,7 @@ "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" ] }, - "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"WluI9k+YyMnP4dmXp20lKNwPb7P+Lnzzy8gUk24/5Odoj3ivMZVzGUsYM91d52LoEYf9TirFjCoeDJS9hyUH2A==\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"8g68TNfJxCAlX1kMV18AKGnpV81SJDN9KDgsdOKe6+m+jJ4PpSZJPOr3fbEH1xNGNG2yZeXwhVNubQI8a6+3xg==\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"nWK3MX+0ZSkjFzNIM0tSuewn6K9MhzsqRJtUaRNh+WIKGd1Uq94hbGkg74t8SwTVewawOk3STzdFItTsaCNJgA==\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"1qbwQDM6OVYsqmxC96z29jQa8tzYZSX2j4uy7nMWRp/pnyf9IjBs/m7efRsu4xii0gRGUX8UawSlJhlSw49Mxg==\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -269,7 +269,7 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:31:10 GMT" + "Thu, 16 Mar 2017 22:46:32 GMT" ], "Pragma": [ "no-cache" @@ -285,16 +285,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "81306851-367c-4ec4-b644-c98164e91d45" + "c4a3913a-1254-4eee-9a87-50ff83b1c302" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1188" + "1196" ], "x-ms-correlation-request-id": [ - "81306851-367c-4ec4-b644-c98164e91d45" + "c4a3913a-1254-4eee-9a87-50ff83b1c302" ], "x-ms-routing-request-id": [ - "WESTUS2:20161206T033110Z:81306851-367c-4ec4-b644-c98164e91d45" + "WESTUS2:20170316T224633Z:c4a3913a-1254-4eee-9a87-50ff83b1c302" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -303,29 +303,29 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg9093/providers/Microsoft.ContainerRegistry/registries/acrregistry6754?api-version=2016-06-27-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzkwOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5Njc1ND9hcGktdmVyc2lvbj0yMDE2LTA2LTI3LXByZXZpZXc=", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg9843/providers/Microsoft.ContainerRegistry/registries/acrregistry86?api-version=2017-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzk4NDMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5ODY/YXBpLXZlcnNpb249MjAxNy0wMy0wMQ==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage4122\",\r\n \"accessKey\": \"WluI9k+YyMnP4dmXp20lKNwPb7P+Lnzzy8gUk24/5Odoj3ivMZVzGUsYM91d52LoEYf9TirFjCoeDJS9hyUH2A==\"\r\n }\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", + "RequestBody": "{\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n },\r\n \"properties\": {\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage5985\",\r\n \"accessKey\": \"nWK3MX+0ZSkjFzNIM0tSuewn6K9MhzsqRJtUaRNh+WIKGd1Uq94hbGkg74t8SwTVewawOk3STzdFItTsaCNJgA==\"\r\n }\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "324" + "363" ], "x-ms-client-request-id": [ - "eff60c4f-2a86-49ed-a2cf-da2ff6062813" + "9d61f92a-bd56-4d43-b96a-4e87a756da34" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.0.0-preview" + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/acr_rg9093/providers/Microsoft.ContainerRegistry/registries/acrregistry6754\",\r\n \"name\": \"acrregistry6754\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry6754-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-12-06T03:31:13.3255799Z\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage4122\"\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg9843/providers/Microsoft.ContainerRegistry/registries/acrregistry86\",\r\n \"name\": \"acrregistry86\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry86.azurecr.io\",\r\n \"creationDate\": \"2017-03-16T22:46:35.8198288Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage5985\"\r\n }\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -337,7 +337,7 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:31:14 GMT" + "Thu, 16 Mar 2017 22:46:37 GMT" ], "Pragma": [ "no-cache" @@ -346,53 +346,47 @@ "chunked" ], "Server": [ - "Microsoft-IIS/8.5" + "Microsoft-HTTPAPI/2.0" ], "Vary": [ "Accept-Encoding" ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1187" + "1195" ], "x-ms-request-id": [ - "dfc18e2d-1447-4174-97fd-378bd4ac5058" + "d181b9eb-273d-4ef2-ab43-c2721e392f5d" ], "x-ms-correlation-request-id": [ - "dfc18e2d-1447-4174-97fd-378bd4ac5058" + "d181b9eb-273d-4ef2-ab43-c2721e392f5d" ], "x-ms-routing-request-id": [ - "WESTUS2:20161206T033114Z:dfc18e2d-1447-4174-97fd-378bd4ac5058" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" + "WESTUS2:20170316T224637Z:d181b9eb-273d-4ef2-ab43-c2721e392f5d" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg9093/providers/Microsoft.ContainerRegistry/registries/acrregistry6754?api-version=2016-06-27-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzkwOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5Njc1ND9hcGktdmVyc2lvbj0yMDE2LTA2LTI3LXByZXZpZXc=", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg9843/providers/Microsoft.ContainerRegistry/registries/acrregistry86?api-version=2017-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzk4NDMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5ODY/YXBpLXZlcnNpb249MjAxNy0wMy0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "938ad0ab-2835-4cb0-b5be-58c8fff1d77a" + "fa0b33c0-d0ca-47e9-aef4-df52bd484d5b" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.0.0-preview" + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/acr_rg9093/providers/Microsoft.ContainerRegistry/registries/acrregistry6754\",\r\n \"name\": \"acrregistry6754\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry6754-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-12-06T03:31:14.0590714Z\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage4122\"\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg9843/providers/Microsoft.ContainerRegistry/registries/acrregistry86\",\r\n \"name\": \"acrregistry86\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry86.azurecr.io\",\r\n \"creationDate\": \"2017-03-16T22:46:37.402919Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage5985\"\r\n }\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -404,7 +398,7 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:31:14 GMT" + "Thu, 16 Mar 2017 22:46:37 GMT" ], "Pragma": [ "no-cache" @@ -413,59 +407,53 @@ "chunked" ], "Server": [ - "Microsoft-IIS/8.5" + "Microsoft-HTTPAPI/2.0" ], "Vary": [ "Accept-Encoding" ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14926" + "14994" ], "x-ms-request-id": [ - "429caf14-ef5e-4883-825d-88ea17dce0c4" + "5fb17681-89d0-48ed-8b66-b1c59d657b92" ], "x-ms-correlation-request-id": [ - "429caf14-ef5e-4883-825d-88ea17dce0c4" + "5fb17681-89d0-48ed-8b66-b1c59d657b92" ], "x-ms-routing-request-id": [ - "WESTUS2:20161206T033114Z:429caf14-ef5e-4883-825d-88ea17dce0c4" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" + "WESTUS2:20170316T224637Z:5fb17681-89d0-48ed-8b66-b1c59d657b92" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg9093/providers/Microsoft.ContainerRegistry/registries/acrregistry8837?api-version=2016-06-27-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzkwOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5ODgzNz9hcGktdmVyc2lvbj0yMDE2LTA2LTI3LXByZXZpZXc=", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg9843/providers/Microsoft.ContainerRegistry/registries/acrregistry3319?api-version=2017-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzk4NDMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5MzMxOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAx", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage4122\",\r\n \"accessKey\": \"WluI9k+YyMnP4dmXp20lKNwPb7P+Lnzzy8gUk24/5Odoj3ivMZVzGUsYM91d52LoEYf9TirFjCoeDJS9hyUH2A==\"\r\n }\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", + "RequestBody": "{\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n },\r\n \"properties\": {\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage5985\",\r\n \"accessKey\": \"nWK3MX+0ZSkjFzNIM0tSuewn6K9MhzsqRJtUaRNh+WIKGd1Uq94hbGkg74t8SwTVewawOk3STzdFItTsaCNJgA==\"\r\n }\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "325" + "364" ], "x-ms-client-request-id": [ - "c7a7d625-72ea-4460-859d-aae0ef871f12" + "a1ebdbea-791c-462d-80be-c385dc3a8b6d" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.0.0-preview" + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/acr_rg9093/providers/Microsoft.ContainerRegistry/registries/acrregistry8837\",\r\n \"name\": \"acrregistry8837\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry8837-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-12-06T03:31:15.6380515Z\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage4122\"\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg9843/providers/Microsoft.ContainerRegistry/registries/acrregistry3319\",\r\n \"name\": \"acrregistry3319\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry3319.azurecr.io\",\r\n \"creationDate\": \"2017-03-16T22:46:39.5322797Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage5985\"\r\n }\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -477,7 +465,7 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:31:16 GMT" + "Thu, 16 Mar 2017 22:47:04 GMT" ], "Pragma": [ "no-cache" @@ -486,53 +474,47 @@ "chunked" ], "Server": [ - "Microsoft-IIS/8.5" + "Microsoft-HTTPAPI/2.0" ], "Vary": [ "Accept-Encoding" ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1186" + "1194" ], "x-ms-request-id": [ - "bcd7f683-fe96-4df1-bb48-080451912d65" + "bbbaad0c-d636-44be-99fc-c3d16d9be2a1" ], "x-ms-correlation-request-id": [ - "bcd7f683-fe96-4df1-bb48-080451912d65" + "bbbaad0c-d636-44be-99fc-c3d16d9be2a1" ], "x-ms-routing-request-id": [ - "WESTUS2:20161206T033116Z:bcd7f683-fe96-4df1-bb48-080451912d65" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" + "WESTUS2:20170316T224705Z:bbbaad0c-d636-44be-99fc-c3d16d9be2a1" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg9093/providers/Microsoft.ContainerRegistry/registries/acrregistry8837?api-version=2016-06-27-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzkwOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5ODgzNz9hcGktdmVyc2lvbj0yMDE2LTA2LTI3LXByZXZpZXc=", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg9843/providers/Microsoft.ContainerRegistry/registries/acrregistry3319?api-version=2017-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzk4NDMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5MzMxOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "bd0bea5e-cea0-45f4-9d99-8a19e8f7ed0d" + "def4c9bb-05e6-479f-8806-b07dcfc75e32" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.0.0-preview" + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/acr_rg9093/providers/Microsoft.ContainerRegistry/registries/acrregistry8837\",\r\n \"name\": \"acrregistry8837\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry8837-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-12-06T03:31:16.2836556Z\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage4122\"\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg9843/providers/Microsoft.ContainerRegistry/registries/acrregistry3319\",\r\n \"name\": \"acrregistry3319\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry3319.azurecr.io\",\r\n \"creationDate\": \"2017-03-16T22:47:05.5229154Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage5985\"\r\n }\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -544,7 +526,7 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:31:16 GMT" + "Thu, 16 Mar 2017 22:47:05 GMT" ], "Pragma": [ "no-cache" @@ -553,31 +535,25 @@ "chunked" ], "Server": [ - "Microsoft-IIS/8.5" + "Microsoft-HTTPAPI/2.0" ], "Vary": [ "Accept-Encoding" ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14925" + "14993" ], "x-ms-request-id": [ - "13ab304b-f1ab-4721-bcc7-f9b8ae6965de" + "b84695df-cebe-40e2-b5b8-f0530e1a12e7" ], "x-ms-correlation-request-id": [ - "13ab304b-f1ab-4721-bcc7-f9b8ae6965de" + "b84695df-cebe-40e2-b5b8-f0530e1a12e7" ], "x-ms-routing-request-id": [ - "WESTUS2:20161206T033116Z:13ab304b-f1ab-4721-bcc7-f9b8ae6965de" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" + "WESTUS2:20170316T224705Z:b84695df-cebe-40e2-b5b8-f0530e1a12e7" ] }, "StatusCode": 200 @@ -585,17 +561,17 @@ ], "Names": { "CreateResourceGroup": [ - "acr_rg9093" + "acr_rg9843" ], "CreateStorageAccount": [ - "acrstorage4122" + "acrstorage5985" ], "ContainerRegistryGetTest": [ - "acrregistry6754", - "acrregistry8837" + "acrregistry86", + "acrregistry3319" ] }, "Variables": { - "SubscriptionId": "84c559c6-30a0-417c-ba06-8a2253b388c3" + "SubscriptionId": "3eb31d8d-2879-4706-89b4-4dc4047726c6" } } \ No newline at end of file diff --git a/src/ResourceManagement/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryListByResourceGroupTest.json b/src/ResourceManagement/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryListByResourceGroupTest.json index 17db5a699e0c..fbe2da3e8cb9 100644 --- a/src/ResourceManagement/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryListByResourceGroupTest.json +++ b/src/ResourceManagement/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryListByResourceGroupTest.json @@ -1,13 +1,13 @@ { "Entries": [ { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.ContainerRegistry?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "610d0ce8-0318-4a8f-8912-a981f7f65a79" + "fe2f4482-5e22-4253-af96-0d71a6e61e31" ], "accept-language": [ "en-US" @@ -17,7 +17,7 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry\",\r\n \"namespace\": \"Microsoft.ContainerRegistry\",\r\n \"authorization\": {\r\n \"applicationId\": \"6a0ec4d3-30cb-4a83-91c0-ae56bc0e3d26\",\r\n \"roleDefinitionId\": \"78e18383-93eb-418a-9887-bc9271046576\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"registries\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"registries/GetCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"East US\",\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"swagger\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"East US\",\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.ContainerRegistry\",\r\n \"namespace\": \"Microsoft.ContainerRegistry\",\r\n \"authorization\": {\r\n \"applicationId\": \"6a0ec4d3-30cb-4a83-91c0-ae56bc0e3d26\",\r\n \"roleDefinitionId\": \"78e18383-93eb-418a-9887-bc9271046576\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"registries\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\",\r\n \"2016-06-27-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"registries/GetCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/listCredentials\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredential\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West US\",\r\n \"East US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\",\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -29,7 +29,7 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:35:18 GMT" + "Thu, 16 Mar 2017 22:50:35 GMT" ], "Pragma": [ "no-cache" @@ -38,16 +38,16 @@ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14990" + "14992" ], "x-ms-request-id": [ - "dd7a000d-ea80-4fd0-af1f-f6ff1771b5e1" + "e7c70ac7-f396-4869-8b9f-9b7e24a49de2" ], "x-ms-correlation-request-id": [ - "dd7a000d-ea80-4fd0-af1f-f6ff1771b5e1" + "e7c70ac7-f396-4869-8b9f-9b7e24a49de2" ], "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033519Z:dd7a000d-ea80-4fd0-af1f-f6ff1771b5e1" + "WESTUS2:20170316T225036Z:e7c70ac7-f396-4869-8b9f-9b7e24a49de2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -56,8 +56,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/acr_rg5427?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlZ3JvdXBzL2Fjcl9yZzU0Mjc/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg4701?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlZ3JvdXBzL2Fjcl9yZzQ3MDE/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"westus\"\r\n}", "RequestHeaders": { @@ -68,7 +68,7 @@ "28" ], "x-ms-client-request-id": [ - "c392cd48-f0a6-4ad5-80d2-3093c9e66d13" + "0a8cb82b-5bbe-4e03-9ff3-63e3b0432d2d" ], "accept-language": [ "en-US" @@ -78,7 +78,7 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg5427\",\r\n \"name\": \"acr_rg5427\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg4701\",\r\n \"name\": \"acr_rg4701\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "173" @@ -93,22 +93,22 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:35:19 GMT" + "Thu, 16 Mar 2017 22:50:36 GMT" ], "Pragma": [ "no-cache" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1197" + "1198" ], "x-ms-request-id": [ - "1c491fc9-e403-4780-b1e8-e3e88ffa85a1" + "03b6bccb-70e0-4a38-a2ea-e7fb117c1e6a" ], "x-ms-correlation-request-id": [ - "1c491fc9-e403-4780-b1e8-e3e88ffa85a1" + "03b6bccb-70e0-4a38-a2ea-e7fb117c1e6a" ], "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033519Z:1c491fc9-e403-4780-b1e8-e3e88ffa85a1" + "WESTUS2:20170316T225036Z:03b6bccb-70e0-4a38-a2ea-e7fb117c1e6a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -117,8 +117,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg5427/providers/Microsoft.Storage/storageAccounts/acrstorage5309?api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzU0MjcvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlNTMwOT9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg4701/providers/Microsoft.Storage/storageAccounts/acrstorage8876?api-version=2016-01-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzQ3MDEvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlODg3Nj9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", "RequestMethod": "PUT", "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\"\r\n}", "RequestHeaders": { @@ -129,7 +129,7 @@ "96" ], "x-ms-client-request-id": [ - "48109040-1810-4266-a1dd-4eb36ec83124" + "b15b747e-ea75-4b61-beab-1ab67651e48e" ], "accept-language": [ "en-US" @@ -151,13 +151,13 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:35:19 GMT" + "Thu, 16 Mar 2017 22:50:36 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.Storage/operations/48d16461-d1ac-4e47-8475-622b802192ba?monitor=true&api-version=2016-01-01" + "https://management.azure.com/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.Storage/operations/a126c5db-2717-4758-91a0-df9db6e226fe?monitor=true&api-version=2016-01-01" ], "Retry-After": [ "17" @@ -167,16 +167,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1196" + "1197" ], "x-ms-request-id": [ - "5816f235-035c-4ea8-8e76-522d80f5277a" + "31753bdc-596a-490f-8a89-ddaf3416d33d" ], "x-ms-correlation-request-id": [ - "5816f235-035c-4ea8-8e76-522d80f5277a" + "31753bdc-596a-490f-8a89-ddaf3416d33d" ], "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033520Z:5816f235-035c-4ea8-8e76-522d80f5277a" + "WESTUS2:20170316T225037Z:31753bdc-596a-490f-8a89-ddaf3416d33d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -185,8 +185,8 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.Storage/operations/48d16461-d1ac-4e47-8475-622b802192ba?monitor=true&api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9vcGVyYXRpb25zLzQ4ZDE2NDYxLWQxYWMtNGU0Ny04NDc1LTYyMmI4MDIxOTJiYT9tb25pdG9yPXRydWUmYXBpLXZlcnNpb249MjAxNi0wMS0wMQ==", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.Storage/operations/a126c5db-2717-4758-91a0-df9db6e226fe?monitor=true&api-version=2016-01-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9vcGVyYXRpb25zL2ExMjZjNWRiLTI3MTctNDc1OC05MWEwLWRmOWRiNmUyMjZmZT9tb25pdG9yPXRydWUmYXBpLXZlcnNpb249MjAxNi0wMS0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -195,7 +195,7 @@ "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg5427/providers/Microsoft.Storage/storageAccounts/acrstorage5309\",\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\",\r\n \"name\": \"acrstorage5309\",\r\n \"properties\": {\r\n \"creationTime\": \"2016-12-06T03:35:20.6318523Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://acrstorage5309.blob.core.windows.net/\",\r\n \"file\": \"https://acrstorage5309.file.core.windows.net/\",\r\n \"queue\": \"https://acrstorage5309.queue.core.windows.net/\",\r\n \"table\": \"https://acrstorage5309.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"statusOfPrimary\": \"available\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"tags\": {},\r\n \"type\": \"Microsoft.Storage/storageAccounts\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg4701/providers/Microsoft.Storage/storageAccounts/acrstorage8876\",\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\",\r\n \"name\": \"acrstorage8876\",\r\n \"properties\": {\r\n \"creationTime\": \"2017-03-16T22:50:37.4409786Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://acrstorage8876.blob.core.windows.net/\",\r\n \"file\": \"https://acrstorage8876.file.core.windows.net/\",\r\n \"queue\": \"https://acrstorage8876.queue.core.windows.net/\",\r\n \"table\": \"https://acrstorage8876.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"statusOfPrimary\": \"available\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"tags\": {},\r\n \"type\": \"Microsoft.Storage/storageAccounts\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -207,7 +207,7 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:35:49 GMT" + "Thu, 16 Mar 2017 22:51:07 GMT" ], "Pragma": [ "no-cache" @@ -223,16 +223,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "839d39f4-eb93-4ebc-974a-d837696b1d2f" + "96789ba5-32c0-41f7-9b47-7148d48d1e94" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14989" + "14991" ], "x-ms-correlation-request-id": [ - "839d39f4-eb93-4ebc-974a-d837696b1d2f" + "96789ba5-32c0-41f7-9b47-7148d48d1e94" ], "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033550Z:839d39f4-eb93-4ebc-974a-d837696b1d2f" + "WESTUS2:20170316T225107Z:96789ba5-32c0-41f7-9b47-7148d48d1e94" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -241,13 +241,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg5427/providers/Microsoft.Storage/storageAccounts/acrstorage5309/listKeys?api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzU0MjcvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlNTMwOS9saXN0S2V5cz9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg4701/providers/Microsoft.Storage/storageAccounts/acrstorage8876/listKeys?api-version=2016-01-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzQ3MDEvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlODg3Ni9saXN0S2V5cz9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", "RequestMethod": "POST", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "2a30d230-a4a8-4561-a664-2d5da4ec54e3" + "25e00b70-37ce-4af5-86a4-743d40b8d0a3" ], "accept-language": [ "en-US" @@ -257,7 +257,7 @@ "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" ] }, - "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"MJ6dZCYzr4QMtFmL+KpoQgnWiZGiwRQbR7z4B31NNyiEi+fpiVbRP7C9UFpUsB90siXVDAFyCvxkAfICt7AY4A==\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"r7k8DW3yy96IUEx1yvxLopHpcY9E0wJ1D+7HKMmtLs8ag0KKtVoIfubGKv88HsJ+e1dua35rzIMnwURcxnSafw==\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"9IDINDecbc1h/EN8LpAcyoLw3n/HI8goIJQ2hMsNrZ2R/MBwsZ+IW9JcAo2FW6pVZW4rRNzW8mf24nz+fw8HVw==\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"FPaTF1xzLyRyP/OT0SBW6Kwqznk0WfYhe+SSldVQ0yE3S4QBd/zNnd6roYFlqmIXSZj5NMYofzoy0LVc8gA1rA==\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -269,7 +269,7 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:35:49 GMT" + "Thu, 16 Mar 2017 22:51:07 GMT" ], "Pragma": [ "no-cache" @@ -285,16 +285,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "e8ca0fbe-78dc-4067-9d40-a36245b36e2e" + "a940a0df-0456-499b-8b94-3b6bfc4e7b0d" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1195" + "1196" ], "x-ms-correlation-request-id": [ - "e8ca0fbe-78dc-4067-9d40-a36245b36e2e" + "a940a0df-0456-499b-8b94-3b6bfc4e7b0d" ], "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033550Z:e8ca0fbe-78dc-4067-9d40-a36245b36e2e" + "WESTUS2:20170316T225107Z:a940a0df-0456-499b-8b94-3b6bfc4e7b0d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -303,29 +303,29 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg5427/providers/Microsoft.ContainerRegistry/registries/acrregistry3581?api-version=2016-06-27-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzU0MjcvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5MzU4MT9hcGktdmVyc2lvbj0yMDE2LTA2LTI3LXByZXZpZXc=", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg4701/providers/Microsoft.ContainerRegistry/registries/acrregistry8286?api-version=2017-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzQ3MDEvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5ODI4Nj9hcGktdmVyc2lvbj0yMDE3LTAzLTAx", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage5309\",\r\n \"accessKey\": \"MJ6dZCYzr4QMtFmL+KpoQgnWiZGiwRQbR7z4B31NNyiEi+fpiVbRP7C9UFpUsB90siXVDAFyCvxkAfICt7AY4A==\"\r\n }\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", + "RequestBody": "{\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n },\r\n \"properties\": {\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage8876\",\r\n \"accessKey\": \"9IDINDecbc1h/EN8LpAcyoLw3n/HI8goIJQ2hMsNrZ2R/MBwsZ+IW9JcAo2FW6pVZW4rRNzW8mf24nz+fw8HVw==\"\r\n }\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "293" + "332" ], "x-ms-client-request-id": [ - "d41bb774-a9e5-4ca4-800e-a0cc45405b30" + "28f9b49a-a5fa-45c1-88da-0bc7fc9f432c" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.0.0-preview" + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/acr_rg5427/providers/Microsoft.ContainerRegistry/registries/acrregistry3581\",\r\n \"name\": \"acrregistry3581\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry3581-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-12-06T03:35:53.0178633Z\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage5309\"\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg4701/providers/Microsoft.ContainerRegistry/registries/acrregistry8286\",\r\n \"name\": \"acrregistry8286\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry8286.azurecr.io\",\r\n \"creationDate\": \"2017-03-16T22:51:29.0179786Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage8876\"\r\n }\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -337,7 +337,7 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:35:53 GMT" + "Thu, 16 Mar 2017 22:51:54 GMT" ], "Pragma": [ "no-cache" @@ -346,59 +346,53 @@ "chunked" ], "Server": [ - "Microsoft-IIS/8.5" + "Microsoft-HTTPAPI/2.0" ], "Vary": [ "Accept-Encoding" ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1194" + "1195" ], "x-ms-request-id": [ - "f736a833-5893-4103-a615-ecfadb70206f" + "c5656653-459a-4053-8c4a-fdb52734adcc" ], "x-ms-correlation-request-id": [ - "f736a833-5893-4103-a615-ecfadb70206f" + "c5656653-459a-4053-8c4a-fdb52734adcc" ], "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033553Z:f736a833-5893-4103-a615-ecfadb70206f" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" + "WESTUS2:20170316T225154Z:c5656653-459a-4053-8c4a-fdb52734adcc" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg5427/providers/Microsoft.ContainerRegistry/registries/acrregistry282?api-version=2016-06-27-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzU0MjcvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5MjgyP2FwaS12ZXJzaW9uPTIwMTYtMDYtMjctcHJldmlldw==", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg4701/providers/Microsoft.ContainerRegistry/registries/acrregistry7868?api-version=2017-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzQ3MDEvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5Nzg2OD9hcGktdmVyc2lvbj0yMDE3LTAzLTAx", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage5309\",\r\n \"accessKey\": \"MJ6dZCYzr4QMtFmL+KpoQgnWiZGiwRQbR7z4B31NNyiEi+fpiVbRP7C9UFpUsB90siXVDAFyCvxkAfICt7AY4A==\"\r\n }\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", + "RequestBody": "{\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n },\r\n \"properties\": {\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage8876\",\r\n \"accessKey\": \"9IDINDecbc1h/EN8LpAcyoLw3n/HI8goIJQ2hMsNrZ2R/MBwsZ+IW9JcAo2FW6pVZW4rRNzW8mf24nz+fw8HVw==\"\r\n }\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "293" + "332" ], "x-ms-client-request-id": [ - "851bba82-7840-4927-98f6-77c1edb5f93e" + "bbff414e-6ab0-4e48-9ff5-6a321edbc941" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.0.0-preview" + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/acr_rg5427/providers/Microsoft.ContainerRegistry/registries/acrregistry282\",\r\n \"name\": \"acrregistry282\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry282-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-12-06T03:35:55.0647124Z\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage5309\"\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg4701/providers/Microsoft.ContainerRegistry/registries/acrregistry7868\",\r\n \"name\": \"acrregistry7868\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry7868.azurecr.io\",\r\n \"creationDate\": \"2017-03-16T22:51:55.9662416Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage8876\"\r\n }\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -410,7 +404,7 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:35:55 GMT" + "Thu, 16 Mar 2017 22:52:21 GMT" ], "Pragma": [ "no-cache" @@ -419,53 +413,47 @@ "chunked" ], "Server": [ - "Microsoft-IIS/8.5" + "Microsoft-HTTPAPI/2.0" ], "Vary": [ "Accept-Encoding" ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1193" + "1194" ], "x-ms-request-id": [ - "14d19351-18c8-4264-99bb-cf7fc7f5ffd8" + "5691500f-daab-409c-8060-27f9336a467a" ], "x-ms-correlation-request-id": [ - "14d19351-18c8-4264-99bb-cf7fc7f5ffd8" + "5691500f-daab-409c-8060-27f9336a467a" ], "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033555Z:14d19351-18c8-4264-99bb-cf7fc7f5ffd8" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" + "WESTUS2:20170316T225222Z:5691500f-daab-409c-8060-27f9336a467a" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg5427/providers/Microsoft.ContainerRegistry/registries?api-version=2016-06-27-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzU0MjcvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzP2FwaS12ZXJzaW9uPTIwMTYtMDYtMjctcHJldmlldw==", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg4701/providers/Microsoft.ContainerRegistry/registries?api-version=2017-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzQ3MDEvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzP2FwaS12ZXJzaW9uPTIwMTctMDMtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "c508076f-2aa1-474f-a319-35a4ff119d3a" + "58e6529d-d04d-4943-b94f-475c98536ddf" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.0.0-preview" + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/acr_rg5427/providers/Microsoft.ContainerRegistry/registries/acrregistry282\",\r\n \"name\": \"acrregistry282\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry282-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-12-06T03:35:55.6159918Z\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage5309\"\r\n }\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/acr_rg5427/providers/Microsoft.ContainerRegistry/registries/acrregistry3581\",\r\n \"name\": \"acrregistry3581\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry3581-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-12-06T03:35:53.6616112Z\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage5309\"\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg4701/providers/Microsoft.ContainerRegistry/registries/acrregistry7868\",\r\n \"name\": \"acrregistry7868\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry7868.azurecr.io\",\r\n \"creationDate\": \"2017-03-16T22:52:22.1088397Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage8876\"\r\n }\r\n }\r\n },\r\n {\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg4701/providers/Microsoft.ContainerRegistry/registries/acrregistry8286\",\r\n \"name\": \"acrregistry8286\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry8286.azurecr.io\",\r\n \"creationDate\": \"2017-03-16T22:51:30.5921302Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage8876\"\r\n }\r\n }\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -477,7 +465,7 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:35:56 GMT" + "Thu, 16 Mar 2017 22:52:21 GMT" ], "Pragma": [ "no-cache" @@ -486,31 +474,25 @@ "chunked" ], "Server": [ - "Microsoft-IIS/8.5" + "Microsoft-HTTPAPI/2.0" ], "Vary": [ "Accept-Encoding" ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14988" + "14990" ], "x-ms-request-id": [ - "2d37f61f-0dcd-4523-acc7-9d0d8932119a" + "e17dfcc5-366c-4b6c-af66-04b4ebe5980b" ], "x-ms-correlation-request-id": [ - "2d37f61f-0dcd-4523-acc7-9d0d8932119a" + "e17dfcc5-366c-4b6c-af66-04b4ebe5980b" ], "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033556Z:2d37f61f-0dcd-4523-acc7-9d0d8932119a" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" + "WESTUS2:20170316T225222Z:e17dfcc5-366c-4b6c-af66-04b4ebe5980b" ] }, "StatusCode": 200 @@ -518,17 +500,17 @@ ], "Names": { "CreateResourceGroup": [ - "acr_rg5427" + "acr_rg4701" ], "CreateStorageAccount": [ - "acrstorage5309" + "acrstorage8876" ], "CreateContainerRegistry": [ - "acrregistry3581", - "acrregistry282" + "acrregistry8286", + "acrregistry7868" ] }, "Variables": { - "SubscriptionId": "84c559c6-30a0-417c-ba06-8a2253b388c3" + "SubscriptionId": "3eb31d8d-2879-4706-89b4-4dc4047726c6" } } \ No newline at end of file diff --git a/src/ResourceManagement/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryListBySubscriptionTest.json b/src/ResourceManagement/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryListBySubscriptionTest.json index 70a0bbcfb030..abfee1ee088f 100644 --- a/src/ResourceManagement/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryListBySubscriptionTest.json +++ b/src/ResourceManagement/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryListBySubscriptionTest.json @@ -1,13 +1,13 @@ { "Entries": [ { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.ContainerRegistry?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "8ca60429-373a-496a-a1ce-20388cd699cd" + "64abe80b-6390-433a-8729-6aabe018fce6" ], "accept-language": [ "en-US" @@ -17,7 +17,7 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry\",\r\n \"namespace\": \"Microsoft.ContainerRegistry\",\r\n \"authorization\": {\r\n \"applicationId\": \"6a0ec4d3-30cb-4a83-91c0-ae56bc0e3d26\",\r\n \"roleDefinitionId\": \"78e18383-93eb-418a-9887-bc9271046576\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"registries\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"registries/GetCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"East US\",\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"swagger\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"East US\",\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.ContainerRegistry\",\r\n \"namespace\": \"Microsoft.ContainerRegistry\",\r\n \"authorization\": {\r\n \"applicationId\": \"6a0ec4d3-30cb-4a83-91c0-ae56bc0e3d26\",\r\n \"roleDefinitionId\": \"78e18383-93eb-418a-9887-bc9271046576\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"registries\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\",\r\n \"2016-06-27-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"registries/GetCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/listCredentials\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredential\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West US\",\r\n \"East US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\",\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -29,7 +29,7 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:33:21 GMT" + "Thu, 16 Mar 2017 22:47:11 GMT" ], "Pragma": [ "no-cache" @@ -38,16 +38,16 @@ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14990" + "14988" ], "x-ms-request-id": [ - "85bc72a2-1c9e-4fb9-aa12-9b64cf34eec5" + "b9eed7cb-206e-4ed4-bee9-a924cbf4efb8" ], "x-ms-correlation-request-id": [ - "85bc72a2-1c9e-4fb9-aa12-9b64cf34eec5" + "b9eed7cb-206e-4ed4-bee9-a924cbf4efb8" ], "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033321Z:85bc72a2-1c9e-4fb9-aa12-9b64cf34eec5" + "WESTUS2:20170316T224711Z:b9eed7cb-206e-4ed4-bee9-a924cbf4efb8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -56,13 +56,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.ContainerRegistry?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "affafa16-fc63-4409-84f8-4859dc0fba1b" + "1ff71a2b-73dc-4926-9315-37596b7db49d" ], "accept-language": [ "en-US" @@ -72,7 +72,7 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry\",\r\n \"namespace\": \"Microsoft.ContainerRegistry\",\r\n \"authorization\": {\r\n \"applicationId\": \"6a0ec4d3-30cb-4a83-91c0-ae56bc0e3d26\",\r\n \"roleDefinitionId\": \"78e18383-93eb-418a-9887-bc9271046576\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"registries\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"registries/GetCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"East US\",\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"swagger\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"East US\",\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.ContainerRegistry\",\r\n \"namespace\": \"Microsoft.ContainerRegistry\",\r\n \"authorization\": {\r\n \"applicationId\": \"6a0ec4d3-30cb-4a83-91c0-ae56bc0e3d26\",\r\n \"roleDefinitionId\": \"78e18383-93eb-418a-9887-bc9271046576\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"registries\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\",\r\n \"2016-06-27-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"registries/GetCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/listCredentials\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredential\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West US\",\r\n \"East US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\",\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -84,7 +84,7 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:33:55 GMT" + "Thu, 16 Mar 2017 22:48:11 GMT" ], "Pragma": [ "no-cache" @@ -93,16 +93,16 @@ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14987" + "14986" ], "x-ms-request-id": [ - "48fcb075-5393-4a35-b95e-2a4f84e33b0b" + "c8b972ef-213c-4240-9bd4-2989e4392da1" ], "x-ms-correlation-request-id": [ - "48fcb075-5393-4a35-b95e-2a4f84e33b0b" + "c8b972ef-213c-4240-9bd4-2989e4392da1" ], "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033355Z:48fcb075-5393-4a35-b95e-2a4f84e33b0b" + "WESTUS2:20170316T224811Z:c8b972ef-213c-4240-9bd4-2989e4392da1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -111,8 +111,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/acr_rg2558?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlZ3JvdXBzL2Fjcl9yZzI1NTg/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg2340?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlZ3JvdXBzL2Fjcl9yZzIzNDA/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"westus\"\r\n}", "RequestHeaders": { @@ -123,7 +123,7 @@ "28" ], "x-ms-client-request-id": [ - "1692d901-fe09-4091-974c-c800ee5b97ec" + "0cc79db5-18a8-4d72-a5cd-8b4d1f428354" ], "accept-language": [ "en-US" @@ -133,7 +133,7 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg2558\",\r\n \"name\": \"acr_rg2558\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg2340\",\r\n \"name\": \"acr_rg2340\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "173" @@ -148,22 +148,22 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:33:21 GMT" + "Thu, 16 Mar 2017 22:47:11 GMT" ], "Pragma": [ "no-cache" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" + "1190" ], "x-ms-request-id": [ - "6285a8f6-521c-4854-b542-10e826207705" + "e161d2e2-0c34-4bb0-ac15-135481027428" ], "x-ms-correlation-request-id": [ - "6285a8f6-521c-4854-b542-10e826207705" + "e161d2e2-0c34-4bb0-ac15-135481027428" ], "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033321Z:6285a8f6-521c-4854-b542-10e826207705" + "WESTUS2:20170316T224712Z:e161d2e2-0c34-4bb0-ac15-135481027428" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -172,8 +172,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg2558/providers/Microsoft.Storage/storageAccounts/acrstorage6769?api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzI1NTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlNjc2OT9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg2340/providers/Microsoft.Storage/storageAccounts/acrstorage3754?api-version=2016-01-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzIzNDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlMzc1ND9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", "RequestMethod": "PUT", "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\"\r\n}", "RequestHeaders": { @@ -184,7 +184,7 @@ "96" ], "x-ms-client-request-id": [ - "e1e7cd28-1d4a-467d-8bbc-1cea8aa00c5f" + "c1eb7ad5-d579-482c-94ca-0260cae288a8" ], "accept-language": [ "en-US" @@ -206,13 +206,13 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:33:22 GMT" + "Thu, 16 Mar 2017 22:47:12 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.Storage/operations/7c7bc9a8-ca72-4d67-abb1-8fba675a180a?monitor=true&api-version=2016-01-01" + "https://management.azure.com/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.Storage/operations/c5353d5d-2a20-4ec2-b331-4c02451c9e05?monitor=true&api-version=2016-01-01" ], "Retry-After": [ "17" @@ -222,16 +222,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1197" + "1189" ], "x-ms-request-id": [ - "d6816e16-3650-47cb-be96-5f40553eb776" + "4580cf76-7a45-4f0e-8f46-c92ddde55d31" ], "x-ms-correlation-request-id": [ - "d6816e16-3650-47cb-be96-5f40553eb776" + "4580cf76-7a45-4f0e-8f46-c92ddde55d31" ], "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033322Z:d6816e16-3650-47cb-be96-5f40553eb776" + "WESTUS2:20170316T224712Z:4580cf76-7a45-4f0e-8f46-c92ddde55d31" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -240,8 +240,8 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.Storage/operations/7c7bc9a8-ca72-4d67-abb1-8fba675a180a?monitor=true&api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9vcGVyYXRpb25zLzdjN2JjOWE4LWNhNzItNGQ2Ny1hYmIxLThmYmE2NzVhMTgwYT9tb25pdG9yPXRydWUmYXBpLXZlcnNpb249MjAxNi0wMS0wMQ==", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.Storage/operations/c5353d5d-2a20-4ec2-b331-4c02451c9e05?monitor=true&api-version=2016-01-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9vcGVyYXRpb25zL2M1MzUzZDVkLTJhMjAtNGVjMi1iMzMxLTRjMDI0NTFjOWUwNT9tb25pdG9yPXRydWUmYXBpLXZlcnNpb249MjAxNi0wMS0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -250,7 +250,7 @@ "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg2558/providers/Microsoft.Storage/storageAccounts/acrstorage6769\",\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\",\r\n \"name\": \"acrstorage6769\",\r\n \"properties\": {\r\n \"creationTime\": \"2016-12-06T03:33:22.7429991Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://acrstorage6769.blob.core.windows.net/\",\r\n \"file\": \"https://acrstorage6769.file.core.windows.net/\",\r\n \"queue\": \"https://acrstorage6769.queue.core.windows.net/\",\r\n \"table\": \"https://acrstorage6769.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"statusOfPrimary\": \"available\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"tags\": {},\r\n \"type\": \"Microsoft.Storage/storageAccounts\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg2340/providers/Microsoft.Storage/storageAccounts/acrstorage3754\",\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\",\r\n \"name\": \"acrstorage3754\",\r\n \"properties\": {\r\n \"creationTime\": \"2017-03-16T22:47:13.1223613Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://acrstorage3754.blob.core.windows.net/\",\r\n \"file\": \"https://acrstorage3754.file.core.windows.net/\",\r\n \"queue\": \"https://acrstorage3754.queue.core.windows.net/\",\r\n \"table\": \"https://acrstorage3754.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"statusOfPrimary\": \"available\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"tags\": {},\r\n \"type\": \"Microsoft.Storage/storageAccounts\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -262,7 +262,7 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:33:52 GMT" + "Thu, 16 Mar 2017 22:47:42 GMT" ], "Pragma": [ "no-cache" @@ -278,16 +278,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "3cd227d4-4453-478c-88f4-c116c15ec87f" + "c7403d6a-d1af-48c1-9126-590b2ed6e9f1" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14988" + "14987" ], "x-ms-correlation-request-id": [ - "3cd227d4-4453-478c-88f4-c116c15ec87f" + "c7403d6a-d1af-48c1-9126-590b2ed6e9f1" ], "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033352Z:3cd227d4-4453-478c-88f4-c116c15ec87f" + "WESTUS2:20170316T224743Z:c7403d6a-d1af-48c1-9126-590b2ed6e9f1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -296,13 +296,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg2558/providers/Microsoft.Storage/storageAccounts/acrstorage6769/listKeys?api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzI1NTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlNjc2OS9saXN0S2V5cz9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg2340/providers/Microsoft.Storage/storageAccounts/acrstorage3754/listKeys?api-version=2016-01-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzIzNDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlMzc1NC9saXN0S2V5cz9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", "RequestMethod": "POST", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "de672332-e881-4906-90e4-858e63574fe2" + "d74e62aa-7065-456a-b121-c51b2b925572" ], "accept-language": [ "en-US" @@ -312,7 +312,7 @@ "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" ] }, - "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"lpezYnfX5FrT55B88snk/3du4Ed7jJ9rtoURMtaipdUM7n/aAiiUBXX5N8jR/awNSyLgaclUP6bvfizhEnrCmA==\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"A/HZk4KoV+ku+rzvQBiiDZvyqgRSFI5KgN8dtSYNhNPz5hSORD+/CJzzbAQnpw0ME/wKW02iRzhiWJIx0pdP0g==\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"ZGudPqJXjh3yawc9pQq7+8UKTNo/wC4X9Qfkj461E3qYaYK9hQ2QNui0cwvH1H+POUKfeIjp+6xuFt88IYzvsQ==\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"ZKiBjGl7gkmZ3NKHSwRIts8cAqNAr5qwv/zgL8HW5Ey5aH3cAM8zWDRlcFDBXNuxdfUAaX3oiemthvyTncbiLw==\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -324,7 +324,7 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:33:52 GMT" + "Thu, 16 Mar 2017 22:47:42 GMT" ], "Pragma": [ "no-cache" @@ -340,16 +340,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "600ae156-39c0-49f3-a676-0b44d2dcbe9e" + "14b525cb-5b25-4166-bba2-c710539b621f" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1196" + "1188" ], "x-ms-correlation-request-id": [ - "600ae156-39c0-49f3-a676-0b44d2dcbe9e" + "14b525cb-5b25-4166-bba2-c710539b621f" ], "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033353Z:600ae156-39c0-49f3-a676-0b44d2dcbe9e" + "WESTUS2:20170316T224743Z:14b525cb-5b25-4166-bba2-c710539b621f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -358,29 +358,29 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg2558/providers/Microsoft.ContainerRegistry/registries/acrregistry7989?api-version=2016-06-27-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzI1NTgvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5Nzk4OT9hcGktdmVyc2lvbj0yMDE2LTA2LTI3LXByZXZpZXc=", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg2340/providers/Microsoft.ContainerRegistry/registries/acrregistry3911?api-version=2017-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzIzNDAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5MzkxMT9hcGktdmVyc2lvbj0yMDE3LTAzLTAx", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage6769\",\r\n \"accessKey\": \"lpezYnfX5FrT55B88snk/3du4Ed7jJ9rtoURMtaipdUM7n/aAiiUBXX5N8jR/awNSyLgaclUP6bvfizhEnrCmA==\"\r\n }\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", + "RequestBody": "{\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n },\r\n \"properties\": {\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage3754\",\r\n \"accessKey\": \"ZGudPqJXjh3yawc9pQq7+8UKTNo/wC4X9Qfkj461E3qYaYK9hQ2QNui0cwvH1H+POUKfeIjp+6xuFt88IYzvsQ==\"\r\n }\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "293" + "332" ], "x-ms-client-request-id": [ - "05902a5b-c59c-4def-838d-def4889c2cab" + "7ac39e12-38c6-452c-a9f3-a5c4d12e004d" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.0.0-preview" + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/acr_rg2558/providers/Microsoft.ContainerRegistry/registries/acrregistry7989\",\r\n \"name\": \"acrregistry7989\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry7989-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-12-06T03:33:55.0018863Z\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage6769\"\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg2340/providers/Microsoft.ContainerRegistry/registries/acrregistry3911\",\r\n \"name\": \"acrregistry3911\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry3911.azurecr.io\",\r\n \"creationDate\": \"2017-03-16T22:47:44.6019628Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage3754\"\r\n }\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -392,7 +392,7 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:33:55 GMT" + "Thu, 16 Mar 2017 22:48:11 GMT" ], "Pragma": [ "no-cache" @@ -401,38 +401,32 @@ "chunked" ], "Server": [ - "Microsoft-IIS/8.5" + "Microsoft-HTTPAPI/2.0" ], "Vary": [ "Accept-Encoding" ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1195" + "1187" ], "x-ms-request-id": [ - "86b9eebf-5e6e-4f9d-87a3-64e22b00f3d2" + "a161a51d-2afe-43be-8ffc-3532ae5f7001" ], "x-ms-correlation-request-id": [ - "86b9eebf-5e6e-4f9d-87a3-64e22b00f3d2" + "a161a51d-2afe-43be-8ffc-3532ae5f7001" ], "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033355Z:86b9eebf-5e6e-4f9d-87a3-64e22b00f3d2" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" + "WESTUS2:20170316T224811Z:a161a51d-2afe-43be-8ffc-3532ae5f7001" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/acr_rg4708?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlZ3JvdXBzL2Fjcl9yZzQ3MDg/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg6006?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlZ3JvdXBzL2Fjcl9yZzYwMDY/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"westus\"\r\n}", "RequestHeaders": { @@ -443,7 +437,7 @@ "28" ], "x-ms-client-request-id": [ - "a7963f8b-3e39-4093-ba05-4898e80f4cff" + "68adf39d-617a-4db5-9f86-d0eed3860672" ], "accept-language": [ "en-US" @@ -453,7 +447,7 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg4708\",\r\n \"name\": \"acr_rg4708\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg6006\",\r\n \"name\": \"acr_rg6006\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "173" @@ -468,22 +462,22 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:33:55 GMT" + "Thu, 16 Mar 2017 22:48:11 GMT" ], "Pragma": [ "no-cache" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1194" + "1186" ], "x-ms-request-id": [ - "2d7f5948-0058-44ee-8e65-e57ec32020e9" + "e5c97fee-4581-43cd-acf6-484b2d1fc440" ], "x-ms-correlation-request-id": [ - "2d7f5948-0058-44ee-8e65-e57ec32020e9" + "e5c97fee-4581-43cd-acf6-484b2d1fc440" ], "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033356Z:2d7f5948-0058-44ee-8e65-e57ec32020e9" + "WESTUS2:20170316T224811Z:e5c97fee-4581-43cd-acf6-484b2d1fc440" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -492,8 +486,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg4708/providers/Microsoft.Storage/storageAccounts/acrstorage4138?api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzQ3MDgvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlNDEzOD9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg6006/providers/Microsoft.Storage/storageAccounts/acrstorage3046?api-version=2016-01-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzYwMDYvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlMzA0Nj9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", "RequestMethod": "PUT", "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\"\r\n}", "RequestHeaders": { @@ -504,7 +498,7 @@ "96" ], "x-ms-client-request-id": [ - "2e184518-fc9b-47e6-80e9-1865856fdf5f" + "629eb358-5cb9-4aea-a0c5-9346afb2c7d9" ], "accept-language": [ "en-US" @@ -526,13 +520,13 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:33:56 GMT" + "Thu, 16 Mar 2017 22:48:12 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.Storage/operations/51001af2-3fc6-4a66-9a51-88ddf2f9f58e?monitor=true&api-version=2016-01-01" + "https://management.azure.com/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.Storage/operations/bdeb3a65-1562-4be5-b2ef-39c1b54e225a?monitor=true&api-version=2016-01-01" ], "Retry-After": [ "17" @@ -542,16 +536,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1193" + "1185" ], "x-ms-request-id": [ - "f8f4d3dd-3b60-4c95-b60b-6305b40c597e" + "48d5dbf2-f052-4173-9a68-d853f2199365" ], "x-ms-correlation-request-id": [ - "f8f4d3dd-3b60-4c95-b60b-6305b40c597e" + "48d5dbf2-f052-4173-9a68-d853f2199365" ], "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033356Z:f8f4d3dd-3b60-4c95-b60b-6305b40c597e" + "WESTUS2:20170316T224812Z:48d5dbf2-f052-4173-9a68-d853f2199365" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -560,8 +554,8 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.Storage/operations/51001af2-3fc6-4a66-9a51-88ddf2f9f58e?monitor=true&api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9vcGVyYXRpb25zLzUxMDAxYWYyLTNmYzYtNGE2Ni05YTUxLTg4ZGRmMmY5ZjU4ZT9tb25pdG9yPXRydWUmYXBpLXZlcnNpb249MjAxNi0wMS0wMQ==", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.Storage/operations/bdeb3a65-1562-4be5-b2ef-39c1b54e225a?monitor=true&api-version=2016-01-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9vcGVyYXRpb25zL2JkZWIzYTY1LTE1NjItNGJlNS1iMmVmLTM5YzFiNTRlMjI1YT9tb25pdG9yPXRydWUmYXBpLXZlcnNpb249MjAxNi0wMS0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -570,7 +564,7 @@ "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg4708/providers/Microsoft.Storage/storageAccounts/acrstorage4138\",\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\",\r\n \"name\": \"acrstorage4138\",\r\n \"properties\": {\r\n \"creationTime\": \"2016-12-06T03:33:56.9359698Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://acrstorage4138.blob.core.windows.net/\",\r\n \"file\": \"https://acrstorage4138.file.core.windows.net/\",\r\n \"queue\": \"https://acrstorage4138.queue.core.windows.net/\",\r\n \"table\": \"https://acrstorage4138.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"statusOfPrimary\": \"available\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"tags\": {},\r\n \"type\": \"Microsoft.Storage/storageAccounts\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg6006/providers/Microsoft.Storage/storageAccounts/acrstorage3046\",\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\",\r\n \"name\": \"acrstorage3046\",\r\n \"properties\": {\r\n \"creationTime\": \"2017-03-16T22:48:11.9667117Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://acrstorage3046.blob.core.windows.net/\",\r\n \"file\": \"https://acrstorage3046.file.core.windows.net/\",\r\n \"queue\": \"https://acrstorage3046.queue.core.windows.net/\",\r\n \"table\": \"https://acrstorage3046.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"statusOfPrimary\": \"available\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"tags\": {},\r\n \"type\": \"Microsoft.Storage/storageAccounts\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -582,7 +576,7 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:34:26 GMT" + "Thu, 16 Mar 2017 22:48:42 GMT" ], "Pragma": [ "no-cache" @@ -598,16 +592,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "52785ad3-c20e-42e8-ba8a-1d743e94ce98" + "0910518c-67ac-4b45-bfab-3e1cad60cd3a" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14986" + "14985" ], "x-ms-correlation-request-id": [ - "52785ad3-c20e-42e8-ba8a-1d743e94ce98" + "0910518c-67ac-4b45-bfab-3e1cad60cd3a" ], "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033427Z:52785ad3-c20e-42e8-ba8a-1d743e94ce98" + "WESTUS2:20170316T224842Z:0910518c-67ac-4b45-bfab-3e1cad60cd3a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -616,13 +610,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg4708/providers/Microsoft.Storage/storageAccounts/acrstorage4138/listKeys?api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzQ3MDgvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlNDEzOC9saXN0S2V5cz9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg6006/providers/Microsoft.Storage/storageAccounts/acrstorage3046/listKeys?api-version=2016-01-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzYwMDYvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlMzA0Ni9saXN0S2V5cz9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", "RequestMethod": "POST", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "82894e1c-506f-4bc6-a5ea-5d7774454a6b" + "b866f0e3-b58c-493b-9587-a3e788d4dff7" ], "accept-language": [ "en-US" @@ -632,7 +626,7 @@ "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" ] }, - "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"m5VDL7sm+xt1NPBZpGquw7GtBt8u06xRaO29xkTz6CuIuCxmytFBA6e4TfqCjgYE2OqFTZJ5zjdCWDev7nnekw==\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"iPpsye4bD9N/WYoH2+aBWKaUWg5tDdMG+E6NG7yY/iB8H8gD7o6n6K5YVhUF5FVliqpB1r878PCnn8E61xNDaw==\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"7sVrGcwBj7Qw8TKHlmvhBjNCCWYNGBe4blQLarX7/BrsDCqCJDYK9mlEWcIivS+Li3ewRdFTGDvr3ANnsLTL2Q==\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"Q86Ci1yM7RSuKt7XymP9QyvDPaDd1yFsTjBSIzXdAKJJTc4I14OPEjB5krbRZA/hRAqL0VXfAjYsj6TOztK8sw==\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -644,7 +638,7 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:34:26 GMT" + "Thu, 16 Mar 2017 22:48:42 GMT" ], "Pragma": [ "no-cache" @@ -660,16 +654,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "f21e7e01-fa83-4a37-bf78-3404938e7934" + "392d8bc1-6433-45a3-9a2d-0636814d21b1" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1192" + "1184" ], "x-ms-correlation-request-id": [ - "f21e7e01-fa83-4a37-bf78-3404938e7934" + "392d8bc1-6433-45a3-9a2d-0636814d21b1" ], "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033427Z:f21e7e01-fa83-4a37-bf78-3404938e7934" + "WESTUS2:20170316T224842Z:392d8bc1-6433-45a3-9a2d-0636814d21b1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -678,29 +672,29 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg4708/providers/Microsoft.ContainerRegistry/registries/acrregistry6125?api-version=2016-06-27-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzQ3MDgvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5NjEyNT9hcGktdmVyc2lvbj0yMDE2LTA2LTI3LXByZXZpZXc=", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg6006/providers/Microsoft.ContainerRegistry/registries/acrregistry6626?api-version=2017-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzYwMDYvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5NjYyNj9hcGktdmVyc2lvbj0yMDE3LTAzLTAx", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage4138\",\r\n \"accessKey\": \"m5VDL7sm+xt1NPBZpGquw7GtBt8u06xRaO29xkTz6CuIuCxmytFBA6e4TfqCjgYE2OqFTZJ5zjdCWDev7nnekw==\"\r\n }\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", + "RequestBody": "{\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n },\r\n \"properties\": {\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage3046\",\r\n \"accessKey\": \"7sVrGcwBj7Qw8TKHlmvhBjNCCWYNGBe4blQLarX7/BrsDCqCJDYK9mlEWcIivS+Li3ewRdFTGDvr3ANnsLTL2Q==\"\r\n }\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "293" + "332" ], "x-ms-client-request-id": [ - "660632a6-85b3-42dd-93d0-f841e8f12431" + "fd8f3f9d-fcf0-4a04-b6d4-eef4a040100e" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.0.0-preview" + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/acr_rg4708/providers/Microsoft.ContainerRegistry/registries/acrregistry6125\",\r\n \"name\": \"acrregistry6125\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry6125-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-12-06T03:34:28.5229021Z\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage4138\"\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg6006/providers/Microsoft.ContainerRegistry/registries/acrregistry6626\",\r\n \"name\": \"acrregistry6626\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry6626.azurecr.io\",\r\n \"creationDate\": \"2017-03-16T22:48:43.431155Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage3046\"\r\n }\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -712,7 +706,7 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:34:28 GMT" + "Thu, 16 Mar 2017 22:48:44 GMT" ], "Pragma": [ "no-cache" @@ -721,53 +715,47 @@ "chunked" ], "Server": [ - "Microsoft-IIS/8.5" + "Microsoft-HTTPAPI/2.0" ], "Vary": [ "Accept-Encoding" ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1191" + "1183" ], "x-ms-request-id": [ - "4313e6d8-bdc3-4a1c-b3cc-c16eb523d126" + "544ad12e-44ca-4619-8af7-d26a9c51387e" ], "x-ms-correlation-request-id": [ - "4313e6d8-bdc3-4a1c-b3cc-c16eb523d126" + "544ad12e-44ca-4619-8af7-d26a9c51387e" ], "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033429Z:4313e6d8-bdc3-4a1c-b3cc-c16eb523d126" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" + "WESTUS2:20170316T224844Z:544ad12e-44ca-4619-8af7-d26a9c51387e" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry/registries?api-version=2016-06-27-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnkvcmVnaXN0cmllcz9hcGktdmVyc2lvbj0yMDE2LTA2LTI3LXByZXZpZXc=", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.ContainerRegistry/registries?api-version=2017-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnkvcmVnaXN0cmllcz9hcGktdmVyc2lvbj0yMDE3LTAzLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "bc8a0915-2310-4351-b2a1-1771619bde9c" + "b8babf3c-4873-4d6d-9222-2b51e47bb94d" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.0.0-preview" + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/acr_rg1695/providers/Microsoft.ContainerRegistry/registries/acrregistry7475\",\r\n \"name\": \"acrregistry7475\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry7475-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-12-05T20:02:00.8308337Z\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage224\"\r\n }\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/acr_rg2558/providers/Microsoft.ContainerRegistry/registries/acrregistry7989\",\r\n \"name\": \"acrregistry7989\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry7989-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-12-06T03:33:55.6113202Z\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage6769\"\r\n }\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/acr_rg4708/providers/Microsoft.ContainerRegistry/registries/acrregistry6125\",\r\n \"name\": \"acrregistry6125\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry6125-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-12-06T03:34:29.1930139Z\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage4138\"\r\n }\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/acr_rg9138/providers/Microsoft.ContainerRegistry/registries/acrregistry9053\",\r\n \"name\": \"acrregistry9053\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry9053-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-12-05T20:39:34.0787015Z\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage7946\"\r\n }\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/acrcommonimages/providers/Microsoft.ContainerRegistry/registries/prime\",\r\n \"name\": \"prime\",\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"loginServer\": \"prime-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-12-06T02:42:16.8859974Z\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"acrcommonlayers\"\r\n }\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/martinpfacrtestwus/providers/Microsoft.ContainerRegistry/registries/martinpfTestRegWus1\",\r\n \"name\": \"martinpfTestRegWus1\",\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"loginServer\": \"martinpftestregwus1-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-11-18T16:55:23.74159Z\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"martinpfacrtestwus\"\r\n }\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/moveregistryRg/providers/Microsoft.ContainerRegistry/registries/sourceregistry\",\r\n \"name\": \"sourceregistry\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"loginServer\": \"sourceregistry-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-11-17T02:47:15.6699584Z\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"registrydata\"\r\n }\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/moveregistryRg/providers/Microsoft.ContainerRegistry/registries/targetregistry\",\r\n \"name\": \"targetregistry\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"loginServer\": \"targetregistry-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-11-17T02:48:08.2059581Z\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"registrydata\"\r\n }\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/ComplianceWebScout/providers/Microsoft.ContainerRegistry/registries/webscoutregistry\",\r\n \"name\": \"webscoutregistry\",\r\n \"location\": \"southcentralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"loginServer\": \"webscoutregistry-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-11-12T08:03:55.2993849Z\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"ybi1sqenv18od7kr7g5jxku5\"\r\n }\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/doyouRG/providers/Microsoft.ContainerRegistry/registries/azcrci\",\r\n \"name\": \"azcrci\",\r\n \"location\": \"southcentralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"loginServer\": \"azcrci-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-11-29T22:12:39.1304237Z\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"doyoustorage\"\r\n }\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/doyouRG/providers/Microsoft.ContainerRegistry/registries/doyoudoyoudoyou\",\r\n \"name\": \"doyoudoyoudoyou\",\r\n \"location\": \"southcentralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"loginServer\": \"doyoudoyoudoyou-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-11-30T00:37:39.2642708Z\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"3cf67818b58a4443bd09772c\"\r\n }\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/doyouRG/providers/Microsoft.ContainerRegistry/registries/doyouregistry\",\r\n \"name\": \"doyouregistry\",\r\n \"location\": \"southcentralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"loginServer\": \"doyouregistry-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-11-18T18:11:48.5606407Z\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"doyoustorage\"\r\n }\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/doyourg/providers/Microsoft.ContainerRegistry/registries/doyoutest\",\r\n \"name\": \"doyoutest\",\r\n \"location\": \"southcentralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"loginServer\": \"doyoutest-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-11-22T22:18:53.0902931Z\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"doyoutest1122221815\"\r\n }\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/doyourg/providers/Microsoft.ContainerRegistry/registries/doyoutest1test2test3test4test5test6test7test8\",\r\n \"name\": \"doyoutest1test2test3test4test5test6test7test8\",\r\n \"location\": \"southcentralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"loginServer\": \"doyoutest1test2test3test4test5test6test7test8-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-11-22T22:27:58.401606Z\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"doyoutest1test1122222723\"\r\n }\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/doyourg/providers/Microsoft.ContainerRegistry/registries/doyoutest2\",\r\n \"name\": \"doyoutest2\",\r\n \"location\": \"southcentralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"loginServer\": \"doyoutest2-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-11-29T18:25:06.0380789Z\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"doyoustorage\"\r\n }\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/doyouRG/providers/Microsoft.ContainerRegistry/registries/doyoutest3\",\r\n \"name\": \"doyoutest3\",\r\n \"location\": \"southcentralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"loginServer\": \"doyoutest3-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-11-19T00:41:13.8875597Z\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"doyoustorage\"\r\n }\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/doyourg/providers/Microsoft.ContainerRegistry/registries/doyoutest4\",\r\n \"name\": \"doyoutest4\",\r\n \"location\": \"southcentralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"loginServer\": \"doyoutest4-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-11-23T01:18:37.0905322Z\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"doyoutest4011759\"\r\n }\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/doyourg/providers/Microsoft.ContainerRegistry/registries/doyoutest5\",\r\n \"name\": \"doyoutest5\",\r\n \"location\": \"southcentralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"loginServer\": \"doyoutest5-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-11-23T01:32:45.1069472Z\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"doyoutest5013210\"\r\n }\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/doyourg/providers/Microsoft.ContainerRegistry/registries/doyoutest6\",\r\n \"name\": \"doyoutest6\",\r\n \"location\": \"southcentralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"loginServer\": \"doyoutest6-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-11-30T00:26:40.286073Z\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"3cf67818b58a4443bd09772c\"\r\n }\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/doyourg/providers/Microsoft.ContainerRegistry/registries/doyoutest7\",\r\n \"name\": \"doyoutest7\",\r\n \"location\": \"southcentralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"loginServer\": \"doyoutest7-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-11-30T00:28:30.985204Z\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"doyoutest7002758\"\r\n }\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/doyouRG/providers/Microsoft.ContainerRegistry/registries/helloworld\",\r\n \"name\": \"helloworld\",\r\n \"location\": \"southcentralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"loginServer\": \"helloworld-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-11-30T00:24:59.5516776Z\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"helloworld02424\"\r\n }\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/emptyrg/providers/Microsoft.ContainerRegistry/registries/emptyrgregistry\",\r\n \"name\": \"emptyrgregistry\",\r\n \"location\": \"southcentralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"loginServer\": \"emptyrgregistry-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-11-15T21:00:02.2823788Z\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"326da2796ae34436a2dc1c49\"\r\n }\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/kevinrg/providers/Microsoft.ContainerRegistry/registries/kevinregistry3\",\r\n \"name\": \"kevinregistry3\",\r\n \"location\": \"southcentralus\",\r\n \"tags\": {\r\n \"b2\": \"b2\",\r\n \"a1\": \"f\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"kevinregistry3-exp.azurecr.io\",\r\n \"creationDate\": \"2016-11-03T17:15:57.7357909Z\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"14feb0d80746415f9a8b4f03\"\r\n }\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/kevinrg/providers/Microsoft.ContainerRegistry/registries/kevinregistry4\",\r\n \"name\": \"kevinregistry4\",\r\n \"location\": \"southcentralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"loginServer\": \"kevinregistry4-exp.azurecr.io\",\r\n \"creationDate\": \"2016-11-03T17:32:58.4030661Z\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"c9b0489750f64ff1aef92a3e\"\r\n }\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/nathana-dyad/providers/Microsoft.ContainerRegistry/registries/nathanaCastor\",\r\n \"name\": \"nathanaCastor\",\r\n \"location\": \"southcentralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"loginServer\": \"nathanacastor-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-11-30T17:09:40.0862444Z\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"nathanacastorstore\"\r\n }\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/nathana-dyad/providers/Microsoft.ContainerRegistry/registries/nathanaleda\",\r\n \"name\": \"nathanaleda\",\r\n \"location\": \"southcentralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"loginServer\": \"nathanaleda-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-11-30T00:24:50.2186034Z\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"nathanaledastore\"\r\n }\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/ReservedRegistries/providers/Microsoft.ContainerRegistry/registries/perfregdgldVgQ\",\r\n \"name\": \"perfregdgldVgQ\",\r\n \"location\": \"southcentralus\",\r\n \"tags\": {\r\n \"storageaccount\": \"perfregdgldvgq\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"perfregdgldvgq-exp.azurecr.io\",\r\n \"creationDate\": \"2016-10-09T03:37:49.8430742Z\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"perfregdgldvgq\"\r\n }\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/ReservedRegistries/providers/Microsoft.ContainerRegistry/registries/sivagtest1\",\r\n \"name\": \"sivagtest1\",\r\n \"location\": \"southcentralus\",\r\n \"tags\": {\r\n \"storageaccount\": \"ya2j3nkadrfs2tv4bdq95ay6\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"sivagtest1-exp.azurecr.io\",\r\n \"creationDate\": \"2016-10-21T00:50:00.8866035Z\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"ya2j3nkadrfs2tv4bdq95ay6\"\r\n }\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/reservedregistries/providers/Microsoft.ContainerRegistry/registries/sivagtest2\",\r\n \"name\": \"sivagtest2\",\r\n \"location\": \"southcentralus\",\r\n \"tags\": {\r\n \"storageaccount\": \"9abf2dba4f5b457b8fba1646\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"sivagtest2-exp.azurecr.io\",\r\n \"creationDate\": \"2016-10-25T06:51:02.9935447Z\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"9abf2dba4f5b457b8fba1646\"\r\n }\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/ReservedRegistries/providers/Microsoft.ContainerRegistry/registries/tryacr\",\r\n \"name\": \"tryacr\",\r\n \"location\": \"southcentralus\",\r\n \"tags\": {\r\n \"storageaccount\": \"tryacrstorenew\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"tryacr.azurecr.io\",\r\n \"creationDate\": \"2016-10-27T19:14:08.6893909Z\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"tryacrstorenew\"\r\n }\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/sajayaAdminTest/providers/Microsoft.ContainerRegistry/registries/sajayadmintestregistry\",\r\n \"name\": \"sajayadmintestregistry\",\r\n \"location\": \"southcentralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"loginServer\": \"sajayadmintestregistry-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-11-25T07:24:18.2633344Z\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"01dbc888a9184fe28491d666\"\r\n }\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/testrg/providers/Microsoft.ContainerRegistry/registries/sivagtest12\",\r\n \"name\": \"sivagtest12\",\r\n \"location\": \"southcentralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"loginServer\": \"sivagtest12-exp.azurecr.io\",\r\n \"creationDate\": \"2016-11-09T21:13:55.2655624Z\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"wc8583z08x43wyxps4evmgtz\"\r\n }\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/testrg/providers/Microsoft.ContainerRegistry/registries/testregistry\",\r\n \"name\": \"testregistry\",\r\n \"location\": \"southcentralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"loginServer\": \"testregistry-exp.azurecr.io\",\r\n \"creationDate\": \"2016-11-01T21:06:19.091022Z\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"testwestcentralstorage\"\r\n }\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/testrg/providers/Microsoft.ContainerRegistry/registries/testregistry1\",\r\n \"name\": \"testregistry1\",\r\n \"location\": \"southcentralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"loginServer\": \"testregistry1-exp.azurecr.io\",\r\n \"creationDate\": \"2016-11-01T20:08:59.714696Z\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"testwestcentralstorage\"\r\n }\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/testrg/providers/Microsoft.ContainerRegistry/registries/testregistryprod\",\r\n \"name\": \"testregistryprod\",\r\n \"location\": \"southcentralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"loginServer\": \"testregistryprod-exp.azurecr.io\",\r\n \"creationDate\": \"2016-11-02T07:07:25.7717768Z\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"100a5c18c4e44326b19caa9c\"\r\n }\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/yuwatestreg/providers/Microsoft.ContainerRegistry/registries/yuwatest2\",\r\n \"name\": \"yuwatest2\",\r\n \"location\": \"southcentralus\",\r\n \"tags\": {\r\n \"storageaccount\": \"f73216ebb0fe4e9eae923934\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"yuwatest2-exp.azurecr.io\",\r\n \"creationDate\": \"2016-10-07T23:12:52.9546535Z\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"f73216ebb0fe4e9eae923934\"\r\n }\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/yuwatestrg/providers/Microsoft.ContainerRegistry/registries/yuwatest3\",\r\n \"name\": \"yuwatest3\",\r\n \"location\": \"southcentralus\",\r\n \"tags\": {\r\n \"storageaccount\": \"74737d939463408a9ebd4d7f\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"yuwatest3-exp.azurecr.io\",\r\n \"creationDate\": \"2016-10-08T00:17:24.4194081Z\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"74737d939463408a9ebd4d7f\"\r\n }\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/acrunittest/providers/Microsoft.ContainerRegistry/registries/testnaduggar\",\r\n \"name\": \"testnaduggar\",\r\n \"location\": \"westcentralus\",\r\n \"tags\": {\r\n \"tag1\": \"Value1\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"testnaduggar-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-11-08T05:58:38.4203417Z\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"d256eab2b1fb48b3a263a4f7\"\r\n }\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/kevinrg/providers/Microsoft.ContainerRegistry/registries/kevinregistry\",\r\n \"name\": \"kevinregistry\",\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"loginServer\": \"kevinregistry-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-11-23T00:39:33.5357482Z\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"bcrh19dc0h0rm60ofnosdwnf\"\r\n }\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/kevinrg/providers/Microsoft.ContainerRegistry/registries/kevinregistry2\",\r\n \"name\": \"kevinregistry2\",\r\n \"location\": \"westcentralus\",\r\n \"tags\": {\r\n \"test\": \"5\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"kevinregistry2-exp.azurecr.io\",\r\n \"creationDate\": \"2016-11-02T01:26:09.4028525Z\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"0138b0ee3a0e4de48fe6560b\"\r\n }\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/testrg/providers/Microsoft.ContainerRegistry/registries/kiranreg\",\r\n \"name\": \"kiranreg\",\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"loginServer\": \"kiranreg-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-11-10T18:37:28.6287186Z\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"lozhm2bhbevvkekz0s4bo98t\"\r\n }\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/testrg/providers/Microsoft.ContainerRegistry/registries/sivagtest876\",\r\n \"name\": \"sivagtest876\",\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"loginServer\": \"sivagtest876-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-11-11T17:14:19.948662Z\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"zjqylwq4kd2za35gzseifrlp\"\r\n }\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/testrg/providers/Microsoft.ContainerRegistry/registries/testnewregistry\",\r\n \"name\": \"testnewregistry\",\r\n \"location\": \"westcentralus\",\r\n \"tags\": {\r\n \"tag2\": \"Value1\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"testnewregistry-exp.azurecr.io\",\r\n \"creationDate\": \"2016-11-01T20:56:44.7534143Z\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"testwestcentralstorage\"\r\n }\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/yuwatestreg/providers/Microsoft.ContainerRegistry/registries/yuwatest5\",\r\n \"name\": \"yuwatest5\",\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"loginServer\": \"yuwatest5-exp.azurecr.io\",\r\n \"creationDate\": \"2016-11-04T22:37:51.0439803Z\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"2a06r7s4dabcwp84b3lckdgw\"\r\n }\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/yuwatestreg/providers/Microsoft.ContainerRegistry/registries/yuwatest6\",\r\n \"name\": \"yuwatest6\",\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"loginServer\": \"yuwatest6-exp.azurecr.io\",\r\n \"creationDate\": \"2016-11-04T22:38:11.2737636Z\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"zfhcs8m0rtaxcttmb0qzo2o9\"\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg2340/providers/Microsoft.ContainerRegistry/registries/acrregistry3911\",\r\n \"name\": \"acrregistry3911\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry3911.azurecr.io\",\r\n \"creationDate\": \"2017-03-16T22:48:11.1108569Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage3754\"\r\n }\r\n }\r\n },\r\n {\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg6006/providers/Microsoft.ContainerRegistry/registries/acrregistry6626\",\r\n \"name\": \"acrregistry6626\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry6626.azurecr.io\",\r\n \"creationDate\": \"2017-03-16T22:48:44.65611Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage3046\"\r\n }\r\n }\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -779,34 +767,34 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:34:29 GMT" + "Thu, 16 Mar 2017 22:48:44 GMT" ], "Pragma": [ "no-cache" ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], "Vary": [ "Accept-Encoding" ], - "x-ms-original-request-ids": [ - "", - "", - "", - "" + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14985" + "14984" ], "x-ms-request-id": [ - "cf75189a-aaa8-4461-8654-ecc3cc6ec77e" + "c2c5d389-b617-4245-8d05-5cf3fd43f42c" ], "x-ms-correlation-request-id": [ - "cf75189a-aaa8-4461-8654-ecc3cc6ec77e" + "c2c5d389-b617-4245-8d05-5cf3fd43f42c" ], "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033430Z:cf75189a-aaa8-4461-8654-ecc3cc6ec77e" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" + "WESTUS2:20170316T224844Z:c2c5d389-b617-4245-8d05-5cf3fd43f42c" ] }, "StatusCode": 200 @@ -814,19 +802,19 @@ ], "Names": { "CreateResourceGroup": [ - "acr_rg2558", - "acr_rg4708" + "acr_rg2340", + "acr_rg6006" ], "CreateStorageAccount": [ - "acrstorage6769", - "acrstorage4138" + "acrstorage3754", + "acrstorage3046" ], "CreateContainerRegistry": [ - "acrregistry7989", - "acrregistry6125" + "acrregistry3911", + "acrregistry6626" ] }, "Variables": { - "SubscriptionId": "84c559c6-30a0-417c-ba06-8a2253b388c3" + "SubscriptionId": "3eb31d8d-2879-4706-89b4-4dc4047726c6" } } \ No newline at end of file diff --git a/src/ResourceManagement/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryListCredentialsTest.json b/src/ResourceManagement/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryListCredentialsTest.json new file mode 100644 index 000000000000..edbbc8e6276d --- /dev/null +++ b/src/ResourceManagement/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryListCredentialsTest.json @@ -0,0 +1,573 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.ContainerRegistry?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "aa6d40e9-d7b2-4f6f-b032-b22a10a2e6c9" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.ContainerRegistry\",\r\n \"namespace\": \"Microsoft.ContainerRegistry\",\r\n \"authorization\": {\r\n \"applicationId\": \"6a0ec4d3-30cb-4a83-91c0-ae56bc0e3d26\",\r\n \"roleDefinitionId\": \"78e18383-93eb-418a-9887-bc9271046576\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"registries\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\",\r\n \"2016-06-27-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"registries/GetCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/listCredentials\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredential\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West US\",\r\n \"East US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\",\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 16 Mar 2017 22:49:30 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-request-id": [ + "059bda0b-d7ec-49a5-b6b6-0479bf1a821c" + ], + "x-ms-correlation-request-id": [ + "059bda0b-d7ec-49a5-b6b6-0479bf1a821c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170316T224930Z:059bda0b-d7ec-49a5-b6b6-0479bf1a821c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg5198?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlZ3JvdXBzL2Fjcl9yZzUxOTg/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "28" + ], + "x-ms-client-request-id": [ + "c74c0263-a7c0-4a74-996f-da24cae77d36" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg5198\",\r\n \"name\": \"acr_rg5198\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "173" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 16 Mar 2017 22:49:31 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1192" + ], + "x-ms-request-id": [ + "548a819c-8c08-45c4-b1a5-82ccd44885b1" + ], + "x-ms-correlation-request-id": [ + "548a819c-8c08-45c4-b1a5-82ccd44885b1" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170316T224931Z:548a819c-8c08-45c4-b1a5-82ccd44885b1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg5198/providers/Microsoft.Storage/storageAccounts/acrstorage9033?api-version=2016-01-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzUxOTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlOTAzMz9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "96" + ], + "x-ms-client-request-id": [ + "80343310-7b33-4911-a694-f1aa7c374af7" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 16 Mar 2017 22:49:32 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.Storage/operations/19c56fa3-be92-4f73-8b0f-46c7f76dbdaf?monitor=true&api-version=2016-01-01" + ], + "Retry-After": [ + "17" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1191" + ], + "x-ms-request-id": [ + "3d3ce249-7611-4548-8bfd-eae2cedb893c" + ], + "x-ms-correlation-request-id": [ + "3d3ce249-7611-4548-8bfd-eae2cedb893c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170316T224932Z:3d3ce249-7611-4548-8bfd-eae2cedb893c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.Storage/operations/19c56fa3-be92-4f73-8b0f-46c7f76dbdaf?monitor=true&api-version=2016-01-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9vcGVyYXRpb25zLzE5YzU2ZmEzLWJlOTItNGY3My04YjBmLTQ2YzdmNzZkYmRhZj9tb25pdG9yPXRydWUmYXBpLXZlcnNpb249MjAxNi0wMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg5198/providers/Microsoft.Storage/storageAccounts/acrstorage9033\",\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\",\r\n \"name\": \"acrstorage9033\",\r\n \"properties\": {\r\n \"creationTime\": \"2017-03-16T22:49:32.0674825Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://acrstorage9033.blob.core.windows.net/\",\r\n \"file\": \"https://acrstorage9033.file.core.windows.net/\",\r\n \"queue\": \"https://acrstorage9033.queue.core.windows.net/\",\r\n \"table\": \"https://acrstorage9033.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"statusOfPrimary\": \"available\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"tags\": {},\r\n \"type\": \"Microsoft.Storage/storageAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 16 Mar 2017 22:50:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "a053ad1f-ad19-43fe-b663-094045ddb331" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14991" + ], + "x-ms-correlation-request-id": [ + "a053ad1f-ad19-43fe-b663-094045ddb331" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170316T225002Z:a053ad1f-ad19-43fe-b663-094045ddb331" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg5198/providers/Microsoft.Storage/storageAccounts/acrstorage9033/listKeys?api-version=2016-01-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzUxOTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlOTAzMy9saXN0S2V5cz9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "153905ae-4feb-4b35-ac55-fec628c3d62e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" + ] + }, + "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"dnyiClPzMsKQSbo6nfc9xPP9cfMe0Zsm6pr2kmaq9D/rlG810GN7LfvYE0drPvX8eKwiwkq4kRAgcmmz7rjsQA==\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"t+Zxptimlm0pKrIUW5ZnOKWWIEz3oPPC7ArjrP8cfTUB1qxCE3HtTKZmjc/ZsEdVroU8ZQoRtvIwOFpywbXYlg==\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 16 Mar 2017 22:50:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "c6f4f6f7-8ee7-4bea-8c64-c7db36714950" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1190" + ], + "x-ms-correlation-request-id": [ + "c6f4f6f7-8ee7-4bea-8c64-c7db36714950" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170316T225002Z:c6f4f6f7-8ee7-4bea-8c64-c7db36714950" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg5198/providers/Microsoft.ContainerRegistry/registries/acrregistry7866?api-version=2017-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzUxOTgvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5Nzg2Nj9hcGktdmVyc2lvbj0yMDE3LTAzLTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n },\r\n \"properties\": {\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage9033\",\r\n \"accessKey\": \"dnyiClPzMsKQSbo6nfc9xPP9cfMe0Zsm6pr2kmaq9D/rlG810GN7LfvYE0drPvX8eKwiwkq4kRAgcmmz7rjsQA==\"\r\n }\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "332" + ], + "x-ms-client-request-id": [ + "3c9d90a2-3361-4852-94fa-e7181340dba8" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg5198/providers/Microsoft.ContainerRegistry/registries/acrregistry7866\",\r\n \"name\": \"acrregistry7866\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry7866.azurecr.io\",\r\n \"creationDate\": \"2017-03-16T22:50:25.9915269Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage9033\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 16 Mar 2017 22:50:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1189" + ], + "x-ms-request-id": [ + "5c0fb8bf-832a-4d5e-aeec-171f71b00322" + ], + "x-ms-correlation-request-id": [ + "5c0fb8bf-832a-4d5e-aeec-171f71b00322" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170316T225027Z:5c0fb8bf-832a-4d5e-aeec-171f71b00322" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg5198/providers/Microsoft.ContainerRegistry/registries/acrregistry7866/listCredentials?api-version=2017-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzUxOTgvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5Nzg2Ni9saXN0Q3JlZGVudGlhbHM/YXBpLXZlcnNpb249MjAxNy0wMy0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "690c5a35-0cfa-4457-8efd-d5c986f17c7e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" + ] + }, + "ResponseBody": "{\r\n \"message\": \"Cannot perform credential operations for /subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg5198/providers/Microsoft.ContainerRegistry/registries/acrregistry7866 as Admin user is disabled. Enable Admin user feature and try again.\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "265" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 16 Mar 2017 22:50:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1188" + ], + "x-ms-request-id": [ + "17b9958b-2e49-4393-90c7-2f410996dfab" + ], + "x-ms-correlation-request-id": [ + "17b9958b-2e49-4393-90c7-2f410996dfab" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170316T225027Z:17b9958b-2e49-4393-90c7-2f410996dfab" + ] + }, + "StatusCode": 400 + }, + { + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg5198/providers/Microsoft.ContainerRegistry/registries/acrregistry7866/listCredentials?api-version=2017-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzUxOTgvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5Nzg2Ni9saXN0Q3JlZGVudGlhbHM/YXBpLXZlcnNpb249MjAxNy0wMy0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "43907cc0-40ba-49c9-b867-255dfd01264f" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" + ] + }, + "ResponseBody": "{\r\n \"username\": \"acrregistry7866\",\r\n \"passwords\": [\r\n {\r\n \"name\": \"password\",\r\n \"value\": \"++AS+pkNIn1v3v6crckk+rUyLwMpS95F\"\r\n },\r\n {\r\n \"name\": \"password2\",\r\n \"value\": \"3=/a=x/vd9V=nhT+J=/X/j/Mfp5dE7=f\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 16 Mar 2017 22:50:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1186" + ], + "x-ms-request-id": [ + "46f2cd74-18f2-4181-b66e-be4280b417de" + ], + "x-ms-correlation-request-id": [ + "46f2cd74-18f2-4181-b66e-be4280b417de" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170316T225027Z:46f2cd74-18f2-4181-b66e-be4280b417de" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg5198/providers/Microsoft.ContainerRegistry/registries/acrregistry7866?api-version=2017-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzUxOTgvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5Nzg2Nj9hcGktdmVyc2lvbj0yMDE3LTAzLTAx", + "RequestMethod": "PATCH", + "RequestBody": "{\r\n \"properties\": {\r\n \"adminUserEnabled\": true\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "58" + ], + "x-ms-client-request-id": [ + "24c9f5bf-0f57-4308-ad75-aa927dbf9587" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg5198/providers/Microsoft.ContainerRegistry/registries/acrregistry7866\",\r\n \"name\": \"acrregistry7866\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry7866.azurecr.io\",\r\n \"creationDate\": \"2017-03-16T22:50:26.8911106Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage9033\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 16 Mar 2017 22:50:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1187" + ], + "x-ms-request-id": [ + "59c91f84-f9f1-4a81-b05d-021c0a71f302" + ], + "x-ms-correlation-request-id": [ + "59c91f84-f9f1-4a81-b05d-021c0a71f302" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170316T225027Z:59c91f84-f9f1-4a81-b05d-021c0a71f302" + ] + }, + "StatusCode": 200 + } + ], + "Names": { + "CreateResourceGroup": [ + "acr_rg5198" + ], + "CreateStorageAccount": [ + "acrstorage9033" + ], + "CreateContainerRegistry": [ + "acrregistry7866" + ] + }, + "Variables": { + "SubscriptionId": "3eb31d8d-2879-4706-89b4-4dc4047726c6" + } +} \ No newline at end of file diff --git a/src/ResourceManagement/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryRegenerateCredentialTest.json b/src/ResourceManagement/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryRegenerateCredentialTest.json new file mode 100644 index 000000000000..a5efae50dd37 --- /dev/null +++ b/src/ResourceManagement/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryRegenerateCredentialTest.json @@ -0,0 +1,582 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.ContainerRegistry?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7cc8d7ef-1d10-4463-864d-861b0f443308" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.ContainerRegistry\",\r\n \"namespace\": \"Microsoft.ContainerRegistry\",\r\n \"authorization\": {\r\n \"applicationId\": \"6a0ec4d3-30cb-4a83-91c0-ae56bc0e3d26\",\r\n \"roleDefinitionId\": \"78e18383-93eb-418a-9887-bc9271046576\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"registries\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\",\r\n \"2016-06-27-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"registries/GetCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/listCredentials\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredential\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West US\",\r\n \"East US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\",\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 16 Mar 2017 22:48:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-request-id": [ + "357fc767-c0d8-4fc7-bdaa-7c6cb5f06586" + ], + "x-ms-correlation-request-id": [ + "357fc767-c0d8-4fc7-bdaa-7c6cb5f06586" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170316T224851Z:357fc767-c0d8-4fc7-bdaa-7c6cb5f06586" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg9767?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlZ3JvdXBzL2Fjcl9yZzk3Njc/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "28" + ], + "x-ms-client-request-id": [ + "6059c327-6739-4f32-b2e8-fa8abf2d0947" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg9767\",\r\n \"name\": \"acr_rg9767\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "173" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 16 Mar 2017 22:48:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-request-id": [ + "32d35ed6-851b-4934-9858-160def387d76" + ], + "x-ms-correlation-request-id": [ + "32d35ed6-851b-4934-9858-160def387d76" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170316T224851Z:32d35ed6-851b-4934-9858-160def387d76" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg9767/providers/Microsoft.Storage/storageAccounts/acrstorage5504?api-version=2016-01-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzk3NjcvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlNTUwND9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "96" + ], + "x-ms-client-request-id": [ + "74d7bc92-787d-4fe0-901e-aadcb30621b7" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 16 Mar 2017 22:48:52 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.Storage/operations/5176cb5c-109a-4baa-9fdf-8c67426a0f61?monitor=true&api-version=2016-01-01" + ], + "Retry-After": [ + "17" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" + ], + "x-ms-request-id": [ + "9a0592a3-0ef5-404a-befe-56157069c193" + ], + "x-ms-correlation-request-id": [ + "9a0592a3-0ef5-404a-befe-56157069c193" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170316T224852Z:9a0592a3-0ef5-404a-befe-56157069c193" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.Storage/operations/5176cb5c-109a-4baa-9fdf-8c67426a0f61?monitor=true&api-version=2016-01-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9vcGVyYXRpb25zLzUxNzZjYjVjLTEwOWEtNGJhYS05ZmRmLThjNjc0MjZhMGY2MT9tb25pdG9yPXRydWUmYXBpLXZlcnNpb249MjAxNi0wMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg9767/providers/Microsoft.Storage/storageAccounts/acrstorage5504\",\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\",\r\n \"name\": \"acrstorage5504\",\r\n \"properties\": {\r\n \"creationTime\": \"2017-03-16T22:48:52.7295809Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://acrstorage5504.blob.core.windows.net/\",\r\n \"file\": \"https://acrstorage5504.file.core.windows.net/\",\r\n \"queue\": \"https://acrstorage5504.queue.core.windows.net/\",\r\n \"table\": \"https://acrstorage5504.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"statusOfPrimary\": \"available\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"tags\": {},\r\n \"type\": \"Microsoft.Storage/storageAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 16 Mar 2017 22:49:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "a44bf636-6341-48f7-9469-8ac0bc15fb07" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-correlation-request-id": [ + "a44bf636-6341-48f7-9469-8ac0bc15fb07" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170316T224923Z:a44bf636-6341-48f7-9469-8ac0bc15fb07" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg9767/providers/Microsoft.Storage/storageAccounts/acrstorage5504/listKeys?api-version=2016-01-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzk3NjcvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlNTUwNC9saXN0S2V5cz9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "9e4327f3-9e8f-459c-96b9-fdcfb6bb8ec3" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" + ] + }, + "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"CcTarFkBAdmkq2hr+e5XhRnbVSbAXRJEqgqShcRIIuoVRTiwm3XQakQZO41t6ORwx1eW/GAnOhAhBwwhsL1+ZA==\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"kWJ+C77dxcIvrLTU34jqwmA9ikgwu089cYQ/YK9Uc7QtiOWouI61dNEVkkYebuUoSwJ6/4aqNKsbB16Jx5Fbdw==\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 16 Mar 2017 22:49:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "764eb048-0ba4-453b-99e4-69537a258557" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1193" + ], + "x-ms-correlation-request-id": [ + "764eb048-0ba4-453b-99e4-69537a258557" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170316T224923Z:764eb048-0ba4-453b-99e4-69537a258557" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg9767/providers/Microsoft.ContainerRegistry/registries/acrregistry7860?api-version=2017-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzk3NjcvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5Nzg2MD9hcGktdmVyc2lvbj0yMDE3LTAzLTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n },\r\n \"properties\": {\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage5504\",\r\n \"accessKey\": \"CcTarFkBAdmkq2hr+e5XhRnbVSbAXRJEqgqShcRIIuoVRTiwm3XQakQZO41t6ORwx1eW/GAnOhAhBwwhsL1+ZA==\"\r\n }\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "363" + ], + "x-ms-client-request-id": [ + "419a2c64-5f87-4bef-83de-b45bf61cd020" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg9767/providers/Microsoft.ContainerRegistry/registries/acrregistry7860\",\r\n \"name\": \"acrregistry7860\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry7860.azurecr.io\",\r\n \"creationDate\": \"2017-03-16T22:49:24.046258Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage5504\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 16 Mar 2017 22:49:24 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1192" + ], + "x-ms-request-id": [ + "08e44122-b633-4a9f-b7ce-f098fd90b06b" + ], + "x-ms-correlation-request-id": [ + "08e44122-b633-4a9f-b7ce-f098fd90b06b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170316T224925Z:08e44122-b633-4a9f-b7ce-f098fd90b06b" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg9767/providers/Microsoft.ContainerRegistry/registries/acrregistry7860/listCredentials?api-version=2017-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzk3NjcvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5Nzg2MC9saXN0Q3JlZGVudGlhbHM/YXBpLXZlcnNpb249MjAxNy0wMy0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "47c12f2d-2ab3-4272-b913-f79231c5c559" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" + ] + }, + "ResponseBody": "{\r\n \"username\": \"acrregistry7860\",\r\n \"passwords\": [\r\n {\r\n \"name\": \"password\",\r\n \"value\": \"Bd+hJVF=i7dBCF12/r/p8=hRxXuUL+2R\"\r\n },\r\n {\r\n \"name\": \"password2\",\r\n \"value\": \"/L/09Og4HHkNaYQKScvKbJ8c=NPhdVCq\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 16 Mar 2017 22:49:24 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1191" + ], + "x-ms-request-id": [ + "f0af3d4c-647e-4a84-ae7f-ac1a046e8e2b" + ], + "x-ms-correlation-request-id": [ + "f0af3d4c-647e-4a84-ae7f-ac1a046e8e2b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170316T224925Z:f0af3d4c-647e-4a84-ae7f-ac1a046e8e2b" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg9767/providers/Microsoft.ContainerRegistry/registries/acrregistry7860/regenerateCredential?api-version=2017-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzk3NjcvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5Nzg2MC9yZWdlbmVyYXRlQ3JlZGVudGlhbD9hcGktdmVyc2lvbj0yMDE3LTAzLTAx", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"name\": \"password\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "26" + ], + "x-ms-client-request-id": [ + "15401c4f-e3cc-4c1f-a545-11d3f2f7f379" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" + ] + }, + "ResponseBody": "{\r\n \"username\": \"acrregistry7860\",\r\n \"passwords\": [\r\n {\r\n \"name\": \"password\",\r\n \"value\": \"On=E=3/+=/G+q+b5o70/J5+S9Hmc9+WG\"\r\n },\r\n {\r\n \"name\": \"password2\",\r\n \"value\": \"/L/09Og4HHkNaYQKScvKbJ8c=NPhdVCq\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 16 Mar 2017 22:49:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1190" + ], + "x-ms-request-id": [ + "1e66959d-6110-4476-96a6-4618437ff956" + ], + "x-ms-correlation-request-id": [ + "1e66959d-6110-4476-96a6-4618437ff956" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170316T224926Z:1e66959d-6110-4476-96a6-4618437ff956" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg9767/providers/Microsoft.ContainerRegistry/registries/acrregistry7860/regenerateCredential?api-version=2017-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzk3NjcvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5Nzg2MC9yZWdlbmVyYXRlQ3JlZGVudGlhbD9hcGktdmVyc2lvbj0yMDE3LTAzLTAx", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"name\": \"password2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "27" + ], + "x-ms-client-request-id": [ + "40133206-7312-49b7-aaa5-67213f5ba086" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" + ] + }, + "ResponseBody": "{\r\n \"username\": \"acrregistry7860\",\r\n \"passwords\": [\r\n {\r\n \"name\": \"password\",\r\n \"value\": \"On=E=3/+=/G+q+b5o70/J5+S9Hmc9+WG\"\r\n },\r\n {\r\n \"name\": \"password2\",\r\n \"value\": \"=K+F++=W/=Yj+MoHtkix=7+e5Md3h=LW\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 16 Mar 2017 22:49:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1189" + ], + "x-ms-request-id": [ + "f47fc31f-ef0b-46af-bd72-1bfb3ba4cdf2" + ], + "x-ms-correlation-request-id": [ + "f47fc31f-ef0b-46af-bd72-1bfb3ba4cdf2" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170316T224926Z:f47fc31f-ef0b-46af-bd72-1bfb3ba4cdf2" + ] + }, + "StatusCode": 200 + } + ], + "Names": { + "CreateResourceGroup": [ + "acr_rg9767" + ], + "CreateStorageAccount": [ + "acrstorage5504" + ], + "ContainerRegistryRegenerateCredentialTest": [ + "acrregistry7860" + ] + }, + "Variables": { + "SubscriptionId": "3eb31d8d-2879-4706-89b4-4dc4047726c6" + } +} \ No newline at end of file diff --git a/src/ResourceManagement/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryRegenerateCredentialsTest.json b/src/ResourceManagement/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryRegenerateCredentialsTest.json deleted file mode 100644 index b6cb5bfbe0a9..000000000000 --- a/src/ResourceManagement/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryRegenerateCredentialsTest.json +++ /dev/null @@ -1,527 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "0efd5d74-31e8-4758-995a-ea55161278b3" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry\",\r\n \"namespace\": \"Microsoft.ContainerRegistry\",\r\n \"authorization\": {\r\n \"applicationId\": \"6a0ec4d3-30cb-4a83-91c0-ae56bc0e3d26\",\r\n \"roleDefinitionId\": \"78e18383-93eb-418a-9887-bc9271046576\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"registries\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"registries/GetCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"East US\",\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"swagger\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"East US\",\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 06 Dec 2016 03:32:39 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14988" - ], - "x-ms-request-id": [ - "d7c50e1b-d742-4523-affa-759449e43d56" - ], - "x-ms-correlation-request-id": [ - "d7c50e1b-d742-4523-affa-759449e43d56" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033239Z:d7c50e1b-d742-4523-affa-759449e43d56" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/acr_rg3296?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlZ3JvdXBzL2Fjcl9yZzMyOTY/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"westus\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "28" - ], - "x-ms-client-request-id": [ - "df344eff-cbd5-49e6-90d0-4a023cbd0722" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg3296\",\r\n \"name\": \"acr_rg3296\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "173" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 06 Dec 2016 03:32:39 GMT" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-request-id": [ - "b3778f66-25b7-4618-b313-f824e5bb2c73" - ], - "x-ms-correlation-request-id": [ - "b3778f66-25b7-4618-b313-f824e5bb2c73" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033239Z:b3778f66-25b7-4618-b313-f824e5bb2c73" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg3296/providers/Microsoft.Storage/storageAccounts/acrstorage8899?api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzMyOTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlODg5OT9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "96" - ], - "x-ms-client-request-id": [ - "b3752116-9c2f-4192-815f-85c4ad2e4ecb" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 06 Dec 2016 03:32:40 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.Storage/operations/180b6585-bcf9-450b-971d-8aa7584b8002?monitor=true&api-version=2016-01-01" - ], - "Retry-After": [ - "17" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" - ], - "x-ms-request-id": [ - "14c689f9-7722-4497-b055-06f45b044a4c" - ], - "x-ms-correlation-request-id": [ - "14c689f9-7722-4497-b055-06f45b044a4c" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033240Z:14c689f9-7722-4497-b055-06f45b044a4c" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.Storage/operations/180b6585-bcf9-450b-971d-8aa7584b8002?monitor=true&api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9vcGVyYXRpb25zLzE4MGI2NTg1LWJjZjktNDUwYi05NzFkLThhYTc1ODRiODAwMj9tb25pdG9yPXRydWUmYXBpLXZlcnNpb249MjAxNi0wMS0wMQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg3296/providers/Microsoft.Storage/storageAccounts/acrstorage8899\",\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\",\r\n \"name\": \"acrstorage8899\",\r\n \"properties\": {\r\n \"creationTime\": \"2016-12-06T03:32:40.6152367Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://acrstorage8899.blob.core.windows.net/\",\r\n \"file\": \"https://acrstorage8899.file.core.windows.net/\",\r\n \"queue\": \"https://acrstorage8899.queue.core.windows.net/\",\r\n \"table\": \"https://acrstorage8899.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"statusOfPrimary\": \"available\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"tags\": {},\r\n \"type\": \"Microsoft.Storage/storageAccounts\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 06 Dec 2016 03:33:10 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "f211880e-436d-4523-811c-5753484d5187" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14987" - ], - "x-ms-correlation-request-id": [ - "f211880e-436d-4523-811c-5753484d5187" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033310Z:f211880e-436d-4523-811c-5753484d5187" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg3296/providers/Microsoft.Storage/storageAccounts/acrstorage8899/listKeys?api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzMyOTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlODg5OS9saXN0S2V5cz9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", - "RequestMethod": "POST", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "acb62038-d116-4914-9aee-ed13afe86264" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" - ] - }, - "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"oFYeMKMGyEYzQYG/AjpRCZxxveTKFpTE2bbsyki3jDL3IOXMjZTLEQvUvn/NNnkQkLUvkXNtoVzR3u6ep3V8yA==\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"vfP++CetDaNFVwV/ZDaIupfBSNuf81RSXu3DP6xsIiRJBRrkrRc6WT3pP2ei2E/OXcg31SJQtLK5Ub/+mTxBtg==\"\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 06 Dec 2016 03:33:10 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "56dbd2d1-1204-4de7-b515-fa9f5e747560" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1197" - ], - "x-ms-correlation-request-id": [ - "56dbd2d1-1204-4de7-b515-fa9f5e747560" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033310Z:56dbd2d1-1204-4de7-b515-fa9f5e747560" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg3296/providers/Microsoft.ContainerRegistry/registries/acrregistry8605?api-version=2016-06-27-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzMyOTYvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5ODYwNT9hcGktdmVyc2lvbj0yMDE2LTA2LTI3LXByZXZpZXc=", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage8899\",\r\n \"accessKey\": \"oFYeMKMGyEYzQYG/AjpRCZxxveTKFpTE2bbsyki3jDL3IOXMjZTLEQvUvn/NNnkQkLUvkXNtoVzR3u6ep3V8yA==\"\r\n }\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "324" - ], - "x-ms-client-request-id": [ - "a819f9b2-896a-427d-816d-da134a51771a" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.0.0-preview" - ] - }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/acr_rg3296/providers/Microsoft.ContainerRegistry/registries/acrregistry8605\",\r\n \"name\": \"acrregistry8605\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry8605-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-12-06T03:33:12.6138877Z\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage8899\"\r\n }\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 06 Dec 2016 03:33:13 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Vary": [ - "Accept-Encoding" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1196" - ], - "x-ms-request-id": [ - "417ab524-9e94-4ce2-9607-09d29a4677b3" - ], - "x-ms-correlation-request-id": [ - "417ab524-9e94-4ce2-9607-09d29a4677b3" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033313Z:417ab524-9e94-4ce2-9607-09d29a4677b3" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg3296/providers/Microsoft.ContainerRegistry/registries/acrregistry8605/getCredentials?api-version=2016-06-27-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzMyOTYvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5ODYwNS9nZXRDcmVkZW50aWFscz9hcGktdmVyc2lvbj0yMDE2LTA2LTI3LXByZXZpZXc=", - "RequestMethod": "POST", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "633dde90-5963-46dd-aa5e-a79df21aeacb" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.0.0-preview" - ] - }, - "ResponseBody": "{\r\n \"username\": \"acrregistry8605\",\r\n \"password\": \"/=l/Bj=d/O4//qB/iZx=yW+HB0BvAfVy\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 06 Dec 2016 03:33:13 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Vary": [ - "Accept-Encoding" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1195" - ], - "x-ms-request-id": [ - "b627e38d-2d3a-40a4-a442-71559ed53301" - ], - "x-ms-correlation-request-id": [ - "b627e38d-2d3a-40a4-a442-71559ed53301" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033314Z:b627e38d-2d3a-40a4-a442-71559ed53301" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg3296/providers/Microsoft.ContainerRegistry/registries/acrregistry8605/regenerateCredentials?api-version=2016-06-27-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzMyOTYvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5ODYwNS9yZWdlbmVyYXRlQ3JlZGVudGlhbHM/YXBpLXZlcnNpb249MjAxNi0wNi0yNy1wcmV2aWV3", - "RequestMethod": "POST", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "f6eb8795-cfac-4929-8f1c-4e69fce87955" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.0.0-preview" - ] - }, - "ResponseBody": "{\r\n \"username\": \"acrregistry8605\",\r\n \"password\": \"P/yr/L0jvZ3lZxMt/qTyJGgaBVn48KHX\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 06 Dec 2016 03:33:14 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Vary": [ - "Accept-Encoding" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1194" - ], - "x-ms-request-id": [ - "633e50d5-9f8e-45e0-9bbb-7df814c0a7d5" - ], - "x-ms-correlation-request-id": [ - "633e50d5-9f8e-45e0-9bbb-7df814c0a7d5" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033314Z:633e50d5-9f8e-45e0-9bbb-7df814c0a7d5" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 200 - } - ], - "Names": { - "CreateResourceGroup": [ - "acr_rg3296" - ], - "CreateStorageAccount": [ - "acrstorage8899" - ], - "ContainerRegistryRegenerateCredentialsTest": [ - "acrregistry8605" - ] - }, - "Variables": { - "SubscriptionId": "84c559c6-30a0-417c-ba06-8a2253b388c3" - } -} \ No newline at end of file diff --git a/src/ResourceManagement/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryUpdateTest.json b/src/ResourceManagement/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryUpdateTest.json index cd2b97d76276..2633cb759a16 100644 --- a/src/ResourceManagement/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryUpdateTest.json +++ b/src/ResourceManagement/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryUpdateTest.json @@ -1,13 +1,13 @@ { "Entries": [ { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.ContainerRegistry?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "e6e00d85-e2c7-4208-b863-3f3613afc065" + "867e8947-6783-43b8-9483-3e526f4be40b" ], "accept-language": [ "en-US" @@ -17,7 +17,7 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry\",\r\n \"namespace\": \"Microsoft.ContainerRegistry\",\r\n \"authorization\": {\r\n \"applicationId\": \"6a0ec4d3-30cb-4a83-91c0-ae56bc0e3d26\",\r\n \"roleDefinitionId\": \"78e18383-93eb-418a-9887-bc9271046576\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"registries\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"registries/GetCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"East US\",\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"swagger\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"East US\",\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.ContainerRegistry\",\r\n \"namespace\": \"Microsoft.ContainerRegistry\",\r\n \"authorization\": {\r\n \"applicationId\": \"6a0ec4d3-30cb-4a83-91c0-ae56bc0e3d26\",\r\n \"roleDefinitionId\": \"78e18383-93eb-418a-9887-bc9271046576\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"registries\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\",\r\n \"2016-06-27-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"registries/GetCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/listCredentials\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredential\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West US\",\r\n \"East US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\",\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -29,7 +29,7 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:36:02 GMT" + "Thu, 16 Mar 2017 22:52:31 GMT" ], "Pragma": [ "no-cache" @@ -38,16 +38,16 @@ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14987" + "14986" ], "x-ms-request-id": [ - "d95acf7a-5155-4560-ba84-869416ac075f" + "94e45637-2897-4c96-903a-c1cbd1fc483d" ], "x-ms-correlation-request-id": [ - "d95acf7a-5155-4560-ba84-869416ac075f" + "94e45637-2897-4c96-903a-c1cbd1fc483d" ], "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033602Z:d95acf7a-5155-4560-ba84-869416ac075f" + "CENTRALUS:20170316T225232Z:94e45637-2897-4c96-903a-c1cbd1fc483d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -56,8 +56,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/acr_rg6000?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlZ3JvdXBzL2Fjcl9yZzYwMDA/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg5043?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlZ3JvdXBzL2Fjcl9yZzUwNDM/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"westus\"\r\n}", "RequestHeaders": { @@ -68,7 +68,7 @@ "28" ], "x-ms-client-request-id": [ - "80550743-1da7-4921-8132-7f12e8fe4dbb" + "245a2b4c-f0aa-42f9-b9ca-395776af1aac" ], "accept-language": [ "en-US" @@ -78,7 +78,7 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg6000\",\r\n \"name\": \"acr_rg6000\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg5043\",\r\n \"name\": \"acr_rg5043\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "173" @@ -93,22 +93,22 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:36:02 GMT" + "Thu, 16 Mar 2017 22:52:33 GMT" ], "Pragma": [ "no-cache" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1191" + "1194" ], "x-ms-request-id": [ - "934a9bb6-1f4f-4aee-ba94-5271019cd1e2" + "9773bfae-7ff8-498f-b4c8-76791b5aa3a3" ], "x-ms-correlation-request-id": [ - "934a9bb6-1f4f-4aee-ba94-5271019cd1e2" + "9773bfae-7ff8-498f-b4c8-76791b5aa3a3" ], "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033602Z:934a9bb6-1f4f-4aee-ba94-5271019cd1e2" + "CENTRALUS:20170316T225233Z:9773bfae-7ff8-498f-b4c8-76791b5aa3a3" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -117,8 +117,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg6000/providers/Microsoft.Storage/storageAccounts/acrstorage5445?api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzYwMDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlNTQ0NT9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg5043/providers/Microsoft.Storage/storageAccounts/acrstorage4157?api-version=2016-01-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzUwNDMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlNDE1Nz9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", "RequestMethod": "PUT", "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\"\r\n}", "RequestHeaders": { @@ -129,7 +129,7 @@ "96" ], "x-ms-client-request-id": [ - "f0d2c2c6-b9f1-4a37-aff7-1c7ad07be743" + "8b95ddc1-a5d0-4b66-ba5c-773cbd7f293d" ], "accept-language": [ "en-US" @@ -151,13 +151,13 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:36:03 GMT" + "Thu, 16 Mar 2017 22:52:33 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.Storage/operations/87103204-ca6a-4dde-a5bb-c970cc22d6b9?monitor=true&api-version=2016-01-01" + "https://management.azure.com/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.Storage/operations/79595b7e-15a5-4551-bbe6-eb6bf2aefe74?monitor=true&api-version=2016-01-01" ], "Retry-After": [ "17" @@ -167,16 +167,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1190" + "1193" ], "x-ms-request-id": [ - "c6d61268-9eab-4632-a544-610020863bd2" + "c12f0539-9f8a-4471-a9a2-8b72fde12dbb" ], "x-ms-correlation-request-id": [ - "c6d61268-9eab-4632-a544-610020863bd2" + "c12f0539-9f8a-4471-a9a2-8b72fde12dbb" ], "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033603Z:c6d61268-9eab-4632-a544-610020863bd2" + "CENTRALUS:20170316T225234Z:c12f0539-9f8a-4471-a9a2-8b72fde12dbb" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -185,8 +185,8 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.Storage/operations/87103204-ca6a-4dde-a5bb-c970cc22d6b9?monitor=true&api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9vcGVyYXRpb25zLzg3MTAzMjA0LWNhNmEtNGRkZS1hNWJiLWM5NzBjYzIyZDZiOT9tb25pdG9yPXRydWUmYXBpLXZlcnNpb249MjAxNi0wMS0wMQ==", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.Storage/operations/79595b7e-15a5-4551-bbe6-eb6bf2aefe74?monitor=true&api-version=2016-01-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9vcGVyYXRpb25zLzc5NTk1YjdlLTE1YTUtNDU1MS1iYmU2LWViNmJmMmFlZmU3ND9tb25pdG9yPXRydWUmYXBpLXZlcnNpb249MjAxNi0wMS0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -195,7 +195,7 @@ "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg6000/providers/Microsoft.Storage/storageAccounts/acrstorage5445\",\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\",\r\n \"name\": \"acrstorage5445\",\r\n \"properties\": {\r\n \"creationTime\": \"2016-12-06T03:36:03.4180873Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://acrstorage5445.blob.core.windows.net/\",\r\n \"file\": \"https://acrstorage5445.file.core.windows.net/\",\r\n \"queue\": \"https://acrstorage5445.queue.core.windows.net/\",\r\n \"table\": \"https://acrstorage5445.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"statusOfPrimary\": \"available\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"tags\": {},\r\n \"type\": \"Microsoft.Storage/storageAccounts\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg5043/providers/Microsoft.Storage/storageAccounts/acrstorage4157\",\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\",\r\n \"name\": \"acrstorage4157\",\r\n \"properties\": {\r\n \"creationTime\": \"2017-03-16T22:52:34.5321114Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://acrstorage4157.blob.core.windows.net/\",\r\n \"file\": \"https://acrstorage4157.file.core.windows.net/\",\r\n \"queue\": \"https://acrstorage4157.queue.core.windows.net/\",\r\n \"table\": \"https://acrstorage4157.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"statusOfPrimary\": \"available\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"tags\": {},\r\n \"type\": \"Microsoft.Storage/storageAccounts\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -207,7 +207,7 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:36:33 GMT" + "Thu, 16 Mar 2017 22:53:04 GMT" ], "Pragma": [ "no-cache" @@ -223,16 +223,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "6879a83c-b4bc-47da-8562-83f39e5aaa28" + "6e3a2784-3bee-47b5-9dec-bf84aad3bdd2" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14986" + "14985" ], "x-ms-correlation-request-id": [ - "6879a83c-b4bc-47da-8562-83f39e5aaa28" + "6e3a2784-3bee-47b5-9dec-bf84aad3bdd2" ], "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033633Z:6879a83c-b4bc-47da-8562-83f39e5aaa28" + "CENTRALUS:20170316T225304Z:6e3a2784-3bee-47b5-9dec-bf84aad3bdd2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -241,13 +241,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg6000/providers/Microsoft.Storage/storageAccounts/acrstorage5445/listKeys?api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzYwMDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlNTQ0NS9saXN0S2V5cz9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg5043/providers/Microsoft.Storage/storageAccounts/acrstorage4157/listKeys?api-version=2016-01-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzUwNDMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlNDE1Ny9saXN0S2V5cz9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", "RequestMethod": "POST", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "82b2823a-f171-4a34-a79a-0680d343ecf0" + "67b80cc7-7078-4eec-94fa-76b46fa1a0da" ], "accept-language": [ "en-US" @@ -257,7 +257,7 @@ "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" ] }, - "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"Wokwj1C0Dzbdlisi3Ekz3qOBcUzaMT1ZRXDhsixv/gUqexj1KSkEt2B+E07L0n6jXO9nJXupzEAlxuEOCaRDIA==\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"MMcQIFXJBWeSaEylJp6CzOZWRcKKjyJy046nG++xw/xRk/5aQfgl7agpx3NzUlCL1TOVagUzsazrREfmMOpmTA==\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"9bhNt87DdLdgaZ7096JMmv5Yi2TaJsniovbvQ+v83dnS5/F9SXuTrSfzpn4j1w0TFQF/rC2m0tL00hM+wQYGwA==\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"kztjPf+VNTsW0UAIX2VE1tbyCs/R+/38T8iWD0btzxsrQZWq+vswi9nA06ySz6t33VTPhCl3lROOXOZWBQtnHg==\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -269,7 +269,7 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:36:33 GMT" + "Thu, 16 Mar 2017 22:53:04 GMT" ], "Pragma": [ "no-cache" @@ -285,16 +285,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "4d402848-a685-43e8-bd7f-a5a837b63950" + "f210b42f-2903-48b9-90c4-e3aa646cb89f" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1189" + "1192" ], "x-ms-correlation-request-id": [ - "4d402848-a685-43e8-bd7f-a5a837b63950" + "f210b42f-2903-48b9-90c4-e3aa646cb89f" ], "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033633Z:4d402848-a685-43e8-bd7f-a5a837b63950" + "CENTRALUS:20170316T225304Z:f210b42f-2903-48b9-90c4-e3aa646cb89f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -303,8 +303,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg6000/providers/Microsoft.Storage/storageAccounts/acrstorage7022?api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzYwMDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlNzAyMj9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg5043/providers/Microsoft.Storage/storageAccounts/acrstorage8166?api-version=2016-01-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzUwNDMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlODE2Nj9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", "RequestMethod": "PUT", "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\"\r\n}", "RequestHeaders": { @@ -315,7 +315,7 @@ "96" ], "x-ms-client-request-id": [ - "8ba88d22-497f-4de0-9bfb-a5b93f6b5be5" + "c4a342d2-1245-4b7d-99c0-86e969964d7b" ], "accept-language": [ "en-US" @@ -337,13 +337,13 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:36:33 GMT" + "Thu, 16 Mar 2017 22:53:05 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.Storage/operations/26393c6b-cc13-4bc2-84fe-44055489d8f3?monitor=true&api-version=2016-01-01" + "https://management.azure.com/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.Storage/operations/af8a6249-23dc-4aa8-8ed6-ad3471047460?monitor=true&api-version=2016-01-01" ], "Retry-After": [ "17" @@ -353,16 +353,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1188" + "1191" ], "x-ms-request-id": [ - "9aab5759-5ee5-47fc-b2c1-e489baab45d5" + "6b4fb9d2-eed3-4732-9be5-feca59f23a10" ], "x-ms-correlation-request-id": [ - "9aab5759-5ee5-47fc-b2c1-e489baab45d5" + "6b4fb9d2-eed3-4732-9be5-feca59f23a10" ], "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033634Z:9aab5759-5ee5-47fc-b2c1-e489baab45d5" + "CENTRALUS:20170316T225305Z:6b4fb9d2-eed3-4732-9be5-feca59f23a10" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -371,8 +371,8 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.Storage/operations/26393c6b-cc13-4bc2-84fe-44055489d8f3?monitor=true&api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9vcGVyYXRpb25zLzI2MzkzYzZiLWNjMTMtNGJjMi04NGZlLTQ0MDU1NDg5ZDhmMz9tb25pdG9yPXRydWUmYXBpLXZlcnNpb249MjAxNi0wMS0wMQ==", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.Storage/operations/af8a6249-23dc-4aa8-8ed6-ad3471047460?monitor=true&api-version=2016-01-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9vcGVyYXRpb25zL2FmOGE2MjQ5LTIzZGMtNGFhOC04ZWQ2LWFkMzQ3MTA0NzQ2MD9tb25pdG9yPXRydWUmYXBpLXZlcnNpb249MjAxNi0wMS0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -381,7 +381,7 @@ "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg6000/providers/Microsoft.Storage/storageAccounts/acrstorage7022\",\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\",\r\n \"name\": \"acrstorage7022\",\r\n \"properties\": {\r\n \"creationTime\": \"2016-12-06T03:36:34.1814082Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://acrstorage7022.blob.core.windows.net/\",\r\n \"file\": \"https://acrstorage7022.file.core.windows.net/\",\r\n \"queue\": \"https://acrstorage7022.queue.core.windows.net/\",\r\n \"table\": \"https://acrstorage7022.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"statusOfPrimary\": \"available\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"tags\": {},\r\n \"type\": \"Microsoft.Storage/storageAccounts\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg5043/providers/Microsoft.Storage/storageAccounts/acrstorage8166\",\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\",\r\n \"name\": \"acrstorage8166\",\r\n \"properties\": {\r\n \"creationTime\": \"2017-03-16T22:53:05.7132655Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://acrstorage8166.blob.core.windows.net/\",\r\n \"file\": \"https://acrstorage8166.file.core.windows.net/\",\r\n \"queue\": \"https://acrstorage8166.queue.core.windows.net/\",\r\n \"table\": \"https://acrstorage8166.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"statusOfPrimary\": \"available\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"tags\": {},\r\n \"type\": \"Microsoft.Storage/storageAccounts\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -393,7 +393,7 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:37:03 GMT" + "Thu, 16 Mar 2017 22:53:34 GMT" ], "Pragma": [ "no-cache" @@ -409,16 +409,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "70d11717-8759-4f02-a1f1-afde0505518a" + "a229b466-ed56-4798-bec2-27b067794dc8" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14985" + "14984" ], "x-ms-correlation-request-id": [ - "70d11717-8759-4f02-a1f1-afde0505518a" + "a229b466-ed56-4798-bec2-27b067794dc8" ], "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033704Z:70d11717-8759-4f02-a1f1-afde0505518a" + "CENTRALUS:20170316T225335Z:a229b466-ed56-4798-bec2-27b067794dc8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -427,13 +427,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg6000/providers/Microsoft.Storage/storageAccounts/acrstorage7022/listKeys?api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzYwMDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlNzAyMi9saXN0S2V5cz9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg5043/providers/Microsoft.Storage/storageAccounts/acrstorage8166/listKeys?api-version=2016-01-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzUwNDMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlODE2Ni9saXN0S2V5cz9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", "RequestMethod": "POST", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "1e919fe0-79c2-4961-ae5f-e734777db737" + "21a832de-e2ec-4977-8983-ed08321525dc" ], "accept-language": [ "en-US" @@ -443,7 +443,7 @@ "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" ] }, - "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"rKJA+gDKgZOrGV7hcs1qhCUzsPbSWhI3DbTS9biK/6W0tq90kLqs68n8vDYkJu/PJv1snkTtRcnTmQmyqcUs1A==\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"XRtz9FN/AVvGcMTC1xHTjXizDmO6l91ZVL03XRuJXxV1+RC5P8xmml0h28bmWoszbB6J+0mzyPshZ1p/Ek2VBA==\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"dFTFkScyPclsrr6A38Jh63b5Xp+HvbYUARSCIyeicR21wb102wAYiB56SdHuOdlu/LtHBKy7ExuoWBtCH4RLaQ==\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"fprEc7QQilhgljeRzpeIwGq1Hk2RT7/JIckos588ja8WiSyNwVoHmJ+IqkxdHv1xB8wps/R1PsqC59hpA3PdmA==\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -455,7 +455,7 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:37:03 GMT" + "Thu, 16 Mar 2017 22:53:35 GMT" ], "Pragma": [ "no-cache" @@ -471,16 +471,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "d6c78846-dd90-4feb-8650-7ce6a7aaa8ed" + "6d5da9e3-430d-48ae-9ac1-f1f7513b8fa4" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1187" + "1190" ], "x-ms-correlation-request-id": [ - "d6c78846-dd90-4feb-8650-7ce6a7aaa8ed" + "6d5da9e3-430d-48ae-9ac1-f1f7513b8fa4" ], "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033704Z:d6c78846-dd90-4feb-8650-7ce6a7aaa8ed" + "CENTRALUS:20170316T225335Z:6d5da9e3-430d-48ae-9ac1-f1f7513b8fa4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -489,29 +489,29 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg6000/providers/Microsoft.ContainerRegistry/registries/acrregistry8100?api-version=2016-06-27-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzYwMDAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5ODEwMD9hcGktdmVyc2lvbj0yMDE2LTA2LTI3LXByZXZpZXc=", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg5043/providers/Microsoft.ContainerRegistry/registries/acrregistry1087?api-version=2017-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzUwNDMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5MTA4Nz9hcGktdmVyc2lvbj0yMDE3LTAzLTAx", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage5445\",\r\n \"accessKey\": \"Wokwj1C0Dzbdlisi3Ekz3qOBcUzaMT1ZRXDhsixv/gUqexj1KSkEt2B+E07L0n6jXO9nJXupzEAlxuEOCaRDIA==\"\r\n }\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", + "RequestBody": "{\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n },\r\n \"properties\": {\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage4157\",\r\n \"accessKey\": \"9bhNt87DdLdgaZ7096JMmv5Yi2TaJsniovbvQ+v83dnS5/F9SXuTrSfzpn4j1w0TFQF/rC2m0tL00hM+wQYGwA==\"\r\n }\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "293" + "332" ], "x-ms-client-request-id": [ - "1dba6fb7-ed72-402c-ab09-562f855dc0fc" + "194e6fd4-b8dc-4e4c-a902-10b137e0c716" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.0.0-preview" + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/acr_rg6000/providers/Microsoft.ContainerRegistry/registries/acrregistry8100\",\r\n \"name\": \"acrregistry8100\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry8100-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-12-06T03:37:06.1928615Z\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage5445\"\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg5043/providers/Microsoft.ContainerRegistry/registries/acrregistry1087\",\r\n \"name\": \"acrregistry1087\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry1087.azurecr.io\",\r\n \"creationDate\": \"2017-03-16T22:53:38.2330036Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage4157\"\r\n }\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -523,7 +523,7 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:37:06 GMT" + "Thu, 16 Mar 2017 22:53:38 GMT" ], "Pragma": [ "no-cache" @@ -532,38 +532,32 @@ "chunked" ], "Server": [ - "Microsoft-IIS/8.5" + "Microsoft-HTTPAPI/2.0" ], "Vary": [ "Accept-Encoding" ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1186" + "1189" ], "x-ms-request-id": [ - "b92d5105-5a49-4564-9829-b138f6d29c54" + "43c40b84-0778-4aac-a4f8-2fbc11366414" ], "x-ms-correlation-request-id": [ - "b92d5105-5a49-4564-9829-b138f6d29c54" + "43c40b84-0778-4aac-a4f8-2fbc11366414" ], "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033707Z:b92d5105-5a49-4564-9829-b138f6d29c54" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" + "CENTRALUS:20170316T225339Z:43c40b84-0778-4aac-a4f8-2fbc11366414" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg6000/providers/Microsoft.ContainerRegistry/registries/acrregistry8100?api-version=2016-06-27-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzYwMDAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5ODEwMD9hcGktdmVyc2lvbj0yMDE2LTA2LTI3LXByZXZpZXc=", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg5043/providers/Microsoft.ContainerRegistry/registries/acrregistry1087?api-version=2017-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzUwNDMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5MTA4Nz9hcGktdmVyc2lvbj0yMDE3LTAzLTAx", "RequestMethod": "PATCH", "RequestBody": "{\r\n \"properties\": {\r\n \"adminUserEnabled\": true\r\n }\r\n}", "RequestHeaders": { @@ -574,17 +568,17 @@ "58" ], "x-ms-client-request-id": [ - "37161ead-e576-4983-a55e-7b0b405574f0" + "4319fce5-2e9d-4441-bc22-39871997580e" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.0.0-preview" + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/acr_rg6000/providers/Microsoft.ContainerRegistry/registries/acrregistry8100\",\r\n \"name\": \"acrregistry8100\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry8100-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-12-06T03:37:06.8422464Z\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage5445\"\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg5043/providers/Microsoft.ContainerRegistry/registries/acrregistry1087\",\r\n \"name\": \"acrregistry1087\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry1087.azurecr.io\",\r\n \"creationDate\": \"2017-03-16T22:53:39.6364043Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage4157\"\r\n }\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -596,7 +590,7 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:37:06 GMT" + "Thu, 16 Mar 2017 22:53:39 GMT" ], "Pragma": [ "no-cache" @@ -605,38 +599,32 @@ "chunked" ], "Server": [ - "Microsoft-IIS/8.5" + "Microsoft-HTTPAPI/2.0" ], "Vary": [ "Accept-Encoding" ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1185" + "1188" ], "x-ms-request-id": [ - "7ce2c74d-fb77-4afe-9926-76d519410250" + "d63229d2-e79a-45fb-945c-d6ef160d4cf0" ], "x-ms-correlation-request-id": [ - "7ce2c74d-fb77-4afe-9926-76d519410250" + "d63229d2-e79a-45fb-945c-d6ef160d4cf0" ], "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033707Z:7ce2c74d-fb77-4afe-9926-76d519410250" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" + "CENTRALUS:20170316T225339Z:d63229d2-e79a-45fb-945c-d6ef160d4cf0" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg6000/providers/Microsoft.ContainerRegistry/registries/acrregistry8100?api-version=2016-06-27-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzYwMDAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5ODEwMD9hcGktdmVyc2lvbj0yMDE2LTA2LTI3LXByZXZpZXc=", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg5043/providers/Microsoft.ContainerRegistry/registries/acrregistry1087?api-version=2017-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzUwNDMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5MTA4Nz9hcGktdmVyc2lvbj0yMDE3LTAzLTAx", "RequestMethod": "PATCH", "RequestBody": "{\r\n \"tags\": {\r\n \"key2\": \"value2\",\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\"\r\n }\r\n}", "RequestHeaders": { @@ -647,17 +635,17 @@ "90" ], "x-ms-client-request-id": [ - "aca61a99-5be6-42f3-8172-8812be2f4dad" + "1fb96481-4c54-4725-b4ba-909fa6e374df" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.0.0-preview" + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/acr_rg6000/providers/Microsoft.ContainerRegistry/registries/acrregistry8100\",\r\n \"name\": \"acrregistry8100\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key2\": \"value2\",\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry8100-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-12-06T03:37:07.2855916Z\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage5445\"\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg5043/providers/Microsoft.ContainerRegistry/registries/acrregistry1087\",\r\n \"name\": \"acrregistry1087\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key2\": \"value2\",\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry1087.azurecr.io\",\r\n \"creationDate\": \"2017-03-16T22:53:40.3335375Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage4157\"\r\n }\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -669,7 +657,7 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:37:08 GMT" + "Thu, 16 Mar 2017 22:53:39 GMT" ], "Pragma": [ "no-cache" @@ -678,40 +666,34 @@ "chunked" ], "Server": [ - "Microsoft-IIS/8.5" + "Microsoft-HTTPAPI/2.0" ], "Vary": [ "Accept-Encoding" ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1184" + "1187" ], "x-ms-request-id": [ - "9259319e-3b4f-4a6b-a60e-774e728d3a0d" + "28e91691-3728-4524-8d7e-cd5b005e0641" ], "x-ms-correlation-request-id": [ - "9259319e-3b4f-4a6b-a60e-774e728d3a0d" + "28e91691-3728-4524-8d7e-cd5b005e0641" ], "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033708Z:9259319e-3b4f-4a6b-a60e-774e728d3a0d" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" + "CENTRALUS:20170316T225340Z:28e91691-3728-4524-8d7e-cd5b005e0641" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg6000/providers/Microsoft.ContainerRegistry/registries/acrregistry8100?api-version=2016-06-27-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzYwMDAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5ODEwMD9hcGktdmVyc2lvbj0yMDE2LTA2LTI3LXByZXZpZXc=", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg5043/providers/Microsoft.ContainerRegistry/registries/acrregistry1087?api-version=2017-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzUwNDMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5MTA4Nz9hcGktdmVyc2lvbj0yMDE3LTAzLTAx", "RequestMethod": "PATCH", - "RequestBody": "{\r\n \"properties\": {\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage7022\",\r\n \"accessKey\": \"rKJA+gDKgZOrGV7hcs1qhCUzsPbSWhI3DbTS9biK/6W0tq90kLqs68n8vDYkJu/PJv1snkTtRcnTmQmyqcUs1A==\"\r\n }\r\n }\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage8166\",\r\n \"accessKey\": \"dFTFkScyPclsrr6A38Jh63b5Xp+HvbYUARSCIyeicR21wb102wAYiB56SdHuOdlu/LtHBKy7ExuoWBtCH4RLaQ==\"\r\n }\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -720,17 +702,17 @@ "204" ], "x-ms-client-request-id": [ - "c29953c6-1129-4390-a960-da93648223d0" + "672efab8-04f4-4193-885c-a4dffb6ec6ac" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.0.0-preview" + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/acr_rg6000/providers/Microsoft.ContainerRegistry/registries/acrregistry8100\",\r\n \"name\": \"acrregistry8100\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key2\": \"value2\",\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry8100-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-12-06T03:37:08.1842306Z\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage7022\"\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg5043/providers/Microsoft.ContainerRegistry/registries/acrregistry1087\",\r\n \"name\": \"acrregistry1087\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key2\": \"value2\",\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry1087.azurecr.io\",\r\n \"creationDate\": \"2017-03-16T22:53:40.7318181Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage8166\"\r\n }\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -742,7 +724,7 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:37:09 GMT" + "Thu, 16 Mar 2017 22:53:40 GMT" ], "Pragma": [ "no-cache" @@ -751,53 +733,47 @@ "chunked" ], "Server": [ - "Microsoft-IIS/8.5" + "Microsoft-HTTPAPI/2.0" ], "Vary": [ "Accept-Encoding" ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1183" + "1186" ], "x-ms-request-id": [ - "8cd59b8b-a1b1-4159-a8e1-41a102534ad6" + "e1897ab9-c32c-4276-b4d5-72158e174d8b" ], "x-ms-correlation-request-id": [ - "8cd59b8b-a1b1-4159-a8e1-41a102534ad6" + "e1897ab9-c32c-4276-b4d5-72158e174d8b" ], "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033710Z:8cd59b8b-a1b1-4159-a8e1-41a102534ad6" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" + "CENTRALUS:20170316T225341Z:e1897ab9-c32c-4276-b4d5-72158e174d8b" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg6000/providers/Microsoft.ContainerRegistry/registries/acrregistry8100?api-version=2016-06-27-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzYwMDAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5ODEwMD9hcGktdmVyc2lvbj0yMDE2LTA2LTI3LXByZXZpZXc=", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg5043/providers/Microsoft.ContainerRegistry/registries/acrregistry1087?api-version=2017-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzUwNDMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5MTA4Nz9hcGktdmVyc2lvbj0yMDE3LTAzLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "4d3c9657-5c16-4cdd-a000-ccad19f149b3" + "7c0393d3-3fce-4ce8-8527-6cb3c457d855" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.0.0-preview" + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/acr_rg6000/providers/Microsoft.ContainerRegistry/registries/acrregistry8100\",\r\n \"name\": \"acrregistry8100\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry8100-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-12-06T03:37:07.2855916Z\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage5445\"\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg5043/providers/Microsoft.ContainerRegistry/registries/acrregistry1087\",\r\n \"name\": \"acrregistry1087\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry1087.azurecr.io\",\r\n \"creationDate\": \"2017-03-16T22:53:40.3335375Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage4157\"\r\n }\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -809,7 +785,7 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:37:07 GMT" + "Thu, 16 Mar 2017 22:53:39 GMT" ], "Pragma": [ "no-cache" @@ -818,53 +794,47 @@ "chunked" ], "Server": [ - "Microsoft-IIS/8.5" + "Microsoft-HTTPAPI/2.0" ], "Vary": [ "Accept-Encoding" ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14984" + "14983" ], "x-ms-request-id": [ - "1edeac8a-2cf2-4d8b-969e-42fb84a5c428" + "c1572aac-bed8-424a-9132-eaa0b46c81f9" ], "x-ms-correlation-request-id": [ - "1edeac8a-2cf2-4d8b-969e-42fb84a5c428" + "c1572aac-bed8-424a-9132-eaa0b46c81f9" ], "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033708Z:1edeac8a-2cf2-4d8b-969e-42fb84a5c428" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" + "CENTRALUS:20170316T225340Z:c1572aac-bed8-424a-9132-eaa0b46c81f9" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg6000/providers/Microsoft.ContainerRegistry/registries/acrregistry8100?api-version=2016-06-27-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzYwMDAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5ODEwMD9hcGktdmVyc2lvbj0yMDE2LTA2LTI3LXByZXZpZXc=", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg5043/providers/Microsoft.ContainerRegistry/registries/acrregistry1087?api-version=2017-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzUwNDMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5MTA4Nz9hcGktdmVyc2lvbj0yMDE3LTAzLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "6f333765-bf6d-4a6b-8450-bb74ca3e0cd3" + "ff52fe0d-8b1a-4760-b824-536cc41c73cf" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.0.0-preview" + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/acr_rg6000/providers/Microsoft.ContainerRegistry/registries/acrregistry8100\",\r\n \"name\": \"acrregistry8100\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key2\": \"value2\",\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry8100-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-12-06T03:37:08.1842306Z\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage5445\"\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg5043/providers/Microsoft.ContainerRegistry/registries/acrregistry1087\",\r\n \"name\": \"acrregistry1087\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key2\": \"value2\",\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry1087.azurecr.io\",\r\n \"creationDate\": \"2017-03-16T22:53:40.7318181Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage4157\"\r\n }\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -876,7 +846,7 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:37:08 GMT" + "Thu, 16 Mar 2017 22:53:40 GMT" ], "Pragma": [ "no-cache" @@ -885,53 +855,47 @@ "chunked" ], "Server": [ - "Microsoft-IIS/8.5" + "Microsoft-HTTPAPI/2.0" ], "Vary": [ "Accept-Encoding" ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14983" + "14982" ], "x-ms-request-id": [ - "c8180fdc-4a43-475b-b348-c88e0458a94a" + "badb73fe-7184-4608-8086-805dffb5e9d6" ], "x-ms-correlation-request-id": [ - "c8180fdc-4a43-475b-b348-c88e0458a94a" + "badb73fe-7184-4608-8086-805dffb5e9d6" ], "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033709Z:c8180fdc-4a43-475b-b348-c88e0458a94a" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" + "CENTRALUS:20170316T225340Z:badb73fe-7184-4608-8086-805dffb5e9d6" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg6000/providers/Microsoft.ContainerRegistry/registries/acrregistry8100?api-version=2016-06-27-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzYwMDAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5ODEwMD9hcGktdmVyc2lvbj0yMDE2LTA2LTI3LXByZXZpZXc=", + "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg5043/providers/Microsoft.ContainerRegistry/registries/acrregistry1087?api-version=2017-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzUwNDMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5MTA4Nz9hcGktdmVyc2lvbj0yMDE3LTAzLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "900c2165-749e-4f46-bdde-71f76e2617dd" + "47c4b517-a846-4b77-a52a-23ada037e93b" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.0.0-preview" + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/acr_rg6000/providers/Microsoft.ContainerRegistry/registries/acrregistry8100\",\r\n \"name\": \"acrregistry8100\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key2\": \"value2\",\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry8100-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-12-06T03:37:10.082581Z\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage7022\"\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg5043/providers/Microsoft.ContainerRegistry/registries/acrregistry1087\",\r\n \"name\": \"acrregistry1087\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key2\": \"value2\",\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry1087.azurecr.io\",\r\n \"creationDate\": \"2017-03-16T22:53:41.6154453Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage8166\"\r\n }\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -943,7 +907,7 @@ "no-cache" ], "Date": [ - "Tue, 06 Dec 2016 03:37:09 GMT" + "Thu, 16 Mar 2017 22:53:40 GMT" ], "Pragma": [ "no-cache" @@ -952,31 +916,25 @@ "chunked" ], "Server": [ - "Microsoft-IIS/8.5" + "Microsoft-HTTPAPI/2.0" ], "Vary": [ "Accept-Encoding" ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14982" + "14981" ], "x-ms-request-id": [ - "adcfd1ad-a4fa-4085-ad4f-78c4f9b53889" + "e2be2807-a8bb-4b10-9689-6798e3de57db" ], "x-ms-correlation-request-id": [ - "adcfd1ad-a4fa-4085-ad4f-78c4f9b53889" + "e2be2807-a8bb-4b10-9689-6798e3de57db" ], "x-ms-routing-request-id": [ - "CENTRALUS:20161206T033710Z:adcfd1ad-a4fa-4085-ad4f-78c4f9b53889" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" + "CENTRALUS:20170316T225341Z:e2be2807-a8bb-4b10-9689-6798e3de57db" ] }, "StatusCode": 200 @@ -984,17 +942,17 @@ ], "Names": { "CreateResourceGroup": [ - "acr_rg6000" + "acr_rg5043" ], "CreateStorageAccount": [ - "acrstorage5445", - "acrstorage7022" + "acrstorage4157", + "acrstorage8166" ], "CreateContainerRegistry": [ - "acrregistry8100" + "acrregistry1087" ] }, "Variables": { - "SubscriptionId": "84c559c6-30a0-417c-ba06-8a2253b388c3" + "SubscriptionId": "3eb31d8d-2879-4706-89b4-4dc4047726c6" } } \ No newline at end of file diff --git a/src/ResourceManagement/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryUpdateWithCreateTest.json b/src/ResourceManagement/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryUpdateWithCreateTest.json deleted file mode 100644 index 28a3e9b66d07..000000000000 --- a/src/ResourceManagement/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryUpdateWithCreateTest.json +++ /dev/null @@ -1,1183 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "2aac2611-dc10-43b2-9d13-518b54a28153" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry\",\r\n \"namespace\": \"Microsoft.ContainerRegistry\",\r\n \"authorization\": {\r\n \"applicationId\": \"6a0ec4d3-30cb-4a83-91c0-ae56bc0e3d26\",\r\n \"roleDefinitionId\": \"78e18383-93eb-418a-9887-bc9271046576\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"registries\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"registries/GetCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"East US\",\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"swagger\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"East US\",\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 06 Dec 2016 03:31:21 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14903" - ], - "x-ms-request-id": [ - "41e688a9-29b4-4225-a5db-72442c92bdae" - ], - "x-ms-correlation-request-id": [ - "41e688a9-29b4-4225-a5db-72442c92bdae" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20161206T033122Z:41e688a9-29b4-4225-a5db-72442c92bdae" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "9d984cd6-ed6f-45af-bbe4-9ff2413af7cc" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry\",\r\n \"namespace\": \"Microsoft.ContainerRegistry\",\r\n \"authorization\": {\r\n \"applicationId\": \"6a0ec4d3-30cb-4a83-91c0-ae56bc0e3d26\",\r\n \"roleDefinitionId\": \"78e18383-93eb-418a-9887-bc9271046576\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"registries\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"registries/GetCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"East US\",\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"swagger\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"East US\",\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 06 Dec 2016 03:32:29 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14892" - ], - "x-ms-request-id": [ - "0c7b308e-7e64-47ba-9d5f-c071c4f34422" - ], - "x-ms-correlation-request-id": [ - "0c7b308e-7e64-47ba-9d5f-c071c4f34422" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20161206T033230Z:0c7b308e-7e64-47ba-9d5f-c071c4f34422" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/acr_rg2353?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlZ3JvdXBzL2Fjcl9yZzIzNTM/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"westus\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "28" - ], - "x-ms-client-request-id": [ - "36573522-6ab1-42b0-82f3-592037206de4" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg2353\",\r\n \"name\": \"acr_rg2353\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "173" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 06 Dec 2016 03:31:22 GMT" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1190" - ], - "x-ms-request-id": [ - "ebafcb2c-c176-4dc7-b9ae-c24dddd2d509" - ], - "x-ms-correlation-request-id": [ - "ebafcb2c-c176-4dc7-b9ae-c24dddd2d509" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20161206T033122Z:ebafcb2c-c176-4dc7-b9ae-c24dddd2d509" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg2353/providers/Microsoft.Storage/storageAccounts/acrstorage6138?api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzIzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlNjEzOD9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "96" - ], - "x-ms-client-request-id": [ - "c77f7ff2-a010-43b2-9450-da705bf00d50" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 06 Dec 2016 03:31:22 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.Storage/operations/46235b35-8b66-4e2e-b1a7-b18b0a818368?monitor=true&api-version=2016-01-01" - ], - "Retry-After": [ - "17" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1189" - ], - "x-ms-request-id": [ - "92dd6404-0872-4505-be80-e53f3a405bf0" - ], - "x-ms-correlation-request-id": [ - "92dd6404-0872-4505-be80-e53f3a405bf0" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20161206T033123Z:92dd6404-0872-4505-be80-e53f3a405bf0" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.Storage/operations/46235b35-8b66-4e2e-b1a7-b18b0a818368?monitor=true&api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9vcGVyYXRpb25zLzQ2MjM1YjM1LThiNjYtNGUyZS1iMWE3LWIxOGIwYTgxODM2OD9tb25pdG9yPXRydWUmYXBpLXZlcnNpb249MjAxNi0wMS0wMQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg2353/providers/Microsoft.Storage/storageAccounts/acrstorage6138\",\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\",\r\n \"name\": \"acrstorage6138\",\r\n \"properties\": {\r\n \"creationTime\": \"2016-12-06T03:31:23.3150138Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://acrstorage6138.blob.core.windows.net/\",\r\n \"file\": \"https://acrstorage6138.file.core.windows.net/\",\r\n \"queue\": \"https://acrstorage6138.queue.core.windows.net/\",\r\n \"table\": \"https://acrstorage6138.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"statusOfPrimary\": \"available\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"tags\": {},\r\n \"type\": \"Microsoft.Storage/storageAccounts\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 06 Dec 2016 03:31:53 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "37d1d21e-3575-48c0-9c95-cb6490561d2d" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14899" - ], - "x-ms-correlation-request-id": [ - "37d1d21e-3575-48c0-9c95-cb6490561d2d" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20161206T033153Z:37d1d21e-3575-48c0-9c95-cb6490561d2d" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg2353/providers/Microsoft.Storage/storageAccounts/acrstorage6138/listKeys?api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzIzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlNjEzOC9saXN0S2V5cz9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", - "RequestMethod": "POST", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "7e624321-cdc4-43d8-bc44-49c8a7786f8f" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" - ] - }, - "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"/IGp8GBGaZ+77lgUmqph4SJJdrT0Bg3R1wMT6dC0T8Dm+Dnjg3uDW309pVIQSJMZw3aL8S2NovGUAkiY0iClUA==\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"no3U/PgRqgL8MIysB8WGRRYuU8m/dW4PpguqXMy/CSrJ546RwpuKDYaBmE5wTQ5VyXE75ee0vSmd7jfi1xnzXw==\"\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 06 Dec 2016 03:31:53 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "b0a0423f-a821-492d-b720-99b7045feac7" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1188" - ], - "x-ms-correlation-request-id": [ - "b0a0423f-a821-492d-b720-99b7045feac7" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20161206T033153Z:b0a0423f-a821-492d-b720-99b7045feac7" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg2353/providers/Microsoft.Storage/storageAccounts/acrstorage6419?api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzIzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlNjQxOT9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "96" - ], - "x-ms-client-request-id": [ - "623f9443-cf8f-4948-9b26-66fca66a5179" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 06 Dec 2016 03:31:53 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.Storage/operations/8f8f5599-a6ba-4765-b637-ef3c2f2004ec?monitor=true&api-version=2016-01-01" - ], - "Retry-After": [ - "17" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1187" - ], - "x-ms-request-id": [ - "5477b33f-3bac-431c-87cf-fce9a40641c7" - ], - "x-ms-correlation-request-id": [ - "5477b33f-3bac-431c-87cf-fce9a40641c7" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20161206T033154Z:5477b33f-3bac-431c-87cf-fce9a40641c7" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.Storage/operations/8f8f5599-a6ba-4765-b637-ef3c2f2004ec?monitor=true&api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9vcGVyYXRpb25zLzhmOGY1NTk5LWE2YmEtNDc2NS1iNjM3LWVmM2MyZjIwMDRlYz9tb25pdG9yPXRydWUmYXBpLXZlcnNpb249MjAxNi0wMS0wMQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg2353/providers/Microsoft.Storage/storageAccounts/acrstorage6419\",\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\",\r\n \"name\": \"acrstorage6419\",\r\n \"properties\": {\r\n \"creationTime\": \"2016-12-06T03:31:54.3552836Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://acrstorage6419.blob.core.windows.net/\",\r\n \"file\": \"https://acrstorage6419.file.core.windows.net/\",\r\n \"queue\": \"https://acrstorage6419.queue.core.windows.net/\",\r\n \"table\": \"https://acrstorage6419.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"statusOfPrimary\": \"available\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"tags\": {},\r\n \"type\": \"Microsoft.Storage/storageAccounts\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 06 Dec 2016 03:32:23 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "9a364be6-9f47-430b-977c-bdeef6fd9dee" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14897" - ], - "x-ms-correlation-request-id": [ - "9a364be6-9f47-430b-977c-bdeef6fd9dee" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20161206T033224Z:9a364be6-9f47-430b-977c-bdeef6fd9dee" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg2353/providers/Microsoft.Storage/storageAccounts/acrstorage6419/listKeys?api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzIzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlNjQxOS9saXN0S2V5cz9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", - "RequestMethod": "POST", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "03af7e60-8dc0-4120-8123-b00fa07b7eae" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" - ] - }, - "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"Fp0UlFefutFC57Zh0uS2ubvDXrVbxwTVm2S+iwawqa8oqmoGbCKa+zZ4CWgtCRyk2HTUGuAwYLtpKX3oAwP0Iw==\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"ePyhKlX+vM2WvLku4pZQYwtX8JPNYc7bcevlSjeaTzaZ/6WSbVz0XuMIts7jZtzVG7aQmm+YXAeRGaFTKxTEwg==\"\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 06 Dec 2016 03:32:24 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "c428d746-410a-4611-bd5a-de1464e8e067" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1186" - ], - "x-ms-correlation-request-id": [ - "c428d746-410a-4611-bd5a-de1464e8e067" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20161206T033224Z:c428d746-410a-4611-bd5a-de1464e8e067" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg2353/providers/Microsoft.ContainerRegistry/registries/acrregistry1001?api-version=2016-06-27-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzIzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5MTAwMT9hcGktdmVyc2lvbj0yMDE2LTA2LTI3LXByZXZpZXc=", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage6138\",\r\n \"accessKey\": \"/IGp8GBGaZ+77lgUmqph4SJJdrT0Bg3R1wMT6dC0T8Dm+Dnjg3uDW309pVIQSJMZw3aL8S2NovGUAkiY0iClUA==\"\r\n }\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "293" - ], - "x-ms-client-request-id": [ - "934e4f52-79e3-4610-95ae-ef53585a850b" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.0.0-preview" - ] - }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/acr_rg2353/providers/Microsoft.ContainerRegistry/registries/acrregistry1001\",\r\n \"name\": \"acrregistry1001\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry1001-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-12-06T03:32:27.1010595Z\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage6138\"\r\n }\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 06 Dec 2016 03:32:27 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Vary": [ - "Accept-Encoding" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1185" - ], - "x-ms-request-id": [ - "bc34707e-a7cb-4189-baf4-c634e4380b5b" - ], - "x-ms-correlation-request-id": [ - "bc34707e-a7cb-4189-baf4-c634e4380b5b" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20161206T033228Z:bc34707e-a7cb-4189-baf4-c634e4380b5b" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg2353/providers/Microsoft.ContainerRegistry/registries/acrregistry1001?api-version=2016-06-27-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzIzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5MTAwMT9hcGktdmVyc2lvbj0yMDE2LTA2LTI3LXByZXZpZXc=", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage6138\",\r\n \"accessKey\": \"/IGp8GBGaZ+77lgUmqph4SJJdrT0Bg3R1wMT6dC0T8Dm+Dnjg3uDW309pVIQSJMZw3aL8S2NovGUAkiY0iClUA==\"\r\n }\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "324" - ], - "x-ms-client-request-id": [ - "beed6f75-27e5-4388-b008-355c7f4c3569" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.0.0-preview" - ] - }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/acr_rg2353/providers/Microsoft.ContainerRegistry/registries/acrregistry1001\",\r\n \"name\": \"acrregistry1001\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry1001-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-12-06T03:32:27.9774909Z\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage6138\"\r\n }\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 06 Dec 2016 03:32:27 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Vary": [ - "Accept-Encoding" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1184" - ], - "x-ms-request-id": [ - "316b4cae-15e0-4161-a7d4-c76a1cd4362e" - ], - "x-ms-correlation-request-id": [ - "316b4cae-15e0-4161-a7d4-c76a1cd4362e" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20161206T033228Z:316b4cae-15e0-4161-a7d4-c76a1cd4362e" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg2353/providers/Microsoft.ContainerRegistry/registries/acrregistry1001?api-version=2016-06-27-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzIzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5MTAwMT9hcGktdmVyc2lvbj0yMDE2LTA2LTI3LXByZXZpZXc=", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage6138\",\r\n \"accessKey\": \"/IGp8GBGaZ+77lgUmqph4SJJdrT0Bg3R1wMT6dC0T8Dm+Dnjg3uDW309pVIQSJMZw3aL8S2NovGUAkiY0iClUA==\"\r\n }\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key2\": \"value2\",\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\"\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "347" - ], - "x-ms-client-request-id": [ - "f1777dfe-0067-4188-9bc6-dee82e407e3c" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.0.0-preview" - ] - }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/acr_rg2353/providers/Microsoft.ContainerRegistry/registries/acrregistry1001\",\r\n \"name\": \"acrregistry1001\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key2\": \"value2\",\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry1001-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-12-06T03:32:28.4803301Z\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage6138\"\r\n }\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 06 Dec 2016 03:32:28 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Vary": [ - "Accept-Encoding" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1183" - ], - "x-ms-request-id": [ - "77caf0ca-61c9-46f6-834b-68e4e946a6aa" - ], - "x-ms-correlation-request-id": [ - "77caf0ca-61c9-46f6-834b-68e4e946a6aa" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20161206T033229Z:77caf0ca-61c9-46f6-834b-68e4e946a6aa" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg2353/providers/Microsoft.ContainerRegistry/registries/acrregistry1001?api-version=2016-06-27-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzIzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5MTAwMT9hcGktdmVyc2lvbj0yMDE2LTA2LTI3LXByZXZpZXc=", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage6419\",\r\n \"accessKey\": \"Fp0UlFefutFC57Zh0uS2ubvDXrVbxwTVm2S+iwawqa8oqmoGbCKa+zZ4CWgtCRyk2HTUGuAwYLtpKX3oAwP0Iw==\"\r\n }\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key2\": \"value2\",\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\"\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "347" - ], - "x-ms-client-request-id": [ - "7c705bd5-bd86-40e3-b679-f28d08f32e83" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.0.0-preview" - ] - }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/acr_rg2353/providers/Microsoft.ContainerRegistry/registries/acrregistry1001\",\r\n \"name\": \"acrregistry1001\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key2\": \"value2\",\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry1001-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-12-06T03:32:29.0147109Z\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage6419\"\r\n }\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 06 Dec 2016 03:32:29 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Vary": [ - "Accept-Encoding" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1182" - ], - "x-ms-request-id": [ - "f8ea302a-dc01-4a4f-83de-d7c3e0220875" - ], - "x-ms-correlation-request-id": [ - "f8ea302a-dc01-4a4f-83de-d7c3e0220875" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20161206T033230Z:f8ea302a-dc01-4a4f-83de-d7c3e0220875" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg2353/providers/Microsoft.ContainerRegistry/registries/acrregistry1001?api-version=2016-06-27-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzIzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5MTAwMT9hcGktdmVyc2lvbj0yMDE2LTA2LTI3LXByZXZpZXc=", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage6419\",\r\n \"accessKey\": \"Fp0UlFefutFC57Zh0uS2ubvDXrVbxwTVm2S+iwawqa8oqmoGbCKa+zZ4CWgtCRyk2HTUGuAwYLtpKX3oAwP0Iw==\"\r\n }\r\n },\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"key2\": \"value2\",\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\"\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "347" - ], - "x-ms-client-request-id": [ - "50c3b008-d69a-4487-979d-fe083c728d4b" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.0.0-preview" - ] - }, - "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"InvalidResourceLocation\",\r\n \"message\": \"The resource 'acrregistry1001' already exists in location 'westus' in resource group 'acr_rg2353'. A resource with the same name cannot be created in location 'eastus'. Please select a new resource name.\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "260" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 06 Dec 2016 03:32:29 GMT" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-failure-cause": [ - "gateway" - ], - "x-ms-request-id": [ - "50658b55-3f97-460d-bd50-954cd4d37822" - ], - "x-ms-correlation-request-id": [ - "50658b55-3f97-460d-bd50-954cd4d37822" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20161206T033230Z:50658b55-3f97-460d-bd50-954cd4d37822" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 409 - }, - { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg2353/providers/Microsoft.ContainerRegistry/registries/acrregistry1001?api-version=2016-06-27-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzIzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5MTAwMT9hcGktdmVyc2lvbj0yMDE2LTA2LTI3LXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "a0c7aaa8-7361-49ba-9099-f086bbac5da3" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.0.0-preview" - ] - }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/acr_rg2353/providers/Microsoft.ContainerRegistry/registries/acrregistry1001\",\r\n \"name\": \"acrregistry1001\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry1001-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-12-06T03:32:27.9774909Z\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage6138\"\r\n }\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 06 Dec 2016 03:32:27 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Vary": [ - "Accept-Encoding" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14896" - ], - "x-ms-request-id": [ - "ef6386a8-f6fa-479a-9ff2-5217050a0c72" - ], - "x-ms-correlation-request-id": [ - "ef6386a8-f6fa-479a-9ff2-5217050a0c72" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20161206T033228Z:ef6386a8-f6fa-479a-9ff2-5217050a0c72" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg2353/providers/Microsoft.ContainerRegistry/registries/acrregistry1001?api-version=2016-06-27-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzIzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5MTAwMT9hcGktdmVyc2lvbj0yMDE2LTA2LTI3LXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "b3b55e98-e316-44bb-998b-05fc04ee04e3" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.0.0-preview" - ] - }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/acr_rg2353/providers/Microsoft.ContainerRegistry/registries/acrregistry1001\",\r\n \"name\": \"acrregistry1001\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry1001-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-12-06T03:32:28.4803301Z\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage6138\"\r\n }\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 06 Dec 2016 03:32:28 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Vary": [ - "Accept-Encoding" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14895" - ], - "x-ms-request-id": [ - "5cc34b64-462e-4cf5-8ad9-ff2c89ea4b03" - ], - "x-ms-correlation-request-id": [ - "5cc34b64-462e-4cf5-8ad9-ff2c89ea4b03" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20161206T033228Z:5cc34b64-462e-4cf5-8ad9-ff2c89ea4b03" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg2353/providers/Microsoft.ContainerRegistry/registries/acrregistry1001?api-version=2016-06-27-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzIzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5MTAwMT9hcGktdmVyc2lvbj0yMDE2LTA2LTI3LXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "748fea59-f6d2-4787-b9bc-e57c7e93704f" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.0.0-preview" - ] - }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/acr_rg2353/providers/Microsoft.ContainerRegistry/registries/acrregistry1001\",\r\n \"name\": \"acrregistry1001\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key2\": \"value2\",\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry1001-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-12-06T03:32:29.0147109Z\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage6138\"\r\n }\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 06 Dec 2016 03:32:28 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Vary": [ - "Accept-Encoding" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14894" - ], - "x-ms-request-id": [ - "95ad94ef-851d-47cf-ac76-2f43465b972a" - ], - "x-ms-correlation-request-id": [ - "95ad94ef-851d-47cf-ac76-2f43465b972a" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20161206T033229Z:95ad94ef-851d-47cf-ac76-2f43465b972a" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg2353/providers/Microsoft.ContainerRegistry/registries/acrregistry1001?api-version=2016-06-27-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzIzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5MTAwMT9hcGktdmVyc2lvbj0yMDE2LTA2LTI3LXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "8dfc9ab7-fb3b-47df-9ab3-f48e6512e882" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.0.0-preview" - ] - }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/acr_rg2353/providers/Microsoft.ContainerRegistry/registries/acrregistry1001\",\r\n \"name\": \"acrregistry1001\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key2\": \"value2\",\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry1001-microsoft.azurecr.io\",\r\n \"creationDate\": \"2016-12-06T03:32:30.0134203Z\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage6419\"\r\n }\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 06 Dec 2016 03:32:29 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Vary": [ - "Accept-Encoding" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14893" - ], - "x-ms-request-id": [ - "99de7365-0a0b-4ca1-894f-c9665701f00e" - ], - "x-ms-correlation-request-id": [ - "99de7365-0a0b-4ca1-894f-c9665701f00e" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20161206T033230Z:99de7365-0a0b-4ca1-894f-c9665701f00e" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 200 - } - ], - "Names": { - "CreateResourceGroup": [ - "acr_rg2353" - ], - "CreateStorageAccount": [ - "acrstorage6138", - "acrstorage6419" - ], - "CreateContainerRegistry": [ - "acrregistry1001" - ] - }, - "Variables": { - "SubscriptionId": "84c559c6-30a0-417c-ba06-8a2253b388c3" - } -} \ No newline at end of file diff --git a/src/ResourceManagement/ContainerRegistry/ContainerRegistry.Tests/Tests/ContainerRegistryTests.cs b/src/ResourceManagement/ContainerRegistry/ContainerRegistry.Tests/Tests/ContainerRegistryTests.cs index 0d515cf10aec..0a5361652236 100644 --- a/src/ResourceManagement/ContainerRegistry/ContainerRegistry.Tests/Tests/ContainerRegistryTests.cs +++ b/src/ResourceManagement/ContainerRegistry/ContainerRegistry.Tests/Tests/ContainerRegistryTests.cs @@ -41,13 +41,12 @@ public void ContainerRegistryCheckNameTest() Assert.Null(checkNameRequest.Reason); Assert.Null(checkNameRequest.Message); - // Check invalid name - registryName = "CAPS"; + // Check disallowed name + registryName = "Microsoft"; checkNameRequest = registryClient.Registries.CheckNameAvailability(registryName); Assert.False(checkNameRequest.NameAvailable); Assert.Equal("Invalid", checkNameRequest.Reason); - Assert.Equal("Registry names may contain alpha numeric characters only and must be between 5 and 50 characters", - checkNameRequest.Message); + Assert.Equal("The specified registry name is disallowed", checkNameRequest.Message); // Check name of container registry that already exists registryName = ContainerRegistryTestUtilities.CreateContainerRegistry(registryClient, resourceGroup, storageName, storageKey); @@ -76,16 +75,20 @@ public void ContainerRegistryCreateTest() // Create container registry string registryName = TestUtilities.GenerateName("acrregistry"); - Registry registryProperties = ContainerRegistryTestUtilities.GetDefaultRegistryProperties(resourceGroup, storageName, storageKey); - Registry registry = registryClient.Registries.CreateOrUpdate(resourceGroup.Name, registryName, registryProperties); + RegistryCreateParameters parameters = ContainerRegistryTestUtilities.GetDefaultRegistryCreateParameters(resourceGroup, storageName, storageKey); + Registry registry = registryClient.Registries.Create(resourceGroup.Name, registryName, parameters); ContainerRegistryTestUtilities.VerifyRegistryProperties(registry, storageName, true); // Create container registry with optional parameters registryName = TestUtilities.GenerateName("acrregistry"); - registryProperties = new Registry + parameters = new RegistryCreateParameters { Location = resourceGroup.Location, - StorageAccount = new StorageAccountProperties + Sku = new Microsoft.Azure.Management.ContainerRegistry.Models.Sku + { + Name = "Basic" + }, + StorageAccount = new StorageAccountParameters { Name = storageName, AccessKey = storageKey @@ -93,7 +96,7 @@ public void ContainerRegistryCreateTest() Tags = ContainerRegistryTestUtilities.DefaultTags, AdminUserEnabled = true }; - registry = registryClient.Registries.CreateOrUpdate(resourceGroup.Name, registryName, registryProperties); + registry = registryClient.Registries.Create(resourceGroup.Name, registryName, parameters); ContainerRegistryTestUtilities.VerifyRegistryProperties(registry, storageName, false); Assert.True(registry.AdminUserEnabled); } @@ -179,21 +182,21 @@ public void ContainerRegistryGetTest() string storageKey = ContainerRegistryTestUtilities.GetStorageAccessKey(storageClient, resourceGroup, storageName); // Get default registry properties - Registry registryProperties = ContainerRegistryTestUtilities.GetDefaultRegistryProperties(resourceGroup, storageName, storageKey); + RegistryCreateParameters parameters = ContainerRegistryTestUtilities.GetDefaultRegistryCreateParameters(resourceGroup, storageName, storageKey); // Create container registry with admin enabled string registryName = TestUtilities.GenerateName("acrregistry"); - registryProperties.AdminUserEnabled = true; - registryClient.Registries.CreateOrUpdate(resourceGroup.Name, registryName, registryProperties); - Registry registry = registryClient.Registries.GetProperties(resourceGroup.Name, registryName); + parameters.AdminUserEnabled = true; + registryClient.Registries.Create(resourceGroup.Name, registryName, parameters); + Registry registry = registryClient.Registries.Get(resourceGroup.Name, registryName); ContainerRegistryTestUtilities.VerifyRegistryProperties(registry, storageName, false); Assert.True(registry.AdminUserEnabled); // Create container registry with admin disabled registryName = TestUtilities.GenerateName("acrregistry"); - registryProperties.AdminUserEnabled = false; - registryClient.Registries.CreateOrUpdate(resourceGroup.Name, registryName, registryProperties); - registry = registryClient.Registries.GetProperties(resourceGroup.Name, registryName); + parameters.AdminUserEnabled = false; + registryClient.Registries.Create(resourceGroup.Name, registryName, parameters); + registry = registryClient.Registries.Get(resourceGroup.Name, registryName); ContainerRegistryTestUtilities.VerifyRegistryProperties(registry, storageName, true); } } @@ -229,7 +232,7 @@ public void ContainerRegistryUpdateTest() registryClient.Registries.Update(resourceGroup.Name, registryName, registryUpdateParameters); // Validate - Registry registry = registryClient.Registries.GetProperties(resourceGroup.Name, registryName); + Registry registry = registryClient.Registries.Get(resourceGroup.Name, registryName); Assert.True(registry.AdminUserEnabled); // Update tags @@ -245,7 +248,7 @@ public void ContainerRegistryUpdateTest() registryClient.Registries.Update(resourceGroup.Name, registryName, registryUpdateParameters); // Validate - registry = registryClient.Registries.GetProperties(resourceGroup.Name, registryName); + registry = registryClient.Registries.Get(resourceGroup.Name, registryName); Assert.Equal(registry.Tags.Count, registryUpdateParameters.Tags.Count); Assert.Equal(registry.Tags["key2"], "value2"); Assert.Equal(registry.Tags["key3"], "value3"); @@ -254,7 +257,7 @@ public void ContainerRegistryUpdateTest() // Update storage account registryUpdateParameters = new RegistryUpdateParameters { - StorageAccount = new StorageAccountProperties + StorageAccount = new StorageAccountParameters { Name = storageName2, AccessKey = storageKey2 @@ -263,90 +266,13 @@ public void ContainerRegistryUpdateTest() registryClient.Registries.Update(resourceGroup.Name, registryName, registryUpdateParameters); // Validate - registry = registryClient.Registries.GetProperties(resourceGroup.Name, registryName); - Assert.Equal(registry.StorageAccount.Name, storageName2); - } - } - - [Fact] - public void ContainerRegistryUpdateWithCreateTest() - { - var handler = new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK }; - - using (MockContext context = MockContext.Start(this.GetType().FullName)) - { - var resourceClient = ContainerRegistryTestUtilities.GetResourceManagementClient(context, handler); - var storageClient = ContainerRegistryTestUtilities.GetStorageManagementClient(context, handler); - var registryClient = ContainerRegistryTestUtilities.GetContainerRegistryManagementClient(context, handler); - - // Create resource group and storage account - ResourceGroup resourceGroup = ContainerRegistryTestUtilities.CreateResourceGroup(resourceClient); - string storageName1 = ContainerRegistryTestUtilities.CreateStorageAccount(storageClient, resourceGroup); - string storageKey1 = ContainerRegistryTestUtilities.GetStorageAccessKey(storageClient, resourceGroup, storageName1); - - // Create a different storage account - string storageName2 = ContainerRegistryTestUtilities.CreateStorageAccount(storageClient, resourceGroup); - string storageKey2 = ContainerRegistryTestUtilities.GetStorageAccessKey(storageClient, resourceGroup, storageName2); - - // Create container registry - string registryName = ContainerRegistryTestUtilities.CreateContainerRegistry(registryClient, resourceGroup, storageName1, storageKey1); - Registry registryProperties = registryClient.Registries.GetProperties(resourceGroup.Name, registryName); - - // Enable admin - registryProperties.AdminUserEnabled = true; - registryProperties.StorageAccount.AccessKey = storageKey1; - registryClient.Registries.CreateOrUpdate(resourceGroup.Name, registryName, registryProperties); - - // Validate - Registry registry = registryClient.Registries.GetProperties(resourceGroup.Name, registryName); - Assert.True(registry.AdminUserEnabled); - - // Update tags - registryProperties.Tags = new Dictionary - { - { "key2","value2" }, - { "key3","value3" }, - { "key4","value4" } - }; - registryProperties.StorageAccount.AccessKey = storageKey1; - registryClient.Registries.CreateOrUpdate(resourceGroup.Name, registryName, registryProperties); - - // Validate - registry = registryClient.Registries.GetProperties(resourceGroup.Name, registryName); - Assert.Equal(registry.Tags.Count, registryProperties.Tags.Count); - Assert.Equal(registry.Tags["key2"], "value2"); - Assert.Equal(registry.Tags["key3"], "value3"); - Assert.Equal(registry.Tags["key4"], "value4"); - - // Update storage account - registryProperties.StorageAccount = new StorageAccountProperties - { - Name = storageName2, - AccessKey = storageKey2 - }; - registryClient.Registries.CreateOrUpdate(resourceGroup.Name, registryName, registryProperties); - - // Validate - registry = registryClient.Registries.GetProperties(resourceGroup.Name, registryName); + registry = registryClient.Registries.Get(resourceGroup.Name, registryName); Assert.Equal(registry.StorageAccount.Name, storageName2); - - // Update location should fail - registryProperties.Location = ContainerRegistryTestUtilities.GetNonDefaultRegistryLocation(resourceClient); - try - { - registryClient.Registries.CreateOrUpdate(resourceGroup.Name, registryName, registryProperties); - Assert.True(false); - } - catch (CloudException ex) - { - Assert.NotNull(ex); - Assert.Equal(HttpStatusCode.Conflict, ex.Response.StatusCode); - } } } [Fact] - public void ContainerRegistryGetCredentialsTest() + public void ContainerRegistryListCredentialsTest() { var handler = new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK }; @@ -367,7 +293,7 @@ public void ContainerRegistryGetCredentialsTest() // Get credentials should fail when admin is disabled try { - registryClient.Registries.GetCredentials(resourceGroup.Name, registryName); + registryClient.Registries.ListCredentials(resourceGroup.Name, registryName); Assert.True(false); } catch (CloudException ex) @@ -383,19 +309,22 @@ public void ContainerRegistryGetCredentialsTest() }; registryClient.Registries.Update(resourceGroup.Name, registryName, registryUpdateParameters); - RegistryCredentials credentials = registryClient.Registries.GetCredentials(resourceGroup.Name, registryName); + RegistryListCredentialsResult credentials = registryClient.Registries.ListCredentials(resourceGroup.Name, registryName); Assert.NotNull(credentials); // Validate username and password string username = credentials.Username; - string password = credentials.Password; + Assert.True(credentials.Passwords.Count > 1); + string password1 = credentials.Passwords[0].Value; + string password2 = credentials.Passwords[1].Value; Assert.NotNull(username); - Assert.NotNull(password); + Assert.NotNull(password1); + Assert.NotNull(password2); } } [Fact] - public void ContainerRegistryRegenerateCredentialsTest() + public void ContainerRegistryRegenerateCredentialTest() { var handler = new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK }; @@ -411,31 +340,55 @@ public void ContainerRegistryRegenerateCredentialsTest() string storageKey = ContainerRegistryTestUtilities.GetStorageAccessKey(storageClient, resourceGroup, storageName); string registryName = TestUtilities.GenerateName("acrregistry"); - Registry registryProperties = ContainerRegistryTestUtilities.GetDefaultRegistryProperties(resourceGroup, storageName, storageKey); - registryProperties.AdminUserEnabled = true; - Registry registry = registryClient.Registries.CreateOrUpdate(resourceGroup.Name, registryName, registryProperties); + RegistryCreateParameters parameters = ContainerRegistryTestUtilities.GetDefaultRegistryCreateParameters(resourceGroup, storageName, storageKey); + parameters.AdminUserEnabled = true; + Registry registry = registryClient.Registries.Create(resourceGroup.Name, registryName, parameters); - RegistryCredentials credentials = registryClient.Registries.GetCredentials(resourceGroup.Name, registryName); + RegistryListCredentialsResult credentials = registryClient.Registries.ListCredentials(resourceGroup.Name, registryName); Assert.NotNull(credentials); // Validate username and password - string username1 = credentials.Username; - string password1 = credentials.Password; - Assert.NotNull(username1); - Assert.NotNull(password1); + string username_1 = credentials.Username; + Assert.True(credentials.Passwords.Count > 1); + string password1_1 = credentials.Passwords[0].Value; + string password2_1 = credentials.Passwords[1].Value; + Assert.NotNull(username_1); + Assert.NotNull(password1_1); + Assert.NotNull(password2_1); + + credentials = registryClient.Registries.RegenerateCredential(resourceGroup.Name, registryName, PasswordName.Password); + Assert.NotNull(credentials); + + // Validate username and password + string username_2 = credentials.Username; + Assert.True(credentials.Passwords.Count > 1); + string password1_2 = credentials.Passwords[0].Value; + string password2_2 = credentials.Passwords[1].Value; + Assert.NotNull(username_2); + Assert.NotNull(password1_2); + Assert.NotNull(password2_2); - credentials = registryClient.Registries.RegenerateCredentials(resourceGroup.Name, registryName); + // Validate if generated password is different + Assert.Equal(username_1, username_2); + Assert.NotEqual(password1_1, password1_2); + Assert.Equal(password2_1, password2_2); + + credentials = registryClient.Registries.RegenerateCredential(resourceGroup.Name, registryName, PasswordName.Password2); Assert.NotNull(credentials); - // Validate regenerated username and password - string username2 = credentials.Username; - string password2 = credentials.Password; - Assert.NotNull(username2); - Assert.NotNull(password2); + // Validate username and password + string username_3 = credentials.Username; + Assert.True(credentials.Passwords.Count > 1); + string password1_3 = credentials.Passwords[0].Value; + string password2_3 = credentials.Passwords[1].Value; + Assert.NotNull(username_2); + Assert.NotNull(password1_2); + Assert.NotNull(password2_2); // Validate if generated password is different - Assert.Equal(username1, username2); - Assert.NotEqual(password1, password2); + Assert.Equal(username_2, username_3); + Assert.Equal(password1_2, password1_3); + Assert.NotEqual(password2_2, password2_3); } } diff --git a/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/ContainerRegistryManagementClient.cs b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/ContainerRegistryManagementClient.cs index 382b1224e849..56ba592f51c2 100644 --- a/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/ContainerRegistryManagementClient.cs +++ b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/ContainerRegistryManagementClient.cs @@ -1,19 +1,27 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0 +// +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.ContainerRegistry { - using System.Linq; - using Microsoft.Rest; - using Microsoft.Rest.Azure; + using Azure; + using Management; + using Rest; + using Rest.Azure; + using Rest.Serialization; using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; - public partial class ContainerRegistryManagementClient : Microsoft.Rest.ServiceClient, IContainerRegistryManagementClient, IAzureClient + public partial class ContainerRegistryManagementClient : ServiceClient, IContainerRegistryManagementClient, IAzureClient { /// /// The base URI of the service. @@ -23,17 +31,17 @@ public partial class ContainerRegistryManagementClient : Microsoft.Rest.ServiceC /// /// Gets or sets json serialization settings. /// - public Newtonsoft.Json.JsonSerializerSettings SerializationSettings { get; private set; } + public JsonSerializerSettings SerializationSettings { get; private set; } /// /// Gets or sets json deserialization settings. /// - public Newtonsoft.Json.JsonSerializerSettings DeserializationSettings { get; private set; } + public JsonSerializerSettings DeserializationSettings { get; private set; } /// /// Credentials needed for the client to connect to Azure. /// - public Microsoft.Rest.ServiceClientCredentials Credentials { get; private set; } + public ServiceClientCredentials Credentials { get; private set; } /// /// The Microsoft Azure subscription ID. @@ -67,6 +75,11 @@ public partial class ContainerRegistryManagementClient : Microsoft.Rest.ServiceC /// public virtual IRegistriesOperations Registries { get; private set; } + /// + /// Gets the IOperations. + /// + public virtual IOperations Operations { get; private set; } + /// /// Initializes a new instance of the ContainerRegistryManagementClient class. /// @@ -75,7 +88,7 @@ public partial class ContainerRegistryManagementClient : Microsoft.Rest.ServiceC /// protected ContainerRegistryManagementClient(params System.Net.Http.DelegatingHandler[] handlers) : base(handlers) { - this.Initialize(); + Initialize(); } /// @@ -89,7 +102,7 @@ protected ContainerRegistryManagementClient(params System.Net.Http.DelegatingHan /// protected ContainerRegistryManagementClient(System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers) : base(rootHandler, handlers) { - this.Initialize(); + Initialize(); } /// @@ -110,7 +123,7 @@ protected ContainerRegistryManagementClient(System.Uri baseUri, params System.Ne { throw new System.ArgumentNullException("baseUri"); } - this.BaseUri = baseUri; + BaseUri = baseUri; } /// @@ -134,7 +147,7 @@ protected ContainerRegistryManagementClient(System.Uri baseUri, System.Net.Http. { throw new System.ArgumentNullException("baseUri"); } - this.BaseUri = baseUri; + BaseUri = baseUri; } /// @@ -149,16 +162,16 @@ protected ContainerRegistryManagementClient(System.Uri baseUri, System.Net.Http. /// /// Thrown when a required parameter is null /// - public ContainerRegistryManagementClient(Microsoft.Rest.ServiceClientCredentials credentials, params System.Net.Http.DelegatingHandler[] handlers) : this(handlers) + public ContainerRegistryManagementClient(ServiceClientCredentials credentials, params System.Net.Http.DelegatingHandler[] handlers) : this(handlers) { if (credentials == null) { throw new System.ArgumentNullException("credentials"); } - this.Credentials = credentials; - if (this.Credentials != null) + Credentials = credentials; + if (Credentials != null) { - this.Credentials.InitializeServiceClient(this); + Credentials.InitializeServiceClient(this); } } @@ -177,16 +190,16 @@ public ContainerRegistryManagementClient(Microsoft.Rest.ServiceClientCredentials /// /// Thrown when a required parameter is null /// - public ContainerRegistryManagementClient(Microsoft.Rest.ServiceClientCredentials credentials, System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers) : this(rootHandler, handlers) + public ContainerRegistryManagementClient(ServiceClientCredentials credentials, System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers) : this(rootHandler, handlers) { if (credentials == null) { throw new System.ArgumentNullException("credentials"); } - this.Credentials = credentials; - if (this.Credentials != null) + Credentials = credentials; + if (Credentials != null) { - this.Credentials.InitializeServiceClient(this); + Credentials.InitializeServiceClient(this); } } @@ -205,7 +218,7 @@ public ContainerRegistryManagementClient(Microsoft.Rest.ServiceClientCredentials /// /// Thrown when a required parameter is null /// - public ContainerRegistryManagementClient(System.Uri baseUri, Microsoft.Rest.ServiceClientCredentials credentials, params System.Net.Http.DelegatingHandler[] handlers) : this(handlers) + public ContainerRegistryManagementClient(System.Uri baseUri, ServiceClientCredentials credentials, params System.Net.Http.DelegatingHandler[] handlers) : this(handlers) { if (baseUri == null) { @@ -215,11 +228,11 @@ public ContainerRegistryManagementClient(System.Uri baseUri, Microsoft.Rest.Serv { throw new System.ArgumentNullException("credentials"); } - this.BaseUri = baseUri; - this.Credentials = credentials; - if (this.Credentials != null) + BaseUri = baseUri; + Credentials = credentials; + if (Credentials != null) { - this.Credentials.InitializeServiceClient(this); + Credentials.InitializeServiceClient(this); } } @@ -241,7 +254,7 @@ public ContainerRegistryManagementClient(System.Uri baseUri, Microsoft.Rest.Serv /// /// Thrown when a required parameter is null /// - public ContainerRegistryManagementClient(System.Uri baseUri, Microsoft.Rest.ServiceClientCredentials credentials, System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers) : this(rootHandler, handlers) + public ContainerRegistryManagementClient(System.Uri baseUri, ServiceClientCredentials credentials, System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers) : this(rootHandler, handlers) { if (baseUri == null) { @@ -251,11 +264,11 @@ public ContainerRegistryManagementClient(System.Uri baseUri, Microsoft.Rest.Serv { throw new System.ArgumentNullException("credentials"); } - this.BaseUri = baseUri; - this.Credentials = credentials; - if (this.Credentials != null) + BaseUri = baseUri; + Credentials = credentials; + if (Credentials != null) { - this.Credentials.InitializeServiceClient(this); + Credentials.InitializeServiceClient(this); } } @@ -268,41 +281,43 @@ public ContainerRegistryManagementClient(System.Uri baseUri, Microsoft.Rest.Serv /// private void Initialize() { - this.Registries = new RegistriesOperations(this); - this.BaseUri = new System.Uri("https://management.azure.com"); - this.ApiVersion = "2016-06-27-preview"; - this.AcceptLanguage = "en-US"; - this.LongRunningOperationRetryTimeout = 30; - this.GenerateClientRequestId = true; - SerializationSettings = new Newtonsoft.Json.JsonSerializerSettings + Registries = new RegistriesOperations(this); + Operations = new Operations(this); + BaseUri = new System.Uri("https://management.azure.com"); + ApiVersion = "2017-03-01"; + AcceptLanguage = "en-US"; + LongRunningOperationRetryTimeout = 30; + GenerateClientRequestId = true; + SerializationSettings = new JsonSerializerSettings { - Formatting = Newtonsoft.Json.Formatting.Indented, - DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, - DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, - NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, - ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, - ContractResolver = new Microsoft.Rest.Serialization.ReadOnlyJsonContractResolver(), - Converters = new System.Collections.Generic.List + Formatting = Formatting.Indented, + DateFormatHandling = DateFormatHandling.IsoDateFormat, + DateTimeZoneHandling = DateTimeZoneHandling.Utc, + NullValueHandling = NullValueHandling.Ignore, + ReferenceLoopHandling = ReferenceLoopHandling.Serialize, + ContractResolver = new ReadOnlyJsonContractResolver(), + Converters = new List { - new Microsoft.Rest.Serialization.Iso8601TimeSpanConverter() + new Iso8601TimeSpanConverter() } }; - SerializationSettings.Converters.Add(new Microsoft.Rest.Serialization.TransformationJsonConverter()); - DeserializationSettings = new Newtonsoft.Json.JsonSerializerSettings + SerializationSettings.Converters.Add(new TransformationJsonConverter()); + DeserializationSettings = new JsonSerializerSettings { - DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, - DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, - NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, - ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, - ContractResolver = new Microsoft.Rest.Serialization.ReadOnlyJsonContractResolver(), - Converters = new System.Collections.Generic.List + DateFormatHandling = DateFormatHandling.IsoDateFormat, + DateTimeZoneHandling = DateTimeZoneHandling.Utc, + NullValueHandling = NullValueHandling.Ignore, + ReferenceLoopHandling = ReferenceLoopHandling.Serialize, + ContractResolver = new ReadOnlyJsonContractResolver(), + Converters = new List { - new Microsoft.Rest.Serialization.Iso8601TimeSpanConverter() + new Iso8601TimeSpanConverter() } }; CustomInitialize(); - DeserializationSettings.Converters.Add(new Microsoft.Rest.Serialization.TransformationJsonConverter()); - DeserializationSettings.Converters.Add(new Microsoft.Rest.Azure.CloudErrorJsonConverter()); - } + DeserializationSettings.Converters.Add(new TransformationJsonConverter()); + DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); + } } } + diff --git a/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/IContainerRegistryManagementClient.cs b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/IContainerRegistryManagementClient.cs index 124a098b58be..1c2fb24cbb56 100644 --- a/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/IContainerRegistryManagementClient.cs +++ b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/IContainerRegistryManagementClient.cs @@ -1,16 +1,19 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0 +// +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.ContainerRegistry { - using Microsoft.Rest; - using Microsoft.Rest.Azure; + using Azure; + using Management; + using Rest; + using Rest.Azure; using Models; + using Newtonsoft.Json; /// /// @@ -24,17 +27,17 @@ public partial interface IContainerRegistryManagementClient : System.IDisposable /// /// Gets or sets json serialization settings. /// - Newtonsoft.Json.JsonSerializerSettings SerializationSettings { get; } + JsonSerializerSettings SerializationSettings { get; } /// /// Gets or sets json deserialization settings. /// - Newtonsoft.Json.JsonSerializerSettings DeserializationSettings { get; } + JsonSerializerSettings DeserializationSettings { get; } /// /// Credentials needed for the client to connect to Azure. /// - Microsoft.Rest.ServiceClientCredentials Credentials { get; } + ServiceClientCredentials Credentials { get; } /// /// The Microsoft Azure subscription ID. @@ -58,8 +61,8 @@ public partial interface IContainerRegistryManagementClient : System.IDisposable int? LongRunningOperationRetryTimeout { get; set; } /// - /// When set to true a unique x-ms-client-request-id value is - /// generated and included in each request. Default is true. + /// When set to true a unique x-ms-client-request-id value is generated + /// and included in each request. Default is true. /// bool? GenerateClientRequestId { get; set; } @@ -69,5 +72,11 @@ public partial interface IContainerRegistryManagementClient : System.IDisposable /// IRegistriesOperations Registries { get; } + /// + /// Gets the IOperations. + /// + IOperations Operations { get; } + } } + diff --git a/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/IOperations.cs b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/IOperations.cs new file mode 100644 index 000000000000..fe492faa736b --- /dev/null +++ b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/IOperations.cs @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.ContainerRegistry +{ + using Azure; + using Management; + using Rest; + using Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Operations operations. + /// + public partial interface IOperations + { + /// + /// Lists all of the available Azure Container Registry REST API + /// operations. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists all of the available Azure Container Registry REST API + /// operations. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} + diff --git a/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/IRegistriesOperations.cs b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/IRegistriesOperations.cs index 236cec3205d4..f6bd71c4c17b 100644 --- a/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/IRegistriesOperations.cs +++ b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/IRegistriesOperations.cs @@ -1,15 +1,22 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0 +// +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.ContainerRegistry { - using Microsoft.Rest.Azure; + using Azure; + using Management; + using Rest; + using Rest.Azure; using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; /// /// RegistriesOperations operations. @@ -39,7 +46,7 @@ public partial interface IRegistriesOperations /// /// Thrown when a required parameter is null /// - System.Threading.Tasks.Task> CheckNameAvailabilityWithHttpMessagesAsync(string name, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task> CheckNameAvailabilityWithHttpMessagesAsync(string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the properties of the specified container registry. /// @@ -65,10 +72,9 @@ public partial interface IRegistriesOperations /// /// Thrown when a required parameter is null /// - System.Threading.Tasks.Task> GetPropertiesWithHttpMessagesAsync(string resourceGroupName, string registryName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task> GetWithHttpMessagesAsync(string resourceGroupName, string registryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Creates or updates a container registry with the specified - /// parameters. + /// Creates a container registry with the specified parameters. /// /// /// The name of the resource group to which the container registry @@ -77,8 +83,8 @@ public partial interface IRegistriesOperations /// /// The name of the container registry. /// - /// - /// The parameters for creating or updating a container registry. + /// + /// The parameters for creating a container registry. /// /// /// The headers that will be added to request. @@ -95,7 +101,7 @@ public partial interface IRegistriesOperations /// /// Thrown when a required parameter is null /// - System.Threading.Tasks.Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string registryName, Registry registry, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task> CreateWithHttpMessagesAsync(string resourceGroupName, string registryName, RegistryCreateParameters registryCreateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Deletes a container registry. /// @@ -118,7 +124,7 @@ public partial interface IRegistriesOperations /// /// Thrown when a required parameter is null /// - System.Threading.Tasks.Task DeleteWithHttpMessagesAsync(string resourceGroupName, string registryName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task DeleteWithHttpMessagesAsync(string resourceGroupName, string registryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Updates a container registry with the specified parameters. /// @@ -147,10 +153,10 @@ public partial interface IRegistriesOperations /// /// Thrown when a required parameter is null /// - System.Threading.Tasks.Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string registryName, RegistryUpdateParameters registryUpdateParameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string registryName, RegistryUpdateParameters registryUpdateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Lists all the available container registries under the specified - /// resource group. + /// Lists all the container registries under the specified resource + /// group. /// /// /// The name of the resource group to which the container registry @@ -171,9 +177,9 @@ public partial interface IRegistriesOperations /// /// Thrown when a required parameter is null /// - System.Threading.Tasks.Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Lists all the available container registries under the specified + /// Lists all the container registries under the specified /// subscription. /// /// @@ -191,10 +197,9 @@ public partial interface IRegistriesOperations /// /// Thrown when a required parameter is null /// - System.Threading.Tasks.Task>> ListWithHttpMessagesAsync(System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets the administrator login credentials for the specified - /// container registry. + /// Lists the login credentials for the specified container registry. /// /// /// The name of the resource group to which the container registry @@ -218,9 +223,9 @@ public partial interface IRegistriesOperations /// /// Thrown when a required parameter is null /// - System.Threading.Tasks.Task> GetCredentialsWithHttpMessagesAsync(string resourceGroupName, string registryName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task> ListCredentialsWithHttpMessagesAsync(string resourceGroupName, string registryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Regenerates the administrator login credentials for the specified + /// Regenerates one of the login credentials for the specified /// container registry. /// /// @@ -230,6 +235,11 @@ public partial interface IRegistriesOperations /// /// The name of the container registry. /// + /// + /// Specifies name of the password which should be regenerated -- + /// password or password2. Possible values include: 'password', + /// 'password2' + /// /// /// The headers that will be added to request. /// @@ -245,10 +255,39 @@ public partial interface IRegistriesOperations /// /// Thrown when a required parameter is null /// - System.Threading.Tasks.Task> RegenerateCredentialsWithHttpMessagesAsync(string resourceGroupName, string registryName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task> RegenerateCredentialWithHttpMessagesAsync(string resourceGroupName, string registryName, PasswordName name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Lists all the available container registries under the specified - /// resource group. + /// Creates a container registry with the specified parameters. + /// + /// + /// The name of the resource group to which the container registry + /// belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The parameters for creating a container registry. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string registryName, RegistryCreateParameters registryCreateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists all the container registries under the specified resource + /// group. /// /// /// The NextLink from the previous successful call to List operation. @@ -268,9 +307,9 @@ public partial interface IRegistriesOperations /// /// Thrown when a required parameter is null /// - System.Threading.Tasks.Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Lists all the available container registries under the specified + /// Lists all the container registries under the specified /// subscription. /// /// @@ -291,6 +330,7 @@ public partial interface IRegistriesOperations /// /// Thrown when a required parameter is null /// - System.Threading.Tasks.Task>> ListNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/OperationDefinition.cs b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/OperationDefinition.cs new file mode 100644 index 000000000000..cd62c95514d2 --- /dev/null +++ b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/OperationDefinition.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.ContainerRegistry.Models +{ + using Azure; + using Management; + using ContainerRegistry; + using Newtonsoft.Json; + using System.Linq; + + /// + /// The definition of a container registry operation. + /// + public partial class OperationDefinition + { + /// + /// Initializes a new instance of the OperationDefinition class. + /// + public OperationDefinition() { } + + /// + /// Initializes a new instance of the OperationDefinition class. + /// + /// Operation name: + /// {provider}/{resource}/{operation}. + /// The display information for the container + /// registry operation. + public OperationDefinition(string name = default(string), OperationDisplayDefinition display = default(OperationDisplayDefinition)) + { + Name = name; + Display = display; + } + + /// + /// Gets or sets operation name: {provider}/{resource}/{operation}. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the display information for the container registry + /// operation. + /// + [JsonProperty(PropertyName = "display")] + public OperationDisplayDefinition Display { get; set; } + + } +} + diff --git a/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/OperationDisplayDefinition.cs b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/OperationDisplayDefinition.cs new file mode 100644 index 000000000000..2fa2ea440fae --- /dev/null +++ b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/OperationDisplayDefinition.cs @@ -0,0 +1,73 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.ContainerRegistry.Models +{ + using Azure; + using Management; + using ContainerRegistry; + using Newtonsoft.Json; + using System.Linq; + + /// + /// The display information for a container registry operation. + /// + public partial class OperationDisplayDefinition + { + /// + /// Initializes a new instance of the OperationDisplayDefinition class. + /// + public OperationDisplayDefinition() { } + + /// + /// Initializes a new instance of the OperationDisplayDefinition class. + /// + /// The resource provider name: + /// Microsoft.ContainerRegistry. + /// The resource on which the operation is + /// performed. + /// The operation that users can + /// perform. + /// The description for the + /// operation. + public OperationDisplayDefinition(string provider = default(string), string resource = default(string), string operation = default(string), string description = default(string)) + { + Provider = provider; + Resource = resource; + Operation = operation; + Description = description; + } + + /// + /// Gets or sets the resource provider name: + /// Microsoft.ContainerRegistry. + /// + [JsonProperty(PropertyName = "provider")] + public string Provider { get; set; } + + /// + /// Gets or sets the resource on which the operation is performed. + /// + [JsonProperty(PropertyName = "resource")] + public string Resource { get; set; } + + /// + /// Gets or sets the operation that users can perform. + /// + [JsonProperty(PropertyName = "operation")] + public string Operation { get; set; } + + /// + /// Gets or sets the description for the operation. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + } +} + diff --git a/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/Page.cs b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/Page.cs index cd47ec6dec14..340cb48bfbf3 100644 --- a/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/Page.cs +++ b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/Page.cs @@ -1,46 +1,55 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0 +// +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.ContainerRegistry.Models { + using Azure; + using Management; + using ContainerRegistry; + using Rest; + using Rest.Azure; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; /// /// Defines a page in Azure responses. /// /// Type of the page content items - [Newtonsoft.Json.JsonObject] - public class Page : Microsoft.Rest.Azure.IPage + [JsonObject] + public class Page : IPage { /// /// Gets the link to the next page. /// - [Newtonsoft.Json.JsonProperty("nextLink")] - public System.String NextPageLink { get; private set; } + [JsonProperty("nextLink")] + public string NextPageLink { get; private set; } - [Newtonsoft.Json.JsonProperty("value")] - private System.Collections.Generic.IList Items{ get; set; } + [JsonProperty("value")] + private IList Items{ get; set; } /// /// Returns an enumerator that iterates through the collection. /// /// A an enumerator that can be used to iterate through the collection. - public System.Collections.Generic.IEnumerator GetEnumerator() + public IEnumerator GetEnumerator() { - return (Items == null) ? System.Linq.Enumerable.Empty().GetEnumerator() : Items.GetEnumerator(); + return Items == null ? System.Linq.Enumerable.Empty().GetEnumerator() : Items.GetEnumerator(); } /// /// Returns an enumerator that iterates through the collection. /// /// A an enumerator that can be used to iterate through the collection. - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetEnumerator(); } } } + diff --git a/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/PasswordName.cs b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/PasswordName.cs new file mode 100644 index 000000000000..ff0a1e4a001b --- /dev/null +++ b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/PasswordName.cs @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.ContainerRegistry.Models +{ + using Azure; + using Management; + using ContainerRegistry; + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; + + /// + /// Defines values for PasswordName. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum PasswordName + { + [EnumMember(Value = "password")] + Password, + [EnumMember(Value = "password2")] + Password2 + } +} + diff --git a/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/ProvisioningState.cs b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/ProvisioningState.cs new file mode 100644 index 000000000000..55732aafd329 --- /dev/null +++ b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/ProvisioningState.cs @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.ContainerRegistry.Models +{ + using Azure; + using Management; + using ContainerRegistry; + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; + + /// + /// Defines values for ProvisioningState. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum ProvisioningState + { + [EnumMember(Value = "Creating")] + Creating, + [EnumMember(Value = "Succeeded")] + Succeeded + } +} + diff --git a/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/RegenerateCredentialParameters.cs b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/RegenerateCredentialParameters.cs new file mode 100644 index 000000000000..59380552d62d --- /dev/null +++ b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/RegenerateCredentialParameters.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.ContainerRegistry.Models +{ + using Azure; + using Management; + using ContainerRegistry; + using Newtonsoft.Json; + using System.Linq; + + /// + /// The parameters used to regenerate the login credential. + /// + public partial class RegenerateCredentialParameters + { + /// + /// Initializes a new instance of the RegenerateCredentialParameters + /// class. + /// + public RegenerateCredentialParameters() { } + + /// + /// Initializes a new instance of the RegenerateCredentialParameters + /// class. + /// + /// Specifies name of the password which should be + /// regenerated -- password or password2. Possible values include: + /// 'password', 'password2' + public RegenerateCredentialParameters(PasswordName name) + { + Name = name; + } + + /// + /// Gets or sets specifies name of the password which should be + /// regenerated -- password or password2. Possible values include: + /// 'password', 'password2' + /// + [JsonProperty(PropertyName = "name")] + public PasswordName Name { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + } + } +} + diff --git a/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/Registry.cs b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/Registry.cs index e5d99d02e051..b9d67624db26 100644 --- a/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/Registry.cs +++ b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/Registry.cs @@ -1,19 +1,27 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0 +// +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.ContainerRegistry.Models { + using Azure; + using Management; + using ContainerRegistry; + using Rest; + using Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; using System.Linq; /// /// An object that represents a container registry. /// - [Microsoft.Rest.Serialization.JsonTransformation] + [JsonTransformation] public partial class Registry : Resource { /// @@ -24,12 +32,9 @@ public Registry() { } /// /// Initializes a new instance of the Registry class. /// - /// The location of the resource. This cannot - /// be changed after the resource is created. - /// The properties of the storage account - /// for the container registry. If specified, the storage account - /// must be in the same physical location as the container - /// registry. + /// The location of the resource. This cannot be + /// changed after the resource is created. + /// The SKU of the container registry. /// The resource ID. /// The name of the resource. /// The type of the resource. @@ -38,61 +43,81 @@ public Registry() { } /// container registry. /// The creation date of the container /// registry in ISO8601 format. - /// The value that indicates whether - /// the admin user is enabled. This value is false by default. - public Registry(string location, StorageAccountProperties storageAccount, string id = default(string), string name = default(string), string type = default(string), System.Collections.Generic.IDictionary tags = default(System.Collections.Generic.IDictionary), string loginServer = default(string), System.DateTime? creationDate = default(System.DateTime?), bool? adminUserEnabled = default(bool?)) + /// The status of the container + /// registry at the time the operation was called. Possible values + /// include: 'Creating', 'Succeeded' + /// The value that indicates whether the + /// admin user is enabled. This value is false by default. + /// The properties of the storage account + /// for the container registry. + public Registry(string location, Sku sku, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string loginServer = default(string), System.DateTime? creationDate = default(System.DateTime?), ProvisioningState? provisioningState = default(ProvisioningState?), bool? adminUserEnabled = default(bool?), StorageAccountProperties storageAccount = default(StorageAccountProperties)) : base(location, id, name, type, tags) { + Sku = sku; LoginServer = loginServer; CreationDate = creationDate; + ProvisioningState = provisioningState; AdminUserEnabled = adminUserEnabled; StorageAccount = storageAccount; } + /// + /// Gets or sets the SKU of the container registry. + /// + [JsonProperty(PropertyName = "sku")] + public Sku Sku { get; set; } + /// /// Gets the URL that can be used to log into the container registry. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.loginServer")] - public string LoginServer { get; private set; } + [JsonProperty(PropertyName = "properties.loginServer")] + public string LoginServer { get; protected set; } /// /// Gets the creation date of the container registry in ISO8601 format. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.creationDate")] - public System.DateTime? CreationDate { get; private set; } + [JsonProperty(PropertyName = "properties.creationDate")] + public System.DateTime? CreationDate { get; protected set; } + + /// + /// Gets the status of the container registry at the time the operation + /// was called. Possible values include: 'Creating', 'Succeeded' + /// + [JsonProperty(PropertyName = "properties.provisioningState")] + public ProvisioningState? ProvisioningState { get; protected set; } /// /// Gets or sets the value that indicates whether the admin user is /// enabled. This value is false by default. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.adminUserEnabled")] + [JsonProperty(PropertyName = "properties.adminUserEnabled")] public bool? AdminUserEnabled { get; set; } /// /// Gets or sets the properties of the storage account for the - /// container registry. If specified, the storage account must be in - /// the same physical location as the container registry. + /// container registry. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.storageAccount")] + [JsonProperty(PropertyName = "properties.storageAccount")] public StorageAccountProperties StorageAccount { get; set; } /// /// Validate the object. /// - /// + /// /// Thrown if validation fails /// public override void Validate() { base.Validate(); - if (StorageAccount == null) + if (Sku == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "StorageAccount"); + throw new ValidationException(ValidationRules.CannotBeNull, "Sku"); } - if (this.StorageAccount != null) + if (Sku != null) { - this.StorageAccount.Validate(); + Sku.Validate(); } } } } + diff --git a/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/RegistryCreateParameters.cs b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/RegistryCreateParameters.cs new file mode 100644 index 000000000000..e276ab32cad2 --- /dev/null +++ b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/RegistryCreateParameters.cs @@ -0,0 +1,118 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.ContainerRegistry.Models +{ + using Azure; + using Management; + using ContainerRegistry; + using Rest; + using Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The parameters for creating a container registry. + /// + [JsonTransformation] + public partial class RegistryCreateParameters + { + /// + /// Initializes a new instance of the RegistryCreateParameters class. + /// + public RegistryCreateParameters() { } + + /// + /// Initializes a new instance of the RegistryCreateParameters class. + /// + /// The location of the container registry. This + /// cannot be changed after the resource is created. + /// The SKU of the container registry. + /// The parameters of a storage account + /// for the container registry. If specified, the storage account must + /// be in the same physical location as the container registry. + /// The tags for the container registry. + /// The value that indicates whether the + /// admin user is enabled. This value is false by default. + public RegistryCreateParameters(string location, Sku sku, StorageAccountParameters storageAccount, IDictionary tags = default(IDictionary), bool? adminUserEnabled = default(bool?)) + { + Tags = tags; + Location = location; + Sku = sku; + AdminUserEnabled = adminUserEnabled; + StorageAccount = storageAccount; + } + + /// + /// Gets or sets the tags for the container registry. + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } + + /// + /// Gets or sets the location of the container registry. This cannot be + /// changed after the resource is created. + /// + [JsonProperty(PropertyName = "location")] + public string Location { get; set; } + + /// + /// Gets or sets the SKU of the container registry. + /// + [JsonProperty(PropertyName = "sku")] + public Sku Sku { get; set; } + + /// + /// Gets or sets the value that indicates whether the admin user is + /// enabled. This value is false by default. + /// + [JsonProperty(PropertyName = "properties.adminUserEnabled")] + public bool? AdminUserEnabled { get; set; } + + /// + /// Gets or sets the parameters of a storage account for the container + /// registry. If specified, the storage account must be in the same + /// physical location as the container registry. + /// + [JsonProperty(PropertyName = "properties.storageAccount")] + public StorageAccountParameters StorageAccount { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Location"); + } + if (Sku == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Sku"); + } + if (StorageAccount == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "StorageAccount"); + } + if (Sku != null) + { + Sku.Validate(); + } + if (StorageAccount != null) + { + StorageAccount.Validate(); + } + } + } +} + diff --git a/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/RegistryCredentials.cs b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/RegistryCredentials.cs deleted file mode 100644 index 982393fd0a38..000000000000 --- a/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/RegistryCredentials.cs +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0 -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Microsoft.Azure.Management.ContainerRegistry.Models -{ - using System.Linq; - - /// - /// The result of a request to get the administrator login credentials for - /// a container registry. - /// - public partial class RegistryCredentials - { - /// - /// Initializes a new instance of the RegistryCredentials class. - /// - public RegistryCredentials() { } - - /// - /// Initializes a new instance of the RegistryCredentials class. - /// - /// The administrator username. - /// The administrator password. - public RegistryCredentials(string username = default(string), string password = default(string)) - { - Username = username; - Password = password; - } - - /// - /// Gets or sets the administrator username. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "username")] - public string Username { get; set; } - - /// - /// Gets or sets the administrator password. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "password")] - public string Password { get; set; } - - } -} diff --git a/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/RegistryListCredentialsResult.cs b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/RegistryListCredentialsResult.cs new file mode 100644 index 000000000000..401d552b21c6 --- /dev/null +++ b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/RegistryListCredentialsResult.cs @@ -0,0 +1,58 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.ContainerRegistry.Models +{ + using Azure; + using Management; + using ContainerRegistry; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The response from the ListCredentials operation. + /// + public partial class RegistryListCredentialsResult + { + /// + /// Initializes a new instance of the RegistryListCredentialsResult + /// class. + /// + public RegistryListCredentialsResult() { } + + /// + /// Initializes a new instance of the RegistryListCredentialsResult + /// class. + /// + /// The username for a container + /// registry. + /// The list of passwords for a container + /// registry. + public RegistryListCredentialsResult(string username = default(string), IList passwords = default(IList)) + { + Username = username; + Passwords = passwords; + } + + /// + /// Gets or sets the username for a container registry. + /// + [JsonProperty(PropertyName = "username")] + public string Username { get; set; } + + /// + /// Gets or sets the list of passwords for a container registry. + /// + [JsonProperty(PropertyName = "passwords")] + public IList Passwords { get; set; } + + } +} + diff --git a/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/RegistryNameCheckRequest.cs b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/RegistryNameCheckRequest.cs index 5c1457e6f4ef..17b2aaba2f98 100644 --- a/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/RegistryNameCheckRequest.cs +++ b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/RegistryNameCheckRequest.cs @@ -1,17 +1,22 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0 +// +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.ContainerRegistry.Models { + using Azure; + using Management; + using ContainerRegistry; + using Rest; + using Newtonsoft.Json; using System.Linq; /// - /// A request to check whether the container registry name is available. + /// A request to check whether a container registry name is available. /// public partial class RegistryNameCheckRequest { @@ -39,28 +44,44 @@ static RegistryNameCheckRequest() /// /// Gets or sets the name of the container registry. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + [JsonProperty(PropertyName = "name")] public string Name { get; set; } /// - /// The resource type of the container registry. This field must be - /// set to "Microsoft.ContainerRegistry/registries". + /// The resource type of the container registry. This field must be set + /// to "Microsoft.ContainerRegistry/registries". /// - [Newtonsoft.Json.JsonProperty(PropertyName = "type")] + [JsonProperty(PropertyName = "type")] public static string Type { get; private set; } /// /// Validate the object. /// - /// + /// /// Thrown if validation fails /// public virtual void Validate() { if (Name == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "Name"); + throw new ValidationException(ValidationRules.CannotBeNull, "Name"); + } + if (Name != null) + { + if (Name.Length > 50) + { + throw new ValidationException(ValidationRules.MaxLength, "Name", 50); + } + if (Name.Length < 5) + { + throw new ValidationException(ValidationRules.MinLength, "Name", 5); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(Name, "^[a-zA-Z0-9]*$")) + { + throw new ValidationException(ValidationRules.Pattern, "Name", "^[a-zA-Z0-9]*$"); + } } } } } + diff --git a/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/RegistryNameStatus.cs b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/RegistryNameStatus.cs index 46cb01d3d47f..274e4470eac4 100644 --- a/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/RegistryNameStatus.cs +++ b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/RegistryNameStatus.cs @@ -1,13 +1,17 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0 +// +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.ContainerRegistry.Models { + using Azure; + using Management; + using ContainerRegistry; + using Newtonsoft.Json; using System.Linq; /// @@ -41,21 +45,22 @@ public RegistryNameStatus() { } /// Gets or sets the value that indicates whether the name is /// available. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "nameAvailable")] + [JsonProperty(PropertyName = "nameAvailable")] public bool? NameAvailable { get; set; } /// /// Gets or sets if any, the reason that the name is not available. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "reason")] + [JsonProperty(PropertyName = "reason")] public string Reason { get; set; } /// /// Gets or sets if any, the error message that provides more detail /// for the reason that the name is not available. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "message")] + [JsonProperty(PropertyName = "message")] public string Message { get; set; } } } + diff --git a/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/RegistryPassword.cs b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/RegistryPassword.cs new file mode 100644 index 000000000000..2ac4f6c4dbc8 --- /dev/null +++ b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/RegistryPassword.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.ContainerRegistry.Models +{ + using Azure; + using Management; + using ContainerRegistry; + using Newtonsoft.Json; + using System.Linq; + + /// + /// The login password for the container registry. + /// + public partial class RegistryPassword + { + /// + /// Initializes a new instance of the RegistryPassword class. + /// + public RegistryPassword() { } + + /// + /// Initializes a new instance of the RegistryPassword class. + /// + /// The password name. Possible values include: + /// 'password', 'password2' + /// The password value. + public RegistryPassword(PasswordName? name = default(PasswordName?), string value = default(string)) + { + Name = name; + Value = value; + } + + /// + /// Gets or sets the password name. Possible values include: + /// 'password', 'password2' + /// + [JsonProperty(PropertyName = "name")] + public PasswordName? Name { get; set; } + + /// + /// Gets or sets the password value. + /// + [JsonProperty(PropertyName = "value")] + public string Value { get; set; } + + } +} + diff --git a/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/RegistryUpdateParameters.cs b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/RegistryUpdateParameters.cs index e45ade2452c4..932bf9cd3763 100644 --- a/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/RegistryUpdateParameters.cs +++ b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/RegistryUpdateParameters.cs @@ -1,19 +1,27 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0 +// +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.ContainerRegistry.Models { + using Azure; + using Management; + using ContainerRegistry; + using Rest; + using Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; using System.Linq; /// /// The parameters for updating a container registry. /// - [Microsoft.Rest.Serialization.JsonTransformation] + [JsonTransformation] public partial class RegistryUpdateParameters { /// @@ -24,15 +32,13 @@ public RegistryUpdateParameters() { } /// /// Initializes a new instance of the RegistryUpdateParameters class. /// - /// The resource tags for the container - /// registry. - /// The value that indicates whether - /// the admin user is enabled. This value is false by default. - /// The properties of a storage account - /// for the container registry. If specified, the storage account - /// must be in the same physical location as the container - /// registry. - public RegistryUpdateParameters(System.Collections.Generic.IDictionary tags = default(System.Collections.Generic.IDictionary), bool? adminUserEnabled = default(bool?), StorageAccountProperties storageAccount = default(StorageAccountProperties)) + /// The tags for the container registry. + /// The value that indicates whether the + /// admin user is enabled. This value is false by default. + /// The parameters of a storage account + /// for the container registry. If specified, the storage account must + /// be in the same physical location as the container registry. + public RegistryUpdateParameters(IDictionary tags = default(IDictionary), bool? adminUserEnabled = default(bool?), StorageAccountParameters storageAccount = default(StorageAccountParameters)) { Tags = tags; AdminUserEnabled = adminUserEnabled; @@ -40,38 +46,39 @@ public RegistryUpdateParameters() { } } /// - /// Gets or sets the resource tags for the container registry. + /// Gets or sets the tags for the container registry. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "tags")] - public System.Collections.Generic.IDictionary Tags { get; set; } + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } /// /// Gets or sets the value that indicates whether the admin user is /// enabled. This value is false by default. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.adminUserEnabled")] + [JsonProperty(PropertyName = "properties.adminUserEnabled")] public bool? AdminUserEnabled { get; set; } /// - /// Gets or sets the properties of a storage account for the container + /// Gets or sets the parameters of a storage account for the container /// registry. If specified, the storage account must be in the same /// physical location as the container registry. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.storageAccount")] - public StorageAccountProperties StorageAccount { get; set; } + [JsonProperty(PropertyName = "properties.storageAccount")] + public StorageAccountParameters StorageAccount { get; set; } /// /// Validate the object. /// - /// + /// /// Thrown if validation fails /// public virtual void Validate() { - if (this.StorageAccount != null) + if (StorageAccount != null) { - this.StorageAccount.Validate(); + StorageAccount.Validate(); } } } } + diff --git a/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/Resource.cs b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/Resource.cs index 700d240680c2..b4439285a546 100644 --- a/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/Resource.cs +++ b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/Resource.cs @@ -1,19 +1,27 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0 +// +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.ContainerRegistry.Models { + using Azure; + using Management; + using ContainerRegistry; + using Rest; + using Rest.Azure; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; using System.Linq; /// /// An Azure resource. /// - public partial class Resource : Microsoft.Rest.Azure.IResource + public partial class Resource : IResource { /// /// Initializes a new instance of the Resource class. @@ -23,13 +31,13 @@ public Resource() { } /// /// Initializes a new instance of the Resource class. /// - /// The location of the resource. This cannot - /// be changed after the resource is created. + /// The location of the resource. This cannot be + /// changed after the resource is created. /// The resource ID. /// The name of the resource. /// The type of the resource. /// The tags of the resource. - public Resource(string location, string id = default(string), string name = default(string), string type = default(string), System.Collections.Generic.IDictionary tags = default(System.Collections.Generic.IDictionary)) + public Resource(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary)) { Id = id; Name = name; @@ -41,46 +49,47 @@ public Resource() { } /// /// Gets the resource ID. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "id")] - public string Id { get; private set; } + [JsonProperty(PropertyName = "id")] + public string Id { get; protected set; } /// /// Gets the name of the resource. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "name")] - public string Name { get; private set; } + [JsonProperty(PropertyName = "name")] + public string Name { get; protected set; } /// /// Gets the type of the resource. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "type")] - public string Type { get; private set; } + [JsonProperty(PropertyName = "type")] + public string Type { get; protected set; } /// /// Gets or sets the location of the resource. This cannot be changed /// after the resource is created. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "location")] + [JsonProperty(PropertyName = "location")] public string Location { get; set; } /// /// Gets or sets the tags of the resource. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "tags")] - public System.Collections.Generic.IDictionary Tags { get; set; } + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } /// /// Validate the object. /// - /// + /// /// Thrown if validation fails /// public virtual void Validate() { if (Location == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "Location"); + throw new ValidationException(ValidationRules.CannotBeNull, "Location"); } } } } + diff --git a/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/Sku.cs b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/Sku.cs new file mode 100644 index 000000000000..f5277084f27e --- /dev/null +++ b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/Sku.cs @@ -0,0 +1,70 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.ContainerRegistry.Models +{ + using Azure; + using Management; + using ContainerRegistry; + using Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// The SKU of a container registry. + /// + public partial class Sku + { + /// + /// Initializes a new instance of the Sku class. + /// + public Sku() { } + + /// + /// Initializes a new instance of the Sku class. + /// + /// The SKU name of the the container registry. + /// Required for registry creation. Allowed value: Basic. + /// The SKU tier based on the SKU name. Possible + /// values include: 'Basic' + public Sku(string name, string tier = default(string)) + { + Name = name; + Tier = tier; + } + + /// + /// Gets or sets the SKU name of the the container registry. Required + /// for registry creation. Allowed value: Basic. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets the SKU tier based on the SKU name. Possible values include: + /// 'Basic' + /// + [JsonProperty(PropertyName = "tier")] + public string Tier { get; protected set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Name"); + } + } + } +} + diff --git a/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/SkuTier.cs b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/SkuTier.cs new file mode 100644 index 000000000000..ae2956290ea9 --- /dev/null +++ b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/SkuTier.cs @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.ContainerRegistry.Models +{ + using Azure; + using Management; + using ContainerRegistry; + + /// + /// Defines values for SkuTier. + /// + public static class SkuTier + { + public const string Basic = "Basic"; + } +} + diff --git a/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/StorageAccountParameters.cs b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/StorageAccountParameters.cs new file mode 100644 index 000000000000..16b63a13e41e --- /dev/null +++ b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/StorageAccountParameters.cs @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.ContainerRegistry.Models +{ + using Azure; + using Management; + using ContainerRegistry; + using Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// The parameters of a storage account for a container registry. + /// + public partial class StorageAccountParameters + { + /// + /// Initializes a new instance of the StorageAccountParameters class. + /// + public StorageAccountParameters() { } + + /// + /// Initializes a new instance of the StorageAccountParameters class. + /// + /// The name of the storage account. + /// The access key to the storage + /// account. + public StorageAccountParameters(string name, string accessKey) + { + Name = name; + AccessKey = accessKey; + } + + /// + /// Gets or sets the name of the storage account. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the access key to the storage account. + /// + [JsonProperty(PropertyName = "accessKey")] + public string AccessKey { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Name"); + } + if (AccessKey == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "AccessKey"); + } + } + } +} + diff --git a/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/StorageAccountProperties.cs b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/StorageAccountProperties.cs index 219e5f13521e..2bab8ed7def9 100644 --- a/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/StorageAccountProperties.cs +++ b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Models/StorageAccountProperties.cs @@ -1,13 +1,17 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0 +// +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.ContainerRegistry.Models { + using Azure; + using Management; + using ContainerRegistry; + using Newtonsoft.Json; using System.Linq; /// @@ -24,42 +28,17 @@ public StorageAccountProperties() { } /// Initializes a new instance of the StorageAccountProperties class. /// /// The name of the storage account. - /// The access key to the storage - /// account. - public StorageAccountProperties(string name, string accessKey) + public StorageAccountProperties(string name = default(string)) { Name = name; - AccessKey = accessKey; } /// /// Gets or sets the name of the storage account. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + [JsonProperty(PropertyName = "name")] public string Name { get; set; } - /// - /// Gets or sets the access key to the storage account. - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "accessKey")] - public string AccessKey { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Name == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "Name"); - } - if (AccessKey == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "AccessKey"); - } - } } } + diff --git a/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Operations.cs b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Operations.cs new file mode 100644 index 000000000000..b5e1430067cd --- /dev/null +++ b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/Operations.cs @@ -0,0 +1,401 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.ContainerRegistry +{ + using Azure; + using Management; + using Rest; + using Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Operations operations. + /// + internal partial class Operations : IServiceOperations, IOperations + { + /// + /// Initializes a new instance of the Operations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal Operations(ContainerRegistryManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the ContainerRegistryManagementClient + /// + public ContainerRegistryManagementClient Client { get; private set; } + + /// + /// Lists all of the available Azure Container Registry REST API operations. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.ContainerRegistry/operations").ToString(); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Lists all of the available Azure Container Registry REST API operations. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} + diff --git a/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/OperationsExtensions.cs b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/OperationsExtensions.cs new file mode 100644 index 000000000000..20d1611c0215 --- /dev/null +++ b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/OperationsExtensions.cs @@ -0,0 +1,88 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.ContainerRegistry +{ + using Azure; + using Management; + using Rest; + using Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for Operations. + /// + public static partial class OperationsExtensions + { + /// + /// Lists all of the available Azure Container Registry REST API operations. + /// + /// + /// The operations group for this extension method. + /// + public static IPage List(this IOperations operations) + { + return operations.ListAsync().GetAwaiter().GetResult(); + } + + /// + /// Lists all of the available Azure Container Registry REST API operations. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IOperations operations, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists all of the available Azure Container Registry REST API operations. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists all of the available Azure Container Registry REST API operations. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListNextAsync(this IOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} + diff --git a/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/RegistriesOperations.cs b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/RegistriesOperations.cs index 901e438f7928..82e665821d49 100644 --- a/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/RegistriesOperations.cs +++ b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/RegistriesOperations.cs @@ -1,22 +1,31 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0 +// +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.ContainerRegistry { - using System.Linq; - using Microsoft.Rest; - using Microsoft.Rest.Azure; + using Azure; + using Management; + using Rest; + using Rest.Azure; using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; /// /// RegistriesOperations operations. /// - internal partial class RegistriesOperations : Microsoft.Rest.IServiceOperations, IRegistriesOperations + internal partial class RegistriesOperations : IServiceOperations, IRegistriesOperations { /// /// Initializes a new instance of the RegistriesOperations class. @@ -29,11 +38,11 @@ internal partial class RegistriesOperations : Microsoft.Rest.IServiceOperations< /// internal RegistriesOperations(ContainerRegistryManagementClient client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } - this.Client = client; + Client = client; } /// @@ -43,8 +52,8 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) /// /// Checks whether the container registry name is available for use. The name - /// must contain only alphanumeric characters, be globally unique, and - /// between 5 and 60 characters in length. + /// must contain only alphanumeric characters, be globally unique, and between + /// 5 and 60 characters in length. /// /// /// The name of the container registry. @@ -55,31 +64,49 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// - /// + /// /// Thrown when unable to deserialize the response /// - /// + /// + /// Thrown when a required parameter is null + /// + /// /// Thrown when a required parameter is null /// /// /// A response object containing the response body and response headers. /// - public async System.Threading.Tasks.Task> CheckNameAvailabilityWithHttpMessagesAsync(string name, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async Task> CheckNameAvailabilityWithHttpMessagesAsync(string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (this.Client.ApiVersion == null) + if (Client.ApiVersion == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } - if (this.Client.SubscriptionId == null) + if (Client.SubscriptionId == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } if (name == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "name"); + throw new ValidationException(ValidationRules.CannotBeNull, "name"); + } + if (name != null) + { + if (name.Length > 50) + { + throw new ValidationException(ValidationRules.MaxLength, "name", 50); + } + if (name.Length < 5) + { + throw new ValidationException(ValidationRules.MinLength, "name", 5); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(name, "^[a-zA-Z0-9]*$")) + { + throw new ValidationException(ValidationRules.Pattern, "name", "^[a-zA-Z0-9]*$"); + } } RegistryNameCheckRequest registryNameCheckRequest = new RegistryNameCheckRequest(); if (name != null) @@ -87,47 +114,49 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) registryNameCheckRequest.Name = name; } // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("registryNameCheckRequest", registryNameCheckRequest); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "CheckNameAvailability", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "CheckNameAvailability", tracingParameters); } // Construct URL - var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.ContainerRegistry/checkNameAvailability").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (this.Client.ApiVersion != null) + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - System.Net.Http.HttpRequestMessage _httpRequest = new System.Net.Http.HttpRequestMessage(); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); System.Net.Http.HttpResponseMessage _httpResponse = null; _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) { _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.Client.AcceptLanguage != null) + if (Client.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -144,56 +173,56 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) string _requestContent = null; if(registryNameCheckRequest != null) { - _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(registryNameCheckRequest, this.Client.SerializationSettings); + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(registryNameCheckRequest, Client.SerializationSettings); _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Set Credentials - if (this.Client.Credentials != null) + if (Client.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new Microsoft.Rest.Azure.CloudException(_errorBody.Message); + ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); if (_httpResponse.Headers.Contains("x-ms-request-id")) { ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) @@ -203,7 +232,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) throw ex; } // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -216,21 +245,21 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) { _httpResponse.Dispose(); } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); } } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + ServiceClientTracing.Exit(_invocationId, _result); } return _result; } @@ -250,81 +279,101 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// - /// + /// /// Thrown when unable to deserialize the response /// - /// + /// + /// Thrown when a required parameter is null + /// + /// /// Thrown when a required parameter is null /// /// /// A response object containing the response body and response headers. /// - public async System.Threading.Tasks.Task> GetPropertiesWithHttpMessagesAsync(string resourceGroupName, string registryName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string registryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (this.Client.ApiVersion == null) + if (Client.ApiVersion == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } - if (this.Client.SubscriptionId == null) + if (Client.SubscriptionId == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } if (resourceGroupName == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } if (registryName == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "registryName"); + throw new ValidationException(ValidationRules.CannotBeNull, "registryName"); + } + if (registryName != null) + { + if (registryName.Length > 50) + { + throw new ValidationException(ValidationRules.MaxLength, "registryName", 50); + } + if (registryName.Length < 5) + { + throw new ValidationException(ValidationRules.MinLength, "registryName", 5); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(registryName, "^[a-zA-Z0-9]*$")) + { + throw new ValidationException(ValidationRules.Pattern, "registryName", "^[a-zA-Z0-9]*$"); + } } // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("registryName", registryName); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "GetProperties", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); } // Construct URL - var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{registryName}", System.Uri.EscapeDataString(registryName)); - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (this.Client.ApiVersion != null) + List _queryParameters = new List(); + if (Client.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - System.Net.Http.HttpRequestMessage _httpRequest = new System.Net.Http.HttpRequestMessage(); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); System.Net.Http.HttpResponseMessage _httpResponse = null; _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) { _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.Client.AcceptLanguage != null) + if (Client.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -340,51 +389,51 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) // Serialize Request string _requestContent = null; // Set Credentials - if (this.Client.Credentials != null) + if (Client.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new Microsoft.Rest.Azure.CloudException(_errorBody.Message); + ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); if (_httpResponse.Headers.Contains("x-ms-request-id")) { ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) @@ -394,7 +443,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) throw ex; } // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -407,27 +456,27 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) { _httpResponse.Dispose(); } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); } } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + ServiceClientTracing.Exit(_invocationId, _result); } return _result; } /// - /// Creates or updates a container registry with the specified parameters. + /// Creates a container registry with the specified parameters. /// /// /// The name of the resource group to which the container registry belongs. @@ -435,8 +484,30 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) /// /// The name of the container registry. /// - /// - /// The parameters for creating or updating a container registry. + /// + /// The parameters for creating a container registry. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateWithHttpMessagesAsync(string resourceGroupName, string registryName, RegistryCreateParameters registryCreateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(resourceGroupName, registryName, registryCreateParameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes a container registry. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. /// /// /// Headers that will be added to request. @@ -444,90 +515,98 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// - /// - /// Thrown when unable to deserialize the response + /// + /// Thrown when a required parameter is null /// - /// + /// /// Thrown when a required parameter is null /// /// /// A response object containing the response body and response headers. /// - public async System.Threading.Tasks.Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string registryName, Registry registry, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string registryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (this.Client.ApiVersion == null) + if (Client.ApiVersion == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } - if (this.Client.SubscriptionId == null) + if (Client.SubscriptionId == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } if (resourceGroupName == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } if (registryName == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "registryName"); + throw new ValidationException(ValidationRules.CannotBeNull, "registryName"); } - if (registry == null) + if (registryName != null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "registry"); - } - if (registry != null) - { - registry.Validate(); + if (registryName.Length > 50) + { + throw new ValidationException(ValidationRules.MaxLength, "registryName", 50); + } + if (registryName.Length < 5) + { + throw new ValidationException(ValidationRules.MinLength, "registryName", 5); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(registryName, "^[a-zA-Z0-9]*$")) + { + throw new ValidationException(ValidationRules.Pattern, "registryName", "^[a-zA-Z0-9]*$"); + } } // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("registryName", registryName); - tracingParameters.Add("registry", registry); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "CreateOrUpdate", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "Delete", tracingParameters); } // Construct URL - var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{registryName}", System.Uri.EscapeDataString(registryName)); - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (this.Client.ApiVersion != null) + List _queryParameters = new List(); + if (Client.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - System.Net.Http.HttpRequestMessage _httpRequest = new System.Net.Http.HttpRequestMessage(); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("PUT"); + _httpRequest.Method = new System.Net.Http.HttpMethod("DELETE"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) { _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.Client.AcceptLanguage != null) + if (Client.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -542,58 +621,44 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) // Serialize Request string _requestContent = null; - if(registry != null) - { - _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(registry, this.Client.SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } // Set Credentials - if (this.Client.Credentials != null) + if (Client.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 202) + if ((int)_statusCode != 200 && (int)_statusCode != 204) { - var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + if (_httpResponse.Content != null) { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - if (_errorBody != null) - { - ex = new Microsoft.Rest.Azure.CloudException(_errorBody.Message); - ex.Body = _errorBody; - } } - catch (Newtonsoft.Json.JsonException) - { - // Ignore the exception + else { + _responseContent = string.Empty; } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); if (_httpResponse.Headers.Contains("x-ms-request-id")) { ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) @@ -603,40 +668,22 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) throw ex; } // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) { _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); - } - catch (Newtonsoft.Json.JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + ServiceClientTracing.Exit(_invocationId, _result); } return _result; } /// - /// Deletes a container registry. + /// Updates a container registry with the specified parameters. /// /// /// The name of the resource group to which the container registry belongs. @@ -644,84 +691,115 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) /// /// The name of the container registry. /// + /// + /// The parameters for updating a container registry. + /// /// /// Headers that will be added to request. /// /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// - /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// /// Thrown when a required parameter is null /// /// /// A response object containing the response body and response headers. /// - public async System.Threading.Tasks.Task DeleteWithHttpMessagesAsync(string resourceGroupName, string registryName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string registryName, RegistryUpdateParameters registryUpdateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (this.Client.ApiVersion == null) + if (Client.ApiVersion == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } - if (this.Client.SubscriptionId == null) + if (Client.SubscriptionId == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } if (resourceGroupName == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } if (registryName == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "registryName"); + throw new ValidationException(ValidationRules.CannotBeNull, "registryName"); + } + if (registryName != null) + { + if (registryName.Length > 50) + { + throw new ValidationException(ValidationRules.MaxLength, "registryName", 50); + } + if (registryName.Length < 5) + { + throw new ValidationException(ValidationRules.MinLength, "registryName", 5); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(registryName, "^[a-zA-Z0-9]*$")) + { + throw new ValidationException(ValidationRules.Pattern, "registryName", "^[a-zA-Z0-9]*$"); + } + } + if (registryUpdateParameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "registryUpdateParameters"); } // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("registryName", registryName); + tracingParameters.Add("registryUpdateParameters", registryUpdateParameters); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "Delete", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "Update", tracingParameters); } // Construct URL - var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{registryName}", System.Uri.EscapeDataString(registryName)); - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (this.Client.ApiVersion != null) + List _queryParameters = new List(); + if (Client.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - System.Net.Http.HttpRequestMessage _httpRequest = new System.Net.Http.HttpRequestMessage(); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("DELETE"); + _httpRequest.Method = new System.Net.Http.HttpMethod("PATCH"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) { _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.Client.AcceptLanguage != null) + if (Client.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -736,44 +814,58 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) // Serialize Request string _requestContent = null; + if(registryUpdateParameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(registryUpdateParameters, Client.SerializationSettings); + _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } // Set Credentials - if (this.Client.Credentials != null) + if (Client.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 204) + if ((int)_statusCode != 200) { - var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } } - else { - _responseContent = string.Empty; + catch (JsonException) + { + // Ignore the exception } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); if (_httpResponse.Headers.Contains("x-ms-request-id")) { ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) @@ -783,118 +875,124 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) throw ex; } // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) { _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + ServiceClientTracing.Exit(_invocationId, _result); } return _result; } /// - /// Updates a container registry with the specified parameters. + /// Lists all the container registries under the specified resource group. /// /// /// The name of the resource group to which the container registry belongs. /// - /// - /// The name of the container registry. - /// - /// - /// The parameters for updating a container registry. - /// /// /// Headers that will be added to request. /// /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// - /// + /// /// Thrown when unable to deserialize the response /// - /// + /// + /// Thrown when a required parameter is null + /// + /// /// Thrown when a required parameter is null /// /// /// A response object containing the response body and response headers. /// - public async System.Threading.Tasks.Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string registryName, RegistryUpdateParameters registryUpdateParameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (this.Client.ApiVersion == null) + if (Client.ApiVersion == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } - if (this.Client.SubscriptionId == null) + if (Client.SubscriptionId == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } if (resourceGroupName == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (registryName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "registryName"); - } - if (registryUpdateParameters == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "registryUpdateParameters"); + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("registryName", registryName); - tracingParameters.Add("registryUpdateParameters", registryUpdateParameters); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "Update", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroup", tracingParameters); } // Construct URL - var _baseUrl = this.Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{registryName}", System.Uri.EscapeDataString(registryName)); - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (this.Client.ApiVersion != null) + List _queryParameters = new List(); + if (Client.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - System.Net.Http.HttpRequestMessage _httpRequest = new System.Net.Http.HttpRequestMessage(); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("PATCH"); + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) { _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.Client.AcceptLanguage != null) + if (Client.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -909,58 +1007,52 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) // Serialize Request string _requestContent = null; - if(registryUpdateParameters != null) - { - _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(registryUpdateParameters, this.Client.SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } // Set Credentials - if (this.Client.Credentials != null) + if (Client.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new Microsoft.Rest.Azure.CloudException(_errorBody.Message); + ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); if (_httpResponse.Headers.Contains("x-ms-request-id")) { ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) @@ -970,7 +1062,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) throw ex; } // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); + var _result = new AzureOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -983,107 +1075,102 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) { _httpResponse.Dispose(); } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); } } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + ServiceClientTracing.Exit(_invocationId, _result); } return _result; } /// - /// Lists all the available container registries under the specified resource - /// group. + /// Lists all the container registries under the specified subscription. /// - /// - /// The name of the resource group to which the container registry belongs. - /// /// /// Headers that will be added to request. /// /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// - /// + /// /// Thrown when unable to deserialize the response /// - /// + /// + /// Thrown when a required parameter is null + /// + /// /// Thrown when a required parameter is null /// /// /// A response object containing the response body and response headers. /// - public async System.Threading.Tasks.Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (this.Client.ApiVersion == null) + if (Client.ApiVersion == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } - if (this.Client.SubscriptionId == null) + if (Client.SubscriptionId == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - if (resourceGroupName == null) - { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroup", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); } // Construct URL - var _baseUrl = this.Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (this.Client.ApiVersion != null) + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.ContainerRegistry/registries").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - System.Net.Http.HttpRequestMessage _httpRequest = new System.Net.Http.HttpRequestMessage(); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); System.Net.Http.HttpResponseMessage _httpResponse = null; _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) { _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.Client.AcceptLanguage != null) + if (Client.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -1099,51 +1186,51 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) // Serialize Request string _requestContent = null; // Set Credentials - if (this.Client.Credentials != null) + if (Client.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new Microsoft.Rest.Azure.CloudException(_errorBody.Message); + ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); if (_httpResponse.Headers.Contains("x-ms-request-id")) { ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) @@ -1153,7 +1240,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) throw ex; } // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); + var _result = new AzureOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -1166,98 +1253,135 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) { _httpResponse.Dispose(); } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); } } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + ServiceClientTracing.Exit(_invocationId, _result); } return _result; } /// - /// Lists all the available container registries under the specified - /// subscription. + /// Lists the login credentials for the specified container registry. /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// /// /// Headers that will be added to request. /// /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// - /// + /// /// Thrown when unable to deserialize the response /// - /// + /// + /// Thrown when a required parameter is null + /// + /// /// Thrown when a required parameter is null /// /// /// A response object containing the response body and response headers. /// - public async System.Threading.Tasks.Task>> ListWithHttpMessagesAsync(System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async Task> ListCredentialsWithHttpMessagesAsync(string resourceGroupName, string registryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (this.Client.ApiVersion == null) + if (Client.ApiVersion == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } - if (this.Client.SubscriptionId == null) + if (Client.SubscriptionId == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (registryName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "registryName"); + } + if (registryName != null) + { + if (registryName.Length > 50) + { + throw new ValidationException(ValidationRules.MaxLength, "registryName", 50); + } + if (registryName.Length < 5) + { + throw new ValidationException(ValidationRules.MinLength, "registryName", 5); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(registryName, "^[a-zA-Z0-9]*$")) + { + throw new ValidationException(ValidationRules.Pattern, "registryName", "^[a-zA-Z0-9]*$"); + } } // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("registryName", registryName); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListCredentials", tracingParameters); } // Construct URL - var _baseUrl = this.Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.ContainerRegistry/registries").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (this.Client.ApiVersion != null) + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/listCredentials").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{registryName}", System.Uri.EscapeDataString(registryName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - System.Net.Http.HttpRequestMessage _httpRequest = new System.Net.Http.HttpRequestMessage(); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) { _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.Client.AcceptLanguage != null) + if (Client.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -1273,51 +1397,51 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) // Serialize Request string _requestContent = null; // Set Credentials - if (this.Client.Credentials != null) + if (Client.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new Microsoft.Rest.Azure.CloudException(_errorBody.Message); + ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); if (_httpResponse.Headers.Contains("x-ms-request-id")) { ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) @@ -1327,7 +1451,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) throw ex; } // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -1340,27 +1464,27 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) { _httpResponse.Dispose(); } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); } } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + ServiceClientTracing.Exit(_invocationId, _result); } return _result; } /// - /// Gets the administrator login credentials for the specified container + /// Regenerates one of the login credentials for the specified container /// registry. /// /// @@ -1369,87 +1493,114 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) /// /// The name of the container registry. /// + /// + /// Specifies name of the password which should be regenerated -- password or + /// password2. Possible values include: 'password', 'password2' + /// /// /// Headers that will be added to request. /// /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// - /// + /// /// Thrown when unable to deserialize the response /// - /// + /// + /// Thrown when a required parameter is null + /// + /// /// Thrown when a required parameter is null /// /// /// A response object containing the response body and response headers. /// - public async System.Threading.Tasks.Task> GetCredentialsWithHttpMessagesAsync(string resourceGroupName, string registryName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async Task> RegenerateCredentialWithHttpMessagesAsync(string resourceGroupName, string registryName, PasswordName name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (this.Client.ApiVersion == null) + if (Client.ApiVersion == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } - if (this.Client.SubscriptionId == null) + if (Client.SubscriptionId == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } if (resourceGroupName == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } if (registryName == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "registryName"); + throw new ValidationException(ValidationRules.CannotBeNull, "registryName"); + } + if (registryName != null) + { + if (registryName.Length > 50) + { + throw new ValidationException(ValidationRules.MaxLength, "registryName", 50); + } + if (registryName.Length < 5) + { + throw new ValidationException(ValidationRules.MinLength, "registryName", 5); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(registryName, "^[a-zA-Z0-9]*$")) + { + throw new ValidationException(ValidationRules.Pattern, "registryName", "^[a-zA-Z0-9]*$"); + } } + RegenerateCredentialParameters regenerateCredentialParameters = new RegenerateCredentialParameters(); + regenerateCredentialParameters.Name = name; // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("registryName", registryName); + tracingParameters.Add("regenerateCredentialParameters", regenerateCredentialParameters); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "GetCredentials", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "RegenerateCredential", tracingParameters); } // Construct URL - var _baseUrl = this.Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/getCredentials").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/regenerateCredential").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{registryName}", System.Uri.EscapeDataString(registryName)); - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (this.Client.ApiVersion != null) + List _queryParameters = new List(); + if (Client.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - System.Net.Http.HttpRequestMessage _httpRequest = new System.Net.Http.HttpRequestMessage(); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); System.Net.Http.HttpResponseMessage _httpResponse = null; _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) { _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.Client.AcceptLanguage != null) + if (Client.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -1464,52 +1615,58 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) // Serialize Request string _requestContent = null; + if(regenerateCredentialParameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(regenerateCredentialParameters, Client.SerializationSettings); + _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } // Set Credentials - if (this.Client.Credentials != null) + if (Client.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new Microsoft.Rest.Azure.CloudException(_errorBody.Message); + ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); if (_httpResponse.Headers.Contains("x-ms-request-id")) { ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) @@ -1519,7 +1676,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) throw ex; } // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -1532,28 +1689,27 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) { _httpResponse.Dispose(); } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); } } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + ServiceClientTracing.Exit(_invocationId, _result); } return _result; } /// - /// Regenerates the administrator login credentials for the specified - /// container registry. + /// Creates a container registry with the specified parameters. /// /// /// The name of the resource group to which the container registry belongs. @@ -1561,87 +1717,119 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) /// /// The name of the container registry. /// + /// + /// The parameters for creating a container registry. + /// /// /// Headers that will be added to request. /// /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// - /// + /// /// Thrown when unable to deserialize the response /// - /// + /// + /// Thrown when a required parameter is null + /// + /// /// Thrown when a required parameter is null /// /// /// A response object containing the response body and response headers. /// - public async System.Threading.Tasks.Task> RegenerateCredentialsWithHttpMessagesAsync(string resourceGroupName, string registryName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async Task> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string registryName, RegistryCreateParameters registryCreateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (this.Client.ApiVersion == null) + if (Client.ApiVersion == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } - if (this.Client.SubscriptionId == null) + if (Client.SubscriptionId == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } if (resourceGroupName == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } if (registryName == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "registryName"); + throw new ValidationException(ValidationRules.CannotBeNull, "registryName"); + } + if (registryName != null) + { + if (registryName.Length > 50) + { + throw new ValidationException(ValidationRules.MaxLength, "registryName", 50); + } + if (registryName.Length < 5) + { + throw new ValidationException(ValidationRules.MinLength, "registryName", 5); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(registryName, "^[a-zA-Z0-9]*$")) + { + throw new ValidationException(ValidationRules.Pattern, "registryName", "^[a-zA-Z0-9]*$"); + } + } + if (registryCreateParameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "registryCreateParameters"); + } + if (registryCreateParameters != null) + { + registryCreateParameters.Validate(); } // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("registryName", registryName); + tracingParameters.Add("registryCreateParameters", registryCreateParameters); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "RegenerateCredentials", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreate", tracingParameters); } // Construct URL - var _baseUrl = this.Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/regenerateCredentials").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{registryName}", System.Uri.EscapeDataString(registryName)); - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (this.Client.ApiVersion != null) + List _queryParameters = new List(); + if (Client.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - System.Net.Http.HttpRequestMessage _httpRequest = new System.Net.Http.HttpRequestMessage(); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); + _httpRequest.Method = new System.Net.Http.HttpMethod("PUT"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) { _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.Client.AcceptLanguage != null) + if (Client.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -1656,52 +1844,58 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) // Serialize Request string _requestContent = null; + if(registryCreateParameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(registryCreateParameters, Client.SerializationSettings); + _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } // Set Credentials - if (this.Client.Credentials != null) + if (Client.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200) + if ((int)_statusCode != 200 && (int)_statusCode != 202) { - var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new Microsoft.Rest.Azure.CloudException(_errorBody.Message); + ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); if (_httpResponse.Headers.Contains("x-ms-request-id")) { ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) @@ -1711,7 +1905,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) throw ex; } // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -1724,28 +1918,27 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) { _httpResponse.Dispose(); } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); } } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + ServiceClientTracing.Exit(_invocationId, _result); } return _result; } /// - /// Lists all the available container registries under the specified resource - /// group. + /// Lists all the container registries under the specified resource group. /// /// /// The NextLink from the previous successful call to List operation. @@ -1756,61 +1949,66 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// - /// + /// /// Thrown when unable to deserialize the response /// - /// + /// + /// Thrown when a required parameter is null + /// + /// /// Thrown when a required parameter is null /// /// /// A response object containing the response body and response headers. /// - public async System.Threading.Tasks.Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (nextPageLink == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "nextPageLink"); + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); } // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("nextPageLink", nextPageLink); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroupNext", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroupNext", tracingParameters); } // Construct URL string _url = "{nextLink}"; _url = _url.Replace("{nextLink}", nextPageLink); - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + List _queryParameters = new List(); if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - System.Net.Http.HttpRequestMessage _httpRequest = new System.Net.Http.HttpRequestMessage(); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); System.Net.Http.HttpResponseMessage _httpResponse = null; _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) { _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.Client.AcceptLanguage != null) + if (Client.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -1826,51 +2024,51 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) // Serialize Request string _requestContent = null; // Set Credentials - if (this.Client.Credentials != null) + if (Client.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new Microsoft.Rest.Azure.CloudException(_errorBody.Message); + ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); if (_httpResponse.Headers.Contains("x-ms-request-id")) { ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) @@ -1880,7 +2078,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) throw ex; } // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); + var _result = new AzureOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -1893,28 +2091,27 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) { _httpResponse.Dispose(); } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); } } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + ServiceClientTracing.Exit(_invocationId, _result); } return _result; } /// - /// Lists all the available container registries under the specified - /// subscription. + /// Lists all the container registries under the specified subscription. /// /// /// The NextLink from the previous successful call to List operation. @@ -1925,61 +2122,66 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// - /// + /// /// Thrown when unable to deserialize the response /// - /// + /// + /// Thrown when a required parameter is null + /// + /// /// Thrown when a required parameter is null /// /// /// A response object containing the response body and response headers. /// - public async System.Threading.Tasks.Task>> ListNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (nextPageLink == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "nextPageLink"); + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); } // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("nextPageLink", nextPageLink); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); } // Construct URL string _url = "{nextLink}"; _url = _url.Replace("{nextLink}", nextPageLink); - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + List _queryParameters = new List(); if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - System.Net.Http.HttpRequestMessage _httpRequest = new System.Net.Http.HttpRequestMessage(); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); System.Net.Http.HttpResponseMessage _httpResponse = null; _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) { _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.Client.AcceptLanguage != null) + if (Client.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -1995,51 +2197,51 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) // Serialize Request string _requestContent = null; // Set Credentials - if (this.Client.Credentials != null) + if (Client.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new Microsoft.Rest.Azure.CloudException(_errorBody.Message); + ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); if (_httpResponse.Headers.Contains("x-ms-request-id")) { ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) @@ -2049,7 +2251,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) throw ex; } // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); + var _result = new AzureOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -2062,24 +2264,25 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) { _httpResponse.Dispose(); } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); } } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + ServiceClientTracing.Exit(_invocationId, _result); } return _result; } } } + diff --git a/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/RegistriesOperationsExtensions.cs b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/RegistriesOperationsExtensions.cs index d2f8ed7e5491..9bbc03855c49 100644 --- a/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/RegistriesOperationsExtensions.cs +++ b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Generated/RegistriesOperationsExtensions.cs @@ -1,16 +1,20 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0 +// +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.ContainerRegistry { + using Azure; + using Management; + using Rest; + using Rest.Azure; + using Models; + using System.Threading; using System.Threading.Tasks; - using Microsoft.Rest.Azure; - using Models; /// /// Extension methods for RegistriesOperations. @@ -19,8 +23,8 @@ public static partial class RegistriesOperationsExtensions { /// /// Checks whether the container registry name is available for use. The name - /// must contain only alphanumeric characters, be globally unique, and - /// between 5 and 60 characters in length. + /// must contain only alphanumeric characters, be globally unique, and between + /// 5 and 60 characters in length. /// /// /// The operations group for this extension method. @@ -30,13 +34,13 @@ public static partial class RegistriesOperationsExtensions /// public static RegistryNameStatus CheckNameAvailability(this IRegistriesOperations operations, string name) { - return System.Threading.Tasks.Task.Factory.StartNew(s => ((IRegistriesOperations)s).CheckNameAvailabilityAsync(name), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + return operations.CheckNameAvailabilityAsync(name).GetAwaiter().GetResult(); } /// /// Checks whether the container registry name is available for use. The name - /// must contain only alphanumeric characters, be globally unique, and - /// between 5 and 60 characters in length. + /// must contain only alphanumeric characters, be globally unique, and between + /// 5 and 60 characters in length. /// /// /// The operations group for this extension method. @@ -47,7 +51,7 @@ public static RegistryNameStatus CheckNameAvailability(this IRegistriesOperation /// /// The cancellation token. /// - public static async System.Threading.Tasks.Task CheckNameAvailabilityAsync(this IRegistriesOperations operations, string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async Task CheckNameAvailabilityAsync(this IRegistriesOperations operations, string name, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CheckNameAvailabilityWithHttpMessagesAsync(name, null, cancellationToken).ConfigureAwait(false)) { @@ -67,9 +71,9 @@ public static RegistryNameStatus CheckNameAvailability(this IRegistriesOperation /// /// The name of the container registry. /// - public static Registry GetProperties(this IRegistriesOperations operations, string resourceGroupName, string registryName) + public static Registry Get(this IRegistriesOperations operations, string resourceGroupName, string registryName) { - return System.Threading.Tasks.Task.Factory.StartNew(s => ((IRegistriesOperations)s).GetPropertiesAsync(resourceGroupName, registryName), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + return operations.GetAsync(resourceGroupName, registryName).GetAwaiter().GetResult(); } /// @@ -87,16 +91,16 @@ public static Registry GetProperties(this IRegistriesOperations operations, stri /// /// The cancellation token. /// - public static async System.Threading.Tasks.Task GetPropertiesAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async Task GetAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetPropertiesWithHttpMessagesAsync(resourceGroupName, registryName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, registryName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Creates or updates a container registry with the specified parameters. + /// Creates a container registry with the specified parameters. /// /// /// The operations group for this extension method. @@ -107,16 +111,16 @@ public static Registry GetProperties(this IRegistriesOperations operations, stri /// /// The name of the container registry. /// - /// - /// The parameters for creating or updating a container registry. + /// + /// The parameters for creating a container registry. /// - public static Registry CreateOrUpdate(this IRegistriesOperations operations, string resourceGroupName, string registryName, Registry registry) + public static Registry Create(this IRegistriesOperations operations, string resourceGroupName, string registryName, RegistryCreateParameters registryCreateParameters) { - return System.Threading.Tasks.Task.Factory.StartNew(s => ((IRegistriesOperations)s).CreateOrUpdateAsync(resourceGroupName, registryName, registry), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + return operations.CreateAsync(resourceGroupName, registryName, registryCreateParameters).GetAwaiter().GetResult(); } /// - /// Creates or updates a container registry with the specified parameters. + /// Creates a container registry with the specified parameters. /// /// /// The operations group for this extension method. @@ -127,15 +131,15 @@ public static Registry CreateOrUpdate(this IRegistriesOperations operations, str /// /// The name of the container registry. /// - /// - /// The parameters for creating or updating a container registry. + /// + /// The parameters for creating a container registry. /// /// /// The cancellation token. /// - public static async System.Threading.Tasks.Task CreateOrUpdateAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, Registry registry, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async Task CreateAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, RegistryCreateParameters registryCreateParameters, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, registryName, registry, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, registryName, registryCreateParameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -155,7 +159,7 @@ public static Registry CreateOrUpdate(this IRegistriesOperations operations, str /// public static void Delete(this IRegistriesOperations operations, string resourceGroupName, string registryName) { - System.Threading.Tasks.Task.Factory.StartNew(s => ((IRegistriesOperations)s).DeleteAsync(resourceGroupName, registryName), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + operations.DeleteAsync(resourceGroupName, registryName).GetAwaiter().GetResult(); } /// @@ -173,7 +177,7 @@ public static void Delete(this IRegistriesOperations operations, string resource /// /// The cancellation token. /// - public static async System.Threading.Tasks.Task DeleteAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async Task DeleteAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, CancellationToken cancellationToken = default(CancellationToken)) { await operations.DeleteWithHttpMessagesAsync(resourceGroupName, registryName, null, cancellationToken).ConfigureAwait(false); } @@ -195,7 +199,7 @@ public static void Delete(this IRegistriesOperations operations, string resource /// public static Registry Update(this IRegistriesOperations operations, string resourceGroupName, string registryName, RegistryUpdateParameters registryUpdateParameters) { - return System.Threading.Tasks.Task.Factory.StartNew(s => ((IRegistriesOperations)s).UpdateAsync(resourceGroupName, registryName, registryUpdateParameters), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + return operations.UpdateAsync(resourceGroupName, registryName, registryUpdateParameters).GetAwaiter().GetResult(); } /// @@ -216,7 +220,7 @@ public static Registry Update(this IRegistriesOperations operations, string reso /// /// The cancellation token. /// - public static async System.Threading.Tasks.Task UpdateAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, RegistryUpdateParameters registryUpdateParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async Task UpdateAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, RegistryUpdateParameters registryUpdateParameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, registryName, registryUpdateParameters, null, cancellationToken).ConfigureAwait(false)) { @@ -225,8 +229,7 @@ public static Registry Update(this IRegistriesOperations operations, string reso } /// - /// Lists all the available container registries under the specified resource - /// group. + /// Lists all the container registries under the specified resource group. /// /// /// The operations group for this extension method. @@ -234,14 +237,13 @@ public static Registry Update(this IRegistriesOperations operations, string reso /// /// The name of the resource group to which the container registry belongs. /// - public static Microsoft.Rest.Azure.IPage ListByResourceGroup(this IRegistriesOperations operations, string resourceGroupName) + public static IPage ListByResourceGroup(this IRegistriesOperations operations, string resourceGroupName) { - return System.Threading.Tasks.Task.Factory.StartNew(s => ((IRegistriesOperations)s).ListByResourceGroupAsync(resourceGroupName), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + return operations.ListByResourceGroupAsync(resourceGroupName).GetAwaiter().GetResult(); } /// - /// Lists all the available container registries under the specified resource - /// group. + /// Lists all the container registries under the specified resource group. /// /// /// The operations group for this extension method. @@ -252,7 +254,7 @@ public static Microsoft.Rest.Azure.IPage ListByResourceGroup(this IReg /// /// The cancellation token. /// - public static async Task> ListByResourceGroupAsync(this IRegistriesOperations operations, string resourceGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async Task> ListByResourceGroupAsync(this IRegistriesOperations operations, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByResourceGroupWithHttpMessagesAsync(resourceGroupName, null, cancellationToken).ConfigureAwait(false)) { @@ -261,20 +263,18 @@ public static Microsoft.Rest.Azure.IPage ListByResourceGroup(this IReg } /// - /// Lists all the available container registries under the specified - /// subscription. + /// Lists all the container registries under the specified subscription. /// /// /// The operations group for this extension method. /// - public static Microsoft.Rest.Azure.IPage List(this IRegistriesOperations operations) + public static IPage List(this IRegistriesOperations operations) { - return System.Threading.Tasks.Task.Factory.StartNew(s => ((IRegistriesOperations)s).ListAsync(), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + return operations.ListAsync().GetAwaiter().GetResult(); } /// - /// Lists all the available container registries under the specified - /// subscription. + /// Lists all the container registries under the specified subscription. /// /// /// The operations group for this extension method. @@ -282,7 +282,7 @@ public static Microsoft.Rest.Azure.IPage List(this IRegistriesOperatio /// /// The cancellation token. /// - public static async Task> ListAsync(this IRegistriesOperations operations, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async Task> ListAsync(this IRegistriesOperations operations, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { @@ -291,7 +291,47 @@ public static Microsoft.Rest.Azure.IPage List(this IRegistriesOperatio } /// - /// Gets the administrator login credentials for the specified container + /// Lists the login credentials for the specified container registry. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + public static RegistryListCredentialsResult ListCredentials(this IRegistriesOperations operations, string resourceGroupName, string registryName) + { + return operations.ListCredentialsAsync(resourceGroupName, registryName).GetAwaiter().GetResult(); + } + + /// + /// Lists the login credentials for the specified container registry. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The cancellation token. + /// + public static async Task ListCredentialsAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListCredentialsWithHttpMessagesAsync(resourceGroupName, registryName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Regenerates one of the login credentials for the specified container /// registry. /// /// @@ -303,13 +343,17 @@ public static Microsoft.Rest.Azure.IPage List(this IRegistriesOperatio /// /// The name of the container registry. /// - public static RegistryCredentials GetCredentials(this IRegistriesOperations operations, string resourceGroupName, string registryName) + /// + /// Specifies name of the password which should be regenerated -- password or + /// password2. Possible values include: 'password', 'password2' + /// + public static RegistryListCredentialsResult RegenerateCredential(this IRegistriesOperations operations, string resourceGroupName, string registryName, PasswordName name) { - return System.Threading.Tasks.Task.Factory.StartNew(s => ((IRegistriesOperations)s).GetCredentialsAsync(resourceGroupName, registryName), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + return operations.RegenerateCredentialAsync(resourceGroupName, registryName, name).GetAwaiter().GetResult(); } /// - /// Gets the administrator login credentials for the specified container + /// Regenerates one of the login credentials for the specified container /// registry. /// /// @@ -321,20 +365,23 @@ public static RegistryCredentials GetCredentials(this IRegistriesOperations oper /// /// The name of the container registry. /// + /// + /// Specifies name of the password which should be regenerated -- password or + /// password2. Possible values include: 'password', 'password2' + /// /// /// The cancellation token. /// - public static async System.Threading.Tasks.Task GetCredentialsAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async Task RegenerateCredentialAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, PasswordName name, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetCredentialsWithHttpMessagesAsync(resourceGroupName, registryName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.RegenerateCredentialWithHttpMessagesAsync(resourceGroupName, registryName, name, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Regenerates the administrator login credentials for the specified - /// container registry. + /// Creates a container registry with the specified parameters. /// /// /// The operations group for this extension method. @@ -345,14 +392,16 @@ public static RegistryCredentials GetCredentials(this IRegistriesOperations oper /// /// The name of the container registry. /// - public static RegistryCredentials RegenerateCredentials(this IRegistriesOperations operations, string resourceGroupName, string registryName) + /// + /// The parameters for creating a container registry. + /// + public static Registry BeginCreate(this IRegistriesOperations operations, string resourceGroupName, string registryName, RegistryCreateParameters registryCreateParameters) { - return System.Threading.Tasks.Task.Factory.StartNew(s => ((IRegistriesOperations)s).RegenerateCredentialsAsync(resourceGroupName, registryName), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + return operations.BeginCreateAsync(resourceGroupName, registryName, registryCreateParameters).GetAwaiter().GetResult(); } /// - /// Regenerates the administrator login credentials for the specified - /// container registry. + /// Creates a container registry with the specified parameters. /// /// /// The operations group for this extension method. @@ -363,20 +412,22 @@ public static RegistryCredentials RegenerateCredentials(this IRegistriesOperatio /// /// The name of the container registry. /// + /// + /// The parameters for creating a container registry. + /// /// /// The cancellation token. /// - public static async System.Threading.Tasks.Task RegenerateCredentialsAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async Task BeginCreateAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, RegistryCreateParameters registryCreateParameters, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.RegenerateCredentialsWithHttpMessagesAsync(resourceGroupName, registryName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.BeginCreateWithHttpMessagesAsync(resourceGroupName, registryName, registryCreateParameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Lists all the available container registries under the specified resource - /// group. + /// Lists all the container registries under the specified resource group. /// /// /// The operations group for this extension method. @@ -384,14 +435,13 @@ public static RegistryCredentials RegenerateCredentials(this IRegistriesOperatio /// /// The NextLink from the previous successful call to List operation. /// - public static Microsoft.Rest.Azure.IPage ListByResourceGroupNext(this IRegistriesOperations operations, string nextPageLink) + public static IPage ListByResourceGroupNext(this IRegistriesOperations operations, string nextPageLink) { - return System.Threading.Tasks.Task.Factory.StartNew(s => ((IRegistriesOperations)s).ListByResourceGroupNextAsync(nextPageLink), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + return operations.ListByResourceGroupNextAsync(nextPageLink).GetAwaiter().GetResult(); } /// - /// Lists all the available container registries under the specified resource - /// group. + /// Lists all the container registries under the specified resource group. /// /// /// The operations group for this extension method. @@ -402,7 +452,7 @@ public static Microsoft.Rest.Azure.IPage ListByResourceGroupNext(this /// /// The cancellation token. /// - public static async Task> ListByResourceGroupNextAsync(this IRegistriesOperations operations, string nextPageLink, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async Task> ListByResourceGroupNextAsync(this IRegistriesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByResourceGroupNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { @@ -411,8 +461,7 @@ public static Microsoft.Rest.Azure.IPage ListByResourceGroupNext(this } /// - /// Lists all the available container registries under the specified - /// subscription. + /// Lists all the container registries under the specified subscription. /// /// /// The operations group for this extension method. @@ -420,14 +469,13 @@ public static Microsoft.Rest.Azure.IPage ListByResourceGroupNext(this /// /// The NextLink from the previous successful call to List operation. /// - public static Microsoft.Rest.Azure.IPage ListNext(this IRegistriesOperations operations, string nextPageLink) + public static IPage ListNext(this IRegistriesOperations operations, string nextPageLink) { - return System.Threading.Tasks.Task.Factory.StartNew(s => ((IRegistriesOperations)s).ListNextAsync(nextPageLink), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); } /// - /// Lists all the available container registries under the specified - /// subscription. + /// Lists all the container registries under the specified subscription. /// /// /// The operations group for this extension method. @@ -438,7 +486,7 @@ public static Microsoft.Rest.Azure.IPage ListNext(this IRegistriesOper /// /// The cancellation token. /// - public static async Task> ListNextAsync(this IRegistriesOperations operations, string nextPageLink, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async Task> ListNextAsync(this IRegistriesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { @@ -448,3 +496,4 @@ public static Microsoft.Rest.Azure.IPage ListNext(this IRegistriesOper } } + diff --git a/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Properties/AssemblyInfo.cs b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Properties/AssemblyInfo.cs index 49dbc5dda5a0..a294c3d6e03d 100644 --- a/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Properties/AssemblyInfo.cs +++ b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/Properties/AssemblyInfo.cs @@ -8,7 +8,7 @@ [assembly: AssemblyDescription("Provides management functionality for Microsoft Azure Container Registry.")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.1.0.0")] +[assembly: AssemblyFileVersion("1.2.0.0")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Microsoft")] diff --git a/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/generate.cmd b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/generate.cmd index 3ed8dbb46267..e282aa0e5cba 100644 --- a/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/generate.cmd +++ b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/generate.cmd @@ -4,9 +4,9 @@ :: @echo off -set autoRestVersion=0.17.0-Nightly20161012 +set autoRestVersion=1.0.0-Nightly20170212 if "%1" == "" ( - set specFile="https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/arm-containerregistry/2016-06-27-preview/swagger/containerregistry.json" + set specFile="https://raw.githubusercontent.com/Azure/azure-rest-api-specs/3b0b26b4b6e3bc5e7cf3610b0866d310abb5b814/arm-containerregistry/2017-03-01/swagger/containerregistry.json" ) else ( set specFile="%1" ) diff --git a/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/project.json b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/project.json index 63b04956045b..03311b2e0a75 100644 --- a/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/project.json +++ b/src/ResourceManagement/ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry/project.json @@ -1,5 +1,5 @@ { - "version": "1.1.0-preview", + "version": "1.2.0-preview", "description": "Microsoft Azure Container Registry Management Library", "authors": [ "Microsoft" ],