Skip to content

Commit fe15edd

Browse files
Bug Fix in New-AzManagementGroup cmdlet (Azure#21000)
* Trying to squash into one commit again * Updated the ChangeLog * Update src/Resources/Resources/ChangeLog.md --------- Co-authored-by: Beisi Zhou <zhoubeisi@gmail.com>
1 parent 5eed614 commit fe15edd

29 files changed

+4220
-1403
lines changed

src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestCheckNameAvailabilityFalse.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,17 @@
44
"RequestUri": "/providers/Microsoft.Management/checkNameAvailability?api-version=2021-04-01",
55
"EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9jaGVja05hbWVBdmFpbGFiaWxpdHk/YXBpLXZlcnNpb249MjAyMS0wNC0wMQ==",
66
"RequestMethod": "POST",
7-
"RequestBody": "{\r\n \"name\": \"testMG3\",\r\n \"type\": \"Microsoft.Management/managementGroups\"\r\n}",
87
"RequestHeaders": {
98
"x-ms-client-request-id": [
10-
"7e9f2a52-8864-4741-80f4-720eadc91c52"
9+
"ba3325e1-87f3-410c-a200-12edaa9655ec"
1110
],
1211
"Accept-Language": [
1312
"en-US"
1413
],
1514
"User-Agent": [
16-
"FxVersion/4.700.22.16002",
15+
"FxVersion/4.700.22.55902",
1716
"OSName/Windows",
18-
"OSVersion/Microsoft.Windows.10.0.19044",
17+
"OSVersion/Microsoft.Windows.10.0.19045",
1918
"Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
2019
],
2120
"Content-Type": [
@@ -25,6 +24,7 @@
2524
"77"
2625
]
2726
},
27+
"RequestBody": "{\r\n \"name\": \"testMG3\",\r\n \"type\": \"Microsoft.Management/managementGroups\"\r\n}",
2828
"ResponseHeaders": {
2929
"Cache-Control": [
3030
"no-cache"
@@ -33,16 +33,16 @@
3333
"no-cache"
3434
],
3535
"x-ms-request-id": [
36-
"westcentralus:f3e46b8e-59ae-4d96-932e-f69f5444ed7c"
36+
"westus:7db72c7e-2cf7-413e-b266-c2adea2ec75c"
3737
],
3838
"x-ba-restapi": [
3939
"0.0.0.0"
4040
],
4141
"client-request-id": [
42-
"f3e46b8e-59ae-4d96-932e-f69f5444ed7c"
42+
"7db72c7e-2cf7-413e-b266-c2adea2ec75c"
4343
],
4444
"request-id": [
45-
"f3e46b8e-59ae-4d96-932e-f69f5444ed7c"
45+
"7db72c7e-2cf7-413e-b266-c2adea2ec75c"
4646
],
4747
"Server": [
4848
"Microsoft-HTTPAPI/2.0"
@@ -51,10 +51,10 @@
5151
"1199"
5252
],
5353
"x-ms-correlation-request-id": [
54-
"f3e46b8e-59ae-4d96-932e-f69f5444ed7c"
54+
"7db72c7e-2cf7-413e-b266-c2adea2ec75c"
5555
],
5656
"x-ms-routing-request-id": [
57-
"WESTCENTRALUS:20220418T213350Z:f3e46b8e-59ae-4d96-932e-f69f5444ed7c"
57+
"WESTUS:20230223T000513Z:7db72c7e-2cf7-413e-b266-c2adea2ec75c"
5858
],
5959
"Strict-Transport-Security": [
6060
"max-age=31536000; includeSubDomains"
@@ -63,7 +63,7 @@
6363
"nosniff"
6464
],
6565
"Date": [
66-
"Mon, 18 Apr 2022 21:33:49 GMT"
66+
"Thu, 23 Feb 2023 00:05:13 GMT"
6767
],
6868
"Content-Length": [
6969
"109"

src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestCheckNameAvailabilityTrue.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,17 @@
44
"RequestUri": "/providers/Microsoft.Management/checkNameAvailability?api-version=2021-04-01",
55
"EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9jaGVja05hbWVBdmFpbGFiaWxpdHk/YXBpLXZlcnNpb249MjAyMS0wNC0wMQ==",
66
"RequestMethod": "POST",
7-
"RequestBody": "{\r\n \"name\": \"TestMG\",\r\n \"type\": \"Microsoft.Management/managementGroups\"\r\n}",
87
"RequestHeaders": {
98
"x-ms-client-request-id": [
10-
"84124666-3066-459b-ac13-fe511b3abe3b"
9+
"7bb9f190-a9ef-4bbd-baa3-65af8d27b530"
1110
],
1211
"Accept-Language": [
1312
"en-US"
1413
],
1514
"User-Agent": [
16-
"FxVersion/4.700.22.16002",
15+
"FxVersion/4.700.22.55902",
1716
"OSName/Windows",
18-
"OSVersion/Microsoft.Windows.10.0.19044",
17+
"OSVersion/Microsoft.Windows.10.0.19045",
1918
"Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
2019
],
2120
"Content-Type": [
@@ -25,6 +24,7 @@
2524
"76"
2625
]
2726
},
27+
"RequestBody": "{\r\n \"name\": \"TestMG\",\r\n \"type\": \"Microsoft.Management/managementGroups\"\r\n}",
2828
"ResponseHeaders": {
2929
"Cache-Control": [
3030
"no-cache"
@@ -33,28 +33,28 @@
3333
"no-cache"
3434
],
3535
"x-ms-request-id": [
36-
"westcentralus:90e85408-ae04-4a48-98db-d1e4d176f706"
36+
"centralus:39bdc6bf-22bd-4012-94f2-87e96a943437"
3737
],
3838
"x-ba-restapi": [
3939
"0.0.0.0"
4040
],
4141
"client-request-id": [
42-
"90e85408-ae04-4a48-98db-d1e4d176f706"
42+
"39bdc6bf-22bd-4012-94f2-87e96a943437"
4343
],
4444
"request-id": [
45-
"90e85408-ae04-4a48-98db-d1e4d176f706"
45+
"39bdc6bf-22bd-4012-94f2-87e96a943437"
4646
],
4747
"Server": [
4848
"Microsoft-HTTPAPI/2.0"
4949
],
5050
"x-ms-ratelimit-remaining-tenant-writes": [
51-
"1199"
51+
"1198"
5252
],
5353
"x-ms-correlation-request-id": [
54-
"90e85408-ae04-4a48-98db-d1e4d176f706"
54+
"39bdc6bf-22bd-4012-94f2-87e96a943437"
5555
],
5656
"x-ms-routing-request-id": [
57-
"WESTCENTRALUS:20220418T213347Z:90e85408-ae04-4a48-98db-d1e4d176f706"
57+
"WESTCENTRALUS:20230223T000512Z:39bdc6bf-22bd-4012-94f2-87e96a943437"
5858
],
5959
"Strict-Transport-Security": [
6060
"max-age=31536000; includeSubDomains"
@@ -63,7 +63,7 @@
6363
"nosniff"
6464
],
6565
"Date": [
66-
"Mon, 18 Apr 2022 21:33:46 GMT"
66+
"Thu, 23 Feb 2023 00:05:11 GMT"
6767
],
6868
"Content-Length": [
6969
"22"

src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestCheckNameWithInvalidCharacters.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,17 @@
44
"RequestUri": "/providers/Microsoft.Management/checkNameAvailability?api-version=2021-04-01",
55
"EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9jaGVja05hbWVBdmFpbGFiaWxpdHk/YXBpLXZlcnNpb249MjAyMS0wNC0wMQ==",
66
"RequestMethod": "POST",
7-
"RequestBody": "{\r\n \"name\": \"testMG3!\",\r\n \"type\": \"Microsoft.Management/managementGroups\"\r\n}",
87
"RequestHeaders": {
98
"x-ms-client-request-id": [
10-
"1937d2ef-a498-424b-a24f-0cab8b714371"
9+
"680b0f7a-8cbb-4c93-9bee-f52eb832fc61"
1110
],
1211
"Accept-Language": [
1312
"en-US"
1413
],
1514
"User-Agent": [
16-
"FxVersion/4.700.22.16002",
15+
"FxVersion/4.700.22.55902",
1716
"OSName/Windows",
18-
"OSVersion/Microsoft.Windows.10.0.19044",
17+
"OSVersion/Microsoft.Windows.10.0.19045",
1918
"Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
2019
],
2120
"Content-Type": [
@@ -25,6 +24,7 @@
2524
"78"
2625
]
2726
},
27+
"RequestBody": "{\r\n \"name\": \"testMG3!\",\r\n \"type\": \"Microsoft.Management/managementGroups\"\r\n}",
2828
"ResponseHeaders": {
2929
"Cache-Control": [
3030
"no-cache"
@@ -33,16 +33,16 @@
3333
"no-cache"
3434
],
3535
"x-ms-request-id": [
36-
"westcentralus:b384cdd5-fdcf-4579-9d91-31796004614a"
36+
"centralus:00508d9e-d77a-4a91-acf4-8461a5336da1"
3737
],
3838
"x-ba-restapi": [
3939
"0.0.0.0"
4040
],
4141
"client-request-id": [
42-
"b384cdd5-fdcf-4579-9d91-31796004614a"
42+
"00508d9e-d77a-4a91-acf4-8461a5336da1"
4343
],
4444
"request-id": [
45-
"b384cdd5-fdcf-4579-9d91-31796004614a"
45+
"00508d9e-d77a-4a91-acf4-8461a5336da1"
4646
],
4747
"Server": [
4848
"Microsoft-HTTPAPI/2.0"
@@ -51,10 +51,10 @@
5151
"1199"
5252
],
5353
"x-ms-correlation-request-id": [
54-
"b384cdd5-fdcf-4579-9d91-31796004614a"
54+
"00508d9e-d77a-4a91-acf4-8461a5336da1"
5555
],
5656
"x-ms-routing-request-id": [
57-
"WESTCENTRALUS:20220418T213214Z:b384cdd5-fdcf-4579-9d91-31796004614a"
57+
"WESTCENTRALUS:20230223T000441Z:00508d9e-d77a-4a91-acf4-8461a5336da1"
5858
],
5959
"Strict-Transport-Security": [
6060
"max-age=31536000; includeSubDomains"
@@ -63,7 +63,7 @@
6363
"nosniff"
6464
],
6565
"Date": [
66-
"Mon, 18 Apr 2022 21:32:14 GMT"
66+
"Thu, 23 Feb 2023 00:04:41 GMT"
6767
],
6868
"Content-Length": [
6969
"194"

src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestGetEntities.json

Lines changed: 12 additions & 12 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)