From 10f6ad0c6416ee7b84427b30a3068fec2005e6aa Mon Sep 17 00:00:00 2001 From: YalinLi0312 Date: Wed, 24 Mar 2021 16:18:02 -0700 Subject: [PATCH 1/2] Change the accessbility to virtual for Resource.Id --- .../Azure.ResourceManager.Core/src/Resources/Resource.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/Resource.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/Resource.cs index 86a35ac05cf7..a8638d1c689b 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/Resource.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/Resource.cs @@ -14,7 +14,7 @@ public abstract class Resource : IEquatable, IEquatable, IComp /// /// Gets or sets the resource identifier. /// - public abstract ResourceIdentifier Id { get; protected set; } + public virtual ResourceIdentifier Id { get; protected set; } /// /// Gets the name. From 95950a08e2c964c905d222f9b89d6f6203d5c688 Mon Sep 17 00:00:00 2001 From: YalinLi0312 Date: Fri, 11 Jun 2021 16:06:26 -0700 Subject: [PATCH 2/2] Add ResourceGroupContainer tests --- .../Scenario/ResourceGroupContainerTests.cs | 35 +++- ...eate()Async.json => CreateOrUpdate().json} | 55 +++--- ...eate().json => CreateOrUpdate()Async.json} | 57 ++++--- .../ResourceGroupContainerTests/Get().json | 47 +++--- .../Get()Async.json | 48 +++--- .../ResourceGroupContainerTests/List().json | 130 +++++++++----- .../List()Async.json | 158 +++++++++++++----- ...eate().json => StartCreateOrUpdate().json} | 43 ++--- ...c.json => StartCreateOrUpdate()Async.json} | 45 ++--- 9 files changed, 399 insertions(+), 219 deletions(-) rename sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ResourceGroupContainerTests/{StartCreate()Async.json => CreateOrUpdate().json} (61%) rename sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ResourceGroupContainerTests/{StartCreate().json => CreateOrUpdate()Async.json} (61%) rename sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ResourceGroupContainerTests/{Create().json => StartCreateOrUpdate().json} (64%) rename sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ResourceGroupContainerTests/{Create()Async.json => StartCreateOrUpdate()Async.json} (62%) diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/ResourceGroupContainerTests.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/ResourceGroupContainerTests.cs index f1016c117816..8c55d370fecd 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/ResourceGroupContainerTests.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/ResourceGroupContainerTests.cs @@ -1,4 +1,6 @@ -using System.Threading.Tasks; +using System; +using System.Collections.Generic; +using System.Threading.Tasks; using Azure.Core.TestFramework; using NUnit.Framework; @@ -27,21 +29,46 @@ public async Task List() [TestCase] [RecordedTest] - public async Task Create() + public async Task CreateOrUpdate() { string rgName = Recording.GenerateAssetName("testRg-"); - ResourceGroup rg = await Client.DefaultSubscription.GetResourceGroups().Construct(LocationData.WestUS2).CreateOrUpdateAsync(rgName); + var tags = new Dictionary() + { + { "key", "value"} + }; + ResourceGroup rg = await Client.DefaultSubscription.GetResourceGroups().Construct(LocationData.WestUS2, tags).CreateOrUpdateAsync(rgName); Assert.AreEqual(rgName, rg.Data.Name); + + Assert.Throws(() => { Client.DefaultSubscription.GetResourceGroups().Construct(null); }); + Assert.ThrowsAsync(async () => _ = await Client.DefaultSubscription.GetResourceGroups().CreateOrUpdateAsync(null, new ResourceGroupData(LocationData.WestUS2))); + Assert.ThrowsAsync(async () => _ = await Client.DefaultSubscription.GetResourceGroups().CreateOrUpdateAsync(" ", new ResourceGroupData(LocationData.WestUS2))); + Assert.ThrowsAsync(async () => _ = await Client.DefaultSubscription.GetResourceGroups().CreateOrUpdateAsync(rgName, null)); } [TestCase] [RecordedTest] - public async Task StartCreate() + public async Task StartCreateOrUpdate() { string rgName = Recording.GenerateAssetName("testRg-"); var rgOp = await Client.DefaultSubscription.GetResourceGroups().Construct(LocationData.WestUS2).StartCreateOrUpdateAsync(rgName); ResourceGroup rg = await rgOp.WaitForCompletionAsync(); Assert.AreEqual(rgName, rg.Data.Name); + + Assert.ThrowsAsync(async () => + { + var rgOp = await Client.DefaultSubscription.GetResourceGroups().StartCreateOrUpdateAsync(null, new ResourceGroupData(LocationData.WestUS2)); + _ = await rgOp.WaitForCompletionAsync(); + }); + Assert.ThrowsAsync(async () => + { + var rgOp = await Client.DefaultSubscription.GetResourceGroups().StartCreateOrUpdateAsync(" ", new ResourceGroupData(LocationData.WestUS2)); + _ = await rgOp.WaitForCompletionAsync(); + }); + Assert.ThrowsAsync(async () => + { + var rgOp = await Client.DefaultSubscription.GetResourceGroups().StartCreateOrUpdateAsync(rgName, null); + _ = await rgOp.WaitForCompletionAsync(); + }); } [TestCase] diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ResourceGroupContainerTests/StartCreate()Async.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ResourceGroupContainerTests/CreateOrUpdate().json similarity index 61% rename from sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ResourceGroupContainerTests/StartCreate()Async.json rename to sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ResourceGroupContainerTests/CreateOrUpdate().json index 71604c8aff6a..6a6b5ed9f520 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ResourceGroupContainerTests/StartCreate()Async.json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ResourceGroupContainerTests/CreateOrUpdate().json @@ -6,31 +6,34 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-5c59279e69f6b44385265093f410fac1-f53b04e5ac40264e-00", - "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "41d0d7715fb7e09d06eff6e127b77d79", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210611.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "c21728be8b299089d0acc802fc66974e", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "397", + "Content-Length": "450", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 19 May 2021 18:34:20 GMT", + "Date": "Fri, 11 Jun 2021 22:58:28 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "da4266ff-a992-4077-90b7-7f26faa1f8f9", - "x-ms-ratelimit-remaining-subscription-reads": "11982", - "x-ms-request-id": "da4266ff-a992-4077-90b7-7f26faa1f8f9", - "x-ms-routing-request-id": "WESTUS2:20210519T183420Z:da4266ff-a992-4077-90b7-7f26faa1f8f9" + "x-ms-correlation-request-id": "776d28ea-6a09-47c0-9e6f-fc69945647b2", + "x-ms-ratelimit-remaining-subscription-reads": "11998", + "x-ms-request-id": "776d28ea-6a09-47c0-9e6f-fc69945647b2", + "x-ms-routing-request-id": "WESTUS2:20210611T225828Z:776d28ea-6a09-47c0-9e6f-fc69945647b2" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", "authorizationSource": "RoleBased", "managedByTenants": [], + "tags": { + "tagKey1": "tagValue1", + "tagKey2": "tagValue2" + }, "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "displayName": "Azure SDK sandbox", @@ -43,43 +46,47 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testRg-1105?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testRg-7569?api-version=2019-10-01", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "Content-Length": "34", + "Content-Length": "47", "Content-Type": "application/json", - "traceparent": "00-c5a33e377427764b8040090f44491dad-277f3240fe2b5244-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210519.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "a3b69c81f3028db1851038e65627d650", + "traceparent": "00-c601912da59e1643a1299c86df0d1373-cd4643bdaf1bb445-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210611.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "387d5ff23104bcfb6c1e3acda906ffd0", "x-ms-return-client-request-id": "true" }, "RequestBody": { "location": "West US 2", - "tags": {} + "tags": { + "key": "value" + } }, "StatusCode": 201, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "230", + "Content-Length": "243", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 19 May 2021 18:34:20 GMT", + "Date": "Fri, 11 Jun 2021 22:58:29 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "1bf7d7e8-8acf-49e0-8907-917eb37adfb7", + "x-ms-correlation-request-id": "94356b56-e4ff-4c29-9525-75a3161e82da", "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-request-id": "1bf7d7e8-8acf-49e0-8907-917eb37adfb7", - "x-ms-routing-request-id": "WESTUS2:20210519T183421Z:1bf7d7e8-8acf-49e0-8907-917eb37adfb7" + "x-ms-request-id": "94356b56-e4ff-4c29-9525-75a3161e82da", + "x-ms-routing-request-id": "WESTUS2:20210611T225829Z:94356b56-e4ff-4c29-9525-75a3161e82da" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRg-1105", - "name": "testRg-1105", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRg-7569", + "name": "testRg-7569", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", - "tags": {}, + "tags": { + "key": "value" + }, "properties": { "provisioningState": "Succeeded" } @@ -87,7 +94,7 @@ } ], "Variables": { - "RandomSeed": "1965002889", + "RandomSeed": "1872344131", "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" } } \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ResourceGroupContainerTests/StartCreate().json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ResourceGroupContainerTests/CreateOrUpdate()Async.json similarity index 61% rename from sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ResourceGroupContainerTests/StartCreate().json rename to sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ResourceGroupContainerTests/CreateOrUpdate()Async.json index d58d6ee09b98..7eccc477ad45 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ResourceGroupContainerTests/StartCreate().json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ResourceGroupContainerTests/CreateOrUpdate()Async.json @@ -6,31 +6,34 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "Request-Id": "|a3bfa399-430a65b38f944799.", - "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "884af3a7695b086bb37b82d98938cb3a", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210611.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "6b38b91237b8f00529e48d090d0f08e3", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "397", + "Content-Length": "450", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 19 May 2021 18:34:20 GMT", + "Date": "Fri, 11 Jun 2021 22:58:28 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "b7ede02a-ee33-45d6-b03d-34f5a5e2de74", - "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-request-id": "b7ede02a-ee33-45d6-b03d-34f5a5e2de74", - "x-ms-routing-request-id": "WESTUS2:20210519T183420Z:b7ede02a-ee33-45d6-b03d-34f5a5e2de74" + "x-ms-correlation-request-id": "a19bccac-f820-4784-8b5c-8e455ca7eb34", + "x-ms-ratelimit-remaining-subscription-reads": "11981", + "x-ms-request-id": "a19bccac-f820-4784-8b5c-8e455ca7eb34", + "x-ms-routing-request-id": "WESTUS2:20210611T225828Z:a19bccac-f820-4784-8b5c-8e455ca7eb34" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", "authorizationSource": "RoleBased", "managedByTenants": [], + "tags": { + "tagKey1": "tagValue1", + "tagKey2": "tagValue2" + }, "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "displayName": "Azure SDK sandbox", @@ -43,43 +46,47 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testRg-5251?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testRg-5504?api-version=2019-10-01", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "Content-Length": "34", + "Content-Length": "47", "Content-Type": "application/json", - "traceparent": "00-325c598be6398e478ee4ae1620f7d7e6-5639d3f3cd1d1544-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210519.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "8b2b066fc48fef0717970e149205230a", + "traceparent": "00-fd3dd441bcd5554481a29517a55ca218-c0416c34a3623f47-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210611.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "c4f747a2bb042180d0787a4bf8bef8d5", "x-ms-return-client-request-id": "true" }, "RequestBody": { "location": "West US 2", - "tags": {} + "tags": { + "key": "value" + } }, "StatusCode": 201, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "230", + "Content-Length": "243", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 19 May 2021 18:34:21 GMT", + "Date": "Fri, 11 Jun 2021 22:58:29 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "722fce45-badb-4f0d-a4f5-88447f173957", - "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": "722fce45-badb-4f0d-a4f5-88447f173957", - "x-ms-routing-request-id": "WESTUS2:20210519T183421Z:722fce45-badb-4f0d-a4f5-88447f173957" + "x-ms-correlation-request-id": "5e39d329-4b0d-4553-9289-eeef19637070", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-request-id": "5e39d329-4b0d-4553-9289-eeef19637070", + "x-ms-routing-request-id": "WESTUS2:20210611T225829Z:5e39d329-4b0d-4553-9289-eeef19637070" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRg-5251", - "name": "testRg-5251", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRg-5504", + "name": "testRg-5504", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", - "tags": {}, + "tags": { + "key": "value" + }, "properties": { "provisioningState": "Succeeded" } @@ -87,7 +94,7 @@ } ], "Variables": { - "RandomSeed": "1890127810", + "RandomSeed": "1442551820", "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" } } \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ResourceGroupContainerTests/Get().json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ResourceGroupContainerTests/Get().json index b6f88a2cf0d1..487f298a0144 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ResourceGroupContainerTests/Get().json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ResourceGroupContainerTests/Get().json @@ -6,8 +6,7 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-262fb47d5becb74094f5137b716d566e-26c202e9c846df41-00", - "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210611.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "947ed80a888c329c78682d2e8a26a844", "x-ms-return-client-request-id": "true" }, @@ -15,22 +14,26 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "397", + "Content-Length": "450", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 19 May 2021 18:34:18 GMT", + "Date": "Fri, 11 Jun 2021 22:58:29 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "9ac2784d-a427-44ae-b8c8-1e9d5874520f", - "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-request-id": "9ac2784d-a427-44ae-b8c8-1e9d5874520f", - "x-ms-routing-request-id": "WESTUS2:20210519T183418Z:9ac2784d-a427-44ae-b8c8-1e9d5874520f" + "x-ms-correlation-request-id": "6e3dc062-7466-4c42-aa5d-df1875ecbd77", + "x-ms-ratelimit-remaining-subscription-reads": "11995", + "x-ms-request-id": "6e3dc062-7466-4c42-aa5d-df1875ecbd77", + "x-ms-routing-request-id": "WESTUS2:20210611T225830Z:6e3dc062-7466-4c42-aa5d-df1875ecbd77" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", "authorizationSource": "RoleBased", "managedByTenants": [], + "tags": { + "tagKey1": "tagValue1", + "tagKey2": "tagValue2" + }, "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "displayName": "Azure SDK sandbox", @@ -50,8 +53,8 @@ "Authorization": "Sanitized", "Content-Length": "34", "Content-Type": "application/json", - "traceparent": "00-99e5b8799a28a546adde4292a2e16c85-5a530d8b5206d04d-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210519.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-5be5454ead92554989518b988e160dc8-4aaa5fdf6cdc814c-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210611.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "6e214c3fac952f6afda406451eb6e501", "x-ms-return-client-request-id": "true" }, @@ -64,15 +67,15 @@ "Cache-Control": "no-cache", "Content-Length": "230", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 19 May 2021 18:34:18 GMT", + "Date": "Fri, 11 Jun 2021 22:58:30 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "9a5287d1-5017-4bf5-81a8-20bf325c114c", - "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-request-id": "9a5287d1-5017-4bf5-81a8-20bf325c114c", - "x-ms-routing-request-id": "WESTUS2:20210519T183418Z:9a5287d1-5017-4bf5-81a8-20bf325c114c" + "x-ms-correlation-request-id": "b88c16f6-5db6-4b22-8e8a-3e2e2df36448", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-request-id": "b88c16f6-5db6-4b22-8e8a-3e2e2df36448", + "x-ms-routing-request-id": "WESTUS2:20210611T225831Z:b88c16f6-5db6-4b22-8e8a-3e2e2df36448" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRg-2388", @@ -91,8 +94,8 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-393649e7a130bc4bb8814a94bc9f6b08-0a27979901983048-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210519.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-ef88c27fd8826847969e960811680dab-922ab1b338168e48-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210611.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "9730847ff5de83c556d82af59a97e08a", "x-ms-return-client-request-id": "true" }, @@ -102,15 +105,15 @@ "Cache-Control": "no-cache", "Content-Length": "230", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 19 May 2021 18:34:18 GMT", + "Date": "Fri, 11 Jun 2021 22:58:30 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "1a1ad79f-0fdd-487d-ad0e-0d618ff84c97", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "1a1ad79f-0fdd-487d-ad0e-0d618ff84c97", - "x-ms-routing-request-id": "WESTUS2:20210519T183418Z:1a1ad79f-0fdd-487d-ad0e-0d618ff84c97" + "x-ms-correlation-request-id": "afbb5ba0-2cad-4234-a13f-a0b36e630ef5", + "x-ms-ratelimit-remaining-subscription-reads": "11994", + "x-ms-request-id": "afbb5ba0-2cad-4234-a13f-a0b36e630ef5", + "x-ms-routing-request-id": "WESTUS2:20210611T225831Z:afbb5ba0-2cad-4234-a13f-a0b36e630ef5" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRg-2388", diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ResourceGroupContainerTests/Get()Async.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ResourceGroupContainerTests/Get()Async.json index 742a58a6135a..d310069b5e93 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ResourceGroupContainerTests/Get()Async.json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ResourceGroupContainerTests/Get()Async.json @@ -6,8 +6,8 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-6f6d19c9f710ab4d9611bffdd3d3d3cc-e2038d3337f08446-00", - "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "Request-Id": "|92a62ab6-443b06f14166b8ba.", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210611.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "bf56a65b1b3503a53e85268135c4c103", "x-ms-return-client-request-id": "true" }, @@ -15,22 +15,26 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "397", + "Content-Length": "450", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 19 May 2021 18:34:17 GMT", + "Date": "Fri, 11 Jun 2021 22:58:29 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "5bf3a3cc-1e44-4625-9bb3-b9a902e530c2", - "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-request-id": "5bf3a3cc-1e44-4625-9bb3-b9a902e530c2", - "x-ms-routing-request-id": "WESTUS2:20210519T183417Z:5bf3a3cc-1e44-4625-9bb3-b9a902e530c2" + "x-ms-correlation-request-id": "ca61f173-fecf-40bf-ba0b-7fbddf66f71f", + "x-ms-ratelimit-remaining-subscription-reads": "11978", + "x-ms-request-id": "ca61f173-fecf-40bf-ba0b-7fbddf66f71f", + "x-ms-routing-request-id": "WESTUS2:20210611T225830Z:ca61f173-fecf-40bf-ba0b-7fbddf66f71f" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", "authorizationSource": "RoleBased", "managedByTenants": [], + "tags": { + "tagKey1": "tagValue1", + "tagKey2": "tagValue2" + }, "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "displayName": "Azure SDK sandbox", @@ -50,8 +54,8 @@ "Authorization": "Sanitized", "Content-Length": "34", "Content-Type": "application/json", - "traceparent": "00-ad514a7d425c854faf26cf626ab20793-48343b5e2f4d2d42-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210519.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-df010e95a527b346b0b5e5a1ba53b423-0a6f23f069e0fc44-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210611.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "b569d83722f70f6203999b272959e7c7", "x-ms-return-client-request-id": "true" }, @@ -64,15 +68,15 @@ "Cache-Control": "no-cache", "Content-Length": "230", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 19 May 2021 18:34:18 GMT", + "Date": "Fri, 11 Jun 2021 22:58:31 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "5f7a23a4-600c-4492-b72e-ed30f1a5aec8", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "5f7a23a4-600c-4492-b72e-ed30f1a5aec8", - "x-ms-routing-request-id": "WESTUS2:20210519T183418Z:5f7a23a4-600c-4492-b72e-ed30f1a5aec8" + "x-ms-correlation-request-id": "ab407ca8-f99b-4597-b4eb-0d8f19ad1e2a", + "x-ms-ratelimit-remaining-subscription-writes": "1193", + "x-ms-request-id": "ab407ca8-f99b-4597-b4eb-0d8f19ad1e2a", + "x-ms-routing-request-id": "WESTUS2:20210611T225831Z:ab407ca8-f99b-4597-b4eb-0d8f19ad1e2a" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRg-6439", @@ -91,8 +95,8 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-ab75a30e72523644ac6d083b806895ea-811a8982fafed648-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210519.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-3f1d6f647c6764429641e83ca7cc1a98-61c594e8d9800848-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210611.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "1e0f8777a432c9cce195e5f9f9edde36", "x-ms-return-client-request-id": "true" }, @@ -102,15 +106,15 @@ "Cache-Control": "no-cache", "Content-Length": "230", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 19 May 2021 18:34:18 GMT", + "Date": "Fri, 11 Jun 2021 22:58:31 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "ec2bb71b-ee3a-4bbe-b907-f551b9077492", - "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-request-id": "ec2bb71b-ee3a-4bbe-b907-f551b9077492", - "x-ms-routing-request-id": "WESTUS2:20210519T183418Z:ec2bb71b-ee3a-4bbe-b907-f551b9077492" + "x-ms-correlation-request-id": "61dc25a3-22f9-4ec9-ba9f-6a90f133f336", + "x-ms-ratelimit-remaining-subscription-reads": "11991", + "x-ms-request-id": "61dc25a3-22f9-4ec9-ba9f-6a90f133f336", + "x-ms-routing-request-id": "WESTUS2:20210611T225831Z:61dc25a3-22f9-4ec9-ba9f-6a90f133f336" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRg-6439", diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ResourceGroupContainerTests/List().json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ResourceGroupContainerTests/List().json index ec8876fe0d95..b27fe6963698 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ResourceGroupContainerTests/List().json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ResourceGroupContainerTests/List().json @@ -6,8 +6,8 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "Request-Id": "|a3bfa398-430a65b38f944799.", - "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-66bc20d3a85316409d872399a4db2686-b46972cbea3dd541-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210611.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "32314624bfbe8662a7fea2c55ef4175d", "x-ms-return-client-request-id": "true" }, @@ -15,22 +15,26 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "397", + "Content-Length": "450", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 19 May 2021 18:34:18 GMT", + "Date": "Fri, 11 Jun 2021 22:58:31 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "8d02ad8f-6cdb-46a4-9486-853d60b58312", - "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "8d02ad8f-6cdb-46a4-9486-853d60b58312", - "x-ms-routing-request-id": "WESTUS2:20210519T183418Z:8d02ad8f-6cdb-46a4-9486-853d60b58312" + "x-ms-correlation-request-id": "4b6db7ac-9277-4298-8638-ef7252fd02c3", + "x-ms-ratelimit-remaining-subscription-reads": "11977", + "x-ms-request-id": "4b6db7ac-9277-4298-8638-ef7252fd02c3", + "x-ms-routing-request-id": "WESTUS2:20210611T225831Z:4b6db7ac-9277-4298-8638-ef7252fd02c3" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", "authorizationSource": "RoleBased", "managedByTenants": [], + "tags": { + "tagKey1": "tagValue1", + "tagKey2": "tagValue2" + }, "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "displayName": "Azure SDK sandbox", @@ -50,8 +54,8 @@ "Authorization": "Sanitized", "Content-Length": "34", "Content-Type": "application/json", - "traceparent": "00-4a781b45aa08aa4e94f7eac422754f9e-57484e6003735340-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210519.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-922b4d00ce58c44b9bef28cf2e771da0-5243b6bfd9665747-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210611.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "4d506cbd48c3a8c934b1e57276165c60", "x-ms-return-client-request-id": "true" }, @@ -64,15 +68,15 @@ "Cache-Control": "no-cache", "Content-Length": "230", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 19 May 2021 18:34:19 GMT", + "Date": "Fri, 11 Jun 2021 22:58:31 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "5de2b371-7108-4772-a538-b278e1a64b98", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "5de2b371-7108-4772-a538-b278e1a64b98", - "x-ms-routing-request-id": "WESTUS2:20210519T183419Z:5de2b371-7108-4772-a538-b278e1a64b98" + "x-ms-correlation-request-id": "ceb6849d-5a7a-4219-9e85-f12fdaf90c14", + "x-ms-ratelimit-remaining-subscription-writes": "1192", + "x-ms-request-id": "ceb6849d-5a7a-4219-9e85-f12fdaf90c14", + "x-ms-routing-request-id": "WESTUS2:20210611T225832Z:ceb6849d-5a7a-4219-9e85-f12fdaf90c14" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRg-6350", @@ -93,8 +97,8 @@ "Authorization": "Sanitized", "Content-Length": "34", "Content-Type": "application/json", - "traceparent": "00-f2c3215a08ce5d49afeb5d0a4bcfca5d-1f779afbdbd40e47-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210519.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-d37b9b354619724f8bcc8a484d716140-d67efe777aa3564b-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210611.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "997a583a7a13a661eb9ff26126efcbab", "x-ms-return-client-request-id": "true" }, @@ -107,15 +111,15 @@ "Cache-Control": "no-cache", "Content-Length": "230", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 19 May 2021 18:34:20 GMT", + "Date": "Fri, 11 Jun 2021 22:58:32 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "eb7f1844-1890-4bc9-bd92-b6fdb0767969", - "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-request-id": "eb7f1844-1890-4bc9-bd92-b6fdb0767969", - "x-ms-routing-request-id": "WESTUS2:20210519T183420Z:eb7f1844-1890-4bc9-bd92-b6fdb0767969" + "x-ms-correlation-request-id": "a105707b-ea82-4ed8-98ab-827f758d2699", + "x-ms-ratelimit-remaining-subscription-writes": "1191", + "x-ms-request-id": "a105707b-ea82-4ed8-98ab-827f758d2699", + "x-ms-routing-request-id": "WESTUS2:20210611T225832Z:a105707b-ea82-4ed8-98ab-827f758d2699" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRg-6091", @@ -134,8 +138,8 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-6dcb5891f90163419b2faeffe32537b7-0a2a48a04d1d4b4d-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210519.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-6eed7248ae5b454d9f8bbe69837feb4a-8a2c11ec7f163941-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210611.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "db5e9666609168fe8a8a0e7c1330e845", "x-ms-return-client-request-id": "true" }, @@ -143,17 +147,17 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "2829", + "Content-Length": "3751", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 19 May 2021 18:34:20 GMT", + "Date": "Fri, 11 Jun 2021 22:58:32 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "3942ae9e-32ba-4e0f-9e0a-f2c87eb3cf3c", - "x-ms-ratelimit-remaining-subscription-reads": "11985", - "x-ms-request-id": "3942ae9e-32ba-4e0f-9e0a-f2c87eb3cf3c", - "x-ms-routing-request-id": "WESTUS2:20210519T183420Z:3942ae9e-32ba-4e0f-9e0a-f2c87eb3cf3c" + "x-ms-correlation-request-id": "113397d7-59a7-45fd-bafe-171138ae1074", + "x-ms-ratelimit-remaining-subscription-reads": "11976", + "x-ms-request-id": "113397d7-59a7-45fd-bafe-171138ae1074", + "x-ms-routing-request-id": "WESTUS2:20210611T225832Z:113397d7-59a7-45fd-bafe-171138ae1074" }, "ResponseBody": { "value": [ @@ -167,38 +171,80 @@ } }, { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRg-9476", - "name": "testRg-9476", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/NetworkWatcherRG", + "name": "NetworkWatcherRG", + "type": "Microsoft.Resources/resourceGroups", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/tjp-rg", + "name": "tjp-rg", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus3", + "properties": { + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg557", + "name": "testrg557", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": {}, "properties": { - "provisioningState": "Deleting" + "provisioningState": "Succeeded" } }, { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRg-6439", - "name": "testRg-6439", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg8605", + "name": "testrg8605", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": {}, "properties": { - "provisioningState": "Deleting" + "provisioningState": "Succeeded" } }, { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRg-2388", - "name": "testRg-2388", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg7961", + "name": "testrg7961", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRg-7569", + "name": "testRg-7569", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key": "value" + }, "properties": { "provisioningState": "Deleting" } }, { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRg-9522", - "name": "testRg-9522", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRg-5504", + "name": "testRg-5504", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key": "value" + }, + "properties": { + "provisioningState": "Deleting" + } + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRg-2388", + "name": "testRg-2388", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": {}, @@ -207,8 +253,8 @@ } }, { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRg-2283", - "name": "testRg-2283", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRg-6439", + "name": "testRg-6439", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": {}, diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ResourceGroupContainerTests/List()Async.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ResourceGroupContainerTests/List()Async.json index 9fde9fcb54fb..cdf6680bcdea 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ResourceGroupContainerTests/List()Async.json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ResourceGroupContainerTests/List()Async.json @@ -6,8 +6,8 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-59a9f62313f8514da24e44b78625e990-6fdb93f403037844-00", - "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-51df9f3834759a4f9f6fa35d456fff6a-9608d357115edb4c-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210611.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "fc4e15b5fbbb5705603d2b33fb5b2337", "x-ms-return-client-request-id": "true" }, @@ -15,22 +15,26 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "397", + "Content-Length": "450", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 19 May 2021 18:34:18 GMT", + "Date": "Fri, 11 Jun 2021 22:58:31 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "c0379d57-bf64-4c1a-ba2c-36d05dd8e58c", - "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-request-id": "c0379d57-bf64-4c1a-ba2c-36d05dd8e58c", - "x-ms-routing-request-id": "WESTUS2:20210519T183418Z:c0379d57-bf64-4c1a-ba2c-36d05dd8e58c" + "x-ms-correlation-request-id": "f0a36010-2663-4c22-b1bc-03cda5c6e523", + "x-ms-ratelimit-remaining-subscription-reads": "11988", + "x-ms-request-id": "f0a36010-2663-4c22-b1bc-03cda5c6e523", + "x-ms-routing-request-id": "WESTUS2:20210611T225832Z:f0a36010-2663-4c22-b1bc-03cda5c6e523" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", "authorizationSource": "RoleBased", "managedByTenants": [], + "tags": { + "tagKey1": "tagValue1", + "tagKey2": "tagValue2" + }, "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "displayName": "Azure SDK sandbox", @@ -50,8 +54,8 @@ "Authorization": "Sanitized", "Content-Length": "34", "Content-Type": "application/json", - "traceparent": "00-20cf3a726e5e8d4e80ccd0d5c2fb2038-236a3cd813338340-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210519.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-d23267f7548536458c05bbd3e8594622-a0c3e8dbe347f34e-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210611.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "9c1867024544a4ce2fd808a6a8f416fa", "x-ms-return-client-request-id": "true" }, @@ -64,15 +68,15 @@ "Cache-Control": "no-cache", "Content-Length": "230", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 19 May 2021 18:34:19 GMT", + "Date": "Fri, 11 Jun 2021 22:58:32 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "203bfe0d-0578-40e3-b4b8-aec1e615500e", - "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": "203bfe0d-0578-40e3-b4b8-aec1e615500e", - "x-ms-routing-request-id": "WESTUS2:20210519T183419Z:203bfe0d-0578-40e3-b4b8-aec1e615500e" + "x-ms-correlation-request-id": "083be179-0a0f-4eef-9b1c-4a644afc501f", + "x-ms-ratelimit-remaining-subscription-writes": "1197", + "x-ms-request-id": "083be179-0a0f-4eef-9b1c-4a644afc501f", + "x-ms-routing-request-id": "WESTUS2:20210611T225832Z:083be179-0a0f-4eef-9b1c-4a644afc501f" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRg-9522", @@ -93,8 +97,8 @@ "Authorization": "Sanitized", "Content-Length": "34", "Content-Type": "application/json", - "traceparent": "00-97a0e5a4ff170a4daf057418fb52284a-aab73135a8d52f45-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210519.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-6eb1bdd408049443ab13e17f0c50ffef-1f84118878898141-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210611.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "f77522cdaf69f33f8f0ffba77bde90a3", "x-ms-return-client-request-id": "true" }, @@ -107,15 +111,15 @@ "Cache-Control": "no-cache", "Content-Length": "230", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 19 May 2021 18:34:19 GMT", + "Date": "Fri, 11 Jun 2021 22:58:32 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "7c7672bf-1c59-4e87-8870-32f3b34ce423", - "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-request-id": "7c7672bf-1c59-4e87-8870-32f3b34ce423", - "x-ms-routing-request-id": "WESTUS2:20210519T183419Z:7c7672bf-1c59-4e87-8870-32f3b34ce423" + "x-ms-correlation-request-id": "38d58260-73e7-4836-aaca-c45a5c391f19", + "x-ms-ratelimit-remaining-subscription-writes": "1196", + "x-ms-request-id": "38d58260-73e7-4836-aaca-c45a5c391f19", + "x-ms-routing-request-id": "WESTUS2:20210611T225833Z:38d58260-73e7-4836-aaca-c45a5c391f19" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRg-2283", @@ -134,8 +138,8 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-ee881278062ae94fa57b691bcfab7683-5aaf8ce1d26a544b-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210519.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-2075d063df8bc24a92388a58788dce03-f18c84735382a94f-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210611.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "1e6fd11270f580cf588b22fcb1b74814", "x-ms-return-client-request-id": "true" }, @@ -143,17 +147,17 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "2600", + "Content-Length": "4211", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 19 May 2021 18:34:19 GMT", + "Date": "Fri, 11 Jun 2021 22:58:32 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "cbe0a24e-c265-4ac7-8ef3-8f977e4e4121", - "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-request-id": "cbe0a24e-c265-4ac7-8ef3-8f977e4e4121", - "x-ms-routing-request-id": "WESTUS2:20210519T183419Z:cbe0a24e-c265-4ac7-8ef3-8f977e4e4121" + "x-ms-correlation-request-id": "c7321d89-b0fe-42c2-8b5c-e847d542c43c", + "x-ms-ratelimit-remaining-subscription-reads": "11987", + "x-ms-request-id": "c7321d89-b0fe-42c2-8b5c-e847d542c43c", + "x-ms-routing-request-id": "WESTUS2:20210611T225833Z:c7321d89-b0fe-42c2-8b5c-e847d542c43c" }, "ResponseBody": { "value": [ @@ -167,8 +171,80 @@ } }, { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRg-9476", - "name": "testRg-9476", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/NetworkWatcherRG", + "name": "NetworkWatcherRG", + "type": "Microsoft.Resources/resourceGroups", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/tjp-rg", + "name": "tjp-rg", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus3", + "properties": { + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg557", + "name": "testrg557", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg8605", + "name": "testrg8605", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testrg7961", + "name": "testrg7961", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRg-7569", + "name": "testRg-7569", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key": "value" + }, + "properties": { + "provisioningState": "Deleting" + } + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRg-5504", + "name": "testRg-5504", + "type": "Microsoft.Resources/resourceGroups", + "location": "westus2", + "tags": { + "key": "value" + }, + "properties": { + "provisioningState": "Deleting" + } + }, + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRg-2388", + "name": "testRg-2388", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": {}, @@ -187,8 +263,8 @@ } }, { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRg-2388", - "name": "testRg-2388", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRg-6350", + "name": "testRg-6350", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": {}, @@ -197,18 +273,18 @@ } }, { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRg-9522", - "name": "testRg-9522", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRg-6091", + "name": "testRg-6091", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": {}, "properties": { - "provisioningState": "Succeeded" + "provisioningState": "Deleting" } }, { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRg-2283", - "name": "testRg-2283", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRg-9522", + "name": "testRg-9522", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": {}, @@ -217,8 +293,8 @@ } }, { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRg-6350", - "name": "testRg-6350", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRg-2283", + "name": "testRg-2283", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": {}, diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ResourceGroupContainerTests/Create().json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ResourceGroupContainerTests/StartCreateOrUpdate().json similarity index 64% rename from sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ResourceGroupContainerTests/Create().json rename to sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ResourceGroupContainerTests/StartCreateOrUpdate().json index 85d1cd2f89fd..49803af6e32d 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ResourceGroupContainerTests/Create().json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ResourceGroupContainerTests/StartCreateOrUpdate().json @@ -6,30 +6,35 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "fbf5ae5d9d0e4ef6d820c67cd78a6b7d", + "traceparent": "00-31c01bcfa804aa498216d1f5c7ca04e8-85a06252c28a9f48-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210611.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "df1d6b6a9b7f3ab43069c7ec0845bfb8", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "397", + "Content-Length": "450", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 19 May 2021 18:34:14 GMT", + "Date": "Fri, 11 Jun 2021 22:58:33 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "2ff90cf6-829f-4325-b5b7-7b82b74a2dfc", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "2ff90cf6-829f-4325-b5b7-7b82b74a2dfc", - "x-ms-routing-request-id": "WESTUS2:20210519T183415Z:2ff90cf6-829f-4325-b5b7-7b82b74a2dfc" + "x-ms-correlation-request-id": "abf38a10-a311-4f92-a064-aa3f65c79abd", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-request-id": "abf38a10-a311-4f92-a064-aa3f65c79abd", + "x-ms-routing-request-id": "WESTUS2:20210611T225833Z:abf38a10-a311-4f92-a064-aa3f65c79abd" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", "authorizationSource": "RoleBased", "managedByTenants": [], + "tags": { + "tagKey1": "tagValue1", + "tagKey2": "tagValue2" + }, "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "displayName": "Azure SDK sandbox", @@ -42,16 +47,16 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testRg-9476?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testRg-6999?api-version=2019-10-01", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "34", "Content-Type": "application/json", - "traceparent": "00-fd86f46cbde03444b2ae95b06482b068-5f5849d8a1b91344-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210519.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "4f9b1cb0c615a755df66b08668e1e5c8", + "traceparent": "00-f76defbfc76a5a488a46dec1a60e38fb-17c5c4e51f5abc4d-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210611.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "ad6716005a04133d4616c4a4d9e29b09", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -63,19 +68,19 @@ "Cache-Control": "no-cache", "Content-Length": "230", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 19 May 2021 18:34:17 GMT", + "Date": "Fri, 11 Jun 2021 22:58:34 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "0861da4d-d5d8-4cb1-9946-489af7175e1f", + "x-ms-correlation-request-id": "1df52874-aa33-4456-b7e5-7cc1436ffb89", "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "0861da4d-d5d8-4cb1-9946-489af7175e1f", - "x-ms-routing-request-id": "WESTUS2:20210519T183417Z:0861da4d-d5d8-4cb1-9946-489af7175e1f" + "x-ms-request-id": "1df52874-aa33-4456-b7e5-7cc1436ffb89", + "x-ms-routing-request-id": "WESTUS2:20210611T225834Z:1df52874-aa33-4456-b7e5-7cc1436ffb89" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRg-9476", - "name": "testRg-9476", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRg-6999", + "name": "testRg-6999", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": {}, @@ -86,7 +91,7 @@ } ], "Variables": { - "RandomSeed": "899326195", + "RandomSeed": "1770715528", "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" } } \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ResourceGroupContainerTests/Create()Async.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ResourceGroupContainerTests/StartCreateOrUpdate()Async.json similarity index 62% rename from sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ResourceGroupContainerTests/Create()Async.json rename to sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ResourceGroupContainerTests/StartCreateOrUpdate()Async.json index b9b3ba09f1ef..dab8449e9f50 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ResourceGroupContainerTests/Create()Async.json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ResourceGroupContainerTests/StartCreateOrUpdate()Async.json @@ -6,30 +6,35 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "User-Agent": "azsdk-net-ResourceManager.Resources/1.0.0-preview.2 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "fbf5ae5d9d0e4ef6d820c67cd78a6b7d", + "traceparent": "00-1d08b014c5c47042ba04dacff59a227f-8f4057e92b5eae41-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210611.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "df1d6b6a9b7f3ab43069c7ec0845bfb8", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "397", + "Content-Length": "450", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 19 May 2021 18:34:14 GMT", + "Date": "Fri, 11 Jun 2021 22:58:33 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "6a69dc44-4c1e-44dd-a841-df2aba86d0d2", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "6a69dc44-4c1e-44dd-a841-df2aba86d0d2", - "x-ms-routing-request-id": "WESTUS2:20210519T183415Z:6a69dc44-4c1e-44dd-a841-df2aba86d0d2" + "x-ms-correlation-request-id": "7fc49187-e8b0-4f07-a2e2-883cf97eb4e4", + "x-ms-ratelimit-remaining-subscription-reads": "11984", + "x-ms-request-id": "7fc49187-e8b0-4f07-a2e2-883cf97eb4e4", + "x-ms-routing-request-id": "WESTUS2:20210611T225833Z:7fc49187-e8b0-4f07-a2e2-883cf97eb4e4" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", "authorizationSource": "RoleBased", "managedByTenants": [], + "tags": { + "tagKey1": "tagValue1", + "tagKey2": "tagValue2" + }, "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "displayName": "Azure SDK sandbox", @@ -42,16 +47,16 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testRg-9476?api-version=2019-10-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testRg-6999?api-version=2019-10-01", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "34", "Content-Type": "application/json", - "traceparent": "00-17b739235c57a84ebd227f41f0b54086-58ed7dcdc1d15c4a-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210519.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "4f9b1cb0c615a755df66b08668e1e5c8", + "traceparent": "00-4bcded92dd85a343b385d2768f24f39b-f7cb4cea3cba8d4d-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210611.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "ad6716005a04133d4616c4a4d9e29b09", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -63,19 +68,19 @@ "Cache-Control": "no-cache", "Content-Length": "230", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 19 May 2021 18:34:16 GMT", + "Date": "Fri, 11 Jun 2021 22:58:34 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "463dde7a-e8e1-45ce-97af-984e0b3875d9", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "463dde7a-e8e1-45ce-97af-984e0b3875d9", - "x-ms-routing-request-id": "WESTUS2:20210519T183416Z:463dde7a-e8e1-45ce-97af-984e0b3875d9" + "x-ms-correlation-request-id": "44c592cb-3a86-4a54-a053-2c4a58638887", + "x-ms-ratelimit-remaining-subscription-writes": "1195", + "x-ms-request-id": "44c592cb-3a86-4a54-a053-2c4a58638887", + "x-ms-routing-request-id": "WESTUS2:20210611T225834Z:44c592cb-3a86-4a54-a053-2c4a58638887" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRg-9476", - "name": "testRg-9476", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRg-6999", + "name": "testRg-6999", "type": "Microsoft.Resources/resourceGroups", "location": "westus2", "tags": {}, @@ -86,7 +91,7 @@ } ], "Variables": { - "RandomSeed": "899326195", + "RandomSeed": "1770715528", "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" } } \ No newline at end of file