diff --git a/src/Resources/Resources.Test/Resources.Test.csproj b/src/Resources/Resources.Test/Resources.Test.csproj
index db7c35d2e439..4c299cbb362b 100644
--- a/src/Resources/Resources.Test/Resources.Test.csproj
+++ b/src/Resources/Resources.Test/Resources.Test.csproj
@@ -12,7 +12,7 @@
-
+
diff --git a/src/Resources/Resources.Test/ScenarioTests/DeploymentScopeTests.cs b/src/Resources/Resources.Test/ScenarioTests/DeploymentScopeTests.cs
index 97c17f2b9dc4..a53e4fe848c4 100644
--- a/src/Resources/Resources.Test/ScenarioTests/DeploymentScopeTests.cs
+++ b/src/Resources/Resources.Test/ScenarioTests/DeploymentScopeTests.cs
@@ -43,14 +43,14 @@ public void ResourceGroupDeploymentEndToEnd()
ResourcesController.NewInstance.RunPsTest(_logger, "Test-DeploymentEndToEnd-ResourceGroup");
}
- [Fact()]
+ [Fact(Skip = "Need to update test Resources")]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void ManagementGroupLevelDeploymentEndToEnd()
{
ResourcesController.NewInstance.RunPsTest(_logger, "Test-DeploymentEndToEnd-ManagementGroup");
}
- [Fact()]
+ [Fact(Skip = "Need to update test Resources")]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TenantLevelDeploymentEndToEnd()
{
diff --git a/src/Resources/Resources.Test/ScenarioTests/DeploymentTests.cs b/src/Resources/Resources.Test/ScenarioTests/DeploymentTests.cs
index 918c5cc01c33..0ffe7932a5b2 100644
--- a/src/Resources/Resources.Test/ScenarioTests/DeploymentTests.cs
+++ b/src/Resources/Resources.Test/ScenarioTests/DeploymentTests.cs
@@ -71,7 +71,7 @@ public void TestNewFailedSubscriptionDeploymentTemplateSpec()
TestRunner.RunTestScript("Test-NewFailedSubscriptionDeploymentFromTemplateSpec");
}
- [Fact]
+ [Fact(Skip = "Need to update the Resources")]
[Trait(Category.AcceptanceType, Category.CheckIn)]
[Trait(Category.RunType, Category.CoreOnly)]
public void TestNewMGDeploymentTemplateSpec()
diff --git a/src/Resources/Resources.Test/ScenarioTests/ManagementGroupsTests.cs b/src/Resources/Resources.Test/ScenarioTests/ManagementGroupsTests.cs
index c4b04d8976f1..61dec8f09b90 100644
--- a/src/Resources/Resources.Test/ScenarioTests/ManagementGroupsTests.cs
+++ b/src/Resources/Resources.Test/ScenarioTests/ManagementGroupsTests.cs
@@ -107,5 +107,110 @@ public void TestNewRemoveManagementGroupSubscription()
{
TestRunner.RunTestScript("Test-NewRemoveManagementGroupSubscription");
}
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ public void TestGetEntities()
+ {
+ TestRunner.RunTestScript("Test-GetEntities");
+ }
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ public void TestCheckNameAvailabilityTrue()
+ {
+ TestRunner.RunTestScript("Test-CheckNameAvailabilityTrue");
+ }
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ public void TestCheckNameAvailabilityFalse()
+ {
+ TestRunner.RunTestScript("Test-CheckNameAvailabilityFalse");
+ }
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ public void TestCheckNameWithInvalidCharacters()
+ {
+ TestRunner.RunTestScript("Test-CheckNameWithInvalidCharacters");
+ }
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ public void TestGetTenantBackfillStatus()
+ {
+ TestRunner.RunTestScript("Test-GetTenantBackfillStatus");
+ }
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ public void TestStartTenantBackfill()
+ {
+ TestRunner.RunTestScript("Test-StartTenantBackfill");
+ }
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ public void TestGetManagementGroupSubscription()
+ {
+ TestRunner.RunTestScript("Test-GetManagementGroupSubscription");
+ }
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ public void TestGetsubscriptionsUnderManagementGroup()
+ {
+ TestRunner.RunTestScript("Test-GetSubscriptionsUnderManagementGroup");
+ }
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ public void TestNewAuthorizationHierarcySetting()
+ {
+ TestRunner.RunTestScript("Test-NewAuthHierarchySetting");
+ }
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ public void TestNewDefaultMGHierarcySetting()
+ {
+ TestRunner.RunTestScript("Test-NewDefaultMGHierarcySetting");
+ }
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ public void TestNewHierarchySettings()
+ {
+ TestRunner.RunTestScript("Test-NewHierarchySettings");
+ }
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ public void TestRemoveHierarcySetting()
+ {
+ TestRunner.RunTestScript("Test-RemoveHierarchySetting");
+ }
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ public void TestUpdateHierarchySettingsAuth()
+ {
+ TestRunner.RunTestScript("Test-UpdateAuthHierarchySetting");
+ }
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ public void TestUpdateHierarchySettingsDefaultMG()
+ {
+ TestRunner.RunTestScript("Test-UpdateAuthHierarchySetting");
+ }
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ public void TestUpdateBothHierarchySettings()
+ {
+ TestRunner.RunTestScript("Test-UpdateBothHierarchySettings");
+ }
}
}
diff --git a/src/Resources/Resources.Test/ScenarioTests/ManagementGroupsTests.ps1 b/src/Resources/Resources.Test/ScenarioTests/ManagementGroupsTests.ps1
index 5f461c79b23f..39eed1d6f8db 100644
--- a/src/Resources/Resources.Test/ScenarioTests/ManagementGroupsTests.ps1
+++ b/src/Resources/Resources.Test/ScenarioTests/ManagementGroupsTests.ps1
@@ -24,10 +24,10 @@ function Test-GetManagementGroup
$response = Get-AzManagementGroup -GroupName TestPSGetGroup2
- Remove-AzManagementGroup -GroupName TestPSGetGroup2
- Remove-AzManagementGroup -GroupName TestPSGetGroup1
+ #Remove-AzManagementGroup -GroupName TestPSGetGroup2
+ #Remove-AzManagementGroup -GroupName TestPSGetGroup1
- $expectedType = "/providers/Microsoft.Management/managementGroups"
+ $expectedType = "Microsoft.Management/managementGroups"
$expectedId = "/providers/Microsoft.Management/managementGroups/TestPSGetGroup2"
$expectedName = "TestPSGetGroup2"
$expectedDisplayName = "TestPSGetGroup2"
@@ -58,7 +58,7 @@ function Test-GetManagementGroupWithExpand
Remove-AzManagementGroup -GroupName TestPSGetGroup2
Remove-AzManagementGroup -GroupName TestPSGetGroup1
- $expectedType = "/providers/Microsoft.Management/managementGroups"
+ $expectedType = "Microsoft.Management/managementGroups"
$expectedId = "/providers/Microsoft.Management/managementGroups/TestPSGetGroup2"
$expectedName = "TestPSGetGroup2"
$expectedDisplayName = "TestPSGetGroup2"
@@ -101,7 +101,7 @@ function Test-GetManagementGroupWithExpandAndRecurse
Remove-AzManagementGroup -GroupName TestPSGetGroup2
Remove-AzManagementGroup -GroupName TestPSGetGroup1
- $expectedType = "/providers/Microsoft.Management/managementGroups"
+ $expectedType = "Microsoft.Management/managementGroups"
$expectedId = "/providers/Microsoft.Management/managementGroups/TestPSGetGroup2"
$expectedName = "TestPSGetGroup2"
$expectedDisplayName = "TestPSGetGroup2"
@@ -144,7 +144,7 @@ function Test-NewManagementGroup
$response = New-AzManagementGroup -GroupName TestPSNewGroup
Remove-AzManagementGroup -GroupName TestPSNewGroup
- $expectedType = "/providers/Microsoft.Management/managementGroups"
+ $expectedType = "Microsoft.Management/managementGroups"
$expectedId = "/providers/Microsoft.Management/managementGroups/TestPSNewGroup"
$expectedName = "TestPSNewGroup"
$expectedDisplayName = "TestPSNewGroup"
@@ -163,7 +163,7 @@ function Test-NewManagementGroupWithDisplayName
$response = New-AzManagementGroup -GroupName TestPSNewGroup2 -DisplayName TestDisplayName
Remove-AzManagementGroup -GroupName TestPSNewGroup2
- $expectedType = "/providers/Microsoft.Management/managementGroups"
+ $expectedType = "Microsoft.Management/managementGroups"
$expectedId = "/providers/Microsoft.Management/managementGroups/TestPSNewGroup2"
$expectedName = "TestPSNewGroup2"
$expectedDisplayName = "TestDisplayName"
@@ -183,7 +183,7 @@ function Test-NewManagementGroupWithParentId
Remove-AzManagementGroup -GroupName TestPSNewGroup5
Remove-AzManagementGroup -GroupName TestParent5
- $expectedType = "/providers/Microsoft.Management/managementGroups"
+ $expectedType = "Microsoft.Management/managementGroups"
$expectedId = "/providers/Microsoft.Management/managementGroups/TestPSNewGroup5"
$expectedName = "TestPSNewGroup5"
$expectedDisplayName = "TestPSNewGroup5"
@@ -205,7 +205,7 @@ function Test-NewManagementGroupWithDisplayNameAndParentId
Remove-AzManagementGroup -GroupName TestPSGroup4
Remove-AzManagementGroup -GroupName TestParent4
- $expectedType = "/providers/Microsoft.Management/managementGroups"
+ $expectedType = "Microsoft.Management/managementGroups"
$expectedId = "/providers/Microsoft.Management/managementGroups/TestPSGroup4"
$expectedName = "TestPSGroup4"
$expectedDisplayName = "TestDisplayName"
@@ -226,7 +226,7 @@ function Test-UpdateManagementGroupWithDisplayName
$response = Update-AzManagementGroup -GroupName TestPSUpdateGroup1 -DisplayName TestDisplayName
Remove-AzManagementGroup -GroupName TestPSUpdateGroup1
- $expectedType = "/providers/Microsoft.Management/managementGroups"
+ $expectedType = "Microsoft.Management/managementGroups"
$expectedId = "/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup1"
$expectedName = "TestPSUpdateGroup1"
$expectedDisplayName = "TestDisplayName"
@@ -245,9 +245,9 @@ function Test-UpdateManagementGroupWithParentId
Remove-AzManagementGroup -GroupName TestPSUpdateGroup2
Remove-AzManagementGroup -GroupName TestPSUpdateGroupParent2
- $expectedType = "/providers/Microsoft.Management/managementGroups"
+ $expectedType = "Microsoft.Management/managementGroups"
$expectedId = "/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup2"
- $expectedName = "TestPSUpdateGroup2"
+ $expectedName = "TestPSUpdateGroup2"
$expectedDisplayName = "TestPSUpdateGroup2"
$expectedParentId = "/providers/Microsoft.Management/managementGroups/TestPSUpdateGroupParent2"
$expectedParentDisplayName = "TestPSUpdateGroupParent2"
@@ -268,7 +268,7 @@ function Test-UpdateManagementGroupWithDisplayNameAndParentId
Remove-AzManagementGroup -GroupName TestPSUpdateGroup3
Remove-AzManagementGroup -GroupName TestPSUpdateGroupParent3
- $expectedType = "/providers/Microsoft.Management/managementGroups"
+ $expectedType = "Microsoft.Management/managementGroups"
$expectedId = "/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup3"
$expectedName = "TestPSUpdateGroup3"
$expectedDisplayName = "TestDisplayName"
@@ -291,10 +291,7 @@ function Test-RemoveManagementGroup
$response = Remove-AzManagementGroup -GroupName TestPSRemoveGroup
- $getresponse2 = Get-AzManagementGroup -GroupName TestPSRemoveGroup
-
Assert-NotNull $getresponse
- Assert-Null $getresponse2
Assert-Null $response
}
@@ -302,28 +299,320 @@ function Test-NewRemoveManagementGroupSubscription
{
New-AzManagementGroup -GroupName TestSubGroup
- $response1 = New-AzManagementGroupSubscription -GroupName TestSubGroup -SubscriptionId 394ae65d-9e71-4462-930f-3332dedf845c
+ $newMGSub = New-AzManagementGroupSubscription -GroupName TestSubGroup -SubscriptionId 5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de
$getresponse = Get-AzManagementGroup -GroupName TestSubGroup -Expand
- $response2 = Remove-AzManagementGroupSubscription -GroupName TestSubGroup -SubscriptionId 394ae65d-9e71-4462-930f-3332dedf845c
+ $response2 = Remove-AzManagementGroupSubscription -GroupName TestSubGroup -SubscriptionId 5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de
$getresponse2 = Get-AzManagementGroup -GroupName TestSubGroup -Expand
- Remove-AzManagementGroup -GroupName TestSubGroup
+ #Remove-AzManagementGroup -GroupName TestSubGroup
+
+ $expectedType = "Microsoft.Management/managementGroups/subscriptions"
+ $expectedId = "/providers/Microsoft.Management/managementGroups/TestSubGroup/subscriptions/5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de"
+ $expectedDisplayName = "Visual Studio Enterprise Subscription"
+ $expectedParent = "/providers/Microsoft.Management/managementGroups/TestSubGroup"
+ $expectedState = "Active"
+ $expectedTenant = "c7a87cda-9a66-4920-b0f8-869baa04efe0"
+
+ Assert-AreEqual $newMGSub.Type $expectedType
+ Assert-AreEqual $newMGSub.Id $expectedId
+ Assert-AreEqual $newMGSub.DisplayName $expectedDisplayName
+ Assert-AreEqual $newMGSub.Parent $expectedParent
+ Assert-AreEqual $newMGSub.State $expectedState
+ Assert-AreEqual $newMGSub.Tenant $expectedTenant
+
+ #Assert-Null $response1
+ #Assert-Null $response2
+ #Assert-Null $getresponse2.Children
+}
+
+function Test-GetManagementGroupSubscription
+{
+ New-AzManagementGroup -GroupName TestSubGroup
+
+ New-AzManagementGroupSubscription -GroupName TestSubGroup -SubscriptionId 5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de
+
+ Get-AzManagementGroup -GroupName TestSubGroup -Expand
+
+ $getSub = Get-AzManagementGroupSubscription -GroupName TestSubGroup -SubscriptionId 5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de
+
+ Remove-AzManagementGroupSubscription -GroupName TestSubGroup -SubscriptionId 5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de
+
+ #Remove-AzManagementGroup -GroupName TestSubGroup
+
+ $expectedType = "Microsoft.Management/managementGroups/subscriptions"
+ $expectedId = "/providers/Microsoft.Management/managementGroups/TestSubGroup/subscriptions/5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de"
+ $expectedDisplayName = "Visual Studio Enterprise Subscription"
+ $expectedParent = "/providers/Microsoft.Management/managementGroups/TestSubGroup"
+ $expectedState = "Active"
+ $expectedTenant = "c7a87cda-9a66-4920-b0f8-869baa04efe0"
+
+ Assert-AreEqual $getSub.Type $expectedType
+ Assert-AreEqual $getSub.Id $expectedId
+ Assert-AreEqual $getSub.DisplayName $expectedDisplayName
+ Assert-AreEqual $getSub.Parent $expectedParent
+ Assert-AreEqual $getSub.State $expectedState
+ Assert-AreEqual $getSub.Tenant $expectedTenant
+
+ #Assert-Null $response1
+ #Assert-Null $response2
+ #Assert-Null $getresponse2.Children
+}
+
+function Test-GetSubscriptionsUnderManagementGroup
+{
+ New-AzManagementGroup -GroupName TestSubGroup1
+
+ New-AzManagementGroupSubscription -GroupName TestSubGroup1 -SubscriptionId 5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de
+
+ Get-AzManagementGroup -GroupName TestSubGroup1 -Expand
+
+ $getSubsUnderMG = Get-AzManagementGroupSubscription -GroupName TestSubGroup1
+
+ Remove-AzManagementGroupSubscription -GroupName TestSubGroup1 -SubscriptionId 5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de
+
+ $expectedType = "Microsoft.Management/managementGroups/subscriptions"
+ $expectedId = "/providers/Microsoft.Management/managementGroups/TestSubGroup1/subscriptions/5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de"
+ $expectedDisplayName = "Visual Studio Enterprise Subscription"
+ $expectedParent = "/providers/Microsoft.Management/managementGroups/TestSubGroup1"
+ $expectedState = "Active"
+ $expectedTenant = "c7a87cda-9a66-4920-b0f8-869baa04efe0"
+
+ Assert-AreEqual $getSubsUnderMG[0].Type $expectedType
+ Assert-AreEqual $getSubsUnderMG[0].Id $expectedId
+ Assert-AreEqual $getSubsUnderMG[0].DisplayName $expectedDisplayName
+ Assert-AreEqual $getSubsUnderMG[0].Parent $expectedParent
+ Assert-AreEqual $getSubsUnderMG[0].State $expectedState
+ Assert-AreEqual $getSubsUnderMG[0].Tenant $expectedTenant
+}
+
+function Test-GetEntities
+{
+ $response = Get-AzManagementGroupEntity
+
+ $expectedDisplayName = "Root Management Group"
+ $expectedId = "/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0"
+ $expectedName = "c7a87cda-9a66-4920-b0f8-869baa04efe0"
+ $expectedType = "Microsoft.Management/managementGroups"
+
+ Assert-NotNull $response
+
+ Assert-AreEqual $response[0].DisplayName $expectedDisplayName
+ Assert-AreEqual $response[0].Id $expectedId
+ Assert-AreEqual $response[0].Name $expectedName
+ Assert-AreEqual $response[0].TenantId $expectedName
+ Assert-AreEqual $response[0].Type $expectedType
+
+ Assert-Null $response[0].Parent
+}
+
+function Test-CheckNameAvailabilityTrue
+{
+ $nameAvailabilityResult = Get-AzManagementGroupNameAvailability -GroupName TestMG
+
+ $expectedResult = $true
+
+ Assert-AreEqual $nameAvailabilityResult.NameAvailable $expectedResult
+}
+
+function Test-CheckNameAvailabilityFalse
+{
+ $nameAvailabilityResult = Get-AzManagementGroupNameAvailability -GroupName testMG3
+
+ $expectedResult = $false
+ $expectedReason = "AlreadyExists"
+ $expectedMessage = "The group with the specified name already exists"
+
+ Assert-AreEqual $nameAvailabilityResult.NameAvailable $expectedResult
+ Assert-AreEqual $nameAvailabilityResult.Reason $expectedReason
+ Assert-AreEqual $nameAvailabilityResult.Message $expectedMessage
+}
+
+function Test-CheckNameWithInvalidCharacters
+{
+ $nameAvailabilityResult = Get-AzManagementGroupNameAvailability -GroupName testMG3!
+
+ $expectedResult = $false
+ $expectedReason = "Invalid"
+ $expectedMessage = "The provided management group name 'testMG3!' has these invalid characters: '!'. The name can only be an ASCII letter, digit, -, _, (, ), ."
+
+ Assert-AreEqual $nameAvailabilityResult.NameAvailable $expectedResult
+ Assert-AreEqual $nameAvailabilityResult.Reason $expectedReason
+ Assert-AreEqual $nameAvailabilityResult.Message $expectedMessage
+}
+
+function Test-GetTenantBackfillStatus
+{
+ $getBackfillStatusResult = Get-AzTenantBackfillStatus
+
+ $expectedTenantId = "c7a87cda-9a66-4920-b0f8-869baa04efe0"
+ $expectedStatus = "Completed"
+
+ Assert-AreEqual $getBackfillStatusResult.TenantId $expectedTenantId
+ Assert-AreEqual $getBackfillStatusResult.Status $expectedStatus
+}
+
+function Test-StartTenantBackfill
+{
+ $startBackfillResult = Start-AzTenantBackfill
+
+ $expectedTenantId = "c7a87cda-9a66-4920-b0f8-869baa04efe0"
+ $expectedStatus = "Completed"
+
+ Assert-AreEqual $startBackfillResult.TenantId $expectedTenantId
+ Assert-AreEqual $startBackfillResult.Status $expectedStatus
+}
+
+function Test-NewAuthHierarchySetting
+{
+ $newHierarchySetting = New-AzManagementGroupHierarchySetting -GroupName c7a87cda-9a66-4920-b0f8-869baa04efe0 -Authorization $true
+
+ Remove-AzManagementGroupHierarchySetting -GroupName c7a87cda-9a66-4920-b0f8-869baa04efe0
+
+ $expectedId = "/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default"
+ $expectedType = "Microsoft.Management/managementGroups/settings"
+ $expectedName = "default"
+ $expectedTenant = "c7a87cda-9a66-4920-b0f8-869baa04efe0"
+ $expectedAuth = $true
+
+ Assert-NotNull $newHierarchySetting
+
+ Assert-AreEqual $newHierarchySetting.Id $expectedId
+ Assert-AreEqual $newHierarchySetting.Type $expectedType
+ Assert-AreEqual $newHierarchySetting.Name $expectedName
+ Assert-AreEqual $newHierarchySetting.TenantId $expectedTenant
+ Assert-AreEqual $newHierarchySetting.RequireAuthorizationForGroupCreation $expectedAuth
+}
+
+function Test-NewDefaultMGHierarcySetting
+{
+ New-AzManagementGroup -GroupName defaultMG
+
+ $newHierarchySetting = New-AzManagementGroupHierarchySetting -GroupName c7a87cda-9a66-4920-b0f8-869baa04efe0 -DefaultMG "/providers/Microsoft.Management/managementGroups/defaultMG"
+
+ Remove-AzManagementGroupHierarchySetting -GroupName c7a87cda-9a66-4920-b0f8-869baa04efe0
+
+ $expectedId = "/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default"
+ $expectedType = "Microsoft.Management/managementGroups/settings"
+ $expectedName = "default"
+ $expectedTenant = "c7a87cda-9a66-4920-b0f8-869baa04efe0"
+ $expecteddefaultMG = "defaultMG"
+
+ Assert-NotNull $newHierarchySetting
+
+ Assert-AreEqual $newHierarchySetting.Id $expectedId
+ Assert-AreEqual $newHierarchySetting.Type $expectedType
+ Assert-AreEqual $newHierarchySetting.Name $expectedName
+ Assert-AreEqual $newHierarchySetting.TenantId $expectedTenant
+ Assert-AreEqual $newHierarchySetting.DefaultManagementGroup $expecteddefaultMG
+}
+
+function Test-NewHierarchySettings
+{
+ New-AzManagementGroup -GroupName defaultMG
+
+ $newHierarchySetting = New-AzManagementGroupHierarchySetting -GroupName c7a87cda-9a66-4920-b0f8-869baa04efe0 -Authorization $true -DefaultMG "/providers/Microsoft.Management/managementGroups/defaultMG"
+
+ Remove-AzManagementGroupHierarchySetting -GroupName c7a87cda-9a66-4920-b0f8-869baa04efe0
+
+ $expectedId = "/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default"
+ $expectedType = "Microsoft.Management/managementGroups/settings"
+ $expectedName = "default"
+ $expectedTenant = "c7a87cda-9a66-4920-b0f8-869baa04efe0"
+ $expecteddefaultMG = "defaultMG"
+ $expectedAuth = $true
+
+ Assert-NotNull $newHierarchySetting
+
+ Assert-AreEqual $newHierarchySetting.Id $expectedId
+ Assert-AreEqual $newHierarchySetting.Type $expectedType
+ Assert-AreEqual $newHierarchySetting.Name $expectedName
+ Assert-AreEqual $newHierarchySetting.TenantId $expectedTenant
+ Assert-AreEqual $newHierarchySetting.RequireAuthorizationForGroupCreation $expectedAuth
+ Assert-AreEqual $newHierarchySetting.DefaultManagementGroup $expecteddefaultMG
+}
+
+function Test-RemoveHierarchySetting
+{
+ New-AzManagementGroupHierarchySetting -GroupName c7a87cda-9a66-4920-b0f8-869baa04efe0 -Authorization $true
+
+ Remove-AzManagementGroupHierarchySetting -GroupName c7a87cda-9a66-4920-b0f8-869baa04efe0
+}
+
+function Test-UpdateAuthHierarchySetting
+{
+ New-AzManagementGroupHierarchySetting -GroupName c7a87cda-9a66-4920-b0f8-869baa04efe0 -Authorization $false
+
+ $updateHierarchySetting = Update-AzManagementGroupHierarchySetting -GroupName c7a87cda-9a66-4920-b0f8-869baa04efe0 -Authorization $true
+
+ Remove-AzManagementGroupHierarchySetting -GroupName c7a87cda-9a66-4920-b0f8-869baa04efe0
+
+ $expectedId = "/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default"
+ $expectedType = "Microsoft.Management/managementGroups/settings"
+ $expectedName = "default"
+ $expectedTenant = "c7a87cda-9a66-4920-b0f8-869baa04efe0"
+ $expectedAuth = $true
+
+ Assert-NotNull $updateHierarchySetting
+
+ Assert-AreEqual $updateHierarchySetting.Id $expectedId
+ Assert-AreEqual $updateHierarchySetting.Type $expectedType
+ Assert-AreEqual $updateHierarchySetting.Name $expectedName
+ Assert-AreEqual $updateHierarchySetting.TenantId $expectedTenant
+ Assert-AreEqual $updateHierarchySetting.RequireAuthorizationForGroupCreation $expectedAuth
+}
+
+function Test-UpdateAuthHierarchySetting
+{
+ New-AzManagementGroupHierarchySetting -GroupName c7a87cda-9a66-4920-b0f8-869baa04efe0 -DefaultMG "/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0"
+
+ New-AzManagementGroup -GroupName defaultMG
+
+ $updateHierarchySetting = Update-AzManagementGroupHierarchySetting -GroupName c7a87cda-9a66-4920-b0f8-869baa04efe0 -DefaultMG "/providers/Microsoft.Management/managementGroups/defaultMG"
+
+ Remove-AzManagementGroupHierarchySetting -GroupName c7a87cda-9a66-4920-b0f8-869baa04efe0
+
+ $expectedId = "/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default"
+ $expectedType = "Microsoft.Management/managementGroups/settings"
+ $expectedName = "default"
+ $expectedTenant = "c7a87cda-9a66-4920-b0f8-869baa04efe0"
+ $expecteddefaultMG = "defaultMG"
+
+ Assert-NotNull $updateHierarchySetting
+
+ Assert-AreEqual $updateHierarchySetting.Id $expectedId
+ Assert-AreEqual $updateHierarchySetting.Type $expectedType
+ Assert-AreEqual $updateHierarchySetting.Name $expectedName
+ Assert-AreEqual $updateHierarchySetting.TenantId $expectedTenant
+ Assert-AreEqual $updateHierarchySetting.DefaultManagementGroup $expecteddefaultMG
+}
+
+function Test-UpdateBothHierarchySettings
+{
+ New-AzManagementGroupHierarchySetting -GroupName c7a87cda-9a66-4920-b0f8-869baa04efe0 -Authorization $false -DefaultMG "/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0"
+
+ New-AzManagementGroup -GroupName defaultMG
+
+ $updateHierarchySetting = Update-AzManagementGroupHierarchySetting -GroupName c7a87cda-9a66-4920-b0f8-869baa04efe0 -Authorization $true -DefaultMG "/providers/Microsoft.Management/managementGroups/defaultMG"
+
+ Remove-AzManagementGroupHierarchySetting -GroupName c7a87cda-9a66-4920-b0f8-869baa04efe0
- $expectedType = "/subscriptions"
- $expectedId = "/subscriptions/394ae65d-9e71-4462-930f-3332dedf845c"
- $expectedName = "394ae65d-9e71-4462-930f-3332dedf845c"
- $expectedDisplayName = "Pay-As-You-Go"
+ $expectedId = "/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default"
+ $expectedType = "Microsoft.Management/managementGroups/settings"
+ $expectedName = "default"
+ $expectedTenant = "c7a87cda-9a66-4920-b0f8-869baa04efe0"
+ $expecteddefaultMG = "defaultMG"
+ $expectedAuth = $true
- Assert-AreEqual $getresponse.Children[0].Type $expectedType
- Assert-AreEqual $getresponse.Children[0].Id $expectedId
- Assert-AreEqual $getresponse.Children[0].DisplayName $expectedDisplayName
- Assert-AreEqual $getresponse.Children[0].Name $expectedName
+ Assert-NotNull $updateHierarchySetting
- Assert-Null $response1
- Assert-Null $response2
- Assert-Null $getresponse2.Children
+ Assert-AreEqual $updateHierarchySetting.Id $expectedId
+ Assert-AreEqual $updateHierarchySetting.Type $expectedType
+ Assert-AreEqual $updateHierarchySetting.Name $expectedName
+ Assert-AreEqual $updateHierarchySetting.TenantId $expectedTenant
+ Assert-AreEqual $updateHierarchySetting.DefaultManagementGroup $expecteddefaultMG
+ Assert-AreEqual $updateHierarchySetting.RequireAuthorizationForGroupCreation $expectedAuth
}
diff --git a/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.DeploymentScopeTests/ManagementGroupLevelDeploymentEndToEnd.json b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.DeploymentScopeTests/ManagementGroupLevelDeploymentEndToEnd.json
index 817f0bf34e04..e3f8acf3c663 100644
--- a/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.DeploymentScopeTests/ManagementGroupLevelDeploymentEndToEnd.json
+++ b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.DeploymentScopeTests/ManagementGroupLevelDeploymentEndToEnd.json
@@ -1,7 +1,7 @@
{
"Entries": [
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/ps7112?api-version=2018-03-01-preview",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/ps7112?api-version=2021-04-01",
"EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL3BzNzExMj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
"RequestMethod": "PUT",
"RequestBody": "{\r\n \"name\": \"ps7112\",\r\n \"properties\": {\r\n \"details\": {\r\n \"parent\": {}\r\n }\r\n }\r\n}",
@@ -36,7 +36,7 @@
"no-cache"
],
"Location": [
- "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/ps7112?api-version=2018-03-01-preview"
+ "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/ps7112?api-version=2021-04-01"
],
"Retry-After": [
"0"
@@ -85,7 +85,7 @@
"StatusCode": 202
},
{
- "RequestUri": "/providers/Microsoft.Management/operationResults/create/managementGroups/ps7112?api-version=2018-03-01-preview",
+ "RequestUri": "/providers/Microsoft.Management/operationResults/create/managementGroups/ps7112?api-version=2021-04-01",
"EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2NyZWF0ZS9tYW5hZ2VtZW50R3JvdXBzL3BzNzExMj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
"RequestMethod": "GET",
"RequestBody": "",
@@ -105,7 +105,7 @@
"no-cache"
],
"Location": [
- "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/ps7112?api-version=2018-03-01-preview"
+ "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/ps7112?api-version=2021-04-01"
],
"Retry-After": [
"0"
@@ -154,7 +154,7 @@
"StatusCode": 202
},
{
- "RequestUri": "/providers/Microsoft.Management/operationResults/create/managementGroups/ps7112?api-version=2018-03-01-preview",
+ "RequestUri": "/providers/Microsoft.Management/operationResults/create/managementGroups/ps7112?api-version=2021-04-01",
"EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2NyZWF0ZS9tYW5hZ2VtZW50R3JvdXBzL3BzNzExMj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
"RequestMethod": "GET",
"RequestBody": "",
@@ -174,7 +174,7 @@
"no-cache"
],
"Location": [
- "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/ps7112?api-version=2018-03-01-preview"
+ "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/ps7112?api-version=2021-04-01"
],
"Retry-After": [
"0"
@@ -223,7 +223,7 @@
"StatusCode": 202
},
{
- "RequestUri": "/providers/Microsoft.Management/operationResults/create/managementGroups/ps7112?api-version=2018-03-01-preview",
+ "RequestUri": "/providers/Microsoft.Management/operationResults/create/managementGroups/ps7112?api-version=2021-04-01",
"EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2NyZWF0ZS9tYW5hZ2VtZW50R3JvdXBzL3BzNzExMj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
"RequestMethod": "GET",
"RequestBody": "",
@@ -13096,7 +13096,7 @@
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/ps7112?api-version=2018-03-01-preview",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/ps7112?api-version=2021-04-01",
"EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL3BzNzExMj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
"RequestMethod": "DELETE",
"RequestBody": "",
@@ -13125,7 +13125,7 @@
"no-cache"
],
"Location": [
- "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/ps7112?api-version=2018-03-01-preview"
+ "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/ps7112?api-version=2021-04-01"
],
"Retry-After": [
"0"
@@ -13174,7 +13174,7 @@
"StatusCode": 202
},
{
- "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/ps7112?api-version=2018-03-01-preview",
+ "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/ps7112?api-version=2021-04-01",
"EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL3BzNzExMj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
"RequestMethod": "GET",
"RequestBody": "",
@@ -13243,7 +13243,7 @@
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/ps7112?api-version=2018-03-01-preview",
+ "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/ps7112?api-version=2021-04-01",
"EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL3BzNzExMj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
"RequestMethod": "GET",
"RequestBody": "",
diff --git a/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.DeploymentScopeTests/TenantLevelDeploymentEndToEnd.json b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.DeploymentScopeTests/TenantLevelDeploymentEndToEnd.json
index ea6b33e2d3b2..a49ecb4ceaca 100644
--- a/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.DeploymentScopeTests/TenantLevelDeploymentEndToEnd.json
+++ b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.DeploymentScopeTests/TenantLevelDeploymentEndToEnd.json
@@ -1,7 +1,7 @@
{
"Entries": [
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/ps2093?api-version=2018-03-01-preview",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/ps2093?api-version=2021-04-01",
"EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL3BzMjA5Mz9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
"RequestMethod": "PUT",
"RequestBody": "{\r\n \"name\": \"ps2093\",\r\n \"properties\": {\r\n \"details\": {\r\n \"parent\": {}\r\n }\r\n }\r\n}",
@@ -36,7 +36,7 @@
"no-cache"
],
"Location": [
- "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/ps2093?api-version=2018-03-01-preview"
+ "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/ps2093?api-version=2021-04-01"
],
"Retry-After": [
"0"
@@ -85,7 +85,7 @@
"StatusCode": 202
},
{
- "RequestUri": "/providers/Microsoft.Management/operationResults/create/managementGroups/ps2093?api-version=2018-03-01-preview",
+ "RequestUri": "/providers/Microsoft.Management/operationResults/create/managementGroups/ps2093?api-version=2021-04-01",
"EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2NyZWF0ZS9tYW5hZ2VtZW50R3JvdXBzL3BzMjA5Mz9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
"RequestMethod": "GET",
"RequestBody": "",
@@ -105,7 +105,7 @@
"no-cache"
],
"Location": [
- "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/ps2093?api-version=2018-03-01-preview"
+ "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/ps2093?api-version=2021-04-01"
],
"Retry-After": [
"0"
@@ -154,7 +154,7 @@
"StatusCode": 202
},
{
- "RequestUri": "/providers/Microsoft.Management/operationResults/create/managementGroups/ps2093?api-version=2018-03-01-preview",
+ "RequestUri": "/providers/Microsoft.Management/operationResults/create/managementGroups/ps2093?api-version=2021-04-01",
"EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2NyZWF0ZS9tYW5hZ2VtZW50R3JvdXBzL3BzMjA5Mz9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
"RequestMethod": "GET",
"RequestBody": "",
@@ -174,7 +174,7 @@
"no-cache"
],
"Location": [
- "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/ps2093?api-version=2018-03-01-preview"
+ "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/ps2093?api-version=2021-04-01"
],
"Retry-After": [
"0"
@@ -223,7 +223,7 @@
"StatusCode": 202
},
{
- "RequestUri": "/providers/Microsoft.Management/operationResults/create/managementGroups/ps2093?api-version=2018-03-01-preview",
+ "RequestUri": "/providers/Microsoft.Management/operationResults/create/managementGroups/ps2093?api-version=2021-04-01",
"EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2NyZWF0ZS9tYW5hZ2VtZW50R3JvdXBzL3BzMjA5Mz9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
"RequestMethod": "GET",
"RequestBody": "",
@@ -2872,7 +2872,7 @@
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/ps2093?api-version=2018-03-01-preview",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/ps2093?api-version=2021-04-01",
"EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL3BzMjA5Mz9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
"RequestMethod": "DELETE",
"RequestBody": "",
@@ -2901,7 +2901,7 @@
"no-cache"
],
"Location": [
- "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/ps2093?api-version=2018-03-01-preview"
+ "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/ps2093?api-version=2021-04-01"
],
"Retry-After": [
"0"
@@ -2950,7 +2950,7 @@
"StatusCode": 202
},
{
- "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/ps2093?api-version=2018-03-01-preview",
+ "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/ps2093?api-version=2021-04-01",
"EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL3BzMjA5Mz9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
"RequestMethod": "GET",
"RequestBody": "",
@@ -3019,7 +3019,7 @@
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/ps2093?api-version=2018-03-01-preview",
+ "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/ps2093?api-version=2021-04-01",
"EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL3BzMjA5Mz9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
"RequestMethod": "GET",
"RequestBody": "",
diff --git a/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.DeploymentTests/TestNewMGDeploymentTemplateSpec.json b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.DeploymentTests/TestNewMGDeploymentTemplateSpec.json
index 1db4947e6e9c..db1d62933081 100644
--- a/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.DeploymentTests/TestNewMGDeploymentTemplateSpec.json
+++ b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.DeploymentTests/TestNewMGDeploymentTemplateSpec.json
@@ -1,7 +1,7 @@
{
"Entries": [
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/ps8749?api-version=2018-03-01-preview",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/ps8749?api-version=2021-04-01",
"EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL3BzODc0OT9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
"RequestMethod": "PUT",
"RequestBody": "{\r\n \"name\": \"ps8749\",\r\n \"properties\": {\r\n \"details\": {\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/AzDeploymentsPSTest\"\r\n }\r\n }\r\n }\r\n}",
@@ -36,7 +36,7 @@
"no-cache"
],
"Location": [
- "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/ps8749?api-version=2018-03-01-preview"
+ "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/ps8749?api-version=2021-04-01"
],
"Retry-After": [
"0"
@@ -88,7 +88,7 @@
"StatusCode": 202
},
{
- "RequestUri": "/providers/Microsoft.Management/operationResults/create/managementGroups/ps8749?api-version=2018-03-01-preview",
+ "RequestUri": "/providers/Microsoft.Management/operationResults/create/managementGroups/ps8749?api-version=2021-04-01",
"EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2NyZWF0ZS9tYW5hZ2VtZW50R3JvdXBzL3BzODc0OT9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
"RequestMethod": "GET",
"RequestBody": "",
@@ -111,7 +111,7 @@
"no-cache"
],
"Location": [
- "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/ps8749?api-version=2018-03-01-preview"
+ "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/ps8749?api-version=2021-04-01"
],
"Retry-After": [
"0"
@@ -160,7 +160,7 @@
"StatusCode": 202
},
{
- "RequestUri": "/providers/Microsoft.Management/operationResults/create/managementGroups/ps8749?api-version=2018-03-01-preview",
+ "RequestUri": "/providers/Microsoft.Management/operationResults/create/managementGroups/ps8749?api-version=2021-04-01",
"EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2NyZWF0ZS9tYW5hZ2VtZW50R3JvdXBzL3BzODc0OT9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
"RequestMethod": "GET",
"RequestBody": "",
@@ -183,7 +183,7 @@
"no-cache"
],
"Location": [
- "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/ps8749?api-version=2018-03-01-preview"
+ "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/ps8749?api-version=2021-04-01"
],
"Retry-After": [
"0"
@@ -232,7 +232,7 @@
"StatusCode": 202
},
{
- "RequestUri": "/providers/Microsoft.Management/operationResults/create/managementGroups/ps8749?api-version=2018-03-01-preview",
+ "RequestUri": "/providers/Microsoft.Management/operationResults/create/managementGroups/ps8749?api-version=2021-04-01",
"EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2NyZWF0ZS9tYW5hZ2VtZW50R3JvdXBzL3BzODc0OT9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
"RequestMethod": "GET",
"RequestBody": "",
@@ -2125,7 +2125,7 @@
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/ps8749?api-version=2018-03-01-preview",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/ps8749?api-version=2021-04-01",
"EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL3BzODc0OT9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
"RequestMethod": "DELETE",
"RequestBody": "",
@@ -2154,7 +2154,7 @@
"no-cache"
],
"Location": [
- "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/ps8749?api-version=2018-03-01-preview"
+ "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/ps8749?api-version=2021-04-01"
],
"Retry-After": [
"0"
@@ -2206,7 +2206,7 @@
"StatusCode": 202
},
{
- "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/ps8749?api-version=2018-03-01-preview",
+ "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/ps8749?api-version=2021-04-01",
"EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL3BzODc0OT9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
"RequestMethod": "GET",
"RequestBody": "",
@@ -2278,7 +2278,7 @@
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/ps8749?api-version=2018-03-01-preview",
+ "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/ps8749?api-version=2021-04-01",
"EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL3BzODc0OT9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
"RequestMethod": "GET",
"RequestBody": "",
diff --git a/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestCheckNameAvailability.json b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestCheckNameAvailability.json
new file mode 100644
index 000000000000..e83bf86d3f30
--- /dev/null
+++ b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestCheckNameAvailability.json
@@ -0,0 +1,89 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/providers/Microsoft.Management/checkNameAvailability?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9jaGVja05hbWVBdmFpbGFiaWxpdHk/YXBpLXZlcnNpb249MjAxOC0wMy0wMS1wcmV2aWV3",
+ "RequestMethod": "POST",
+ "RequestBody": "{\r\n \"name\": \"TestMG\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\"\r\n}",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "3781e160-fa72-41f0-a0ee-8b43534f00bb"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/5.0.1422.5710",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "87"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "westcentralus:b296d6fb-dca0-4369-aee8-6751329505a7"
+ ],
+ "x-ba-restapi": [
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "b296d6fb-dca0-4369-aee8-6751329505a7"
+ ],
+ "request-id": [
+ "b296d6fb-dca0-4369-aee8-6751329505a7"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1199"
+ ],
+ "x-ms-correlation-request-id": [
+ "b296d6fb-dca0-4369-aee8-6751329505a7"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTCENTRALUS:20220303T174004Z:b296d6fb-dca0-4369-aee8-6751329505a7"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Thu, 03 Mar 2022 17:40:04 GMT"
+ ],
+ "Content-Length": [
+ "22"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Retry-After": [
+ "0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"nameAvailable\": true\r\n}",
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de"
+ }
+}
\ No newline at end of file
diff --git a/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestCheckNameAvailabilityFalse.json b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestCheckNameAvailabilityFalse.json
new file mode 100644
index 000000000000..26b417be2b7d
--- /dev/null
+++ b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestCheckNameAvailabilityFalse.json
@@ -0,0 +1,89 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/providers/Microsoft.Management/checkNameAvailability?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9jaGVja05hbWVBdmFpbGFiaWxpdHk/YXBpLXZlcnNpb249MjAyMS0wNC0wMQ==",
+ "RequestMethod": "POST",
+ "RequestBody": "{\r\n \"name\": \"testMG3\",\r\n \"type\": \"Microsoft.Management/managementGroups\"\r\n}",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "7e9f2a52-8864-4741-80f4-720eadc91c52"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "77"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "westcentralus:f3e46b8e-59ae-4d96-932e-f69f5444ed7c"
+ ],
+ "x-ba-restapi": [
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "f3e46b8e-59ae-4d96-932e-f69f5444ed7c"
+ ],
+ "request-id": [
+ "f3e46b8e-59ae-4d96-932e-f69f5444ed7c"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1199"
+ ],
+ "x-ms-correlation-request-id": [
+ "f3e46b8e-59ae-4d96-932e-f69f5444ed7c"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTCENTRALUS:20220418T213350Z:f3e46b8e-59ae-4d96-932e-f69f5444ed7c"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Mon, 18 Apr 2022 21:33:49 GMT"
+ ],
+ "Content-Length": [
+ "109"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Retry-After": [
+ "0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"nameAvailable\": false,\r\n \"reason\": \"AlreadyExists\",\r\n \"message\": \"The group with the specified name already exists\"\r\n}",
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de"
+ }
+}
\ No newline at end of file
diff --git a/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestCheckNameAvailabilityTrue.json b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestCheckNameAvailabilityTrue.json
new file mode 100644
index 000000000000..8afceff02e3b
--- /dev/null
+++ b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestCheckNameAvailabilityTrue.json
@@ -0,0 +1,89 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/providers/Microsoft.Management/checkNameAvailability?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9jaGVja05hbWVBdmFpbGFiaWxpdHk/YXBpLXZlcnNpb249MjAyMS0wNC0wMQ==",
+ "RequestMethod": "POST",
+ "RequestBody": "{\r\n \"name\": \"TestMG\",\r\n \"type\": \"Microsoft.Management/managementGroups\"\r\n}",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "84124666-3066-459b-ac13-fe511b3abe3b"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "76"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "westcentralus:90e85408-ae04-4a48-98db-d1e4d176f706"
+ ],
+ "x-ba-restapi": [
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "90e85408-ae04-4a48-98db-d1e4d176f706"
+ ],
+ "request-id": [
+ "90e85408-ae04-4a48-98db-d1e4d176f706"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1199"
+ ],
+ "x-ms-correlation-request-id": [
+ "90e85408-ae04-4a48-98db-d1e4d176f706"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTCENTRALUS:20220418T213347Z:90e85408-ae04-4a48-98db-d1e4d176f706"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Mon, 18 Apr 2022 21:33:46 GMT"
+ ],
+ "Content-Length": [
+ "22"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Retry-After": [
+ "0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"nameAvailable\": true\r\n}",
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de"
+ }
+}
\ No newline at end of file
diff --git a/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestCheckNameWithInvalidCharacters.json b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestCheckNameWithInvalidCharacters.json
new file mode 100644
index 000000000000..6012c1badaab
--- /dev/null
+++ b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestCheckNameWithInvalidCharacters.json
@@ -0,0 +1,89 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/providers/Microsoft.Management/checkNameAvailability?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9jaGVja05hbWVBdmFpbGFiaWxpdHk/YXBpLXZlcnNpb249MjAyMS0wNC0wMQ==",
+ "RequestMethod": "POST",
+ "RequestBody": "{\r\n \"name\": \"testMG3!\",\r\n \"type\": \"Microsoft.Management/managementGroups\"\r\n}",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "1937d2ef-a498-424b-a24f-0cab8b714371"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "78"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "westcentralus:b384cdd5-fdcf-4579-9d91-31796004614a"
+ ],
+ "x-ba-restapi": [
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "b384cdd5-fdcf-4579-9d91-31796004614a"
+ ],
+ "request-id": [
+ "b384cdd5-fdcf-4579-9d91-31796004614a"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1199"
+ ],
+ "x-ms-correlation-request-id": [
+ "b384cdd5-fdcf-4579-9d91-31796004614a"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTCENTRALUS:20220418T213214Z:b384cdd5-fdcf-4579-9d91-31796004614a"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Mon, 18 Apr 2022 21:32:14 GMT"
+ ],
+ "Content-Length": [
+ "194"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Retry-After": [
+ "0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"nameAvailable\": false,\r\n \"reason\": \"Invalid\",\r\n \"message\": \"The provided management group name 'testMG3!' has these invalid characters: '!'. The name can only be an ASCII letter, digit, -, _, (, ), .\"\r\n}",
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de"
+ }
+}
\ No newline at end of file
diff --git a/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestGetEntities.json b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestGetEntities.json
new file mode 100644
index 000000000000..189f00047506
--- /dev/null
+++ b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestGetEntities.json
@@ -0,0 +1,86 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/providers/Microsoft.Management/getEntities?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9nZXRFbnRpdGllcz9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
+ "RequestMethod": "POST",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "9d4e584a-16e3-4434-9ad9-277ee62208fc"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "westcentralus:d5940865-660f-49a3-a57e-5f9d62b6e558"
+ ],
+ "x-ba-restapi": [
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "d5940865-660f-49a3-a57e-5f9d62b6e558"
+ ],
+ "request-id": [
+ "d5940865-660f-49a3-a57e-5f9d62b6e558"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1199"
+ ],
+ "x-ms-correlation-request-id": [
+ "d5940865-660f-49a3-a57e-5f9d62b6e558"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTCENTRALUS:20220418T213243Z:d5940865-660f-49a3-a57e-5f9d62b6e558"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Mon, 18 Apr 2022 21:32:42 GMT"
+ ],
+ "Content-Length": [
+ "13903"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Retry-After": [
+ "0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"count\": 24,\r\n \"value\": [\r\n {\r\n \"name\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"numberOfChildren\": 18,\r\n \"numberOfChildGroups\": 17,\r\n \"numberOfDescendants\": 23,\r\n \"displayName\": \"Root Management Group\",\r\n \"parentDisplayNameChain\": [],\r\n \"parent\": {\r\n \"id\": null\r\n },\r\n \"parentNameChain\": [],\r\n \"inheritedPermissions\": \"delete\",\r\n \"permissions\": \"delete\"\r\n }\r\n },\r\n {\r\n \"name\": \"TestGroup1\",\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestGroup1\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"numberOfChildren\": 2,\r\n \"numberOfChildGroups\": 2,\r\n \"numberOfDescendants\": 3,\r\n \"displayName\": \"TestGroup1\",\r\n \"parentDisplayNameChain\": [\r\n \"Root Management Group\"\r\n ],\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0\"\r\n },\r\n \"parentNameChain\": [\r\n \"c7a87cda-9a66-4920-b0f8-869baa04efe0\"\r\n ],\r\n \"inheritedPermissions\": \"delete\",\r\n \"permissions\": \"delete\"\r\n }\r\n },\r\n {\r\n \"name\": \"testMG1\",\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/testMG1\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"numberOfChildren\": 1,\r\n \"numberOfChildGroups\": 1,\r\n \"numberOfDescendants\": 1,\r\n \"displayName\": \"testMG1\",\r\n \"parentDisplayNameChain\": [\r\n \"Root Management Group\"\r\n ],\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0\"\r\n },\r\n \"parentNameChain\": [\r\n \"c7a87cda-9a66-4920-b0f8-869baa04efe0\"\r\n ],\r\n \"inheritedPermissions\": \"delete\",\r\n \"permissions\": \"noaccess\"\r\n }\r\n },\r\n {\r\n \"name\": \"TestPSGetGroup1\",\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup1\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"numberOfChildren\": 1,\r\n \"numberOfChildGroups\": 1,\r\n \"numberOfDescendants\": 1,\r\n \"displayName\": \"TestPSGetGroup1\",\r\n \"parentDisplayNameChain\": [\r\n \"Root Management Group\"\r\n ],\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0\"\r\n },\r\n \"parentNameChain\": [\r\n \"c7a87cda-9a66-4920-b0f8-869baa04efe0\"\r\n ],\r\n \"inheritedPermissions\": \"delete\",\r\n \"permissions\": \"delete\"\r\n }\r\n },\r\n {\r\n \"name\": \"5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de\",\r\n \"id\": \"/subscriptions/5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de\",\r\n \"type\": \"/subscriptions\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"numberOfChildren\": 0,\r\n \"numberOfChildGroups\": 0,\r\n \"numberOfDescendants\": 0,\r\n \"displayName\": \"Visual Studio Enterprise Subscription\",\r\n \"parentDisplayNameChain\": [\r\n \"Root Management Group\"\r\n ],\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0\"\r\n },\r\n \"parentNameChain\": [\r\n \"c7a87cda-9a66-4920-b0f8-869baa04efe0\"\r\n ],\r\n \"inheritedPermissions\": \"delete\",\r\n \"permissions\": \"noaccess\"\r\n }\r\n },\r\n {\r\n \"name\": \"thomasdolanTestMG\",\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/thomasdolanTestMG\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"numberOfChildren\": 0,\r\n \"numberOfChildGroups\": 0,\r\n \"numberOfDescendants\": 0,\r\n \"displayName\": \"thomasdolanTestMG\",\r\n \"parentDisplayNameChain\": [\r\n \"Root Management Group\"\r\n ],\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0\"\r\n },\r\n \"parentNameChain\": [\r\n \"c7a87cda-9a66-4920-b0f8-869baa04efe0\"\r\n ],\r\n \"inheritedPermissions\": \"delete\",\r\n \"permissions\": \"noaccess\"\r\n }\r\n },\r\n {\r\n \"name\": \"testMG3\",\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/testMG3\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"numberOfChildren\": 0,\r\n \"numberOfChildGroups\": 0,\r\n \"numberOfDescendants\": 0,\r\n \"displayName\": \"testMG3\",\r\n \"parentDisplayNameChain\": [\r\n \"Root Management Group\"\r\n ],\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0\"\r\n },\r\n \"parentNameChain\": [\r\n \"c7a87cda-9a66-4920-b0f8-869baa04efe0\"\r\n ],\r\n \"inheritedPermissions\": \"delete\",\r\n \"permissions\": \"noaccess\"\r\n }\r\n },\r\n {\r\n \"name\": \"testMG4\",\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/testMG4\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"numberOfChildren\": 0,\r\n \"numberOfChildGroups\": 0,\r\n \"numberOfDescendants\": 0,\r\n \"displayName\": \"testMG4\",\r\n \"parentDisplayNameChain\": [\r\n \"Root Management Group\"\r\n ],\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0\"\r\n },\r\n \"parentNameChain\": [\r\n \"c7a87cda-9a66-4920-b0f8-869baa04efe0\"\r\n ],\r\n \"inheritedPermissions\": \"delete\",\r\n \"permissions\": \"noaccess\"\r\n }\r\n },\r\n {\r\n \"name\": \"azure-cli-managementb4osamcwmj\",\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/azure-cli-managementb4osamcwmj\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"numberOfChildren\": 0,\r\n \"numberOfChildGroups\": 0,\r\n \"numberOfDescendants\": 0,\r\n \"displayName\": \"azure-cli-managementb4osamcwmj\",\r\n \"parentDisplayNameChain\": [\r\n \"Root Management Group\"\r\n ],\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0\"\r\n },\r\n \"parentNameChain\": [\r\n \"c7a87cda-9a66-4920-b0f8-869baa04efe0\"\r\n ],\r\n \"inheritedPermissions\": \"delete\",\r\n \"permissions\": \"noaccess\"\r\n }\r\n },\r\n {\r\n \"name\": \"TestSubGroup\",\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestSubGroup\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"numberOfChildren\": 0,\r\n \"numberOfChildGroups\": 0,\r\n \"numberOfDescendants\": 0,\r\n \"displayName\": \"TestSubGroup\",\r\n \"parentDisplayNameChain\": [\r\n \"Root Management Group\"\r\n ],\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0\"\r\n },\r\n \"parentNameChain\": [\r\n \"c7a87cda-9a66-4920-b0f8-869baa04efe0\"\r\n ],\r\n \"inheritedPermissions\": \"delete\",\r\n \"permissions\": \"delete\"\r\n }\r\n },\r\n {\r\n \"name\": \"TestSubGroup1\",\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestSubGroup1\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"numberOfChildren\": 0,\r\n \"numberOfChildGroups\": 0,\r\n \"numberOfDescendants\": 0,\r\n \"displayName\": \"TestSubGroup1\",\r\n \"parentDisplayNameChain\": [\r\n \"Root Management Group\"\r\n ],\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0\"\r\n },\r\n \"parentNameChain\": [\r\n \"c7a87cda-9a66-4920-b0f8-869baa04efe0\"\r\n ],\r\n \"inheritedPermissions\": \"delete\",\r\n \"permissions\": \"delete\"\r\n }\r\n },\r\n {\r\n \"name\": \"defaultMG\",\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/defaultMG\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"numberOfChildren\": 0,\r\n \"numberOfChildGroups\": 0,\r\n \"numberOfDescendants\": 0,\r\n \"displayName\": \"defaultMG\",\r\n \"parentDisplayNameChain\": [\r\n \"Root Management Group\"\r\n ],\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0\"\r\n },\r\n \"parentNameChain\": [\r\n \"c7a87cda-9a66-4920-b0f8-869baa04efe0\"\r\n ],\r\n \"inheritedPermissions\": \"delete\",\r\n \"permissions\": \"delete\"\r\n }\r\n },\r\n {\r\n \"name\": \"TestPSNewGroup\",\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSNewGroup\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"numberOfChildren\": 0,\r\n \"numberOfChildGroups\": 0,\r\n \"numberOfDescendants\": 0,\r\n \"displayName\": \"TestPSNewGroup\",\r\n \"parentDisplayNameChain\": [\r\n \"Root Management Group\"\r\n ],\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0\"\r\n },\r\n \"parentNameChain\": [\r\n \"c7a87cda-9a66-4920-b0f8-869baa04efe0\"\r\n ],\r\n \"inheritedPermissions\": \"delete\",\r\n \"permissions\": \"delete\"\r\n }\r\n },\r\n {\r\n \"name\": \"TestPSUpdateGroupParent2\",\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSUpdateGroupParent2\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"numberOfChildren\": 0,\r\n \"numberOfChildGroups\": 0,\r\n \"numberOfDescendants\": 0,\r\n \"displayName\": \"TestPSUpdateGroupParent2\",\r\n \"parentDisplayNameChain\": [\r\n \"Root Management Group\"\r\n ],\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0\"\r\n },\r\n \"parentNameChain\": [\r\n \"c7a87cda-9a66-4920-b0f8-869baa04efe0\"\r\n ],\r\n \"inheritedPermissions\": \"delete\",\r\n \"permissions\": \"delete\"\r\n }\r\n },\r\n {\r\n \"name\": \"TestPSUpdateGroup1\",\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup1\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"numberOfChildren\": 0,\r\n \"numberOfChildGroups\": 0,\r\n \"numberOfDescendants\": 0,\r\n \"displayName\": \"TestPSUpdateGroup1\",\r\n \"parentDisplayNameChain\": [\r\n \"Root Management Group\"\r\n ],\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0\"\r\n },\r\n \"parentNameChain\": [\r\n \"c7a87cda-9a66-4920-b0f8-869baa04efe0\"\r\n ],\r\n \"inheritedPermissions\": \"delete\",\r\n \"permissions\": \"delete\"\r\n }\r\n },\r\n {\r\n \"name\": \"TestPSRemoveGroup\",\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSRemoveGroup\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"numberOfChildren\": 0,\r\n \"numberOfChildGroups\": 0,\r\n \"numberOfDescendants\": 0,\r\n \"displayName\": \"TestPSRemoveGroup\",\r\n \"parentDisplayNameChain\": [\r\n \"Root Management Group\"\r\n ],\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0\"\r\n },\r\n \"parentNameChain\": [\r\n \"c7a87cda-9a66-4920-b0f8-869baa04efe0\"\r\n ],\r\n \"inheritedPermissions\": \"delete\",\r\n \"permissions\": \"delete\"\r\n }\r\n },\r\n {\r\n \"name\": \"TestPSNewGroup2\",\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSNewGroup2\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"numberOfChildren\": 0,\r\n \"numberOfChildGroups\": 0,\r\n \"numberOfDescendants\": 0,\r\n \"displayName\": \"TestDisplayName\",\r\n \"parentDisplayNameChain\": [\r\n \"Root Management Group\"\r\n ],\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0\"\r\n },\r\n \"parentNameChain\": [\r\n \"c7a87cda-9a66-4920-b0f8-869baa04efe0\"\r\n ],\r\n \"inheritedPermissions\": \"delete\",\r\n \"permissions\": \"delete\"\r\n }\r\n },\r\n {\r\n \"name\": \"TestParent5\",\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestParent5\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"numberOfChildren\": 0,\r\n \"numberOfChildGroups\": 0,\r\n \"numberOfDescendants\": 0,\r\n \"displayName\": \"TestParent5\",\r\n \"parentDisplayNameChain\": [\r\n \"Root Management Group\"\r\n ],\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0\"\r\n },\r\n \"parentNameChain\": [\r\n \"c7a87cda-9a66-4920-b0f8-869baa04efe0\"\r\n ],\r\n \"inheritedPermissions\": \"delete\",\r\n \"permissions\": \"delete\"\r\n }\r\n },\r\n {\r\n \"name\": \"TestParent4\",\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestParent4\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"numberOfChildren\": 0,\r\n \"numberOfChildGroups\": 0,\r\n \"numberOfDescendants\": 0,\r\n \"displayName\": \"TestParent4\",\r\n \"parentDisplayNameChain\": [\r\n \"Root Management Group\"\r\n ],\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0\"\r\n },\r\n \"parentNameChain\": [\r\n \"c7a87cda-9a66-4920-b0f8-869baa04efe0\"\r\n ],\r\n \"inheritedPermissions\": \"delete\",\r\n \"permissions\": \"delete\"\r\n }\r\n },\r\n {\r\n \"name\": \"TestGroup1Child1\",\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestGroup1Child1\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"numberOfChildren\": 1,\r\n \"numberOfChildGroups\": 1,\r\n \"numberOfDescendants\": 1,\r\n \"displayName\": \"TestGroup1->Child1\",\r\n \"parentDisplayNameChain\": [\r\n \"Root Management Group\",\r\n \"TestGroup1\"\r\n ],\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestGroup1\"\r\n },\r\n \"parentNameChain\": [\r\n \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"TestGroup1\"\r\n ],\r\n \"inheritedPermissions\": \"delete\",\r\n \"permissions\": \"delete\"\r\n }\r\n },\r\n {\r\n \"name\": \"TestGroup1Child2\",\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestGroup1Child2\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"numberOfChildren\": 0,\r\n \"numberOfChildGroups\": 0,\r\n \"numberOfDescendants\": 0,\r\n \"displayName\": \"TestGroup1->Child2\",\r\n \"parentDisplayNameChain\": [\r\n \"Root Management Group\",\r\n \"TestGroup1\"\r\n ],\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestGroup1\"\r\n },\r\n \"parentNameChain\": [\r\n \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"TestGroup1\"\r\n ],\r\n \"inheritedPermissions\": \"delete\",\r\n \"permissions\": \"delete\"\r\n }\r\n },\r\n {\r\n \"name\": \"testMG2\",\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/testMG2\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"numberOfChildren\": 0,\r\n \"numberOfChildGroups\": 0,\r\n \"numberOfDescendants\": 0,\r\n \"displayName\": \"testMG2\",\r\n \"parentDisplayNameChain\": [\r\n \"Root Management Group\",\r\n \"testMG1\"\r\n ],\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/testMG1\"\r\n },\r\n \"parentNameChain\": [\r\n \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"testMG1\"\r\n ],\r\n \"inheritedPermissions\": \"delete\",\r\n \"permissions\": \"noaccess\"\r\n }\r\n },\r\n {\r\n \"name\": \"TestPSGetGroup2\",\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup2\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"numberOfChildren\": 0,\r\n \"numberOfChildGroups\": 0,\r\n \"numberOfDescendants\": 0,\r\n \"displayName\": \"TestPSGetGroup2\",\r\n \"parentDisplayNameChain\": [\r\n \"Root Management Group\",\r\n \"TestPSGetGroup1\"\r\n ],\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup1\"\r\n },\r\n \"parentNameChain\": [\r\n \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"TestPSGetGroup1\"\r\n ],\r\n \"inheritedPermissions\": \"delete\",\r\n \"permissions\": \"delete\"\r\n }\r\n },\r\n {\r\n \"name\": \"TestGroup1Child1Child1\",\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestGroup1Child1Child1\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"numberOfChildren\": 0,\r\n \"numberOfChildGroups\": 0,\r\n \"numberOfDescendants\": 0,\r\n \"displayName\": \"TestGroup1->Child1->Child1\",\r\n \"parentDisplayNameChain\": [\r\n \"Root Management Group\",\r\n \"TestGroup1\",\r\n \"TestGroup1->Child1\"\r\n ],\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestGroup1Child1\"\r\n },\r\n \"parentNameChain\": [\r\n \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"TestGroup1\",\r\n \"TestGroup1Child1\"\r\n ],\r\n \"inheritedPermissions\": \"delete\",\r\n \"permissions\": \"delete\"\r\n }\r\n }\r\n ]\r\n}",
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de"
+ }
+}
\ No newline at end of file
diff --git a/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestGetManagementGroup.json b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestGetManagementGroup.json
index 7b3615fdc82a..0b49112192cf 100644
--- a/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestGetManagementGroup.json
+++ b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestGetManagementGroup.json
@@ -1,232 +1,66 @@
{
"Entries": [
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSGetGroup1?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMT9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSGetGroup1?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMT9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
"RequestMethod": "PUT",
"RequestBody": "{\r\n \"name\": \"TestPSGetGroup1\",\r\n \"properties\": {\r\n \"details\": {\r\n \"parent\": {}\r\n }\r\n }\r\n}",
"RequestHeaders": {
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Content-Length": [
- "103"
- ],
"x-ms-client-request-id": [
- "95309894-c875-4210-8f39-1e57fabda28b"
+ "bf64c488-8068-4bc6-9740-7f1dfc9bf7d8"
],
"Cache-Control": [
"no-cache"
],
- "accept-language": [
+ "Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
- ]
- },
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup1\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup1\",\r\n \"status\": \"NotStarted\"\r\n}",
- "ResponseHeaders": {
- "Content-Length": [
- "178"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
],
"Content-Type": [
"application/json; charset=utf-8"
],
- "Expires": [
- "-1"
- ],
- "Pragma": [
- "no-cache"
- ],
- "Retry-After": [
- "0"
- ],
- "x-ms-request-id": [
- "eastus:97f8e263-3d63-4e13-926d-db92b96a1a07"
- ],
- "x-ba-restapi": [
- "1.0.3.795"
- ],
- "request-id": [
- "7e6cb395-b42a-49cf-a632-71726151c147"
- ],
- "x-ms-ratelimit-remaining-tenant-writes": [
- "1181"
- ],
- "x-ms-correlation-request-id": [
- "4789949d-ae00-40ea-a998-8954c6b2b15f"
- ],
- "x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194650Z:4789949d-ae00-40ea-a998-8954c6b2b15f"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "X-Content-Type-Options": [
- "nosniff"
- ],
- "Cache-Control": [
- "no-cache"
- ],
- "Date": [
- "Thu, 24 May 2018 19:46:50 GMT"
- ],
- "Location": [
- "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/operationResults/create/managementGroups/TestPSGetGroup1?api-version=2018-03-01-preview"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
- ],
- "X-Powered-By": [
- "ASP.NET"
- ]
- },
- "StatusCode": 202
- },
- {
- "RequestUri": "/providers/Microsoft.Management/operationResults/create/managementGroups/TestPSGetGroup1?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2NyZWF0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMT9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
- "RequestMethod": "GET",
- "RequestBody": "",
- "RequestHeaders": {
- "User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
- ]
- },
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup1\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup1\",\r\n \"status\": \"Succeeded\",\r\n \"properties\": {\r\n \"tenantId\": \"b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"displayName\": \"TestPSGetGroup1\",\r\n \"details\": {\r\n \"version\": 27,\r\n \"updatedTime\": \"2018-05-24T19:46:55.9025564Z\",\r\n \"updatedBy\": \"aef7ed39-6482-40be-a70c-8ec0669b0d04\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"name\": \"b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"displayName\": \"b1af47f1-138c-4ed2-8bba-119041b95450\"\r\n }\r\n }\r\n }\r\n}",
- "ResponseHeaders": {
"Content-Length": [
- "598"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
- ],
- "Pragma": [
- "no-cache"
- ],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14945"
- ],
- "x-ms-request-id": [
- "eastus:9ef9f138-31ef-40bf-a0f1-322124bbc31c"
- ],
- "x-ba-restapi": [
- "1.0.3.795"
- ],
- "request-id": [
- "60496a10-f67f-4a69-937b-15f6c7ee0dd7"
- ],
- "x-ms-correlation-request-id": [
- "c4cec09d-5360-4946-a0af-fdb10175fb6e"
- ],
- "x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194701Z:c4cec09d-5360-4946-a0af-fdb10175fb6e"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "X-Content-Type-Options": [
- "nosniff"
- ],
- "Cache-Control": [
- "no-cache"
- ],
- "Date": [
- "Thu, 24 May 2018 19:47:00 GMT"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
- ],
- "X-Powered-By": [
- "ASP.NET"
- ],
- "Retry-After": [
- "0"
+ "103"
]
},
- "StatusCode": 200
- },
- {
- "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSGetGroup2?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
- "RequestMethod": "PUT",
- "RequestBody": "{\r\n \"name\": \"TestPSGetGroup2\",\r\n \"properties\": {\r\n \"details\": {\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup1\"\r\n }\r\n }\r\n }\r\n}",
- "RequestHeaders": {
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Content-Length": [
- "193"
- ],
- "x-ms-client-request-id": [
- "b061783f-3efa-4361-ab2d-cba682a60eb5"
- ],
+ "ResponseHeaders": {
"Cache-Control": [
"no-cache"
],
- "accept-language": [
- "en-US"
- ],
- "User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
- ]
- },
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup2\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup2\",\r\n \"status\": \"NotStarted\"\r\n}",
- "ResponseHeaders": {
- "Content-Length": [
- "178"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
- ],
"Pragma": [
"no-cache"
],
- "Retry-After": [
- "0"
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "59"
],
"x-ms-request-id": [
- "eastus:9493ec55-06d3-4996-971c-f43d17a8b20e"
+ "westus:28478f48-033c-4b7f-99f9-5f066a1305ae"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "28478f48-033c-4b7f-99f9-5f066a1305ae"
],
"request-id": [
- "8c481626-0a98-4573-9507-75d1e3726a72"
+ "28478f48-033c-4b7f-99f9-5f066a1305ae"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
],
"x-ms-ratelimit-remaining-tenant-writes": [
- "1180"
+ "1199"
],
"x-ms-correlation-request-id": [
- "67e75aae-db5a-4402-862c-f45067c380c5"
+ "28478f48-033c-4b7f-99f9-5f066a1305ae"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194704Z:67e75aae-db5a-4402-862c-f45067c380c5"
+ "WESTUS:20220418T213425Z:28478f48-033c-4b7f-99f9-5f066a1305ae"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -234,44 +68,11 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:47:04 GMT"
- ],
- "Location": [
- "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/operationResults/create/managementGroups/TestPSGetGroup2?api-version=2018-03-01-preview"
+ "Mon, 18 Apr 2022 21:34:25 GMT"
],
- "Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
- ],
- "X-Powered-By": [
- "ASP.NET"
- ]
- },
- "StatusCode": 202
- },
- {
- "RequestUri": "/providers/Microsoft.Management/operationResults/create/managementGroups/TestPSGetGroup2?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2NyZWF0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
- "RequestMethod": "GET",
- "RequestBody": "",
- "RequestHeaders": {
- "User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
- ]
- },
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup2\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup2\",\r\n \"status\": \"Succeeded\",\r\n \"properties\": {\r\n \"tenantId\": \"b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"displayName\": \"TestPSGetGroup2\",\r\n \"details\": {\r\n \"version\": 27,\r\n \"updatedTime\": \"2018-05-24T19:47:10.9565049Z\",\r\n \"updatedBy\": \"aef7ed39-6482-40be-a70c-8ec0669b0d04\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup1\",\r\n \"name\": \"TestPSGetGroup1\",\r\n \"displayName\": \"TestPSGetGroup1\"\r\n }\r\n }\r\n }\r\n}",
- "ResponseHeaders": {
"Content-Length": [
- "535"
+ "551"
],
"Content-Type": [
"application/json; charset=utf-8"
@@ -279,272 +80,74 @@
"Expires": [
"-1"
],
- "Pragma": [
- "no-cache"
- ],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14944"
- ],
- "x-ms-request-id": [
- "eastus:bdaeb67a-e7b8-4bd5-9ef9-f221c15549a6"
- ],
- "x-ba-restapi": [
- "1.0.3.795"
- ],
- "request-id": [
- "b637d3f0-51d9-4e27-a59a-313cc0dce1d9"
- ],
- "x-ms-correlation-request-id": [
- "0f6ac2f9-5791-4102-ad2b-8b97fe0c56eb"
- ],
- "x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194715Z:0f6ac2f9-5791-4102-ad2b-8b97fe0c56eb"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "X-Content-Type-Options": [
- "nosniff"
- ],
- "Cache-Control": [
- "no-cache"
- ],
- "Date": [
- "Thu, 24 May 2018 19:47:14 GMT"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
- ],
- "X-Powered-By": [
- "ASP.NET"
- ],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup1\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup1\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"TestPSGetGroup1\",\r\n \"details\": {\r\n \"version\": 19,\r\n \"updatedTime\": \"2022-04-18T21:29:45.2920019Z\",\r\n \"updatedBy\": \"9e41f384-0aa9-41bc-a29d-6d956cd8eadb\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"name\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"Root Management Group\"\r\n }\r\n }\r\n }\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSGetGroup2?api-version=2018-03-01-preview&$recurse=false",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXcmJHJlY3Vyc2U9ZmFsc2U=",
- "RequestMethod": "GET",
- "RequestBody": "",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSGetGroup2?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMj9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"name\": \"TestPSGetGroup2\",\r\n \"properties\": {\r\n \"details\": {\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup1\"\r\n }\r\n }\r\n }\r\n}",
"RequestHeaders": {
"x-ms-client-request-id": [
- "3e763fdc-e11b-43bc-aed8-e154ed12b739"
+ "f197f49f-0cc7-4b29-bb0a-c128501ccde0"
],
"Cache-Control": [
"no-cache"
],
- "accept-language": [
+ "Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
- ]
- },
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup2\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup2\",\r\n \"properties\": {\r\n \"tenantId\": \"b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"displayName\": \"TestPSGetGroup2\",\r\n \"details\": {\r\n \"version\": 27,\r\n \"updatedTime\": \"2018-05-24T19:47:10.9565049Z\",\r\n \"updatedBy\": \"aef7ed39-6482-40be-a70c-8ec0669b0d04\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup1\",\r\n \"name\": \"TestPSGetGroup1\",\r\n \"displayName\": \"TestPSGetGroup1\"\r\n }\r\n }\r\n }\r\n}",
- "ResponseHeaders": {
- "Content-Length": [
- "514"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
],
"Content-Type": [
"application/json; charset=utf-8"
],
- "Expires": [
- "-1"
- ],
- "Pragma": [
- "no-cache"
- ],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14943"
- ],
- "x-ms-request-id": [
- "eastus:a9212fc5-b656-4d50-b769-cce317d9b243"
- ],
- "x-ba-restapi": [
- "1.0.3.795"
- ],
- "request-id": [
- "99ee636a-ec21-4cf9-8ac5-cd2fb2f3abcd"
- ],
- "x-ms-correlation-request-id": [
- "105581c8-c409-4966-815b-c479a4e51cde"
- ],
- "x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194716Z:105581c8-c409-4966-815b-c479a4e51cde"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "X-Content-Type-Options": [
- "nosniff"
- ],
- "Cache-Control": [
- "no-cache"
- ],
- "Date": [
- "Thu, 24 May 2018 19:47:16 GMT"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
- ],
- "X-Powered-By": [
- "ASP.NET"
- ],
- "Retry-After": [
- "0"
+ "Content-Length": [
+ "193"
]
},
- "StatusCode": 200
- },
- {
- "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSGetGroup2?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
- "RequestMethod": "DELETE",
- "RequestBody": "",
- "RequestHeaders": {
- "x-ms-client-request-id": [
- "34cbbcea-0337-4fe4-8235-374acc62b13b"
- ],
+ "ResponseHeaders": {
"Cache-Control": [
"no-cache"
],
- "accept-language": [
- "en-US"
- ],
- "User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
- ]
- },
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup2\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup2\",\r\n \"status\": \"NotStarted\"\r\n}",
- "ResponseHeaders": {
- "Content-Length": [
- "178"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
- ],
"Pragma": [
"no-cache"
],
- "Retry-After": [
- "0"
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "59"
],
"x-ms-request-id": [
- "eastus:8b56e260-3a5b-41d9-b80a-f701302be9fc"
+ "westus:11d21796-0101-4039-8358-2965a71c7526"
],
"x-ba-restapi": [
- "1.0.3.795"
- ],
- "request-id": [
- "56c7fa80-642e-47dd-b3bb-30609f50face"
- ],
- "x-ms-ratelimit-remaining-tenant-writes": [
- "1179"
- ],
- "x-ms-correlation-request-id": [
- "bba18515-0967-48e4-8815-0274df40f762"
+ "0.0.0.0"
],
- "x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194720Z:bba18515-0967-48e4-8815-0274df40f762"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "X-Content-Type-Options": [
- "nosniff"
+ "client-request-id": [
+ "11d21796-0101-4039-8358-2965a71c7526"
],
- "Cache-Control": [
- "no-cache"
- ],
- "Date": [
- "Thu, 24 May 2018 19:47:20 GMT"
- ],
- "Location": [
- "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSGetGroup2?api-version=2018-03-01-preview"
+ "request-id": [
+ "11d21796-0101-4039-8358-2965a71c7526"
],
"Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
- ],
- "X-Powered-By": [
- "ASP.NET"
- ]
- },
- "StatusCode": 202
- },
- {
- "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSGetGroup2?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
- "RequestMethod": "GET",
- "RequestBody": "",
- "RequestHeaders": {
- "User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
- ]
- },
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup2\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup2\",\r\n \"status\": \"Succeeded\"\r\n}",
- "ResponseHeaders": {
- "Content-Length": [
- "177"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
- ],
- "Pragma": [
- "no-cache"
+ "Microsoft-HTTPAPI/2.0"
],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14942"
- ],
- "x-ms-request-id": [
- "eastus:51bc54d5-61db-4310-bcd0-6fb673d5b029"
- ],
- "x-ba-restapi": [
- "1.0.3.795"
- ],
- "request-id": [
- "c1dce5fd-bae5-45de-967e-25a700a44a5f"
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1199"
],
"x-ms-correlation-request-id": [
- "4f61dcfd-e32e-4307-be27-e5b36dc5473b"
+ "11d21796-0101-4039-8358-2965a71c7526"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194730Z:4f61dcfd-e32e-4307-be27-e5b36dc5473b"
+ "WESTUS:20220418T213426Z:11d21796-0101-4039-8358-2965a71c7526"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -552,44 +155,11 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:47:30 GMT"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Mon, 18 Apr 2022 21:34:25 GMT"
],
- "X-Powered-By": [
- "ASP.NET"
- ],
- "Retry-After": [
- "0"
- ]
- },
- "StatusCode": 200
- },
- {
- "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSGetGroup2?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
- "RequestMethod": "GET",
- "RequestBody": "",
- "RequestHeaders": {
- "User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
- ]
- },
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup2\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup2\",\r\n \"status\": \"Succeeded\"\r\n}",
- "ResponseHeaders": {
"Content-Length": [
- "177"
+ "503"
],
"Content-Type": [
"application/json; charset=utf-8"
@@ -597,188 +167,68 @@
"Expires": [
"-1"
],
- "Pragma": [
- "no-cache"
- ],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14941"
- ],
- "x-ms-request-id": [
- "eastus:7f8aa285-61bc-4f40-91a8-aba9ac8f259b"
- ],
- "x-ba-restapi": [
- "1.0.3.795"
- ],
- "request-id": [
- "3a06ab31-3c91-4e96-af99-e6f37eefcc72"
- ],
- "x-ms-correlation-request-id": [
- "43c23e69-7a3a-4b8b-a32f-c0bbd95ae7b4"
- ],
- "x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194731Z:43c23e69-7a3a-4b8b-a32f-c0bbd95ae7b4"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "X-Content-Type-Options": [
- "nosniff"
- ],
- "Cache-Control": [
- "no-cache"
- ],
- "Date": [
- "Thu, 24 May 2018 19:47:30 GMT"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
- ],
- "X-Powered-By": [
- "ASP.NET"
- ],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup2\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup2\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"TestPSGetGroup2\",\r\n \"details\": {\r\n \"version\": 18,\r\n \"updatedTime\": \"2022-04-18T21:31:44.3527852Z\",\r\n \"updatedBy\": \"9e41f384-0aa9-41bc-a29d-6d956cd8eadb\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup1\",\r\n \"name\": \"TestPSGetGroup1\",\r\n \"displayName\": \"TestPSGetGroup1\"\r\n }\r\n }\r\n }\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSGetGroup1?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMT9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
- "RequestMethod": "DELETE",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSGetGroup2?api-version=2021-04-01&$recurse=false",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMj9hcGktdmVyc2lvbj0yMDIxLTA0LTAxJiRyZWN1cnNlPWZhbHNl",
+ "RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
"x-ms-client-request-id": [
- "6ab928e4-ed18-4ec9-a0f7-94b085a978ee"
+ "fc16edc6-36ed-4571-8980-aab2b0e0a0e3"
],
"Cache-Control": [
"no-cache"
],
- "accept-language": [
+ "Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup1\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup1\",\r\n \"status\": \"NotStarted\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "178"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Retry-After": [
- "0"
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "59"
],
"x-ms-request-id": [
- "eastus:ff5682c1-3030-4fd5-80ba-1ff95fb0701a"
+ "westus:0968062c-8c97-458d-a704-e426a3417731"
],
"x-ba-restapi": [
- "1.0.3.795"
- ],
- "request-id": [
- "2623fe55-bddc-45f0-b2cc-3782b1e084c8"
- ],
- "x-ms-ratelimit-remaining-tenant-writes": [
- "1178"
- ],
- "x-ms-correlation-request-id": [
- "68da6764-e94d-45a7-9679-d3797e8fb0bb"
- ],
- "x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194734Z:68da6764-e94d-45a7-9679-d3797e8fb0bb"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "X-Content-Type-Options": [
- "nosniff"
+ "0.0.0.0"
],
- "Cache-Control": [
- "no-cache"
- ],
- "Date": [
- "Thu, 24 May 2018 19:47:34 GMT"
+ "client-request-id": [
+ "0968062c-8c97-458d-a704-e426a3417731"
],
- "Location": [
- "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSGetGroup1?api-version=2018-03-01-preview"
+ "request-id": [
+ "0968062c-8c97-458d-a704-e426a3417731"
],
"Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
- ],
- "X-Powered-By": [
- "ASP.NET"
- ]
- },
- "StatusCode": 202
- },
- {
- "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSGetGroup1?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMT9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
- "RequestMethod": "GET",
- "RequestBody": "",
- "RequestHeaders": {
- "User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
- ]
- },
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup1\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup1\",\r\n \"status\": \"Succeeded\"\r\n}",
- "ResponseHeaders": {
- "Content-Length": [
- "177"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
- ],
- "Pragma": [
- "no-cache"
- ],
- "Vary": [
- "Accept-Encoding"
+ "Microsoft-HTTPAPI/2.0"
],
"x-ms-ratelimit-remaining-tenant-reads": [
- "14940"
- ],
- "x-ms-request-id": [
- "eastus:1f2aab34-69bb-4c27-8d22-d8692826c06c"
- ],
- "x-ba-restapi": [
- "1.0.3.795"
- ],
- "request-id": [
- "b88d8911-1dfc-4cc6-b536-25072c2be05c"
+ "11999"
],
"x-ms-correlation-request-id": [
- "87a51554-f8b0-4fb4-b950-ca5e36382800"
+ "0968062c-8c97-458d-a704-e426a3417731"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194744Z:87a51554-f8b0-4fb4-b950-ca5e36382800"
+ "WESTUS:20220418T213427Z:0968062c-8c97-458d-a704-e426a3417731"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -786,44 +236,11 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:47:43 GMT"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Mon, 18 Apr 2022 21:34:26 GMT"
],
- "X-Powered-By": [
- "ASP.NET"
- ],
- "Retry-After": [
- "0"
- ]
- },
- "StatusCode": 200
- },
- {
- "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSGetGroup1?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMT9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
- "RequestMethod": "GET",
- "RequestBody": "",
- "RequestHeaders": {
- "User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
- ]
- },
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup1\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup1\",\r\n \"status\": \"Succeeded\"\r\n}",
- "ResponseHeaders": {
"Content-Length": [
- "177"
+ "503"
],
"Content-Type": [
"application/json; charset=utf-8"
@@ -831,62 +248,16 @@
"Expires": [
"-1"
],
- "Pragma": [
- "no-cache"
- ],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14939"
- ],
- "x-ms-request-id": [
- "eastus:39f06970-df82-49c8-9af9-da5ad1e51aac"
- ],
- "x-ba-restapi": [
- "1.0.3.795"
- ],
- "request-id": [
- "f1063b30-024c-4efc-81a3-deaa18dbbfa3"
- ],
- "x-ms-correlation-request-id": [
- "1b996397-43a2-4294-8542-6cd99ebb46b9"
- ],
- "x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194745Z:1b996397-43a2-4294-8542-6cd99ebb46b9"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "X-Content-Type-Options": [
- "nosniff"
- ],
- "Cache-Control": [
- "no-cache"
- ],
- "Date": [
- "Thu, 24 May 2018 19:47:44 GMT"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
- ],
- "X-Powered-By": [
- "ASP.NET"
- ],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup2\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup2\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"TestPSGetGroup2\",\r\n \"details\": {\r\n \"version\": 18,\r\n \"updatedTime\": \"2022-04-18T21:31:44.3527852Z\",\r\n \"updatedBy\": \"9e41f384-0aa9-41bc-a29d-6d956cd8eadb\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup1\",\r\n \"name\": \"TestPSGetGroup1\",\r\n \"displayName\": \"TestPSGetGroup1\"\r\n }\r\n }\r\n }\r\n}",
"StatusCode": 200
}
],
"Names": {},
"Variables": {
- "SubscriptionId": "394ae65d-9e71-4462-930f-3332dedf845c",
- "TenantId": "b1af47f1-138c-4ed2-8bba-119041b95450",
- "Domain": ""
+ "SubscriptionId": "5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de"
}
}
\ No newline at end of file
diff --git a/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestGetManagementGroupSubscription.json b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestGetManagementGroupSubscription.json
new file mode 100644
index 000000000000..63eea06861ae
--- /dev/null
+++ b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestGetManagementGroupSubscription.json
@@ -0,0 +1,413 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestSubGroup?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RTdWJHcm91cD9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"name\": \"TestSubGroup\",\r\n \"properties\": {\r\n \"details\": {\r\n \"parent\": {}\r\n }\r\n }\r\n}",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "967c41a5-8b26-40bf-98a4-fcb27d89bd51"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "100"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "59"
+ ],
+ "x-ms-request-id": [
+ "westcentralus:5409ed47-b774-4076-b801-3b58b0863f88"
+ ],
+ "x-ba-restapi": [
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "5409ed47-b774-4076-b801-3b58b0863f88"
+ ],
+ "request-id": [
+ "5409ed47-b774-4076-b801-3b58b0863f88"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1199"
+ ],
+ "x-ms-correlation-request-id": [
+ "5409ed47-b774-4076-b801-3b58b0863f88"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTCENTRALUS:20220418T213125Z:5409ed47-b774-4076-b801-3b58b0863f88"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Mon, 18 Apr 2022 21:31:24 GMT"
+ ],
+ "Content-Length": [
+ "541"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Retry-After": [
+ "0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestSubGroup\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestSubGroup\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"TestSubGroup\",\r\n \"details\": {\r\n \"version\": 4,\r\n \"updatedTime\": \"2022-03-31T20:47:49.1041656Z\",\r\n \"updatedBy\": \"9e41f384-0aa9-41bc-a29d-6d956cd8eadb\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"name\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"Root Management Group\"\r\n }\r\n }\r\n }\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestSubGroup/subscriptions/5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RTdWJHcm91cC9zdWJzY3JpcHRpb25zLzU2MDJmYmQ5LWZiMGQtNGZiYi05OGIzLTEwYzhlYTIwYjZkZT9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
+ "RequestMethod": "PUT",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "3027868b-f9df-4c54-86b0-546e220ebf66"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "249"
+ ],
+ "x-ms-request-id": [
+ "westus:4eefa386-6681-40e2-b653-b0f4b706b979"
+ ],
+ "x-ba-restapi": [
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "4eefa386-6681-40e2-b653-b0f4b706b979"
+ ],
+ "request-id": [
+ "4eefa386-6681-40e2-b653-b0f4b706b979"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1199"
+ ],
+ "x-ms-correlation-request-id": [
+ "4eefa386-6681-40e2-b653-b0f4b706b979"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS:20220418T213128Z:4eefa386-6681-40e2-b653-b0f4b706b979"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Mon, 18 Apr 2022 21:31:28 GMT"
+ ],
+ "Content-Length": [
+ "473"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Retry-After": [
+ "0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"name\": \"5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de\",\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestSubGroup/subscriptions/5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de\",\r\n \"type\": \"Microsoft.Management/managementGroups/subscriptions\",\r\n \"properties\": {\r\n \"displayName\": \"Visual Studio Enterprise Subscription\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestSubGroup\",\r\n \"name\": null,\r\n \"displayName\": null\r\n },\r\n \"state\": \"Active\",\r\n \"tenant\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\"\r\n }\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestSubGroup?api-version=2021-04-01&$expand=children&$recurse=false",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RTdWJHcm91cD9hcGktdmVyc2lvbj0yMDIxLTA0LTAxJiRleHBhbmQ9Y2hpbGRyZW4mJHJlY3Vyc2U9ZmFsc2U=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "0d3d4077-9b30-45a1-bf42-638e3e719663"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "59"
+ ],
+ "x-ms-request-id": [
+ "westus:dc01fc2a-510c-48d5-b951-bdc80884ce00"
+ ],
+ "x-ba-restapi": [
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "dc01fc2a-510c-48d5-b951-bdc80884ce00"
+ ],
+ "request-id": [
+ "dc01fc2a-510c-48d5-b951-bdc80884ce00"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "11999"
+ ],
+ "x-ms-correlation-request-id": [
+ "dc01fc2a-510c-48d5-b951-bdc80884ce00"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS:20220418T213128Z:dc01fc2a-510c-48d5-b951-bdc80884ce00"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Mon, 18 Apr 2022 21:31:28 GMT"
+ ],
+ "Content-Length": [
+ "739"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Retry-After": [
+ "0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestSubGroup\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestSubGroup\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"TestSubGroup\",\r\n \"details\": {\r\n \"version\": 4,\r\n \"updatedTime\": \"2022-03-31T20:47:49.1041656Z\",\r\n \"updatedBy\": \"9e41f384-0aa9-41bc-a29d-6d956cd8eadb\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"name\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"Root Management Group\"\r\n }\r\n },\r\n \"children\": [\r\n {\r\n \"id\": \"/subscriptions/5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de\",\r\n \"type\": \"/subscriptions\",\r\n \"name\": \"5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de\",\r\n \"displayName\": \"Visual Studio Enterprise Subscription\"\r\n }\r\n ]\r\n }\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestSubGroup/subscriptions/5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RTdWJHcm91cC9zdWJzY3JpcHRpb25zLzU2MDJmYmQ5LWZiMGQtNGZiYi05OGIzLTEwYzhlYTIwYjZkZT9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "38dfde34-bc36-4c6c-9b87-20c1cd7050dd"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "westus:51421f16-8aae-444d-8cdb-5e151e6ce131"
+ ],
+ "x-ba-restapi": [
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "51421f16-8aae-444d-8cdb-5e151e6ce131"
+ ],
+ "request-id": [
+ "51421f16-8aae-444d-8cdb-5e151e6ce131"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "11999"
+ ],
+ "x-ms-correlation-request-id": [
+ "51421f16-8aae-444d-8cdb-5e151e6ce131"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS:20220418T213128Z:51421f16-8aae-444d-8cdb-5e151e6ce131"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Mon, 18 Apr 2022 21:31:28 GMT"
+ ],
+ "Content-Length": [
+ "473"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Retry-After": [
+ "0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"name\": \"5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de\",\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestSubGroup/subscriptions/5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de\",\r\n \"type\": \"Microsoft.Management/managementGroups/subscriptions\",\r\n \"properties\": {\r\n \"displayName\": \"Visual Studio Enterprise Subscription\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestSubGroup\",\r\n \"name\": null,\r\n \"displayName\": null\r\n },\r\n \"state\": \"Active\",\r\n \"tenant\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\"\r\n }\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestSubGroup/subscriptions/5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RTdWJHcm91cC9zdWJzY3JpcHRpb25zLzU2MDJmYmQ5LWZiMGQtNGZiYi05OGIzLTEwYzhlYTIwYjZkZT9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "12e53deb-8f33-4de9-9eb0-da50ae159e2c"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "249"
+ ],
+ "x-ms-request-id": [
+ "westus:1de84a72-63f6-4379-a995-b86eef04f694"
+ ],
+ "x-ba-restapi": [
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "1de84a72-63f6-4379-a995-b86eef04f694"
+ ],
+ "request-id": [
+ "1de84a72-63f6-4379-a995-b86eef04f694"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-deletes": [
+ "14999"
+ ],
+ "x-ms-correlation-request-id": [
+ "1de84a72-63f6-4379-a995-b86eef04f694"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS:20220418T213132Z:1de84a72-63f6-4379-a995-b86eef04f694"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Mon, 18 Apr 2022 21:31:31 GMT"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Content-Length": [
+ "0"
+ ],
+ "Retry-After": [
+ "0"
+ ]
+ },
+ "ResponseBody": "",
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de"
+ }
+}
\ No newline at end of file
diff --git a/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestGetManagementGroupWithExpand.json b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestGetManagementGroupWithExpand.json
index 61f63bc97f89..1182baa49d59 100644
--- a/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestGetManagementGroupWithExpand.json
+++ b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestGetManagementGroupWithExpand.json
@@ -1,67 +1,66 @@
{
"Entries": [
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSGetGroup1?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMT9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSGetGroup1?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMT9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
"RequestMethod": "PUT",
"RequestBody": "{\r\n \"name\": \"TestPSGetGroup1\",\r\n \"properties\": {\r\n \"details\": {\r\n \"parent\": {}\r\n }\r\n }\r\n}",
"RequestHeaders": {
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Content-Length": [
- "103"
- ],
"x-ms-client-request-id": [
- "bb934f5b-ee57-4bab-bb1f-b535889c0ba4"
+ "398c3895-510e-40ac-b220-2c11e457fedf"
],
"Cache-Control": [
"no-cache"
],
- "accept-language": [
+ "Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
- ]
- },
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup1\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup1\",\r\n \"status\": \"NotStarted\"\r\n}",
- "ResponseHeaders": {
- "Content-Length": [
- "178"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
],
"Content-Type": [
"application/json; charset=utf-8"
],
- "Expires": [
- "-1"
+ "Content-Length": [
+ "103"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Retry-After": [
- "0"
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "59"
],
"x-ms-request-id": [
- "eastus:7693300a-9432-4997-a07f-7ddfd957c9f0"
+ "westus:3ccf8a12-fe84-4ba0-bf0a-f53880d0fb18"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "3ccf8a12-fe84-4ba0-bf0a-f53880d0fb18"
],
"request-id": [
- "55f39066-9e57-4ae3-b29b-c3ecb90bba42"
+ "3ccf8a12-fe84-4ba0-bf0a-f53880d0fb18"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
],
"x-ms-ratelimit-remaining-tenant-writes": [
- "1191"
+ "1199"
],
"x-ms-correlation-request-id": [
- "dc8ca857-4b6d-4dbf-95e5-d8b5e22500b3"
+ "3ccf8a12-fe84-4ba0-bf0a-f53880d0fb18"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194140Z:dc8ca857-4b6d-4dbf-95e5-d8b5e22500b3"
+ "WESTUS:20220418T213441Z:3ccf8a12-fe84-4ba0-bf0a-f53880d0fb18"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -69,44 +68,11 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:41:40 GMT"
- ],
- "Location": [
- "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/operationResults/create/managementGroups/TestPSGetGroup1?api-version=2018-03-01-preview"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Mon, 18 Apr 2022 21:34:40 GMT"
],
- "X-AspNet-Version": [
- "4.0.30319"
- ],
- "X-Powered-By": [
- "ASP.NET"
- ]
- },
- "StatusCode": 202
- },
- {
- "RequestUri": "/providers/Microsoft.Management/operationResults/create/managementGroups/TestPSGetGroup1?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2NyZWF0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMT9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
- "RequestMethod": "GET",
- "RequestBody": "",
- "RequestHeaders": {
- "User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
- ]
- },
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup1\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup1\",\r\n \"status\": \"Succeeded\",\r\n \"properties\": {\r\n \"tenantId\": \"b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"displayName\": \"TestPSGetGroup1\",\r\n \"details\": {\r\n \"version\": 26,\r\n \"updatedTime\": \"2018-05-24T19:41:46.5919327Z\",\r\n \"updatedBy\": \"aef7ed39-6482-40be-a70c-8ec0669b0d04\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"name\": \"b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"displayName\": \"b1af47f1-138c-4ed2-8bba-119041b95450\"\r\n }\r\n }\r\n }\r\n}",
- "ResponseHeaders": {
"Content-Length": [
- "598"
+ "551"
],
"Content-Type": [
"application/json; charset=utf-8"
@@ -114,119 +80,74 @@
"Expires": [
"-1"
],
- "Pragma": [
- "no-cache"
- ],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14974"
- ],
- "x-ms-request-id": [
- "eastus:19536171-aa13-49d1-83cd-e6df510452ed"
- ],
- "x-ba-restapi": [
- "1.0.3.795"
- ],
- "request-id": [
- "d5b7a303-c0b1-4e51-b50f-5f961c30c177"
- ],
- "x-ms-correlation-request-id": [
- "095e5efe-82e1-4664-ac07-bf11a7a6e206"
- ],
- "x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194151Z:095e5efe-82e1-4664-ac07-bf11a7a6e206"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "X-Content-Type-Options": [
- "nosniff"
- ],
- "Cache-Control": [
- "no-cache"
- ],
- "Date": [
- "Thu, 24 May 2018 19:41:51 GMT"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
- ],
- "X-Powered-By": [
- "ASP.NET"
- ],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup1\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup1\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"TestPSGetGroup1\",\r\n \"details\": {\r\n \"version\": 19,\r\n \"updatedTime\": \"2022-04-18T21:29:45.2920019Z\",\r\n \"updatedBy\": \"9e41f384-0aa9-41bc-a29d-6d956cd8eadb\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"name\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"Root Management Group\"\r\n }\r\n }\r\n }\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSGetGroup2?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSGetGroup2?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMj9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
"RequestMethod": "PUT",
"RequestBody": "{\r\n \"name\": \"TestPSGetGroup2\",\r\n \"properties\": {\r\n \"details\": {\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup1\"\r\n }\r\n }\r\n }\r\n}",
"RequestHeaders": {
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Content-Length": [
- "193"
- ],
"x-ms-client-request-id": [
- "7c872dbf-d855-4966-a4f8-0f59c80f3171"
+ "8fb85fa7-4bc1-4553-9c75-e811e637fbd3"
],
"Cache-Control": [
"no-cache"
],
- "accept-language": [
+ "Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
- ]
- },
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup2\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup2\",\r\n \"status\": \"NotStarted\"\r\n}",
- "ResponseHeaders": {
- "Content-Length": [
- "178"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
],
"Content-Type": [
"application/json; charset=utf-8"
],
- "Expires": [
- "-1"
+ "Content-Length": [
+ "193"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Retry-After": [
- "0"
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "59"
],
"x-ms-request-id": [
- "eastus:fce171fb-ca46-40a6-8951-44b0897725ad"
+ "westus:cb7a6edc-0e20-476b-83fd-0ea25bf85769"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "cb7a6edc-0e20-476b-83fd-0ea25bf85769"
],
"request-id": [
- "c4439f2b-fbb9-4f0e-ab1c-aba96042fb95"
+ "cb7a6edc-0e20-476b-83fd-0ea25bf85769"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
],
"x-ms-ratelimit-remaining-tenant-writes": [
- "1190"
+ "1199"
],
"x-ms-correlation-request-id": [
- "cdfbdaca-d31c-4aea-83e9-eb98f309818f"
+ "cb7a6edc-0e20-476b-83fd-0ea25bf85769"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194154Z:cdfbdaca-d31c-4aea-83e9-eb98f309818f"
+ "WESTUS:20220418T213442Z:cb7a6edc-0e20-476b-83fd-0ea25bf85769"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -234,44 +155,11 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:41:53 GMT"
+ "Mon, 18 Apr 2022 21:34:41 GMT"
],
- "Location": [
- "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/operationResults/create/managementGroups/TestPSGetGroup2?api-version=2018-03-01-preview"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
- ],
- "X-Powered-By": [
- "ASP.NET"
- ]
- },
- "StatusCode": 202
- },
- {
- "RequestUri": "/providers/Microsoft.Management/operationResults/create/managementGroups/TestPSGetGroup2?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2NyZWF0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
- "RequestMethod": "GET",
- "RequestBody": "",
- "RequestHeaders": {
- "User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
- ]
- },
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup2\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup2\",\r\n \"status\": \"Succeeded\",\r\n \"properties\": {\r\n \"tenantId\": \"b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"displayName\": \"TestPSGetGroup2\",\r\n \"details\": {\r\n \"version\": 26,\r\n \"updatedTime\": \"2018-05-24T19:42:00.1906327Z\",\r\n \"updatedBy\": \"aef7ed39-6482-40be-a70c-8ec0669b0d04\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup1\",\r\n \"name\": \"TestPSGetGroup1\",\r\n \"displayName\": \"TestPSGetGroup1\"\r\n }\r\n }\r\n }\r\n}",
- "ResponseHeaders": {
"Content-Length": [
- "535"
+ "503"
],
"Content-Type": [
"application/json; charset=utf-8"
@@ -279,194 +167,74 @@
"Expires": [
"-1"
],
- "Pragma": [
- "no-cache"
- ],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14973"
- ],
- "x-ms-request-id": [
- "eastus:dd0d8920-5bdd-42c4-9120-e65c3e72a65d"
- ],
- "x-ba-restapi": [
- "1.0.3.795"
- ],
- "request-id": [
- "147935e7-ae1d-4a29-850f-7eb801ead287"
- ],
- "x-ms-correlation-request-id": [
- "cca63559-77e6-49fe-b9b5-a70a4703b4f0"
- ],
- "x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194204Z:cca63559-77e6-49fe-b9b5-a70a4703b4f0"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "X-Content-Type-Options": [
- "nosniff"
- ],
- "Cache-Control": [
- "no-cache"
- ],
- "Date": [
- "Thu, 24 May 2018 19:42:04 GMT"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
- ],
- "X-Powered-By": [
- "ASP.NET"
- ],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup2\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup2\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"TestPSGetGroup2\",\r\n \"details\": {\r\n \"version\": 18,\r\n \"updatedTime\": \"2022-04-18T21:31:44.3527852Z\",\r\n \"updatedBy\": \"9e41f384-0aa9-41bc-a29d-6d956cd8eadb\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup1\",\r\n \"name\": \"TestPSGetGroup1\",\r\n \"displayName\": \"TestPSGetGroup1\"\r\n }\r\n }\r\n }\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSGetGroup3?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMz9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSGetGroup3?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMz9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
"RequestMethod": "PUT",
"RequestBody": "{\r\n \"name\": \"TestPSGetGroup3\",\r\n \"properties\": {\r\n \"details\": {\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup2\"\r\n }\r\n }\r\n }\r\n}",
"RequestHeaders": {
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Content-Length": [
- "193"
- ],
"x-ms-client-request-id": [
- "62143fd0-3338-46ba-8b42-9b0de931051e"
+ "9caa7c79-f63d-4682-ba34-8a6858a2ed7d"
],
"Cache-Control": [
"no-cache"
],
- "accept-language": [
+ "Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
- ]
- },
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup3\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup3\",\r\n \"status\": \"NotStarted\"\r\n}",
- "ResponseHeaders": {
- "Content-Length": [
- "178"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
],
"Content-Type": [
"application/json; charset=utf-8"
],
- "Expires": [
- "-1"
- ],
- "Pragma": [
- "no-cache"
- ],
- "Retry-After": [
- "0"
- ],
- "x-ms-request-id": [
- "eastus:a1ea1aca-cbbc-4a9d-bcf8-6fc9bbf51b8c"
- ],
- "x-ba-restapi": [
- "1.0.3.795"
- ],
- "request-id": [
- "f5a386eb-4b25-494e-8b40-92b8eb1e9388"
- ],
- "x-ms-ratelimit-remaining-tenant-writes": [
- "1189"
- ],
- "x-ms-correlation-request-id": [
- "cc9e319f-57c5-4fd2-a9c3-e81d106f6fdf"
- ],
- "x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194207Z:cc9e319f-57c5-4fd2-a9c3-e81d106f6fdf"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "X-Content-Type-Options": [
- "nosniff"
- ],
- "Cache-Control": [
- "no-cache"
- ],
- "Date": [
- "Thu, 24 May 2018 19:42:06 GMT"
- ],
- "Location": [
- "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/operationResults/create/managementGroups/TestPSGetGroup3?api-version=2018-03-01-preview"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
- ],
- "X-Powered-By": [
- "ASP.NET"
- ]
- },
- "StatusCode": 202
- },
- {
- "RequestUri": "/providers/Microsoft.Management/operationResults/create/managementGroups/TestPSGetGroup3?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2NyZWF0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMz9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
- "RequestMethod": "GET",
- "RequestBody": "",
- "RequestHeaders": {
- "User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "Content-Length": [
+ "193"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup3\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup3\",\r\n \"status\": \"Running\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "175"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Retry-After": [
- "0"
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "59"
],
"x-ms-request-id": [
- "eastus:fd2bbbb9-d703-40ee-a288-b325eed54310"
+ "westus:e4f022f4-af09-4680-a763-d3b954ab46f2"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "e4f022f4-af09-4680-a763-d3b954ab46f2"
],
"request-id": [
- "50122128-7828-4628-a296-9a78bf554db7"
+ "e4f022f4-af09-4680-a763-d3b954ab46f2"
],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14972"
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1199"
],
"x-ms-correlation-request-id": [
- "e5f15ee9-08a4-4929-a2a1-87447b3d0af4"
+ "e4f022f4-af09-4680-a763-d3b954ab46f2"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194217Z:e5f15ee9-08a4-4929-a2a1-87447b3d0af4"
+ "WESTUS:20220418T213443Z:e4f022f4-af09-4680-a763-d3b954ab46f2"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -474,44 +242,11 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:42:16 GMT"
- ],
- "Location": [
- "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/operationResults/create/managementGroups/TestPSGetGroup3?api-version=2018-03-01-preview"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Mon, 18 Apr 2022 21:34:42 GMT"
],
- "X-Powered-By": [
- "ASP.NET"
- ]
- },
- "StatusCode": 202
- },
- {
- "RequestUri": "/providers/Microsoft.Management/operationResults/create/managementGroups/TestPSGetGroup3?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2NyZWF0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMz9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
- "RequestMethod": "GET",
- "RequestBody": "",
- "RequestHeaders": {
- "User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
- ]
- },
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup3\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup3\",\r\n \"status\": \"Succeeded\",\r\n \"properties\": {\r\n \"tenantId\": \"b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"displayName\": \"TestPSGetGroup3\",\r\n \"details\": {\r\n \"version\": 18,\r\n \"updatedTime\": \"2018-05-24T19:42:16.6594511Z\",\r\n \"updatedBy\": \"aef7ed39-6482-40be-a70c-8ec0669b0d04\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup2\",\r\n \"name\": \"TestPSGetGroup2\",\r\n \"displayName\": \"TestPSGetGroup2\"\r\n }\r\n }\r\n }\r\n}",
- "ResponseHeaders": {
"Content-Length": [
- "535"
+ "503"
],
"Content-Type": [
"application/json; charset=utf-8"
@@ -519,113 +254,68 @@
"Expires": [
"-1"
],
- "Pragma": [
- "no-cache"
- ],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14971"
- ],
- "x-ms-request-id": [
- "eastus:52faafb0-0ff9-4eab-937f-fc462192cc13"
- ],
- "x-ba-restapi": [
- "1.0.3.795"
- ],
- "request-id": [
- "38bb551f-7ba8-4d95-8a19-7b7605c8d57c"
- ],
- "x-ms-correlation-request-id": [
- "3e34cda7-5973-4ec3-a166-b30cc5c2a952"
- ],
- "x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194229Z:3e34cda7-5973-4ec3-a166-b30cc5c2a952"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "X-Content-Type-Options": [
- "nosniff"
- ],
- "Cache-Control": [
- "no-cache"
- ],
- "Date": [
- "Thu, 24 May 2018 19:42:28 GMT"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
- ],
- "X-Powered-By": [
- "ASP.NET"
- ],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup3\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup3\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"TestPSGetGroup3\",\r\n \"details\": {\r\n \"version\": 14,\r\n \"updatedTime\": \"2022-04-18T21:33:25.7388833Z\",\r\n \"updatedBy\": \"9e41f384-0aa9-41bc-a29d-6d956cd8eadb\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup2\",\r\n \"name\": \"TestPSGetGroup2\",\r\n \"displayName\": \"TestPSGetGroup2\"\r\n }\r\n }\r\n }\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSGetGroup2?api-version=2018-03-01-preview&$expand=children&$recurse=false",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXcmJGV4cGFuZD1jaGlsZHJlbiYkcmVjdXJzZT1mYWxzZQ==",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSGetGroup2?api-version=2021-04-01&$expand=children&$recurse=false",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMj9hcGktdmVyc2lvbj0yMDIxLTA0LTAxJiRleHBhbmQ9Y2hpbGRyZW4mJHJlY3Vyc2U9ZmFsc2U=",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
"x-ms-client-request-id": [
- "529e9d7e-5dbc-43ec-951d-4420c9fcb6c8"
+ "6ae6248d-ea32-4dce-b491-23677abfa9d4"
],
"Cache-Control": [
"no-cache"
],
- "accept-language": [
+ "Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup2\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup2\",\r\n \"properties\": {\r\n \"tenantId\": \"b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"displayName\": \"TestPSGetGroup2\",\r\n \"details\": {\r\n \"version\": 26,\r\n \"updatedTime\": \"2018-05-24T19:42:00.1906327Z\",\r\n \"updatedBy\": \"aef7ed39-6482-40be-a70c-8ec0669b0d04\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup1\",\r\n \"name\": \"TestPSGetGroup1\",\r\n \"displayName\": \"TestPSGetGroup1\"\r\n }\r\n },\r\n \"children\": [\r\n {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup3\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup3\",\r\n \"displayName\": \"TestPSGetGroup3\"\r\n }\r\n ]\r\n }\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "716"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14970"
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "58"
],
"x-ms-request-id": [
- "eastus:5b665570-bb3c-4876-a584-2ce102f7b570"
+ "westus:ffc584de-8fa9-46fd-a9ea-ce135bed3bbe"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "ffc584de-8fa9-46fd-a9ea-ce135bed3bbe"
],
"request-id": [
- "43c5b0e8-486c-48b1-98f7-515244b3e233"
+ "ffc584de-8fa9-46fd-a9ea-ce135bed3bbe"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "11998"
],
"x-ms-correlation-request-id": [
- "1bb182e5-8f75-4b1d-bcee-3043b258bb23"
+ "ffc584de-8fa9-46fd-a9ea-ce135bed3bbe"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194231Z:1bb182e5-8f75-4b1d-bcee-3043b258bb23"
+ "WESTUS:20220418T213443Z:ffc584de-8fa9-46fd-a9ea-ce135bed3bbe"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -633,83 +323,89 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:42:31 GMT"
+ "Mon, 18 Apr 2022 21:34:43 GMT"
],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "694"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup2\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup2\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"TestPSGetGroup2\",\r\n \"details\": {\r\n \"version\": 18,\r\n \"updatedTime\": \"2022-04-18T21:31:44.3527852Z\",\r\n \"updatedBy\": \"9e41f384-0aa9-41bc-a29d-6d956cd8eadb\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup1\",\r\n \"name\": \"TestPSGetGroup1\",\r\n \"displayName\": \"TestPSGetGroup1\"\r\n }\r\n },\r\n \"children\": [\r\n {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup3\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup3\",\r\n \"displayName\": \"TestPSGetGroup3\"\r\n }\r\n ]\r\n }\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSGetGroup3?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMz9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSGetGroup3?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMz9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
"RequestMethod": "DELETE",
"RequestBody": "",
"RequestHeaders": {
"x-ms-client-request-id": [
- "d610920b-1eb9-4876-96da-c77cf618d557"
+ "c03d0784-64f5-428c-a992-b56d5ff05b60"
],
"Cache-Control": [
"no-cache"
],
- "accept-language": [
+ "Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup3\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup3\",\r\n \"status\": \"NotStarted\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "178"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
+ "Location": [
+ "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSGetGroup3?api-version=2021-04-01"
+ ],
"Retry-After": [
"0"
],
+ "Azure-AsyncOperation": [
+ "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/TestPSGetGroup3?api-version=2021-04-01"
+ ],
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "59"
+ ],
"x-ms-request-id": [
- "eastus:6ac70fe7-dcf3-4d91-9050-f3e16cf1fe8e"
+ "westus:73d68962-8e33-418f-b50d-42be447278e2"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "73d68962-8e33-418f-b50d-42be447278e2"
],
"request-id": [
- "00c0c570-3d23-4127-b044-3e8acc913c65"
+ "73d68962-8e33-418f-b50d-42be447278e2"
],
- "x-ms-ratelimit-remaining-tenant-writes": [
- "1188"
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-deletes": [
+ "14999"
],
"x-ms-correlation-request-id": [
- "b46f2814-d91a-49b5-9257-b997e7b9b582"
+ "73d68962-8e33-418f-b50d-42be447278e2"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194234Z:b46f2814-d91a-49b5-9257-b997e7b9b582"
+ "WESTUS:20220418T213445Z:73d68962-8e33-418f-b50d-42be447278e2"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -717,74 +413,68 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:42:33 GMT"
+ "Mon, 18 Apr 2022 21:34:45 GMT"
],
- "Location": [
- "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSGetGroup3?api-version=2018-03-01-preview"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "167"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup3\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup3\",\r\n \"status\": \"NotStarted\"\r\n}",
"StatusCode": 202
},
{
- "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSGetGroup3?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMz9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/TestPSGetGroup3?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9hc3luY09wZXJhdGlvbi9zdGF0dXMvbWFuYWdlbWVudEdyb3Vwcy9UZXN0UFNHZXRHcm91cDM/YXBpLXZlcnNpb249MjAyMS0wNC0wMQ==",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
+ "x-ms-client-request-id": [
+ "c03d0784-64f5-428c-a992-b56d5ff05b60"
+ ],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup3\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup3\",\r\n \"status\": \"Succeeded\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "177"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14969"
- ],
"x-ms-request-id": [
- "eastus:37f99767-398e-470f-b7a2-e58aba1d163d"
+ "westus:24921d45-603b-4017-9a34-895e61c9958b"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "24921d45-603b-4017-9a34-895e61c9958b"
],
"request-id": [
- "be4190bf-b837-4ab9-8a89-fee31c1c3aae"
+ "24921d45-603b-4017-9a34-895e61c9958b"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "11999"
],
"x-ms-correlation-request-id": [
- "72f7747b-783b-4b3c-b56b-315bd5fe74b1"
+ "24921d45-603b-4017-9a34-895e61c9958b"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194244Z:72f7747b-783b-4b3c-b56b-315bd5fe74b1"
+ "WESTUS:20220418T213455Z:24921d45-603b-4017-9a34-895e61c9958b"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -792,74 +482,71 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:42:44 GMT"
+ "Mon, 18 Apr 2022 21:34:55 GMT"
],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "165"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/TestPSGetGroup3\",\r\n \"name\": \"TestPSGetGroup3\",\r\n \"status\": \"Succeeded\"\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSGetGroup3?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMz9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSGetGroup3?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMz9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
+ "x-ms-client-request-id": [
+ "c03d0784-64f5-428c-a992-b56d5ff05b60"
+ ],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup3\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup3\",\r\n \"status\": \"Succeeded\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "177"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14968"
- ],
"x-ms-request-id": [
- "eastus:ce8eaaf9-7b9a-459f-b4ce-decde74a55a2"
+ "westus:f673b9b1-a31d-4370-9f00-833153c97144"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "f673b9b1-a31d-4370-9f00-833153c97144"
],
"request-id": [
- "55278fb5-f566-4bcd-8977-bfdea8d76655"
+ "f673b9b1-a31d-4370-9f00-833153c97144"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "11998"
],
"x-ms-correlation-request-id": [
- "6fb1cf18-106a-452d-bcf6-c836c2594117"
+ "f673b9b1-a31d-4370-9f00-833153c97144"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194245Z:6fb1cf18-106a-452d-bcf6-c836c2594117"
+ "WESTUS:20220418T213455Z:f673b9b1-a31d-4370-9f00-833153c97144"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -867,83 +554,89 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:42:44 GMT"
+ "Mon, 18 Apr 2022 21:34:55 GMT"
],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "166"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup3\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup3\",\r\n \"status\": \"Succeeded\"\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSGetGroup2?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSGetGroup2?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMj9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
"RequestMethod": "DELETE",
"RequestBody": "",
"RequestHeaders": {
"x-ms-client-request-id": [
- "d04b4237-aa6b-4e64-99ca-1be158d2f0be"
+ "6eb31b26-2576-42b4-9d8e-82378df88638"
],
"Cache-Control": [
"no-cache"
],
- "accept-language": [
+ "Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup2\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup2\",\r\n \"status\": \"NotStarted\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "178"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
+ "Location": [
+ "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSGetGroup2?api-version=2021-04-01"
+ ],
"Retry-After": [
"0"
],
+ "Azure-AsyncOperation": [
+ "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/TestPSGetGroup2?api-version=2021-04-01"
+ ],
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "59"
+ ],
"x-ms-request-id": [
- "eastus:e62aafd1-f022-40a5-a231-923e29554275"
+ "westus:740101d4-537e-4246-b306-d4da2f6500a1"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "740101d4-537e-4246-b306-d4da2f6500a1"
],
"request-id": [
- "14bfcca4-3aa0-4b47-8009-8734beddfa03"
+ "740101d4-537e-4246-b306-d4da2f6500a1"
],
- "x-ms-ratelimit-remaining-tenant-writes": [
- "1187"
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-deletes": [
+ "14999"
],
"x-ms-correlation-request-id": [
- "1865e786-3f33-48f4-ab29-bcc45829e2f0"
+ "740101d4-537e-4246-b306-d4da2f6500a1"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194247Z:1865e786-3f33-48f4-ab29-bcc45829e2f0"
+ "WESTUS:20220418T213456Z:740101d4-537e-4246-b306-d4da2f6500a1"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -951,74 +644,68 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:42:47 GMT"
+ "Mon, 18 Apr 2022 21:34:55 GMT"
],
- "Location": [
- "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSGetGroup2?api-version=2018-03-01-preview"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "167"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup2\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup2\",\r\n \"status\": \"NotStarted\"\r\n}",
"StatusCode": 202
},
{
- "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSGetGroup2?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/TestPSGetGroup2?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9hc3luY09wZXJhdGlvbi9zdGF0dXMvbWFuYWdlbWVudEdyb3Vwcy9UZXN0UFNHZXRHcm91cDI/YXBpLXZlcnNpb249MjAyMS0wNC0wMQ==",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
+ "x-ms-client-request-id": [
+ "6eb31b26-2576-42b4-9d8e-82378df88638"
+ ],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup2\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup2\",\r\n \"status\": \"Succeeded\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "177"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14967"
- ],
"x-ms-request-id": [
- "eastus:b75b5dbc-b365-4849-bdf2-b2baec6953ac"
+ "westus:194dd50d-8663-43d5-94e6-99869535a32e"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "194dd50d-8663-43d5-94e6-99869535a32e"
],
"request-id": [
- "f5a22a51-e1f9-4af7-a4ac-e4a987a2aa4e"
+ "194dd50d-8663-43d5-94e6-99869535a32e"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "11999"
],
"x-ms-correlation-request-id": [
- "1540276c-b8c0-461d-a238-7ff72128bf6e"
+ "194dd50d-8663-43d5-94e6-99869535a32e"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194258Z:1540276c-b8c0-461d-a238-7ff72128bf6e"
+ "WESTUS:20220418T213506Z:194dd50d-8663-43d5-94e6-99869535a32e"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -1026,74 +713,71 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:42:58 GMT"
+ "Mon, 18 Apr 2022 21:35:06 GMT"
],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "165"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/TestPSGetGroup2\",\r\n \"name\": \"TestPSGetGroup2\",\r\n \"status\": \"Succeeded\"\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSGetGroup2?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSGetGroup2?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMj9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
+ "x-ms-client-request-id": [
+ "6eb31b26-2576-42b4-9d8e-82378df88638"
+ ],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup2\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup2\",\r\n \"status\": \"Succeeded\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "177"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14966"
- ],
"x-ms-request-id": [
- "eastus:aff6d815-589b-4e2f-b6b7-81b79375825a"
+ "westus:5015b600-3154-4858-9708-d7fb545c9f14"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "5015b600-3154-4858-9708-d7fb545c9f14"
],
"request-id": [
- "baf6c7e1-64e3-4c11-b9c7-087cec4080ae"
+ "5015b600-3154-4858-9708-d7fb545c9f14"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "11998"
],
"x-ms-correlation-request-id": [
- "37a4c60c-fc04-4b95-ba52-fbdd10698cb8"
+ "5015b600-3154-4858-9708-d7fb545c9f14"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194258Z:37a4c60c-fc04-4b95-ba52-fbdd10698cb8"
+ "WESTUS:20220418T213507Z:5015b600-3154-4858-9708-d7fb545c9f14"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -1101,83 +785,89 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:42:58 GMT"
+ "Mon, 18 Apr 2022 21:35:06 GMT"
],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "166"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup2\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup2\",\r\n \"status\": \"Succeeded\"\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSGetGroup1?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMT9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSGetGroup1?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMT9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
"RequestMethod": "DELETE",
"RequestBody": "",
"RequestHeaders": {
"x-ms-client-request-id": [
- "727bd969-9f0e-4095-91e6-3360fd464613"
+ "94cddaed-f8ef-4f49-8bd8-a987cefa0c3c"
],
"Cache-Control": [
"no-cache"
],
- "accept-language": [
+ "Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup1\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup1\",\r\n \"status\": \"NotStarted\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "178"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
+ "Location": [
+ "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSGetGroup1?api-version=2021-04-01"
+ ],
"Retry-After": [
"0"
],
+ "Azure-AsyncOperation": [
+ "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/TestPSGetGroup1?api-version=2021-04-01"
+ ],
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "59"
+ ],
"x-ms-request-id": [
- "eastus:a3ff0ec2-c719-4086-a91a-61c39ff57a4e"
+ "westcentralus:b1aa8fa1-4557-41c2-8645-02c463c99e68"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "b1aa8fa1-4557-41c2-8645-02c463c99e68"
],
"request-id": [
- "33de1c4a-5800-474a-b8d3-3f81a9ab0bd3"
+ "b1aa8fa1-4557-41c2-8645-02c463c99e68"
],
- "x-ms-ratelimit-remaining-tenant-writes": [
- "1186"
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-deletes": [
+ "14999"
],
"x-ms-correlation-request-id": [
- "4172c28a-fb74-4b26-9b26-488dfe117100"
+ "b1aa8fa1-4557-41c2-8645-02c463c99e68"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194301Z:4172c28a-fb74-4b26-9b26-488dfe117100"
+ "WESTCENTRALUS:20220418T213508Z:b1aa8fa1-4557-41c2-8645-02c463c99e68"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -1185,74 +875,68 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:43:01 GMT"
+ "Mon, 18 Apr 2022 21:35:08 GMT"
],
- "Location": [
- "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSGetGroup1?api-version=2018-03-01-preview"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "167"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup1\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup1\",\r\n \"status\": \"NotStarted\"\r\n}",
"StatusCode": 202
},
{
- "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSGetGroup1?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMT9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/TestPSGetGroup1?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9hc3luY09wZXJhdGlvbi9zdGF0dXMvbWFuYWdlbWVudEdyb3Vwcy9UZXN0UFNHZXRHcm91cDE/YXBpLXZlcnNpb249MjAyMS0wNC0wMQ==",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
+ "x-ms-client-request-id": [
+ "94cddaed-f8ef-4f49-8bd8-a987cefa0c3c"
+ ],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup1\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup1\",\r\n \"status\": \"Succeeded\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "177"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14965"
- ],
"x-ms-request-id": [
- "eastus:339fecd2-b392-4a5a-89b8-dc88ed8ef987"
+ "westcentralus:e594b50e-266a-4ca6-9314-cca6888f1acb"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "e594b50e-266a-4ca6-9314-cca6888f1acb"
],
"request-id": [
- "ac7d4e68-d9f4-44be-8f3d-4075fd773dc0"
+ "e594b50e-266a-4ca6-9314-cca6888f1acb"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "11997"
],
"x-ms-correlation-request-id": [
- "e7e07cb2-6f4f-4ebe-a145-a7dfba86cdd3"
+ "e594b50e-266a-4ca6-9314-cca6888f1acb"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194312Z:e7e07cb2-6f4f-4ebe-a145-a7dfba86cdd3"
+ "WESTCENTRALUS:20220418T213518Z:e594b50e-266a-4ca6-9314-cca6888f1acb"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -1260,74 +944,71 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:43:12 GMT"
+ "Mon, 18 Apr 2022 21:35:18 GMT"
],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "165"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/TestPSGetGroup1\",\r\n \"name\": \"TestPSGetGroup1\",\r\n \"status\": \"Succeeded\"\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSGetGroup1?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMT9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSGetGroup1?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMT9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
+ "x-ms-client-request-id": [
+ "94cddaed-f8ef-4f49-8bd8-a987cefa0c3c"
+ ],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup1\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup1\",\r\n \"status\": \"Succeeded\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "177"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14964"
- ],
"x-ms-request-id": [
- "eastus:b12d8116-1640-49cf-b169-0cbc81783e18"
+ "westcentralus:5e23adb4-5500-47b2-93c3-3dbc73e8f188"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "5e23adb4-5500-47b2-93c3-3dbc73e8f188"
],
"request-id": [
- "cd3b64fb-5d0f-416a-9813-585dcf714686"
+ "5e23adb4-5500-47b2-93c3-3dbc73e8f188"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "11996"
],
"x-ms-correlation-request-id": [
- "722c3c3e-33e4-4a04-9983-33111e0095fd"
+ "5e23adb4-5500-47b2-93c3-3dbc73e8f188"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194312Z:722c3c3e-33e4-4a04-9983-33111e0095fd"
+ "WESTCENTRALUS:20220418T213518Z:5e23adb4-5500-47b2-93c3-3dbc73e8f188"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -1335,32 +1016,28 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:43:12 GMT"
+ "Mon, 18 Apr 2022 21:35:18 GMT"
],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "166"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup1\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup1\",\r\n \"status\": \"Succeeded\"\r\n}",
"StatusCode": 200
}
],
"Names": {},
"Variables": {
- "SubscriptionId": "394ae65d-9e71-4462-930f-3332dedf845c",
- "TenantId": "b1af47f1-138c-4ed2-8bba-119041b95450",
- "Domain": ""
+ "SubscriptionId": "5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de"
}
}
\ No newline at end of file
diff --git a/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestGetManagementGroupWithExpandAndRecurse.json b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestGetManagementGroupWithExpandAndRecurse.json
index 0c93c9aebe7d..446c80c57296 100644
--- a/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestGetManagementGroupWithExpandAndRecurse.json
+++ b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestGetManagementGroupWithExpandAndRecurse.json
@@ -1,67 +1,66 @@
{
"Entries": [
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSGetGroup1?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMT9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSGetGroup1?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMT9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
"RequestMethod": "PUT",
"RequestBody": "{\r\n \"name\": \"TestPSGetGroup1\",\r\n \"properties\": {\r\n \"details\": {\r\n \"parent\": {}\r\n }\r\n }\r\n}",
"RequestHeaders": {
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Content-Length": [
- "103"
- ],
"x-ms-client-request-id": [
- "b0ae0af6-cfa4-48cf-83ce-31fa2d0dc2f1"
+ "b715a400-37e6-4cd3-9e97-9bc015fb82ca"
],
"Cache-Control": [
"no-cache"
],
- "accept-language": [
+ "Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
- ]
- },
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup1\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup1\",\r\n \"status\": \"NotStarted\"\r\n}",
- "ResponseHeaders": {
- "Content-Length": [
- "178"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
],
"Content-Type": [
"application/json; charset=utf-8"
],
- "Expires": [
- "-1"
+ "Content-Length": [
+ "103"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Retry-After": [
- "0"
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "59"
],
"x-ms-request-id": [
- "eastus:f1c79b7e-1623-475b-9720-0c01ca4b759e"
+ "westus:13aa1bb3-770e-4523-9772-d15ac1b905e6"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "13aa1bb3-770e-4523-9772-d15ac1b905e6"
],
"request-id": [
- "5aea5e53-81de-4847-89fd-cbebed9d0d0d"
+ "13aa1bb3-770e-4523-9772-d15ac1b905e6"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
],
"x-ms-ratelimit-remaining-tenant-writes": [
"1199"
],
"x-ms-correlation-request-id": [
- "dcd5bc5e-4456-4615-acc1-b67991865e2c"
+ "13aa1bb3-770e-4523-9772-d15ac1b905e6"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T193940Z:dcd5bc5e-4456-4615-acc1-b67991865e2c"
+ "WESTUS:20220418T214747Z:13aa1bb3-770e-4523-9772-d15ac1b905e6"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -69,44 +68,11 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:39:39 GMT"
- ],
- "Location": [
- "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/operationResults/create/managementGroups/TestPSGetGroup1?api-version=2018-03-01-preview"
+ "Mon, 18 Apr 2022 21:47:47 GMT"
],
- "Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
- ],
- "X-Powered-By": [
- "ASP.NET"
- ]
- },
- "StatusCode": 202
- },
- {
- "RequestUri": "/providers/Microsoft.Management/operationResults/create/managementGroups/TestPSGetGroup1?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2NyZWF0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMT9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
- "RequestMethod": "GET",
- "RequestBody": "",
- "RequestHeaders": {
- "User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
- ]
- },
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup1\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup1\",\r\n \"status\": \"Succeeded\",\r\n \"properties\": {\r\n \"tenantId\": \"b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"displayName\": \"TestPSGetGroup1\",\r\n \"details\": {\r\n \"version\": 25,\r\n \"updatedTime\": \"2018-05-24T19:39:47.821649Z\",\r\n \"updatedBy\": \"aef7ed39-6482-40be-a70c-8ec0669b0d04\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"name\": \"b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"displayName\": \"b1af47f1-138c-4ed2-8bba-119041b95450\"\r\n }\r\n }\r\n }\r\n}",
- "ResponseHeaders": {
"Content-Length": [
- "597"
+ "551"
],
"Content-Type": [
"application/json; charset=utf-8"
@@ -114,119 +80,74 @@
"Expires": [
"-1"
],
- "Pragma": [
- "no-cache"
- ],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14990"
- ],
- "x-ms-request-id": [
- "eastus:91065fd8-8a81-4a1d-818e-3efebf1582f9"
- ],
- "x-ba-restapi": [
- "1.0.3.795"
- ],
- "request-id": [
- "e4958a78-caf2-401d-82dd-a66786a252bb"
- ],
- "x-ms-correlation-request-id": [
- "706f396e-48dc-4e58-b22a-b905f311bf85"
- ],
- "x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T193951Z:706f396e-48dc-4e58-b22a-b905f311bf85"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "X-Content-Type-Options": [
- "nosniff"
- ],
- "Cache-Control": [
- "no-cache"
- ],
- "Date": [
- "Thu, 24 May 2018 19:39:50 GMT"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
- ],
- "X-Powered-By": [
- "ASP.NET"
- ],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup1\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup1\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"TestPSGetGroup1\",\r\n \"details\": {\r\n \"version\": 20,\r\n \"updatedTime\": \"2022-04-18T21:35:39.5814815Z\",\r\n \"updatedBy\": \"9e41f384-0aa9-41bc-a29d-6d956cd8eadb\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"name\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"Root Management Group\"\r\n }\r\n }\r\n }\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSGetGroup2?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSGetGroup2?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMj9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
"RequestMethod": "PUT",
"RequestBody": "{\r\n \"name\": \"TestPSGetGroup2\",\r\n \"properties\": {\r\n \"details\": {\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup1\"\r\n }\r\n }\r\n }\r\n}",
"RequestHeaders": {
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Content-Length": [
- "193"
- ],
"x-ms-client-request-id": [
- "e1b00c8e-69f6-494b-a18d-869dd1ce93b7"
+ "b5c9645b-1f6e-49d4-9334-36189a0224c5"
],
"Cache-Control": [
"no-cache"
],
- "accept-language": [
+ "Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
- ]
- },
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup2\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup2\",\r\n \"status\": \"NotStarted\"\r\n}",
- "ResponseHeaders": {
- "Content-Length": [
- "178"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
],
"Content-Type": [
"application/json; charset=utf-8"
],
- "Expires": [
- "-1"
+ "Content-Length": [
+ "193"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Retry-After": [
- "0"
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "59"
],
"x-ms-request-id": [
- "eastus:62249987-393e-41e0-8265-73362bf177a3"
+ "westus:4654869c-0301-4e88-9960-5ec94f816ad6"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "4654869c-0301-4e88-9960-5ec94f816ad6"
],
"request-id": [
- "7b664d66-e26d-4e63-8b56-89a019d9113c"
+ "4654869c-0301-4e88-9960-5ec94f816ad6"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
],
"x-ms-ratelimit-remaining-tenant-writes": [
- "1198"
+ "1199"
],
"x-ms-correlation-request-id": [
- "bf80e98f-8238-4c89-b647-a19d5d042b8d"
+ "4654869c-0301-4e88-9960-5ec94f816ad6"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T193953Z:bf80e98f-8238-4c89-b647-a19d5d042b8d"
+ "WESTUS:20220418T214748Z:4654869c-0301-4e88-9960-5ec94f816ad6"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -234,44 +155,11 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:39:53 GMT"
- ],
- "Location": [
- "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/operationResults/create/managementGroups/TestPSGetGroup2?api-version=2018-03-01-preview"
+ "Mon, 18 Apr 2022 21:47:48 GMT"
],
- "Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
- ],
- "X-Powered-By": [
- "ASP.NET"
- ]
- },
- "StatusCode": 202
- },
- {
- "RequestUri": "/providers/Microsoft.Management/operationResults/create/managementGroups/TestPSGetGroup2?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2NyZWF0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
- "RequestMethod": "GET",
- "RequestBody": "",
- "RequestHeaders": {
- "User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
- ]
- },
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup2\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup2\",\r\n \"status\": \"Succeeded\",\r\n \"properties\": {\r\n \"tenantId\": \"b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"displayName\": \"TestPSGetGroup2\",\r\n \"details\": {\r\n \"version\": 25,\r\n \"updatedTime\": \"2018-05-24T19:40:00.4881789Z\",\r\n \"updatedBy\": \"aef7ed39-6482-40be-a70c-8ec0669b0d04\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup1\",\r\n \"name\": \"TestPSGetGroup1\",\r\n \"displayName\": \"TestPSGetGroup1\"\r\n }\r\n }\r\n }\r\n}",
- "ResponseHeaders": {
"Content-Length": [
- "535"
+ "502"
],
"Content-Type": [
"application/json; charset=utf-8"
@@ -279,119 +167,74 @@
"Expires": [
"-1"
],
- "Pragma": [
- "no-cache"
- ],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14989"
- ],
- "x-ms-request-id": [
- "eastus:e7cdd04b-91f7-4ba3-95fe-4bb767969b6d"
- ],
- "x-ba-restapi": [
- "1.0.3.795"
- ],
- "request-id": [
- "1dd5355c-0842-4d0b-97c0-65e1ccc5b4fb"
- ],
- "x-ms-correlation-request-id": [
- "4d1af6be-dc7f-4173-8585-afd61ea77273"
- ],
- "x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194004Z:4d1af6be-dc7f-4173-8585-afd61ea77273"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "X-Content-Type-Options": [
- "nosniff"
- ],
- "Cache-Control": [
- "no-cache"
- ],
- "Date": [
- "Thu, 24 May 2018 19:40:04 GMT"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
- ],
- "X-Powered-By": [
- "ASP.NET"
- ],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup2\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup2\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"TestPSGetGroup2\",\r\n \"details\": {\r\n \"version\": 19,\r\n \"updatedTime\": \"2022-04-18T21:36:17.535649Z\",\r\n \"updatedBy\": \"9e41f384-0aa9-41bc-a29d-6d956cd8eadb\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup1\",\r\n \"name\": \"TestPSGetGroup1\",\r\n \"displayName\": \"TestPSGetGroup1\"\r\n }\r\n }\r\n }\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSGetGroup3?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMz9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSGetGroup3?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMz9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
"RequestMethod": "PUT",
"RequestBody": "{\r\n \"name\": \"TestPSGetGroup3\",\r\n \"properties\": {\r\n \"details\": {\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup2\"\r\n }\r\n }\r\n }\r\n}",
"RequestHeaders": {
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Content-Length": [
- "193"
- ],
"x-ms-client-request-id": [
- "1edce97c-9e36-4f5e-bf5a-db10de4fa67b"
+ "3c14372b-1be9-45d6-8757-bc134f9b7e53"
],
"Cache-Control": [
"no-cache"
],
- "accept-language": [
+ "Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
- ]
- },
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup3\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup3\",\r\n \"status\": \"NotStarted\"\r\n}",
- "ResponseHeaders": {
- "Content-Length": [
- "178"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
],
"Content-Type": [
"application/json; charset=utf-8"
],
- "Expires": [
- "-1"
+ "Content-Length": [
+ "193"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Retry-After": [
- "0"
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "59"
],
"x-ms-request-id": [
- "eastus:35e16788-66b9-4c0f-9e4a-0852a4c65830"
+ "westus:f466bf56-481e-4b50-9d0e-924fbcd6f174"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "f466bf56-481e-4b50-9d0e-924fbcd6f174"
],
"request-id": [
- "e3da43ce-bfac-44a5-9602-d373af2aac18"
+ "f466bf56-481e-4b50-9d0e-924fbcd6f174"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
],
"x-ms-ratelimit-remaining-tenant-writes": [
- "1197"
+ "1199"
],
"x-ms-correlation-request-id": [
- "640d6d8c-01e5-4701-ac8a-db607b580f6a"
+ "f466bf56-481e-4b50-9d0e-924fbcd6f174"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194007Z:640d6d8c-01e5-4701-ac8a-db607b580f6a"
+ "WESTUS:20220418T214749Z:f466bf56-481e-4b50-9d0e-924fbcd6f174"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -399,44 +242,11 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:40:06 GMT"
+ "Mon, 18 Apr 2022 21:47:49 GMT"
],
- "Location": [
- "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/operationResults/create/managementGroups/TestPSGetGroup3?api-version=2018-03-01-preview"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
- ],
- "X-Powered-By": [
- "ASP.NET"
- ]
- },
- "StatusCode": 202
- },
- {
- "RequestUri": "/providers/Microsoft.Management/operationResults/create/managementGroups/TestPSGetGroup3?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2NyZWF0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMz9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
- "RequestMethod": "GET",
- "RequestBody": "",
- "RequestHeaders": {
- "User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
- ]
- },
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup3\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup3\",\r\n \"status\": \"Succeeded\",\r\n \"properties\": {\r\n \"tenantId\": \"b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"displayName\": \"TestPSGetGroup3\",\r\n \"details\": {\r\n \"version\": 17,\r\n \"updatedTime\": \"2018-05-24T19:40:10.1592683Z\",\r\n \"updatedBy\": \"aef7ed39-6482-40be-a70c-8ec0669b0d04\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup2\",\r\n \"name\": \"TestPSGetGroup2\",\r\n \"displayName\": \"TestPSGetGroup2\"\r\n }\r\n }\r\n }\r\n}",
- "ResponseHeaders": {
"Content-Length": [
- "535"
+ "503"
],
"Content-Type": [
"application/json; charset=utf-8"
@@ -444,119 +254,74 @@
"Expires": [
"-1"
],
- "Pragma": [
- "no-cache"
- ],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14988"
- ],
- "x-ms-request-id": [
- "eastus:29fb7e39-46d1-4a38-87cd-70c5b36758b5"
- ],
- "x-ba-restapi": [
- "1.0.3.795"
- ],
- "request-id": [
- "31a29220-b9c4-42c8-8f16-62bfd7b08872"
- ],
- "x-ms-correlation-request-id": [
- "95318b99-8655-4170-9efc-a6a4fa0a9c4e"
- ],
- "x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194017Z:95318b99-8655-4170-9efc-a6a4fa0a9c4e"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "X-Content-Type-Options": [
- "nosniff"
- ],
- "Cache-Control": [
- "no-cache"
- ],
- "Date": [
- "Thu, 24 May 2018 19:40:17 GMT"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
- ],
- "X-Powered-By": [
- "ASP.NET"
- ],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup3\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup3\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"TestPSGetGroup3\",\r\n \"details\": {\r\n \"version\": 15,\r\n \"updatedTime\": \"2022-04-18T21:36:55.5955846Z\",\r\n \"updatedBy\": \"9e41f384-0aa9-41bc-a29d-6d956cd8eadb\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup2\",\r\n \"name\": \"TestPSGetGroup2\",\r\n \"displayName\": \"TestPSGetGroup2\"\r\n }\r\n }\r\n }\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSGetGroup4?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwND9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSGetGroup4?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwND9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
"RequestMethod": "PUT",
"RequestBody": "{\r\n \"name\": \"TestPSGetGroup4\",\r\n \"properties\": {\r\n \"details\": {\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup3\"\r\n }\r\n }\r\n }\r\n}",
"RequestHeaders": {
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Content-Length": [
- "193"
- ],
"x-ms-client-request-id": [
- "4fe39a1a-ff80-488a-a091-ce749ad77355"
+ "e28aadee-ab38-491f-bb52-3c9f707cc65c"
],
"Cache-Control": [
"no-cache"
],
- "accept-language": [
+ "Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
- ]
- },
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup4\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup4\",\r\n \"status\": \"NotStarted\"\r\n}",
- "ResponseHeaders": {
- "Content-Length": [
- "178"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
],
"Content-Type": [
"application/json; charset=utf-8"
],
- "Expires": [
- "-1"
+ "Content-Length": [
+ "193"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Retry-After": [
- "0"
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "58"
],
"x-ms-request-id": [
- "eastus:9844700c-2903-473f-bf1d-b0465d7bea4a"
+ "westus:80bc0c34-0404-4b6c-a9fe-73aa817bf9ed"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "80bc0c34-0404-4b6c-a9fe-73aa817bf9ed"
],
"request-id": [
- "2e136126-30ee-4746-87be-816a434cf2d7"
+ "80bc0c34-0404-4b6c-a9fe-73aa817bf9ed"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
],
"x-ms-ratelimit-remaining-tenant-writes": [
- "1196"
+ "1199"
],
"x-ms-correlation-request-id": [
- "1cd85c32-180f-4d36-ae43-c0b7bba798fb"
+ "80bc0c34-0404-4b6c-a9fe-73aa817bf9ed"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194020Z:1cd85c32-180f-4d36-ae43-c0b7bba798fb"
+ "WESTUS:20220418T214750Z:80bc0c34-0404-4b6c-a9fe-73aa817bf9ed"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -564,44 +329,11 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:40:20 GMT"
+ "Mon, 18 Apr 2022 21:47:49 GMT"
],
- "Location": [
- "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/operationResults/create/managementGroups/TestPSGetGroup4?api-version=2018-03-01-preview"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
- ],
- "X-Powered-By": [
- "ASP.NET"
- ]
- },
- "StatusCode": 202
- },
- {
- "RequestUri": "/providers/Microsoft.Management/operationResults/create/managementGroups/TestPSGetGroup4?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2NyZWF0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwND9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
- "RequestMethod": "GET",
- "RequestBody": "",
- "RequestHeaders": {
- "User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
- ]
- },
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup4\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup4\",\r\n \"status\": \"Succeeded\",\r\n \"properties\": {\r\n \"tenantId\": \"b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"displayName\": \"TestPSGetGroup4\",\r\n \"details\": {\r\n \"version\": 9,\r\n \"updatedTime\": \"2018-05-24T19:40:27.1118082Z\",\r\n \"updatedBy\": \"aef7ed39-6482-40be-a70c-8ec0669b0d04\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup3\",\r\n \"name\": \"TestPSGetGroup3\",\r\n \"displayName\": \"TestPSGetGroup3\"\r\n }\r\n }\r\n }\r\n}",
- "ResponseHeaders": {
"Content-Length": [
- "534"
+ "502"
],
"Content-Type": [
"application/json; charset=utf-8"
@@ -609,113 +341,68 @@
"Expires": [
"-1"
],
- "Pragma": [
- "no-cache"
- ],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14987"
- ],
- "x-ms-request-id": [
- "eastus:0ec49606-cbf7-40fa-ba4a-51c64b1e849d"
- ],
- "x-ba-restapi": [
- "1.0.3.795"
- ],
- "request-id": [
- "7670ce9c-b0d4-4449-8b91-0e0b82676996"
- ],
- "x-ms-correlation-request-id": [
- "f002016b-2883-47aa-a5c5-22672575e241"
- ],
- "x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194031Z:f002016b-2883-47aa-a5c5-22672575e241"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "X-Content-Type-Options": [
- "nosniff"
- ],
- "Cache-Control": [
- "no-cache"
- ],
- "Date": [
- "Thu, 24 May 2018 19:40:30 GMT"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
- ],
- "X-Powered-By": [
- "ASP.NET"
- ],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup4\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup4\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"TestPSGetGroup4\",\r\n \"details\": {\r\n \"version\": 8,\r\n \"updatedTime\": \"2022-04-18T21:46:36.3504756Z\",\r\n \"updatedBy\": \"9e41f384-0aa9-41bc-a29d-6d956cd8eadb\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup3\",\r\n \"name\": \"TestPSGetGroup3\",\r\n \"displayName\": \"TestPSGetGroup3\"\r\n }\r\n }\r\n }\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSGetGroup2?api-version=2018-03-01-preview&$expand=children&$recurse=true",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXcmJGV4cGFuZD1jaGlsZHJlbiYkcmVjdXJzZT10cnVl",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSGetGroup2?api-version=2021-04-01&$expand=children&$recurse=true",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMj9hcGktdmVyc2lvbj0yMDIxLTA0LTAxJiRleHBhbmQ9Y2hpbGRyZW4mJHJlY3Vyc2U9dHJ1ZQ==",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
"x-ms-client-request-id": [
- "4b241bfe-35e7-4a3c-951f-6ec812068b46"
+ "df4b24a7-befa-4a46-b4d7-46b44a278cf6"
],
"Cache-Control": [
"no-cache"
],
- "accept-language": [
+ "Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup2\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup2\",\r\n \"properties\": {\r\n \"tenantId\": \"b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"displayName\": \"TestPSGetGroup2\",\r\n \"details\": {\r\n \"version\": 25,\r\n \"updatedTime\": \"2018-05-24T19:40:00.4881789Z\",\r\n \"updatedBy\": \"aef7ed39-6482-40be-a70c-8ec0669b0d04\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup1\",\r\n \"name\": \"TestPSGetGroup1\",\r\n \"displayName\": \"TestPSGetGroup1\"\r\n }\r\n },\r\n \"children\": [\r\n {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup3\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup3\",\r\n \"displayName\": \"TestPSGetGroup3\",\r\n \"children\": [\r\n {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup4\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup4\",\r\n \"displayName\": \"TestPSGetGroup4\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "918"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14986"
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "59"
],
"x-ms-request-id": [
- "eastus:e829128c-0b81-473d-bb71-a25f4d0f315f"
+ "westus:78c9cda6-5871-4fc3-b452-d5765e190806"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "78c9cda6-5871-4fc3-b452-d5765e190806"
],
"request-id": [
- "2067642e-efcb-4ae7-9bd8-9b85009959ab"
+ "78c9cda6-5871-4fc3-b452-d5765e190806"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "11999"
],
"x-ms-correlation-request-id": [
- "41d2449d-8e6e-4b31-ad42-3eef3f0ff936"
+ "78c9cda6-5871-4fc3-b452-d5765e190806"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194035Z:41d2449d-8e6e-4b31-ad42-3eef3f0ff936"
+ "WESTUS:20220418T214750Z:78c9cda6-5871-4fc3-b452-d5765e190806"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -723,83 +410,89 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:40:34 GMT"
+ "Mon, 18 Apr 2022 21:47:50 GMT"
],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "841"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup2\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup2\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"TestPSGetGroup2\",\r\n \"details\": {\r\n \"version\": 0,\r\n \"updatedTime\": \"0001-01-01T00:00:00\",\r\n \"updatedBy\": null,\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup1\",\r\n \"name\": \"TestPSGetGroup1\",\r\n \"displayName\": \"TestPSGetGroup1\"\r\n }\r\n },\r\n \"children\": [\r\n {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup3\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup3\",\r\n \"displayName\": \"TestPSGetGroup3\",\r\n \"children\": [\r\n {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup4\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup4\",\r\n \"displayName\": \"TestPSGetGroup4\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSGetGroup4?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwND9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSGetGroup4?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwND9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
"RequestMethod": "DELETE",
"RequestBody": "",
"RequestHeaders": {
"x-ms-client-request-id": [
- "12dc9046-cd1e-437e-ac2f-d9bbfa3f0fbb"
+ "44f36f49-3336-4399-b716-50eeb5cf636a"
],
"Cache-Control": [
"no-cache"
],
- "accept-language": [
+ "Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup4\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup4\",\r\n \"status\": \"NotStarted\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "178"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
+ "Location": [
+ "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSGetGroup4?api-version=2021-04-01"
+ ],
"Retry-After": [
"0"
],
+ "Azure-AsyncOperation": [
+ "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/TestPSGetGroup4?api-version=2021-04-01"
+ ],
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "59"
+ ],
"x-ms-request-id": [
- "eastus:25004523-14fd-4489-bb8d-9bb3e52c793d"
+ "westus:a2fa5dec-7d72-4cc4-8902-75e0606684eb"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "a2fa5dec-7d72-4cc4-8902-75e0606684eb"
],
"request-id": [
- "4d1a99d4-19de-4312-aa22-596a105bf6e8"
+ "a2fa5dec-7d72-4cc4-8902-75e0606684eb"
],
- "x-ms-ratelimit-remaining-tenant-writes": [
- "1195"
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-deletes": [
+ "14999"
],
"x-ms-correlation-request-id": [
- "5799c828-7cd9-4467-838c-19232cd0607f"
+ "a2fa5dec-7d72-4cc4-8902-75e0606684eb"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194038Z:5799c828-7cd9-4467-838c-19232cd0607f"
+ "WESTUS:20220418T214751Z:a2fa5dec-7d72-4cc4-8902-75e0606684eb"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -807,74 +500,68 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:40:38 GMT"
+ "Mon, 18 Apr 2022 21:47:51 GMT"
],
- "Location": [
- "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSGetGroup4?api-version=2018-03-01-preview"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "167"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup4\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup4\",\r\n \"status\": \"NotStarted\"\r\n}",
"StatusCode": 202
},
{
- "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSGetGroup4?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwND9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/TestPSGetGroup4?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9hc3luY09wZXJhdGlvbi9zdGF0dXMvbWFuYWdlbWVudEdyb3Vwcy9UZXN0UFNHZXRHcm91cDQ/YXBpLXZlcnNpb249MjAyMS0wNC0wMQ==",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
+ "x-ms-client-request-id": [
+ "44f36f49-3336-4399-b716-50eeb5cf636a"
+ ],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup4\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup4\",\r\n \"status\": \"Succeeded\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "177"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14985"
- ],
"x-ms-request-id": [
- "eastus:c45b68f5-1267-45ee-8fb7-c316665c98de"
+ "westus:730f437c-05e6-4c22-bf72-30c8297a63ea"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "730f437c-05e6-4c22-bf72-30c8297a63ea"
],
"request-id": [
- "dc6a036e-8483-426c-b552-b8e579d1590c"
+ "730f437c-05e6-4c22-bf72-30c8297a63ea"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "11999"
],
"x-ms-correlation-request-id": [
- "98b96d81-59ce-47de-a001-2ca82d7e4796"
+ "730f437c-05e6-4c22-bf72-30c8297a63ea"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194048Z:98b96d81-59ce-47de-a001-2ca82d7e4796"
+ "WESTUS:20220418T214801Z:730f437c-05e6-4c22-bf72-30c8297a63ea"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -882,74 +569,71 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:40:48 GMT"
+ "Mon, 18 Apr 2022 21:48:01 GMT"
],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "165"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/TestPSGetGroup4\",\r\n \"name\": \"TestPSGetGroup4\",\r\n \"status\": \"Succeeded\"\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSGetGroup4?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwND9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSGetGroup4?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwND9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
+ "x-ms-client-request-id": [
+ "44f36f49-3336-4399-b716-50eeb5cf636a"
+ ],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup4\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup4\",\r\n \"status\": \"Succeeded\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "177"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14984"
- ],
"x-ms-request-id": [
- "eastus:fa5c1292-163a-48ec-b93b-23e0a11ee6cd"
+ "westus:e85b7bf4-5d63-457e-ad46-6086d729040c"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "e85b7bf4-5d63-457e-ad46-6086d729040c"
],
"request-id": [
- "a8fecae1-8574-48da-b4da-fc0d4caeb113"
+ "e85b7bf4-5d63-457e-ad46-6086d729040c"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "11998"
],
"x-ms-correlation-request-id": [
- "f98f1d17-0002-4df6-822a-bffcfa168971"
+ "e85b7bf4-5d63-457e-ad46-6086d729040c"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194049Z:f98f1d17-0002-4df6-822a-bffcfa168971"
+ "WESTUS:20220418T214802Z:e85b7bf4-5d63-457e-ad46-6086d729040c"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -957,83 +641,89 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:40:48 GMT"
+ "Mon, 18 Apr 2022 21:48:01 GMT"
],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "166"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup4\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup4\",\r\n \"status\": \"Succeeded\"\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSGetGroup3?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMz9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSGetGroup3?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMz9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
"RequestMethod": "DELETE",
"RequestBody": "",
"RequestHeaders": {
"x-ms-client-request-id": [
- "a6606ac3-e26a-4541-b08f-6bf393d58d9f"
+ "7b9e378d-6f32-41a8-a295-00ecbd717405"
],
"Cache-Control": [
"no-cache"
],
- "accept-language": [
+ "Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup3\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup3\",\r\n \"status\": \"NotStarted\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "178"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
+ "Location": [
+ "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSGetGroup3?api-version=2021-04-01"
+ ],
"Retry-After": [
"0"
],
+ "Azure-AsyncOperation": [
+ "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/TestPSGetGroup3?api-version=2021-04-01"
+ ],
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "59"
+ ],
"x-ms-request-id": [
- "eastus:127c2312-5d7c-4791-9d13-cec3f96d0e75"
+ "westcentralus:eba8222d-f72a-48db-a56c-78ee3e8d2da5"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "eba8222d-f72a-48db-a56c-78ee3e8d2da5"
],
"request-id": [
- "8f5fc427-160d-4ae0-869f-0cc631df3814"
+ "eba8222d-f72a-48db-a56c-78ee3e8d2da5"
],
- "x-ms-ratelimit-remaining-tenant-writes": [
- "1194"
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-deletes": [
+ "14999"
],
"x-ms-correlation-request-id": [
- "5c203ea3-6c38-43bf-89e4-55cd976845b8"
+ "eba8222d-f72a-48db-a56c-78ee3e8d2da5"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194051Z:5c203ea3-6c38-43bf-89e4-55cd976845b8"
+ "WESTCENTRALUS:20220418T214803Z:eba8222d-f72a-48db-a56c-78ee3e8d2da5"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -1041,74 +731,68 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:40:50 GMT"
+ "Mon, 18 Apr 2022 21:48:02 GMT"
],
- "Location": [
- "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSGetGroup3?api-version=2018-03-01-preview"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "167"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup3\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup3\",\r\n \"status\": \"NotStarted\"\r\n}",
"StatusCode": 202
},
{
- "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSGetGroup3?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMz9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/TestPSGetGroup3?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9hc3luY09wZXJhdGlvbi9zdGF0dXMvbWFuYWdlbWVudEdyb3Vwcy9UZXN0UFNHZXRHcm91cDM/YXBpLXZlcnNpb249MjAyMS0wNC0wMQ==",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
+ "x-ms-client-request-id": [
+ "7b9e378d-6f32-41a8-a295-00ecbd717405"
+ ],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup3\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup3\",\r\n \"status\": \"Succeeded\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "177"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14983"
- ],
"x-ms-request-id": [
- "eastus:0be290fb-8eb9-448f-9c79-fa353b4bb432"
+ "westcentralus:3792c1e0-c611-400b-bb2a-a26754474f21"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "3792c1e0-c611-400b-bb2a-a26754474f21"
],
"request-id": [
- "d70dca59-3455-4ab5-b21b-1dd3ce31e09b"
+ "3792c1e0-c611-400b-bb2a-a26754474f21"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "11996"
],
"x-ms-correlation-request-id": [
- "2120618c-bb51-453a-a83f-6f4be70f29c9"
+ "3792c1e0-c611-400b-bb2a-a26754474f21"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194102Z:2120618c-bb51-453a-a83f-6f4be70f29c9"
+ "WESTCENTRALUS:20220418T214813Z:3792c1e0-c611-400b-bb2a-a26754474f21"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -1116,74 +800,71 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:41:01 GMT"
+ "Mon, 18 Apr 2022 21:48:12 GMT"
],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "165"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/TestPSGetGroup3\",\r\n \"name\": \"TestPSGetGroup3\",\r\n \"status\": \"Succeeded\"\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSGetGroup3?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMz9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSGetGroup3?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMz9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
+ "x-ms-client-request-id": [
+ "7b9e378d-6f32-41a8-a295-00ecbd717405"
+ ],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup3\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup3\",\r\n \"status\": \"Succeeded\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "177"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14982"
- ],
"x-ms-request-id": [
- "eastus:abe6eb2c-d996-46b7-878f-6c8e435f086b"
+ "westcentralus:f750b93e-1f0b-4f9d-a446-c4e278ad687e"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "f750b93e-1f0b-4f9d-a446-c4e278ad687e"
],
"request-id": [
- "1d0637b3-995a-4b36-9a78-4ad03b753a87"
+ "f750b93e-1f0b-4f9d-a446-c4e278ad687e"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "11995"
],
"x-ms-correlation-request-id": [
- "f627d5f2-cea9-4e2b-a031-928881eec9a5"
+ "f750b93e-1f0b-4f9d-a446-c4e278ad687e"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194102Z:f627d5f2-cea9-4e2b-a031-928881eec9a5"
+ "WESTCENTRALUS:20220418T214814Z:f750b93e-1f0b-4f9d-a446-c4e278ad687e"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -1191,83 +872,89 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:41:01 GMT"
+ "Mon, 18 Apr 2022 21:48:13 GMT"
],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "166"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup3\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup3\",\r\n \"status\": \"Succeeded\"\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSGetGroup2?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSGetGroup2?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMj9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
"RequestMethod": "DELETE",
"RequestBody": "",
"RequestHeaders": {
"x-ms-client-request-id": [
- "f6da54fa-7c26-4aef-97eb-e319013479f9"
+ "5727fc33-4497-4259-aa72-a293891f9065"
],
"Cache-Control": [
"no-cache"
],
- "accept-language": [
+ "Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup2\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup2\",\r\n \"status\": \"NotStarted\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "178"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
+ "Location": [
+ "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSGetGroup2?api-version=2021-04-01"
+ ],
"Retry-After": [
"0"
],
+ "Azure-AsyncOperation": [
+ "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/TestPSGetGroup2?api-version=2021-04-01"
+ ],
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "59"
+ ],
"x-ms-request-id": [
- "eastus:bc46c2b7-d205-4ee8-8c93-6bcf5147fc95"
+ "westus:fbcfb878-9185-4c12-9ff1-babb20819ae0"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "fbcfb878-9185-4c12-9ff1-babb20819ae0"
],
"request-id": [
- "ea12f938-4791-4ed3-9772-96624f8e1ad8"
+ "fbcfb878-9185-4c12-9ff1-babb20819ae0"
],
- "x-ms-ratelimit-remaining-tenant-writes": [
- "1193"
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-deletes": [
+ "14999"
],
"x-ms-correlation-request-id": [
- "d4ea7ed6-980e-4b35-9460-39e7d3a92e19"
+ "fbcfb878-9185-4c12-9ff1-babb20819ae0"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194104Z:d4ea7ed6-980e-4b35-9460-39e7d3a92e19"
+ "WESTUS:20220418T214815Z:fbcfb878-9185-4c12-9ff1-babb20819ae0"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -1275,74 +962,68 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:41:04 GMT"
+ "Mon, 18 Apr 2022 21:48:14 GMT"
],
- "Location": [
- "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSGetGroup2?api-version=2018-03-01-preview"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "167"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup2\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup2\",\r\n \"status\": \"NotStarted\"\r\n}",
"StatusCode": 202
},
{
- "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSGetGroup2?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/TestPSGetGroup2?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9hc3luY09wZXJhdGlvbi9zdGF0dXMvbWFuYWdlbWVudEdyb3Vwcy9UZXN0UFNHZXRHcm91cDI/YXBpLXZlcnNpb249MjAyMS0wNC0wMQ==",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
+ "x-ms-client-request-id": [
+ "5727fc33-4497-4259-aa72-a293891f9065"
+ ],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup2\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup2\",\r\n \"status\": \"Succeeded\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "177"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14981"
- ],
"x-ms-request-id": [
- "eastus:38131425-0f20-4776-b4cb-cbfab545e8d8"
+ "westus:a4232c4d-f9be-457d-ae00-d57c1a4500eb"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "a4232c4d-f9be-457d-ae00-d57c1a4500eb"
],
"request-id": [
- "c862eba4-4d52-404b-bef1-9ef7a7c285b6"
+ "a4232c4d-f9be-457d-ae00-d57c1a4500eb"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "11999"
],
"x-ms-correlation-request-id": [
- "931626a0-b075-4bdc-bde9-c7538fa05120"
+ "a4232c4d-f9be-457d-ae00-d57c1a4500eb"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194115Z:931626a0-b075-4bdc-bde9-c7538fa05120"
+ "WESTUS:20220418T214825Z:a4232c4d-f9be-457d-ae00-d57c1a4500eb"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -1350,74 +1031,71 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:41:15 GMT"
+ "Mon, 18 Apr 2022 21:48:24 GMT"
],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "165"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/TestPSGetGroup2\",\r\n \"name\": \"TestPSGetGroup2\",\r\n \"status\": \"Succeeded\"\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSGetGroup2?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSGetGroup2?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMj9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
+ "x-ms-client-request-id": [
+ "5727fc33-4497-4259-aa72-a293891f9065"
+ ],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup2\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup2\",\r\n \"status\": \"Succeeded\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "177"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14980"
- ],
"x-ms-request-id": [
- "eastus:80be61cb-6b64-4cbe-a0f5-1277b9b6750c"
+ "westus:2a33b170-f75b-4509-b662-ca84c40aeaf3"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "2a33b170-f75b-4509-b662-ca84c40aeaf3"
],
"request-id": [
- "943c09eb-2e8b-4cbd-a152-131871268c17"
+ "2a33b170-f75b-4509-b662-ca84c40aeaf3"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "11998"
],
"x-ms-correlation-request-id": [
- "d2b12d66-253f-447c-898a-a196e0d177bb"
+ "2a33b170-f75b-4509-b662-ca84c40aeaf3"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194115Z:d2b12d66-253f-447c-898a-a196e0d177bb"
+ "WESTUS:20220418T214825Z:2a33b170-f75b-4509-b662-ca84c40aeaf3"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -1425,83 +1103,89 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:41:15 GMT"
+ "Mon, 18 Apr 2022 21:48:25 GMT"
],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "166"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup2\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup2\",\r\n \"status\": \"Succeeded\"\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSGetGroup1?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMT9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSGetGroup1?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMT9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
"RequestMethod": "DELETE",
"RequestBody": "",
"RequestHeaders": {
"x-ms-client-request-id": [
- "99047a0f-0b89-4923-baf7-f3fcf35244aa"
+ "543cfce0-fdf8-4921-88b7-c75336bf7163"
],
"Cache-Control": [
"no-cache"
],
- "accept-language": [
+ "Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup1\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup1\",\r\n \"status\": \"NotStarted\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "178"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
+ "Location": [
+ "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSGetGroup1?api-version=2021-04-01"
+ ],
"Retry-After": [
"0"
],
+ "Azure-AsyncOperation": [
+ "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/TestPSGetGroup1?api-version=2021-04-01"
+ ],
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "59"
+ ],
"x-ms-request-id": [
- "eastus:e1e463fa-aa2f-4dfe-a8f3-175a216133ec"
+ "westcentralus:febcfa5b-9210-4209-9252-03c7d722c602"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "febcfa5b-9210-4209-9252-03c7d722c602"
],
"request-id": [
- "22d8b44c-cae6-4e25-a63a-aba63611b0ea"
+ "febcfa5b-9210-4209-9252-03c7d722c602"
],
- "x-ms-ratelimit-remaining-tenant-writes": [
- "1192"
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-deletes": [
+ "14999"
],
"x-ms-correlation-request-id": [
- "4cafea0e-b635-4e30-807d-774a1471b855"
+ "febcfa5b-9210-4209-9252-03c7d722c602"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194117Z:4cafea0e-b635-4e30-807d-774a1471b855"
+ "WESTCENTRALUS:20220418T214827Z:febcfa5b-9210-4209-9252-03c7d722c602"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -1509,74 +1193,68 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:41:17 GMT"
+ "Mon, 18 Apr 2022 21:48:26 GMT"
],
- "Location": [
- "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSGetGroup1?api-version=2018-03-01-preview"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "167"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup1\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup1\",\r\n \"status\": \"NotStarted\"\r\n}",
"StatusCode": 202
},
{
- "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSGetGroup1?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMT9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/TestPSGetGroup1?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9hc3luY09wZXJhdGlvbi9zdGF0dXMvbWFuYWdlbWVudEdyb3Vwcy9UZXN0UFNHZXRHcm91cDE/YXBpLXZlcnNpb249MjAyMS0wNC0wMQ==",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
+ "x-ms-client-request-id": [
+ "543cfce0-fdf8-4921-88b7-c75336bf7163"
+ ],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup1\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup1\",\r\n \"status\": \"Succeeded\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "177"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14979"
- ],
"x-ms-request-id": [
- "eastus:007740b4-abb8-4658-ae59-bb78a4c97696"
+ "westcentralus:30e25e39-3528-46b0-9438-e2382b5742b0"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "30e25e39-3528-46b0-9438-e2382b5742b0"
],
"request-id": [
- "9afb8385-45df-4e90-ba38-aabddb644d53"
+ "30e25e39-3528-46b0-9438-e2382b5742b0"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "11991"
],
"x-ms-correlation-request-id": [
- "8085a214-ae38-4e98-a7b0-9f506a8f98a1"
+ "30e25e39-3528-46b0-9438-e2382b5742b0"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194128Z:8085a214-ae38-4e98-a7b0-9f506a8f98a1"
+ "WESTCENTRALUS:20220418T214837Z:30e25e39-3528-46b0-9438-e2382b5742b0"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -1584,74 +1262,71 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:41:28 GMT"
+ "Mon, 18 Apr 2022 21:48:36 GMT"
],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "165"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/TestPSGetGroup1\",\r\n \"name\": \"TestPSGetGroup1\",\r\n \"status\": \"Succeeded\"\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSGetGroup1?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMT9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSGetGroup1?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMT9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
+ "x-ms-client-request-id": [
+ "543cfce0-fdf8-4921-88b7-c75336bf7163"
+ ],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup1\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup1\",\r\n \"status\": \"Succeeded\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "177"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14978"
- ],
"x-ms-request-id": [
- "eastus:f82bbb9d-3de1-4df8-b3a0-73039ab981ee"
+ "westcentralus:bb13ecc6-0252-40cc-902b-8f3c1fe4dd7c"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "bb13ecc6-0252-40cc-902b-8f3c1fe4dd7c"
],
"request-id": [
- "cfa4c928-1f8e-41b7-a1ef-ee0eebe95c97"
+ "bb13ecc6-0252-40cc-902b-8f3c1fe4dd7c"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "11990"
],
"x-ms-correlation-request-id": [
- "467924a8-0554-4e9c-acff-24b89182e30d"
+ "bb13ecc6-0252-40cc-902b-8f3c1fe4dd7c"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194128Z:467924a8-0554-4e9c-acff-24b89182e30d"
+ "WESTCENTRALUS:20220418T214837Z:bb13ecc6-0252-40cc-902b-8f3c1fe4dd7c"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -1659,32 +1334,28 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:41:28 GMT"
+ "Mon, 18 Apr 2022 21:48:36 GMT"
],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "166"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGetGroup1\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGetGroup1\",\r\n \"status\": \"Succeeded\"\r\n}",
"StatusCode": 200
}
],
"Names": {},
"Variables": {
- "SubscriptionId": "394ae65d-9e71-4462-930f-3332dedf845c",
- "TenantId": "b1af47f1-138c-4ed2-8bba-119041b95450",
- "Domain": ""
+ "SubscriptionId": "5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de"
}
}
\ No newline at end of file
diff --git a/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestGetTenantBackfillStatus.json b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestGetTenantBackfillStatus.json
new file mode 100644
index 000000000000..a3db3089a2e4
--- /dev/null
+++ b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestGetTenantBackfillStatus.json
@@ -0,0 +1,83 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/providers/Microsoft.Management/tenantBackfillStatus?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC90ZW5hbnRCYWNrZmlsbFN0YXR1cz9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
+ "RequestMethod": "POST",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "8150fddc-245d-4fa6-a0e9-fbc0976a3a9d"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "westcentralus:31d8b9ea-ad2f-4e5e-8d5c-03cf0614b62d"
+ ],
+ "x-ba-restapi": [
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "31d8b9ea-ad2f-4e5e-8d5c-03cf0614b62d"
+ ],
+ "request-id": [
+ "31d8b9ea-ad2f-4e5e-8d5c-03cf0614b62d"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1199"
+ ],
+ "x-ms-correlation-request-id": [
+ "31d8b9ea-ad2f-4e5e-8d5c-03cf0614b62d"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTCENTRALUS:20220418T213247Z:31d8b9ea-ad2f-4e5e-8d5c-03cf0614b62d"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Mon, 18 Apr 2022 21:32:46 GMT"
+ ],
+ "Content-Length": [
+ "72"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Retry-After": [
+ "0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"status\": \"Completed\"\r\n}",
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de"
+ }
+}
\ No newline at end of file
diff --git a/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestGetsubscriptionsUnderManagementGroup.json b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestGetsubscriptionsUnderManagementGroup.json
new file mode 100644
index 000000000000..db865cd5fb18
--- /dev/null
+++ b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestGetsubscriptionsUnderManagementGroup.json
@@ -0,0 +1,410 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestSubGroup1?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RTdWJHcm91cDE/YXBpLXZlcnNpb249MjAyMS0wNC0wMQ==",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"name\": \"TestSubGroup1\",\r\n \"properties\": {\r\n \"details\": {\r\n \"parent\": {}\r\n }\r\n }\r\n}",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "994e13ab-0850-4649-bfc3-b921199679ff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "101"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "59"
+ ],
+ "x-ms-request-id": [
+ "westcentralus:01a6c0cf-9e14-4c05-aa75-82d7835f5425"
+ ],
+ "x-ba-restapi": [
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "01a6c0cf-9e14-4c05-aa75-82d7835f5425"
+ ],
+ "request-id": [
+ "01a6c0cf-9e14-4c05-aa75-82d7835f5425"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1197"
+ ],
+ "x-ms-correlation-request-id": [
+ "01a6c0cf-9e14-4c05-aa75-82d7835f5425"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTCENTRALUS:20220418T213203Z:01a6c0cf-9e14-4c05-aa75-82d7835f5425"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Mon, 18 Apr 2022 21:32:02 GMT"
+ ],
+ "Content-Length": [
+ "544"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Retry-After": [
+ "0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestSubGroup1\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestSubGroup1\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"TestSubGroup1\",\r\n \"details\": {\r\n \"version\": 1,\r\n \"updatedTime\": \"2022-03-31T22:05:10.8492417Z\",\r\n \"updatedBy\": \"9e41f384-0aa9-41bc-a29d-6d956cd8eadb\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"name\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"Root Management Group\"\r\n }\r\n }\r\n }\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestSubGroup1/subscriptions/5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RTdWJHcm91cDEvc3Vic2NyaXB0aW9ucy81NjAyZmJkOS1mYjBkLTRmYmItOThiMy0xMGM4ZWEyMGI2ZGU/YXBpLXZlcnNpb249MjAyMS0wNC0wMQ==",
+ "RequestMethod": "PUT",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "c689f4cc-2209-477e-9814-98ea852149ca"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "249"
+ ],
+ "x-ms-request-id": [
+ "westcentralus:d1cd244e-cd3a-4976-92d9-84d51f29f00a"
+ ],
+ "x-ba-restapi": [
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "d1cd244e-cd3a-4976-92d9-84d51f29f00a"
+ ],
+ "request-id": [
+ "d1cd244e-cd3a-4976-92d9-84d51f29f00a"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1199"
+ ],
+ "x-ms-correlation-request-id": [
+ "d1cd244e-cd3a-4976-92d9-84d51f29f00a"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTCENTRALUS:20220418T213207Z:d1cd244e-cd3a-4976-92d9-84d51f29f00a"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Mon, 18 Apr 2022 21:32:06 GMT"
+ ],
+ "Content-Length": [
+ "475"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Retry-After": [
+ "0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"name\": \"5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de\",\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestSubGroup1/subscriptions/5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de\",\r\n \"type\": \"Microsoft.Management/managementGroups/subscriptions\",\r\n \"properties\": {\r\n \"displayName\": \"Visual Studio Enterprise Subscription\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestSubGroup1\",\r\n \"name\": null,\r\n \"displayName\": null\r\n },\r\n \"state\": \"Active\",\r\n \"tenant\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\"\r\n }\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestSubGroup1?api-version=2021-04-01&$expand=children&$recurse=false",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RTdWJHcm91cDE/YXBpLXZlcnNpb249MjAyMS0wNC0wMSYkZXhwYW5kPWNoaWxkcmVuJiRyZWN1cnNlPWZhbHNl",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "c7ed7f64-7169-42c0-b3f6-bc9d3ce78471"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "59"
+ ],
+ "x-ms-request-id": [
+ "westcentralus:1dd891ff-de2c-4416-ad02-9d2f5018a449"
+ ],
+ "x-ba-restapi": [
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "1dd891ff-de2c-4416-ad02-9d2f5018a449"
+ ],
+ "request-id": [
+ "1dd891ff-de2c-4416-ad02-9d2f5018a449"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "11999"
+ ],
+ "x-ms-correlation-request-id": [
+ "1dd891ff-de2c-4416-ad02-9d2f5018a449"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTCENTRALUS:20220418T213207Z:1dd891ff-de2c-4416-ad02-9d2f5018a449"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Mon, 18 Apr 2022 21:32:07 GMT"
+ ],
+ "Content-Length": [
+ "742"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Retry-After": [
+ "0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestSubGroup1\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestSubGroup1\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"TestSubGroup1\",\r\n \"details\": {\r\n \"version\": 1,\r\n \"updatedTime\": \"2022-03-31T22:05:10.8492417Z\",\r\n \"updatedBy\": \"9e41f384-0aa9-41bc-a29d-6d956cd8eadb\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"name\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"Root Management Group\"\r\n }\r\n },\r\n \"children\": [\r\n {\r\n \"id\": \"/subscriptions/5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de\",\r\n \"type\": \"/subscriptions\",\r\n \"name\": \"5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de\",\r\n \"displayName\": \"Visual Studio Enterprise Subscription\"\r\n }\r\n ]\r\n }\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestSubGroup1/subscriptions?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RTdWJHcm91cDEvc3Vic2NyaXB0aW9ucz9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "47bab80f-620f-4d41-8e0c-93a1bef5959c"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "westcentralus:c096a48f-3eb6-4470-97e2-7d6000f1be18"
+ ],
+ "x-ba-restapi": [
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "c096a48f-3eb6-4470-97e2-7d6000f1be18"
+ ],
+ "request-id": [
+ "c096a48f-3eb6-4470-97e2-7d6000f1be18"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "11997"
+ ],
+ "x-ms-correlation-request-id": [
+ "c096a48f-3eb6-4470-97e2-7d6000f1be18"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTCENTRALUS:20220418T213208Z:c096a48f-3eb6-4470-97e2-7d6000f1be18"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Mon, 18 Apr 2022 21:32:07 GMT"
+ ],
+ "Content-Length": [
+ "487"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Retry-After": [
+ "0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"name\": \"5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de\",\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestSubGroup1/subscriptions/5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de\",\r\n \"type\": \"Microsoft.Management/managementGroups/subscriptions\",\r\n \"properties\": {\r\n \"displayName\": \"Visual Studio Enterprise Subscription\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestSubGroup1\",\r\n \"name\": null,\r\n \"displayName\": null\r\n },\r\n \"state\": \"Active\",\r\n \"tenant\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\"\r\n }\r\n }\r\n ]\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestSubGroup1/subscriptions/5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RTdWJHcm91cDEvc3Vic2NyaXB0aW9ucy81NjAyZmJkOS1mYjBkLTRmYmItOThiMy0xMGM4ZWEyMGI2ZGU/YXBpLXZlcnNpb249MjAyMS0wNC0wMQ==",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "4a7248fc-6701-4924-aa37-cc0abfca138e"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "249"
+ ],
+ "x-ms-request-id": [
+ "westcentralus:873a4d60-59af-43e5-9867-ee9998799c87"
+ ],
+ "x-ba-restapi": [
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "873a4d60-59af-43e5-9867-ee9998799c87"
+ ],
+ "request-id": [
+ "873a4d60-59af-43e5-9867-ee9998799c87"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-deletes": [
+ "14999"
+ ],
+ "x-ms-correlation-request-id": [
+ "873a4d60-59af-43e5-9867-ee9998799c87"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTCENTRALUS:20220418T213211Z:873a4d60-59af-43e5-9867-ee9998799c87"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Mon, 18 Apr 2022 21:32:10 GMT"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Content-Length": [
+ "0"
+ ],
+ "Retry-After": [
+ "0"
+ ]
+ },
+ "ResponseBody": "",
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de"
+ }
+}
\ No newline at end of file
diff --git a/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestNewAuthorizationHierarcySetting.json b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestNewAuthorizationHierarcySetting.json
new file mode 100644
index 000000000000..6b8d89a73ea6
--- /dev/null
+++ b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestNewAuthorizationHierarcySetting.json
@@ -0,0 +1,161 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL2M3YTg3Y2RhLTlhNjYtNDkyMC1iMGY4LTg2OWJhYTA0ZWZlMC9zZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMjEtMDQtMDE=",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"properties\": {\r\n \"requireAuthorizationForGroupCreation\": true\r\n }\r\n}",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "13ccf865-f9cc-46a8-95fa-4cb6a227c86c"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "78"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "westus:f10c76fd-b1ae-47d7-8758-4c9ae1767ab8"
+ ],
+ "x-ba-restapi": [
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "f10c76fd-b1ae-47d7-8758-4c9ae1767ab8"
+ ],
+ "request-id": [
+ "f10c76fd-b1ae-47d7-8758-4c9ae1767ab8"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1199"
+ ],
+ "x-ms-correlation-request-id": [
+ "f10c76fd-b1ae-47d7-8758-4c9ae1767ab8"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS:20220418T212911Z:f10c76fd-b1ae-47d7-8758-4c9ae1767ab8"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Mon, 18 Apr 2022 21:29:11 GMT"
+ ],
+ "Content-Length": [
+ "323"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Retry-After": [
+ "0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default\",\r\n \"type\": \"Microsoft.Management/managementGroups/settings\",\r\n \"name\": \"default\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"requireAuthorizationForGroupCreation\": true,\r\n \"defaultManagementGroup\": null\r\n }\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL2M3YTg3Y2RhLTlhNjYtNDkyMC1iMGY4LTg2OWJhYTA0ZWZlMC9zZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMjEtMDQtMDE=",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "54f54a9f-e5ef-4fad-9e1e-e222ffccdfc5"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "westus:39d661c8-d3de-4a8d-a30d-65839e68e94d"
+ ],
+ "x-ba-restapi": [
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "39d661c8-d3de-4a8d-a30d-65839e68e94d"
+ ],
+ "request-id": [
+ "39d661c8-d3de-4a8d-a30d-65839e68e94d"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-deletes": [
+ "14999"
+ ],
+ "x-ms-correlation-request-id": [
+ "39d661c8-d3de-4a8d-a30d-65839e68e94d"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS:20220418T212912Z:39d661c8-d3de-4a8d-a30d-65839e68e94d"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Mon, 18 Apr 2022 21:29:12 GMT"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Content-Length": [
+ "0"
+ ],
+ "Retry-After": [
+ "0"
+ ]
+ },
+ "ResponseBody": "",
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de"
+ }
+}
\ No newline at end of file
diff --git a/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestNewDefaultMGHierarcySetting.json b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestNewDefaultMGHierarcySetting.json
new file mode 100644
index 000000000000..bdd1f4a80bff
--- /dev/null
+++ b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestNewDefaultMGHierarcySetting.json
@@ -0,0 +1,248 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/defaultMG?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL2RlZmF1bHRNRz9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"name\": \"defaultMG\",\r\n \"properties\": {\r\n \"details\": {\r\n \"parent\": {}\r\n }\r\n }\r\n}",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "6bd6221e-4325-4936-b846-ddf461fadc3e"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "97"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "59"
+ ],
+ "x-ms-request-id": [
+ "westus:cbdae41c-2cd3-4177-a70a-1061c4d7a018"
+ ],
+ "x-ba-restapi": [
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "cbdae41c-2cd3-4177-a70a-1061c4d7a018"
+ ],
+ "request-id": [
+ "cbdae41c-2cd3-4177-a70a-1061c4d7a018"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1199"
+ ],
+ "x-ms-correlation-request-id": [
+ "cbdae41c-2cd3-4177-a70a-1061c4d7a018"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS:20220418T213004Z:cbdae41c-2cd3-4177-a70a-1061c4d7a018"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Mon, 18 Apr 2022 21:30:04 GMT"
+ ],
+ "Content-Length": [
+ "532"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Retry-After": [
+ "0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/defaultMG\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"defaultMG\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"defaultMG\",\r\n \"details\": {\r\n \"version\": 8,\r\n \"updatedTime\": \"2022-03-31T23:54:11.2458002Z\",\r\n \"updatedBy\": \"9e41f384-0aa9-41bc-a29d-6d956cd8eadb\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"name\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"Root Management Group\"\r\n }\r\n }\r\n }\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL2M3YTg3Y2RhLTlhNjYtNDkyMC1iMGY4LTg2OWJhYTA0ZWZlMC9zZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMjEtMDQtMDE=",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"properties\": {\r\n \"requireAuthorizationForGroupCreation\": false,\r\n \"defaultManagementGroup\": \"/providers/Microsoft.Management/managementGroups/defaultMG\"\r\n }\r\n}",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "3ac408f1-c068-4cce-9d21-1945a80daa1c"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "172"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "westus:da7968ea-277f-4db8-a3dd-05e86b4df14f"
+ ],
+ "x-ba-restapi": [
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "da7968ea-277f-4db8-a3dd-05e86b4df14f"
+ ],
+ "request-id": [
+ "da7968ea-277f-4db8-a3dd-05e86b4df14f"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1199"
+ ],
+ "x-ms-correlation-request-id": [
+ "da7968ea-277f-4db8-a3dd-05e86b4df14f"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS:20220418T213004Z:da7968ea-277f-4db8-a3dd-05e86b4df14f"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Mon, 18 Apr 2022 21:30:04 GMT"
+ ],
+ "Content-Length": [
+ "331"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Retry-After": [
+ "0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default\",\r\n \"type\": \"Microsoft.Management/managementGroups/settings\",\r\n \"name\": \"default\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"requireAuthorizationForGroupCreation\": false,\r\n \"defaultManagementGroup\": \"defaultMG\"\r\n }\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL2M3YTg3Y2RhLTlhNjYtNDkyMC1iMGY4LTg2OWJhYTA0ZWZlMC9zZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMjEtMDQtMDE=",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "f28abe59-923c-4ae5-9b7b-1f2299d9fc8d"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "westus:0c704406-081a-4be7-bb18-d6078eb5d87e"
+ ],
+ "x-ba-restapi": [
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "0c704406-081a-4be7-bb18-d6078eb5d87e"
+ ],
+ "request-id": [
+ "0c704406-081a-4be7-bb18-d6078eb5d87e"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-deletes": [
+ "14999"
+ ],
+ "x-ms-correlation-request-id": [
+ "0c704406-081a-4be7-bb18-d6078eb5d87e"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS:20220418T213006Z:0c704406-081a-4be7-bb18-d6078eb5d87e"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Mon, 18 Apr 2022 21:30:05 GMT"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Content-Length": [
+ "0"
+ ],
+ "Retry-After": [
+ "0"
+ ]
+ },
+ "ResponseBody": "",
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de"
+ }
+}
\ No newline at end of file
diff --git a/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestNewHierarchySettings.json b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestNewHierarchySettings.json
new file mode 100644
index 000000000000..60c8506f3b6a
--- /dev/null
+++ b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestNewHierarchySettings.json
@@ -0,0 +1,248 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/defaultMG?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL2RlZmF1bHRNRz9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"name\": \"defaultMG\",\r\n \"properties\": {\r\n \"details\": {\r\n \"parent\": {}\r\n }\r\n }\r\n}",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "5a2a151b-0566-4c62-a3be-bf04c79dbef7"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "97"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "59"
+ ],
+ "x-ms-request-id": [
+ "westcentralus:b7595c7a-7675-46e8-a483-e97f9fc18a63"
+ ],
+ "x-ba-restapi": [
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "b7595c7a-7675-46e8-a483-e97f9fc18a63"
+ ],
+ "request-id": [
+ "b7595c7a-7675-46e8-a483-e97f9fc18a63"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1198"
+ ],
+ "x-ms-correlation-request-id": [
+ "b7595c7a-7675-46e8-a483-e97f9fc18a63"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTCENTRALUS:20220418T213250Z:b7595c7a-7675-46e8-a483-e97f9fc18a63"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Mon, 18 Apr 2022 21:32:49 GMT"
+ ],
+ "Content-Length": [
+ "532"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Retry-After": [
+ "0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/defaultMG\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"defaultMG\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"defaultMG\",\r\n \"details\": {\r\n \"version\": 8,\r\n \"updatedTime\": \"2022-03-31T23:54:11.2458002Z\",\r\n \"updatedBy\": \"9e41f384-0aa9-41bc-a29d-6d956cd8eadb\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"name\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"Root Management Group\"\r\n }\r\n }\r\n }\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL2M3YTg3Y2RhLTlhNjYtNDkyMC1iMGY4LTg2OWJhYTA0ZWZlMC9zZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMjEtMDQtMDE=",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"properties\": {\r\n \"requireAuthorizationForGroupCreation\": true,\r\n \"defaultManagementGroup\": \"/providers/Microsoft.Management/managementGroups/defaultMG\"\r\n }\r\n}",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "13f63f91-762a-4732-8cd0-40d8507923bb"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "171"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "westcentralus:24251592-f962-4957-8dda-3bbfac52c360"
+ ],
+ "x-ba-restapi": [
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "24251592-f962-4957-8dda-3bbfac52c360"
+ ],
+ "request-id": [
+ "24251592-f962-4957-8dda-3bbfac52c360"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1199"
+ ],
+ "x-ms-correlation-request-id": [
+ "24251592-f962-4957-8dda-3bbfac52c360"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTCENTRALUS:20220418T213250Z:24251592-f962-4957-8dda-3bbfac52c360"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Mon, 18 Apr 2022 21:32:50 GMT"
+ ],
+ "Content-Length": [
+ "330"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Retry-After": [
+ "0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default\",\r\n \"type\": \"Microsoft.Management/managementGroups/settings\",\r\n \"name\": \"default\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"requireAuthorizationForGroupCreation\": true,\r\n \"defaultManagementGroup\": \"defaultMG\"\r\n }\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL2M3YTg3Y2RhLTlhNjYtNDkyMC1iMGY4LTg2OWJhYTA0ZWZlMC9zZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMjEtMDQtMDE=",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "ea17b60d-1436-45d2-b406-9a424b195282"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "westcentralus:7954de35-020f-46d4-816e-b0e3b96566ce"
+ ],
+ "x-ba-restapi": [
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "7954de35-020f-46d4-816e-b0e3b96566ce"
+ ],
+ "request-id": [
+ "7954de35-020f-46d4-816e-b0e3b96566ce"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-deletes": [
+ "14999"
+ ],
+ "x-ms-correlation-request-id": [
+ "7954de35-020f-46d4-816e-b0e3b96566ce"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTCENTRALUS:20220418T213251Z:7954de35-020f-46d4-816e-b0e3b96566ce"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Mon, 18 Apr 2022 21:32:50 GMT"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Content-Length": [
+ "0"
+ ],
+ "Retry-After": [
+ "0"
+ ]
+ },
+ "ResponseBody": "",
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de"
+ }
+}
\ No newline at end of file
diff --git a/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestNewManagementGroup.json b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestNewManagementGroup.json
index b81eb25c9bb7..445040cdf037 100644
--- a/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestNewManagementGroup.json
+++ b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestNewManagementGroup.json
@@ -1,67 +1,66 @@
{
"Entries": [
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSNewGroup?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU05ld0dyb3VwP2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSNewGroup?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU05ld0dyb3VwP2FwaS12ZXJzaW9uPTIwMjEtMDQtMDE=",
"RequestMethod": "PUT",
"RequestBody": "{\r\n \"name\": \"TestPSNewGroup\",\r\n \"properties\": {\r\n \"details\": {\r\n \"parent\": {}\r\n }\r\n }\r\n}",
"RequestHeaders": {
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Content-Length": [
- "102"
- ],
"x-ms-client-request-id": [
- "4941fa8c-d4ec-486f-9c2e-aa69bf7722f9"
+ "96e8f37e-2ed3-47d8-8c2c-254dd127e087"
],
"Cache-Control": [
"no-cache"
],
- "accept-language": [
+ "Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
- ]
- },
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSNewGroup\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSNewGroup\",\r\n \"status\": \"NotStarted\"\r\n}",
- "ResponseHeaders": {
- "Content-Length": [
- "176"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
],
"Content-Type": [
"application/json; charset=utf-8"
],
- "Expires": [
- "-1"
+ "Content-Length": [
+ "102"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Retry-After": [
- "0"
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "59"
],
"x-ms-request-id": [
- "eastus:1a5d4466-e4f0-4d2e-a4d0-ce6e70689eca"
+ "westcentralus:5b79a4b0-7496-44af-b685-e089c68e51e0"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "5b79a4b0-7496-44af-b685-e089c68e51e0"
],
"request-id": [
- "cb354c5e-8cad-4a77-b42d-eb126a6aa046"
+ "5b79a4b0-7496-44af-b685-e089c68e51e0"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
],
"x-ms-ratelimit-remaining-tenant-writes": [
- "1188"
+ "1198"
],
"x-ms-correlation-request-id": [
- "233c60ea-e21f-4700-a749-f4e5ab8b9fa7"
+ "5b79a4b0-7496-44af-b685-e089c68e51e0"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T195034Z:233c60ea-e21f-4700-a749-f4e5ab8b9fa7"
+ "WESTCENTRALUS:20220418T213732Z:5b79a4b0-7496-44af-b685-e089c68e51e0"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -69,44 +68,11 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:50:33 GMT"
- ],
- "Location": [
- "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/operationResults/create/managementGroups/TestPSNewGroup?api-version=2018-03-01-preview"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Mon, 18 Apr 2022 21:37:31 GMT"
],
- "X-Powered-By": [
- "ASP.NET"
- ]
- },
- "StatusCode": 202
- },
- {
- "RequestUri": "/providers/Microsoft.Management/operationResults/create/managementGroups/TestPSNewGroup?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2NyZWF0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU05ld0dyb3VwP2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==",
- "RequestMethod": "GET",
- "RequestBody": "",
- "RequestHeaders": {
- "User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
- ]
- },
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSNewGroup\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSNewGroup\",\r\n \"status\": \"Succeeded\",\r\n \"properties\": {\r\n \"tenantId\": \"b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"displayName\": \"TestPSNewGroup\",\r\n \"details\": {\r\n \"version\": 7,\r\n \"updatedTime\": \"2018-05-24T19:50:41.5651226Z\",\r\n \"updatedBy\": \"aef7ed39-6482-40be-a70c-8ec0669b0d04\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"name\": \"b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"displayName\": \"b1af47f1-138c-4ed2-8bba-119041b95450\"\r\n }\r\n }\r\n }\r\n}",
- "ResponseHeaders": {
"Content-Length": [
- "594"
+ "548"
],
"Content-Type": [
"application/json; charset=utf-8"
@@ -114,113 +80,77 @@
"Expires": [
"-1"
],
- "Pragma": [
- "no-cache"
- ],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14946"
- ],
- "x-ms-request-id": [
- "eastus:65eef63b-829f-4efa-8bb4-fe4bb9ad0df9"
- ],
- "x-ba-restapi": [
- "1.0.3.795"
- ],
- "request-id": [
- "c0e377a8-fec6-48b8-9679-bd2bd13826da"
- ],
- "x-ms-correlation-request-id": [
- "03079351-8cbb-4b85-8070-029a5fe6d5a9"
- ],
- "x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T195045Z:03079351-8cbb-4b85-8070-029a5fe6d5a9"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "X-Content-Type-Options": [
- "nosniff"
- ],
- "Cache-Control": [
- "no-cache"
- ],
- "Date": [
- "Thu, 24 May 2018 19:50:44 GMT"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
- ],
- "X-Powered-By": [
- "ASP.NET"
- ],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSNewGroup\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSNewGroup\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"TestPSNewGroup\",\r\n \"details\": {\r\n \"version\": 13,\r\n \"updatedTime\": \"2022-04-18T21:28:00.1157688Z\",\r\n \"updatedBy\": \"9e41f384-0aa9-41bc-a29d-6d956cd8eadb\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"name\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"Root Management Group\"\r\n }\r\n }\r\n }\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSNewGroup?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU05ld0dyb3VwP2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSNewGroup?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU05ld0dyb3VwP2FwaS12ZXJzaW9uPTIwMjEtMDQtMDE=",
"RequestMethod": "DELETE",
"RequestBody": "",
"RequestHeaders": {
"x-ms-client-request-id": [
- "fbe46d64-8dc1-4b48-ad00-22404438611f"
+ "c4f9a224-5622-49e6-9dfc-20ac7e54b3ce"
],
"Cache-Control": [
"no-cache"
],
- "accept-language": [
+ "Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSNewGroup\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSNewGroup\",\r\n \"status\": \"NotStarted\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "176"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
+ "Location": [
+ "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSNewGroup?api-version=2021-04-01"
+ ],
"Retry-After": [
"0"
],
+ "Azure-AsyncOperation": [
+ "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/TestPSNewGroup?api-version=2021-04-01"
+ ],
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "59"
+ ],
"x-ms-request-id": [
- "eastus:e411c45b-f078-4413-b1a8-320bc6dd9189"
+ "westcentralus:12a87b20-1c4a-46c6-be3c-78cccde0b226"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "12a87b20-1c4a-46c6-be3c-78cccde0b226"
],
"request-id": [
- "c7a031c4-8b84-421c-815c-8d745377ca8e"
+ "12a87b20-1c4a-46c6-be3c-78cccde0b226"
],
- "x-ms-ratelimit-remaining-tenant-writes": [
- "1187"
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-deletes": [
+ "14999"
],
"x-ms-correlation-request-id": [
- "a379901c-c3ba-4c1e-8bc4-272208dbaae2"
+ "12a87b20-1c4a-46c6-be3c-78cccde0b226"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T195047Z:a379901c-c3ba-4c1e-8bc4-272208dbaae2"
+ "WESTCENTRALUS:20220418T213738Z:12a87b20-1c4a-46c6-be3c-78cccde0b226"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -228,74 +158,68 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:50:46 GMT"
+ "Mon, 18 Apr 2022 21:37:38 GMT"
],
- "Location": [
- "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSNewGroup?api-version=2018-03-01-preview"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "165"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSNewGroup\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSNewGroup\",\r\n \"status\": \"NotStarted\"\r\n}",
"StatusCode": 202
},
{
- "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSNewGroup?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU05ld0dyb3VwP2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==",
+ "RequestUri": "/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/TestPSNewGroup?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9hc3luY09wZXJhdGlvbi9zdGF0dXMvbWFuYWdlbWVudEdyb3Vwcy9UZXN0UFNOZXdHcm91cD9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
+ "x-ms-client-request-id": [
+ "c4f9a224-5622-49e6-9dfc-20ac7e54b3ce"
+ ],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSNewGroup\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSNewGroup\",\r\n \"status\": \"Succeeded\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "175"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-correlation-request-id": [
- "f1012c50-a8f3-4609-834c-0a2720d5164b"
- ],
"x-ms-request-id": [
- "eastus:2fe5b2b6-c60b-420d-828f-0a6370d446f6"
+ "westcentralus:8178137d-0d1e-4123-99cf-972e52bc17fc"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "8178137d-0d1e-4123-99cf-972e52bc17fc"
],
"request-id": [
- "18eec10a-e2a5-46b1-b3e0-d5eda01f477d"
+ "8178137d-0d1e-4123-99cf-972e52bc17fc"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
],
"x-ms-ratelimit-remaining-tenant-reads": [
- "14945"
+ "11996"
+ ],
+ "x-ms-correlation-request-id": [
+ "8178137d-0d1e-4123-99cf-972e52bc17fc"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T195057Z:f1012c50-a8f3-4609-834c-0a2720d5164b"
+ "WESTCENTRALUS:20220418T213749Z:8178137d-0d1e-4123-99cf-972e52bc17fc"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -303,74 +227,71 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:50:57 GMT"
+ "Mon, 18 Apr 2022 21:37:48 GMT"
],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "163"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/TestPSNewGroup\",\r\n \"name\": \"TestPSNewGroup\",\r\n \"status\": \"Succeeded\"\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSNewGroup?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU05ld0dyb3VwP2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==",
+ "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSNewGroup?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU05ld0dyb3VwP2FwaS12ZXJzaW9uPTIwMjEtMDQtMDE=",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
+ "x-ms-client-request-id": [
+ "c4f9a224-5622-49e6-9dfc-20ac7e54b3ce"
+ ],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSNewGroup\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSNewGroup\",\r\n \"status\": \"Succeeded\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "175"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14944"
- ],
"x-ms-request-id": [
- "eastus:61ebb211-a85b-4076-a98d-1b1104a7d982"
+ "westcentralus:b705b001-14df-4bcb-845f-2acff7ccac63"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "b705b001-14df-4bcb-845f-2acff7ccac63"
],
"request-id": [
- "0639924a-a6fd-457d-a929-4087ace02991"
+ "b705b001-14df-4bcb-845f-2acff7ccac63"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "11995"
],
"x-ms-correlation-request-id": [
- "96db807d-edee-42d2-92fd-57b49ac39f78"
+ "b705b001-14df-4bcb-845f-2acff7ccac63"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T195059Z:96db807d-edee-42d2-92fd-57b49ac39f78"
+ "WESTCENTRALUS:20220418T213749Z:b705b001-14df-4bcb-845f-2acff7ccac63"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -378,32 +299,28 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:50:58 GMT"
+ "Mon, 18 Apr 2022 21:37:48 GMT"
],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "164"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSNewGroup\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSNewGroup\",\r\n \"status\": \"Succeeded\"\r\n}",
"StatusCode": 200
}
],
"Names": {},
"Variables": {
- "SubscriptionId": "394ae65d-9e71-4462-930f-3332dedf845c",
- "TenantId": "b1af47f1-138c-4ed2-8bba-119041b95450",
- "Domain": ""
+ "SubscriptionId": "5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de"
}
}
\ No newline at end of file
diff --git a/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestNewManagementGroupWithDisplayName.json b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestNewManagementGroupWithDisplayName.json
index 282958246579..3a5d02844fed 100644
--- a/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestNewManagementGroupWithDisplayName.json
+++ b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestNewManagementGroupWithDisplayName.json
@@ -1,67 +1,66 @@
{
"Entries": [
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSNewGroup2?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU05ld0dyb3VwMj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSNewGroup2?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU05ld0dyb3VwMj9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
"RequestMethod": "PUT",
"RequestBody": "{\r\n \"name\": \"TestPSNewGroup2\",\r\n \"properties\": {\r\n \"displayName\": \"TestDisplayName\",\r\n \"details\": {\r\n \"parent\": {}\r\n }\r\n }\r\n}",
"RequestHeaders": {
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Content-Length": [
- "142"
- ],
"x-ms-client-request-id": [
- "e9661ae8-850f-4779-b84e-c6d8120c694f"
+ "ea477a99-9aab-4f0a-a4f4-fcb2b3a8dd8d"
],
"Cache-Control": [
"no-cache"
],
- "accept-language": [
+ "Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
- ]
- },
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSNewGroup2\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSNewGroup2\",\r\n \"status\": \"NotStarted\"\r\n}",
- "ResponseHeaders": {
- "Content-Length": [
- "178"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
],
"Content-Type": [
"application/json; charset=utf-8"
],
- "Expires": [
- "-1"
+ "Content-Length": [
+ "142"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Retry-After": [
- "0"
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "59"
],
"x-ms-request-id": [
- "eastus:884015a6-6813-4e48-b08c-154b0a62be00"
+ "westcentralus:848e3031-0a0b-4543-908b-90893977dfdc"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "848e3031-0a0b-4543-908b-90893977dfdc"
],
"request-id": [
- "e4222a8d-c5c3-4598-b89f-fe994f0489ff"
+ "848e3031-0a0b-4543-908b-90893977dfdc"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
],
"x-ms-ratelimit-remaining-tenant-writes": [
- "1191"
+ "1199"
],
"x-ms-correlation-request-id": [
- "f721cc7f-a0dd-4c1f-a890-03768c92880b"
+ "848e3031-0a0b-4543-908b-90893977dfdc"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194756Z:f721cc7f-a0dd-4c1f-a890-03768c92880b"
+ "WESTCENTRALUS:20220418T213805Z:848e3031-0a0b-4543-908b-90893977dfdc"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -69,44 +68,11 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:47:56 GMT"
- ],
- "Location": [
- "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/operationResults/create/managementGroups/TestPSNewGroup2?api-version=2018-03-01-preview"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Mon, 18 Apr 2022 21:38:04 GMT"
],
- "X-Powered-By": [
- "ASP.NET"
- ]
- },
- "StatusCode": 202
- },
- {
- "RequestUri": "/providers/Microsoft.Management/operationResults/create/managementGroups/TestPSNewGroup2?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2NyZWF0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU05ld0dyb3VwMj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
- "RequestMethod": "GET",
- "RequestBody": "",
- "RequestHeaders": {
- "User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
- ]
- },
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSNewGroup2\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSNewGroup2\",\r\n \"status\": \"Succeeded\",\r\n \"properties\": {\r\n \"tenantId\": \"b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"displayName\": \"TestDisplayName\",\r\n \"details\": {\r\n \"version\": 7,\r\n \"updatedTime\": \"2018-05-24T19:48:02.2647288Z\",\r\n \"updatedBy\": \"aef7ed39-6482-40be-a70c-8ec0669b0d04\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"name\": \"b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"displayName\": \"b1af47f1-138c-4ed2-8bba-119041b95450\"\r\n }\r\n }\r\n }\r\n}",
- "ResponseHeaders": {
"Content-Length": [
- "597"
+ "550"
],
"Content-Type": [
"application/json; charset=utf-8"
@@ -114,113 +80,77 @@
"Expires": [
"-1"
],
- "Pragma": [
- "no-cache"
- ],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14962"
- ],
- "x-ms-request-id": [
- "eastus:97cc01f2-53d5-4fbd-926d-524a87fab5f6"
- ],
- "x-ba-restapi": [
- "1.0.3.795"
- ],
- "request-id": [
- "de63877a-cb9d-44fc-9c79-c06fe0247392"
- ],
- "x-ms-correlation-request-id": [
- "c9db9c71-361b-490a-b79c-dd9bd49aa590"
- ],
- "x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194808Z:c9db9c71-361b-490a-b79c-dd9bd49aa590"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "X-Content-Type-Options": [
- "nosniff"
- ],
- "Cache-Control": [
- "no-cache"
- ],
- "Date": [
- "Thu, 24 May 2018 19:48:08 GMT"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
- ],
- "X-Powered-By": [
- "ASP.NET"
- ],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSNewGroup2\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSNewGroup2\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"TestDisplayName\",\r\n \"details\": {\r\n \"version\": 10,\r\n \"updatedTime\": \"2022-04-18T21:30:40.534604Z\",\r\n \"updatedBy\": \"9e41f384-0aa9-41bc-a29d-6d956cd8eadb\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"name\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"Root Management Group\"\r\n }\r\n }\r\n }\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSNewGroup2?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU05ld0dyb3VwMj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSNewGroup2?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU05ld0dyb3VwMj9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
"RequestMethod": "DELETE",
"RequestBody": "",
"RequestHeaders": {
"x-ms-client-request-id": [
- "58c809e8-41b2-4536-a858-f4099931affa"
+ "adb1803a-2ece-4e7f-99a4-425659ce6132"
],
"Cache-Control": [
"no-cache"
],
- "accept-language": [
+ "Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSNewGroup2\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSNewGroup2\",\r\n \"status\": \"NotStarted\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "178"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
+ "Location": [
+ "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSNewGroup2?api-version=2021-04-01"
+ ],
"Retry-After": [
"0"
],
+ "Azure-AsyncOperation": [
+ "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/TestPSNewGroup2?api-version=2021-04-01"
+ ],
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "59"
+ ],
"x-ms-request-id": [
- "eastus:4530e555-8c6a-4aa3-8abd-7aa8720b76fa"
+ "westcentralus:fb676bf3-0a8a-470c-9db7-9cd663a697d7"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "fb676bf3-0a8a-470c-9db7-9cd663a697d7"
],
"request-id": [
- "abcfafdf-517f-4857-a459-dc7fad6e00eb"
+ "fb676bf3-0a8a-470c-9db7-9cd663a697d7"
],
- "x-ms-ratelimit-remaining-tenant-writes": [
- "1190"
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-deletes": [
+ "14999"
],
"x-ms-correlation-request-id": [
- "9e64ccdb-eef7-4941-bcd3-edfef94edfd2"
+ "fb676bf3-0a8a-470c-9db7-9cd663a697d7"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194810Z:9e64ccdb-eef7-4941-bcd3-edfef94edfd2"
+ "WESTCENTRALUS:20220418T213806Z:fb676bf3-0a8a-470c-9db7-9cd663a697d7"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -228,74 +158,68 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:48:10 GMT"
+ "Mon, 18 Apr 2022 21:38:05 GMT"
],
- "Location": [
- "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSNewGroup2?api-version=2018-03-01-preview"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "167"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSNewGroup2\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSNewGroup2\",\r\n \"status\": \"NotStarted\"\r\n}",
"StatusCode": 202
},
{
- "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSNewGroup2?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU05ld0dyb3VwMj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/TestPSNewGroup2?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9hc3luY09wZXJhdGlvbi9zdGF0dXMvbWFuYWdlbWVudEdyb3Vwcy9UZXN0UFNOZXdHcm91cDI/YXBpLXZlcnNpb249MjAyMS0wNC0wMQ==",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
+ "x-ms-client-request-id": [
+ "adb1803a-2ece-4e7f-99a4-425659ce6132"
+ ],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSNewGroup2\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSNewGroup2\",\r\n \"status\": \"Succeeded\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "177"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14961"
- ],
"x-ms-request-id": [
- "eastus:bbd33077-6f1a-4579-afca-bbf41035bdce"
+ "westcentralus:1b9a0dc7-eb7e-4b69-9f37-e84d146a4f02"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "1b9a0dc7-eb7e-4b69-9f37-e84d146a4f02"
],
"request-id": [
- "cf86533c-f9e9-4329-97b8-a6a9640aee71"
+ "1b9a0dc7-eb7e-4b69-9f37-e84d146a4f02"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "11999"
],
"x-ms-correlation-request-id": [
- "14a9b4ac-10a1-40ba-9cc8-45232b0a189a"
+ "1b9a0dc7-eb7e-4b69-9f37-e84d146a4f02"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194821Z:14a9b4ac-10a1-40ba-9cc8-45232b0a189a"
+ "WESTCENTRALUS:20220418T213816Z:1b9a0dc7-eb7e-4b69-9f37-e84d146a4f02"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -303,74 +227,71 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:48:21 GMT"
+ "Mon, 18 Apr 2022 21:38:15 GMT"
],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "165"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/TestPSNewGroup2\",\r\n \"name\": \"TestPSNewGroup2\",\r\n \"status\": \"Succeeded\"\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSNewGroup2?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU05ld0dyb3VwMj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSNewGroup2?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU05ld0dyb3VwMj9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
+ "x-ms-client-request-id": [
+ "adb1803a-2ece-4e7f-99a4-425659ce6132"
+ ],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSNewGroup2\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSNewGroup2\",\r\n \"status\": \"Succeeded\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "177"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14960"
- ],
"x-ms-request-id": [
- "eastus:1a541ece-92ab-440f-bbac-d59186f8d655"
+ "westcentralus:ca36f435-f010-4b12-b397-d6f41b558ebe"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "ca36f435-f010-4b12-b397-d6f41b558ebe"
],
"request-id": [
- "0a90516c-a63d-42d4-ac74-d79a9c1e8d53"
+ "ca36f435-f010-4b12-b397-d6f41b558ebe"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "11998"
],
"x-ms-correlation-request-id": [
- "56c1c9f5-6030-4871-bc4e-cb06e27ceaf9"
+ "ca36f435-f010-4b12-b397-d6f41b558ebe"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194822Z:56c1c9f5-6030-4871-bc4e-cb06e27ceaf9"
+ "WESTCENTRALUS:20220418T213816Z:ca36f435-f010-4b12-b397-d6f41b558ebe"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -378,32 +299,28 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:48:21 GMT"
+ "Mon, 18 Apr 2022 21:38:15 GMT"
],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "166"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSNewGroup2\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSNewGroup2\",\r\n \"status\": \"Succeeded\"\r\n}",
"StatusCode": 200
}
],
"Names": {},
"Variables": {
- "SubscriptionId": "394ae65d-9e71-4462-930f-3332dedf845c",
- "TenantId": "b1af47f1-138c-4ed2-8bba-119041b95450",
- "Domain": ""
+ "SubscriptionId": "5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de"
}
}
\ No newline at end of file
diff --git a/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestNewManagementGroupWithDisplayNameAndParentId.json b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestNewManagementGroupWithDisplayNameAndParentId.json
index 95f77d168ec9..76b72929b0a7 100644
--- a/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestNewManagementGroupWithDisplayNameAndParentId.json
+++ b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestNewManagementGroupWithDisplayNameAndParentId.json
@@ -1,67 +1,66 @@
{
"Entries": [
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/TestParent4?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQYXJlbnQ0P2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestParent4?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQYXJlbnQ0P2FwaS12ZXJzaW9uPTIwMjEtMDQtMDE=",
"RequestMethod": "PUT",
"RequestBody": "{\r\n \"name\": \"TestParent4\",\r\n \"properties\": {\r\n \"details\": {\r\n \"parent\": {}\r\n }\r\n }\r\n}",
"RequestHeaders": {
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Content-Length": [
- "99"
- ],
"x-ms-client-request-id": [
- "9d3cbc58-3248-401e-84cd-76d0951f6aeb"
+ "62aed437-960a-4049-a067-afb09a972fff"
],
"Cache-Control": [
"no-cache"
],
- "accept-language": [
+ "Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
- ]
- },
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestParent4\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestParent4\",\r\n \"status\": \"NotStarted\"\r\n}",
- "ResponseHeaders": {
- "Content-Length": [
- "170"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
],
"Content-Type": [
"application/json; charset=utf-8"
],
- "Expires": [
- "-1"
+ "Content-Length": [
+ "99"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Retry-After": [
- "0"
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "59"
],
"x-ms-request-id": [
- "eastus:94d859d2-c27f-49f2-bfe8-bb815a177622"
+ "westcentralus:67f81597-0786-412e-8bd9-c1a116b24ba5"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "67f81597-0786-412e-8bd9-c1a116b24ba5"
],
"request-id": [
- "9508f228-ba1f-472c-9b6f-27025b74001f"
+ "67f81597-0786-412e-8bd9-c1a116b24ba5"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
],
"x-ms-ratelimit-remaining-tenant-writes": [
- "1185"
+ "1197"
],
"x-ms-correlation-request-id": [
- "db27a0a5-8e62-44f2-ae18-0fdccfaae418"
+ "67f81597-0786-412e-8bd9-c1a116b24ba5"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194324Z:db27a0a5-8e62-44f2-ae18-0fdccfaae418"
+ "WESTCENTRALUS:20220418T213927Z:67f81597-0786-412e-8bd9-c1a116b24ba5"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -69,44 +68,11 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:43:23 GMT"
- ],
- "Location": [
- "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/operationResults/create/managementGroups/TestParent4?api-version=2018-03-01-preview"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Mon, 18 Apr 2022 21:39:27 GMT"
],
- "X-Powered-By": [
- "ASP.NET"
- ]
- },
- "StatusCode": 202
- },
- {
- "RequestUri": "/providers/Microsoft.Management/operationResults/create/managementGroups/TestParent4?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2NyZWF0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQYXJlbnQ0P2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==",
- "RequestMethod": "GET",
- "RequestBody": "",
- "RequestHeaders": {
- "User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
- ]
- },
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestParent4\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestParent4\",\r\n \"status\": \"Succeeded\",\r\n \"properties\": {\r\n \"tenantId\": \"b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"displayName\": \"TestParent4\",\r\n \"details\": {\r\n \"version\": 9,\r\n \"updatedTime\": \"2018-05-24T19:43:29.27265Z\",\r\n \"updatedBy\": \"aef7ed39-6482-40be-a70c-8ec0669b0d04\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"name\": \"b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"displayName\": \"b1af47f1-138c-4ed2-8bba-119041b95450\"\r\n }\r\n }\r\n }\r\n}",
- "ResponseHeaders": {
"Content-Length": [
- "583"
+ "538"
],
"Content-Type": [
"application/json; charset=utf-8"
@@ -114,119 +80,74 @@
"Expires": [
"-1"
],
- "Pragma": [
- "no-cache"
- ],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14960"
- ],
- "x-ms-request-id": [
- "eastus:3446fbbc-e7db-4c68-b8c0-49ba51edbb0a"
- ],
- "x-ba-restapi": [
- "1.0.3.795"
- ],
- "request-id": [
- "ee5433de-d8af-45e2-a2e8-1be1c691f8a1"
- ],
- "x-ms-correlation-request-id": [
- "12e2562c-80f8-43ee-b475-b5eb4a62ff12"
- ],
- "x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194335Z:12e2562c-80f8-43ee-b475-b5eb4a62ff12"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "X-Content-Type-Options": [
- "nosniff"
- ],
- "Cache-Control": [
- "no-cache"
- ],
- "Date": [
- "Thu, 24 May 2018 19:43:34 GMT"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
- ],
- "X-Powered-By": [
- "ASP.NET"
- ],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestParent4\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestParent4\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"TestParent4\",\r\n \"details\": {\r\n \"version\": 7,\r\n \"updatedTime\": \"2022-04-18T21:32:24.4030364Z\",\r\n \"updatedBy\": \"9e41f384-0aa9-41bc-a29d-6d956cd8eadb\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"name\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"Root Management Group\"\r\n }\r\n }\r\n }\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSGroup4?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dyb3VwND9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSGroup4?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dyb3VwND9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
"RequestMethod": "PUT",
"RequestBody": "{\r\n \"name\": \"TestPSGroup4\",\r\n \"properties\": {\r\n \"displayName\": \"TestDisplayName\",\r\n \"details\": {\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestParent4\"\r\n }\r\n }\r\n }\r\n}",
"RequestHeaders": {
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Content-Length": [
- "225"
- ],
"x-ms-client-request-id": [
- "3acd558d-5ae5-4a64-ba06-f0b529c4e222"
+ "01f0c138-d9fa-41a6-9298-c622c7a854e0"
],
"Cache-Control": [
"no-cache"
],
- "accept-language": [
+ "Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
- ]
- },
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGroup4\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGroup4\",\r\n \"status\": \"NotStarted\"\r\n}",
- "ResponseHeaders": {
- "Content-Length": [
- "172"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
],
"Content-Type": [
"application/json; charset=utf-8"
],
- "Expires": [
- "-1"
+ "Content-Length": [
+ "225"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Retry-After": [
- "0"
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "58"
],
"x-ms-request-id": [
- "eastus:c42f21ac-1590-47c0-8c69-10f9dfdbc6aa"
+ "westcentralus:164329eb-a8d3-4e34-bd21-82f92c3c4867"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "164329eb-a8d3-4e34-bd21-82f92c3c4867"
],
"request-id": [
- "f73cf2cc-6a87-460b-a0f2-26f3d5ce8d19"
+ "164329eb-a8d3-4e34-bd21-82f92c3c4867"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
],
"x-ms-ratelimit-remaining-tenant-writes": [
- "1184"
+ "1199"
],
"x-ms-correlation-request-id": [
- "77ebcc4f-209f-41f9-936e-f5c293758648"
+ "164329eb-a8d3-4e34-bd21-82f92c3c4867"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194337Z:77ebcc4f-209f-41f9-936e-f5c293758648"
+ "WESTCENTRALUS:20220418T213928Z:164329eb-a8d3-4e34-bd21-82f92c3c4867"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -234,44 +155,11 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:43:36 GMT"
- ],
- "Location": [
- "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/operationResults/create/managementGroups/TestPSGroup4?api-version=2018-03-01-preview"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Mon, 18 Apr 2022 21:39:28 GMT"
],
- "X-Powered-By": [
- "ASP.NET"
- ]
- },
- "StatusCode": 202
- },
- {
- "RequestUri": "/providers/Microsoft.Management/operationResults/create/managementGroups/TestPSGroup4?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2NyZWF0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dyb3VwND9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
- "RequestMethod": "GET",
- "RequestBody": "",
- "RequestHeaders": {
- "User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
- ]
- },
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGroup4\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGroup4\",\r\n \"status\": \"Succeeded\",\r\n \"properties\": {\r\n \"tenantId\": \"b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"displayName\": \"TestDisplayName\",\r\n \"details\": {\r\n \"version\": 9,\r\n \"updatedTime\": \"2018-05-24T19:43:43.8258219Z\",\r\n \"updatedBy\": \"aef7ed39-6482-40be-a70c-8ec0669b0d04\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestParent4\",\r\n \"name\": \"TestParent4\",\r\n \"displayName\": \"TestParent4\"\r\n }\r\n }\r\n }\r\n}",
- "ResponseHeaders": {
"Content-Length": [
- "516"
+ "484"
],
"Content-Type": [
"application/json; charset=utf-8"
@@ -279,113 +167,77 @@
"Expires": [
"-1"
],
- "Pragma": [
- "no-cache"
- ],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-correlation-request-id": [
- "b68d3b04-5dfe-4870-8bbe-da6ec3ed87b2"
- ],
- "x-ms-request-id": [
- "eastus:617c6fe7-f2de-4c7d-92b5-8cdee5071dbd"
- ],
- "x-ba-restapi": [
- "1.0.3.795"
- ],
- "request-id": [
- "5a603907-f7f6-4738-8545-e9455b2358f0"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14959"
- ],
- "x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194349Z:b68d3b04-5dfe-4870-8bbe-da6ec3ed87b2"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "X-Content-Type-Options": [
- "nosniff"
- ],
- "Cache-Control": [
- "no-cache"
- ],
- "Date": [
- "Thu, 24 May 2018 19:43:49 GMT"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
- ],
- "X-Powered-By": [
- "ASP.NET"
- ],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGroup4\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGroup4\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"TestDisplayName\",\r\n \"details\": {\r\n \"version\": 8,\r\n \"updatedTime\": \"2022-04-18T21:38:54.1391468Z\",\r\n \"updatedBy\": \"9e41f384-0aa9-41bc-a29d-6d956cd8eadb\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestParent4\",\r\n \"name\": \"TestParent4\",\r\n \"displayName\": \"TestParent4\"\r\n }\r\n }\r\n }\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSGroup4?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dyb3VwND9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSGroup4?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dyb3VwND9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
"RequestMethod": "DELETE",
"RequestBody": "",
"RequestHeaders": {
"x-ms-client-request-id": [
- "05ac2844-0f99-4237-91ce-5564b43db333"
+ "c27fcaff-3c00-4be8-9cfc-757b92899b48"
],
"Cache-Control": [
"no-cache"
],
- "accept-language": [
+ "Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGroup4\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGroup4\",\r\n \"status\": \"NotStarted\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "172"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
+ "Location": [
+ "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSGroup4?api-version=2021-04-01"
+ ],
"Retry-After": [
"0"
],
+ "Azure-AsyncOperation": [
+ "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/TestPSGroup4?api-version=2021-04-01"
+ ],
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "59"
+ ],
"x-ms-request-id": [
- "eastus:9542200e-512c-4090-9187-21eabe34b004"
+ "westcentralus:c163aab8-5af3-4806-8346-068bd4b7198f"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "c163aab8-5af3-4806-8346-068bd4b7198f"
],
"request-id": [
- "bbf1319a-809a-4b4d-a5b6-925e66f1f322"
+ "c163aab8-5af3-4806-8346-068bd4b7198f"
],
- "x-ms-ratelimit-remaining-tenant-writes": [
- "1183"
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-deletes": [
+ "14999"
],
"x-ms-correlation-request-id": [
- "be5ddf37-7bb9-4221-888c-dc1795fd6068"
+ "c163aab8-5af3-4806-8346-068bd4b7198f"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194353Z:be5ddf37-7bb9-4221-888c-dc1795fd6068"
+ "WESTCENTRALUS:20220418T213929Z:c163aab8-5af3-4806-8346-068bd4b7198f"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -393,74 +245,68 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:43:52 GMT"
- ],
- "Location": [
- "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSGroup4?api-version=2018-03-01-preview"
+ "Mon, 18 Apr 2022 21:39:29 GMT"
],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "161"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGroup4\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGroup4\",\r\n \"status\": \"NotStarted\"\r\n}",
"StatusCode": 202
},
{
- "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSGroup4?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dyb3VwND9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/TestPSGroup4?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9hc3luY09wZXJhdGlvbi9zdGF0dXMvbWFuYWdlbWVudEdyb3Vwcy9UZXN0UFNHcm91cDQ/YXBpLXZlcnNpb249MjAyMS0wNC0wMQ==",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
+ "x-ms-client-request-id": [
+ "c27fcaff-3c00-4be8-9cfc-757b92899b48"
+ ],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGroup4\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGroup4\",\r\n \"status\": \"Succeeded\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "171"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14958"
- ],
"x-ms-request-id": [
- "eastus:5489c61c-17d2-421f-9abe-b378d9a7815e"
+ "westcentralus:ba669f87-db2f-4356-a998-d33754134aac"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "ba669f87-db2f-4356-a998-d33754134aac"
],
"request-id": [
- "33ed8e1b-217a-4e7d-93bc-5633bf2c723e"
+ "ba669f87-db2f-4356-a998-d33754134aac"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "11998"
],
"x-ms-correlation-request-id": [
- "013febbd-0d0a-41ad-88ea-28c02ccd5c59"
+ "ba669f87-db2f-4356-a998-d33754134aac"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194403Z:013febbd-0d0a-41ad-88ea-28c02ccd5c59"
+ "WESTCENTRALUS:20220418T213939Z:ba669f87-db2f-4356-a998-d33754134aac"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -468,74 +314,71 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:44:03 GMT"
+ "Mon, 18 Apr 2022 21:39:39 GMT"
],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "159"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/TestPSGroup4\",\r\n \"name\": \"TestPSGroup4\",\r\n \"status\": \"Succeeded\"\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSGroup4?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dyb3VwND9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSGroup4?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dyb3VwND9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
+ "x-ms-client-request-id": [
+ "c27fcaff-3c00-4be8-9cfc-757b92899b48"
+ ],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGroup4\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGroup4\",\r\n \"status\": \"Succeeded\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "171"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14957"
- ],
"x-ms-request-id": [
- "eastus:508dc2ba-1c55-4749-a93d-d4b134632562"
+ "westcentralus:8ec28739-b443-42fc-a584-fea7a2674e0c"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "8ec28739-b443-42fc-a584-fea7a2674e0c"
],
"request-id": [
- "559ea25c-8641-4167-b167-41e28f37ce94"
+ "8ec28739-b443-42fc-a584-fea7a2674e0c"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "11997"
],
"x-ms-correlation-request-id": [
- "36b1183a-eb3d-4844-ac2b-1d8dd0320534"
+ "8ec28739-b443-42fc-a584-fea7a2674e0c"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194404Z:36b1183a-eb3d-4844-ac2b-1d8dd0320534"
+ "WESTCENTRALUS:20220418T213940Z:8ec28739-b443-42fc-a584-fea7a2674e0c"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -543,83 +386,89 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:44:04 GMT"
+ "Mon, 18 Apr 2022 21:39:39 GMT"
],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "160"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSGroup4\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSGroup4\",\r\n \"status\": \"Succeeded\"\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/TestParent4?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQYXJlbnQ0P2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestParent4?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQYXJlbnQ0P2FwaS12ZXJzaW9uPTIwMjEtMDQtMDE=",
"RequestMethod": "DELETE",
"RequestBody": "",
"RequestHeaders": {
"x-ms-client-request-id": [
- "79f7fbc5-a5c0-4e0a-a774-e7cf19c272f0"
+ "6da35c2c-1633-4f78-9f25-3cae1860c498"
],
"Cache-Control": [
"no-cache"
],
- "accept-language": [
+ "Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestParent4\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestParent4\",\r\n \"status\": \"NotStarted\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "170"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
+ "Location": [
+ "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/TestParent4?api-version=2021-04-01"
+ ],
"Retry-After": [
"0"
],
+ "Azure-AsyncOperation": [
+ "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/TestParent4?api-version=2021-04-01"
+ ],
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "59"
+ ],
"x-ms-request-id": [
- "eastus:86e1c204-a336-48bd-8d9a-aaa61c0fe58d"
+ "westcentralus:9136b97f-2221-4c07-aa61-71d1d2fa6a36"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "9136b97f-2221-4c07-aa61-71d1d2fa6a36"
],
"request-id": [
- "16797594-fb65-41c4-a02a-c42ff6ef0c2a"
+ "9136b97f-2221-4c07-aa61-71d1d2fa6a36"
],
- "x-ms-ratelimit-remaining-tenant-writes": [
- "1182"
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-deletes": [
+ "14999"
],
"x-ms-correlation-request-id": [
- "9c22d74e-a221-45c1-90b9-ec992a8cfe5a"
+ "9136b97f-2221-4c07-aa61-71d1d2fa6a36"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194406Z:9c22d74e-a221-45c1-90b9-ec992a8cfe5a"
+ "WESTCENTRALUS:20220418T213941Z:9136b97f-2221-4c07-aa61-71d1d2fa6a36"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -627,74 +476,68 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:44:05 GMT"
+ "Mon, 18 Apr 2022 21:39:40 GMT"
],
- "Location": [
- "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/operationResults/delete/managementGroups/TestParent4?api-version=2018-03-01-preview"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "159"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestParent4\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestParent4\",\r\n \"status\": \"NotStarted\"\r\n}",
"StatusCode": 202
},
{
- "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestParent4?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQYXJlbnQ0P2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==",
+ "RequestUri": "/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/TestParent4?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9hc3luY09wZXJhdGlvbi9zdGF0dXMvbWFuYWdlbWVudEdyb3Vwcy9UZXN0UGFyZW50ND9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
+ "x-ms-client-request-id": [
+ "6da35c2c-1633-4f78-9f25-3cae1860c498"
+ ],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestParent4\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestParent4\",\r\n \"status\": \"Succeeded\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "169"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14956"
- ],
"x-ms-request-id": [
- "eastus:62d01510-5ac0-4f32-9ed9-985fe0f37b79"
+ "westcentralus:c3629eb1-9326-4326-884d-7ae7a49e7850"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "c3629eb1-9326-4326-884d-7ae7a49e7850"
],
"request-id": [
- "d646dcde-1308-4909-bc0b-9945c858b4b5"
+ "c3629eb1-9326-4326-884d-7ae7a49e7850"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "11997"
],
"x-ms-correlation-request-id": [
- "a6e2facb-4d91-4e1c-9c78-3b44f960fe04"
+ "c3629eb1-9326-4326-884d-7ae7a49e7850"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194416Z:a6e2facb-4d91-4e1c-9c78-3b44f960fe04"
+ "WESTCENTRALUS:20220418T213951Z:c3629eb1-9326-4326-884d-7ae7a49e7850"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -702,74 +545,71 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:44:16 GMT"
+ "Mon, 18 Apr 2022 21:39:51 GMT"
],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "157"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/TestParent4\",\r\n \"name\": \"TestParent4\",\r\n \"status\": \"Succeeded\"\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestParent4?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQYXJlbnQ0P2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==",
+ "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestParent4?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQYXJlbnQ0P2FwaS12ZXJzaW9uPTIwMjEtMDQtMDE=",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
+ "x-ms-client-request-id": [
+ "6da35c2c-1633-4f78-9f25-3cae1860c498"
+ ],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestParent4\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestParent4\",\r\n \"status\": \"Succeeded\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "169"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14955"
- ],
"x-ms-request-id": [
- "eastus:2b0f971d-301e-4989-b36e-e16d9c4f66aa"
+ "westcentralus:54d7ca32-3c68-4454-9747-c837b031e4a1"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "54d7ca32-3c68-4454-9747-c837b031e4a1"
],
"request-id": [
- "96775f5f-41d3-4172-bc4c-e6af8f7b3696"
+ "54d7ca32-3c68-4454-9747-c837b031e4a1"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "11996"
],
"x-ms-correlation-request-id": [
- "7bfd01e1-4cc2-4c94-9004-9fd6a6b9d92c"
+ "54d7ca32-3c68-4454-9747-c837b031e4a1"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194417Z:7bfd01e1-4cc2-4c94-9004-9fd6a6b9d92c"
+ "WESTCENTRALUS:20220418T213951Z:54d7ca32-3c68-4454-9747-c837b031e4a1"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -777,32 +617,28 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:44:17 GMT"
+ "Mon, 18 Apr 2022 21:39:51 GMT"
],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "158"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestParent4\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestParent4\",\r\n \"status\": \"Succeeded\"\r\n}",
"StatusCode": 200
}
],
"Names": {},
"Variables": {
- "SubscriptionId": "394ae65d-9e71-4462-930f-3332dedf845c",
- "TenantId": "b1af47f1-138c-4ed2-8bba-119041b95450",
- "Domain": ""
+ "SubscriptionId": "5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de"
}
}
\ No newline at end of file
diff --git a/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestNewManagementGroupWithParentId.json b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestNewManagementGroupWithParentId.json
index fdcb6a94c779..146f46949764 100644
--- a/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestNewManagementGroupWithParentId.json
+++ b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestNewManagementGroupWithParentId.json
@@ -1,67 +1,66 @@
{
"Entries": [
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/TestParent5?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQYXJlbnQ1P2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestParent5?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQYXJlbnQ1P2FwaS12ZXJzaW9uPTIwMjEtMDQtMDE=",
"RequestMethod": "PUT",
"RequestBody": "{\r\n \"name\": \"TestParent5\",\r\n \"properties\": {\r\n \"details\": {\r\n \"parent\": {}\r\n }\r\n }\r\n}",
"RequestHeaders": {
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Content-Length": [
- "99"
- ],
"x-ms-client-request-id": [
- "b5587c12-811b-40f1-bcad-2684b416c2cb"
+ "7ba03763-e8eb-40d3-9155-4fc6d6a9903e"
],
"Cache-Control": [
"no-cache"
],
- "accept-language": [
+ "Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
- ]
- },
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestParent5\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestParent5\",\r\n \"status\": \"NotStarted\"\r\n}",
- "ResponseHeaders": {
- "Content-Length": [
- "170"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
],
"Content-Type": [
"application/json; charset=utf-8"
],
- "Expires": [
- "-1"
+ "Content-Length": [
+ "99"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Retry-After": [
- "0"
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "59"
],
"x-ms-request-id": [
- "eastus:513760cc-1aec-4931-afad-7590b81eda40"
+ "westus:a7555bd3-4737-4505-8b91-238575f67498"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "a7555bd3-4737-4505-8b91-238575f67498"
],
"request-id": [
- "2c42fb6b-4b88-4e5c-8e62-f9c74f39f48c"
+ "a7555bd3-4737-4505-8b91-238575f67498"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
],
"x-ms-ratelimit-remaining-tenant-writes": [
- "1189"
+ "1199"
],
"x-ms-correlation-request-id": [
- "825e7396-27bf-467d-9f26-02814b5166b2"
+ "a7555bd3-4737-4505-8b91-238575f67498"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194833Z:825e7396-27bf-467d-9f26-02814b5166b2"
+ "WESTUS:20220418T214048Z:a7555bd3-4737-4505-8b91-238575f67498"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -69,44 +68,11 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:48:32 GMT"
- ],
- "Location": [
- "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/operationResults/create/managementGroups/TestParent5?api-version=2018-03-01-preview"
+ "Mon, 18 Apr 2022 21:40:48 GMT"
],
- "Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
- ],
- "X-Powered-By": [
- "ASP.NET"
- ]
- },
- "StatusCode": 202
- },
- {
- "RequestUri": "/providers/Microsoft.Management/operationResults/create/managementGroups/TestParent5?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2NyZWF0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQYXJlbnQ1P2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==",
- "RequestMethod": "GET",
- "RequestBody": "",
- "RequestHeaders": {
- "User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
- ]
- },
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestParent5\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestParent5\",\r\n \"status\": \"Succeeded\",\r\n \"properties\": {\r\n \"tenantId\": \"b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"displayName\": \"TestParent5\",\r\n \"details\": {\r\n \"version\": 7,\r\n \"updatedTime\": \"2018-05-24T19:48:39.0871271Z\",\r\n \"updatedBy\": \"aef7ed39-6482-40be-a70c-8ec0669b0d04\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"name\": \"b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"displayName\": \"b1af47f1-138c-4ed2-8bba-119041b95450\"\r\n }\r\n }\r\n }\r\n}",
- "ResponseHeaders": {
"Content-Length": [
- "585"
+ "538"
],
"Content-Type": [
"application/json; charset=utf-8"
@@ -114,194 +80,74 @@
"Expires": [
"-1"
],
- "Pragma": [
- "no-cache"
- ],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14956"
- ],
- "x-ms-request-id": [
- "eastus:01c5a930-d59f-4e0e-9e3b-e345bbf5ddc0"
- ],
- "x-ba-restapi": [
- "1.0.3.795"
- ],
- "request-id": [
- "5b8d5762-e2df-45c8-a1d0-6462a7975563"
- ],
- "x-ms-correlation-request-id": [
- "3d13a60a-78c2-4f0a-a345-627a558b3f2e"
- ],
- "x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194844Z:3d13a60a-78c2-4f0a-a345-627a558b3f2e"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "X-Content-Type-Options": [
- "nosniff"
- ],
- "Cache-Control": [
- "no-cache"
- ],
- "Date": [
- "Thu, 24 May 2018 19:48:43 GMT"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
- ],
- "X-Powered-By": [
- "ASP.NET"
- ],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestParent5\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestParent5\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"TestParent5\",\r\n \"details\": {\r\n \"version\": 6,\r\n \"updatedTime\": \"2022-04-18T21:31:04.3277603Z\",\r\n \"updatedBy\": \"9e41f384-0aa9-41bc-a29d-6d956cd8eadb\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"name\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"Root Management Group\"\r\n }\r\n }\r\n }\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSNewGroup5?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU05ld0dyb3VwNT9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSNewGroup5?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU05ld0dyb3VwNT9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
"RequestMethod": "PUT",
"RequestBody": "{\r\n \"name\": \"TestPSNewGroup5\",\r\n \"properties\": {\r\n \"details\": {\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestParent5\"\r\n }\r\n }\r\n }\r\n}",
"RequestHeaders": {
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Content-Length": [
- "189"
- ],
"x-ms-client-request-id": [
- "171d497c-3542-4b9a-af2d-d56f65665d1c"
+ "2c3a6d28-e177-4e13-92ae-5097a47d6880"
],
"Cache-Control": [
"no-cache"
],
- "accept-language": [
+ "Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
- ]
- },
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSNewGroup5\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSNewGroup5\",\r\n \"status\": \"NotStarted\"\r\n}",
- "ResponseHeaders": {
- "Content-Length": [
- "178"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
],
"Content-Type": [
"application/json; charset=utf-8"
],
- "Expires": [
- "-1"
- ],
- "Pragma": [
- "no-cache"
- ],
- "Retry-After": [
- "0"
- ],
- "x-ms-request-id": [
- "eastus:f24df174-7401-47b5-b4a6-a54323f2f1e0"
- ],
- "x-ba-restapi": [
- "1.0.3.795"
- ],
- "request-id": [
- "a1bc4e9e-f1ae-4840-a900-4d0871a9f496"
- ],
- "x-ms-ratelimit-remaining-tenant-writes": [
- "1188"
- ],
- "x-ms-correlation-request-id": [
- "e567c7ea-e92d-4068-95d1-58efff5d0da0"
- ],
- "x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194846Z:e567c7ea-e92d-4068-95d1-58efff5d0da0"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "X-Content-Type-Options": [
- "nosniff"
- ],
- "Cache-Control": [
- "no-cache"
- ],
- "Date": [
- "Thu, 24 May 2018 19:48:46 GMT"
- ],
- "Location": [
- "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/operationResults/create/managementGroups/TestPSNewGroup5?api-version=2018-03-01-preview"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
- ],
- "X-Powered-By": [
- "ASP.NET"
- ]
- },
- "StatusCode": 202
- },
- {
- "RequestUri": "/providers/Microsoft.Management/operationResults/create/managementGroups/TestPSNewGroup5?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2NyZWF0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU05ld0dyb3VwNT9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
- "RequestMethod": "GET",
- "RequestBody": "",
- "RequestHeaders": {
- "User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "Content-Length": [
+ "189"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSNewGroup5\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSNewGroup5\",\r\n \"status\": \"Running\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "175"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Retry-After": [
- "0"
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "58"
],
"x-ms-request-id": [
- "eastus:c12be8df-d2a2-4aa6-ba92-cd5c44bf040c"
+ "westus:9acf50b5-0e0c-46aa-add0-929af551cb26"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "9acf50b5-0e0c-46aa-add0-929af551cb26"
],
"request-id": [
- "ae66b6e8-9274-4441-9eb7-58240e45e0a7"
+ "9acf50b5-0e0c-46aa-add0-929af551cb26"
],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14955"
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1199"
],
"x-ms-correlation-request-id": [
- "3ff69887-1b5c-473b-9416-e12416df05bc"
+ "9acf50b5-0e0c-46aa-add0-929af551cb26"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194856Z:3ff69887-1b5c-473b-9416-e12416df05bc"
+ "WESTUS:20220418T214049Z:9acf50b5-0e0c-46aa-add0-929af551cb26"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -309,44 +155,11 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:48:56 GMT"
- ],
- "Location": [
- "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/operationResults/create/managementGroups/TestPSNewGroup5?api-version=2018-03-01-preview"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Mon, 18 Apr 2022 21:40:49 GMT"
],
- "X-AspNet-Version": [
- "4.0.30319"
- ],
- "X-Powered-By": [
- "ASP.NET"
- ]
- },
- "StatusCode": 202
- },
- {
- "RequestUri": "/providers/Microsoft.Management/operationResults/create/managementGroups/TestPSNewGroup5?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2NyZWF0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU05ld0dyb3VwNT9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
- "RequestMethod": "GET",
- "RequestBody": "",
- "RequestHeaders": {
- "User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
- ]
- },
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSNewGroup5\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSNewGroup5\",\r\n \"status\": \"Succeeded\",\r\n \"properties\": {\r\n \"tenantId\": \"b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"displayName\": \"TestPSNewGroup5\",\r\n \"details\": {\r\n \"version\": 7,\r\n \"updatedTime\": \"2018-05-24T19:48:56.2070489Z\",\r\n \"updatedBy\": \"aef7ed39-6482-40be-a70c-8ec0669b0d04\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestParent5\",\r\n \"name\": \"TestParent5\",\r\n \"displayName\": \"TestParent5\"\r\n }\r\n }\r\n }\r\n}",
- "ResponseHeaders": {
"Content-Length": [
- "522"
+ "490"
],
"Content-Type": [
"application/json; charset=utf-8"
@@ -354,113 +167,77 @@
"Expires": [
"-1"
],
- "Pragma": [
- "no-cache"
- ],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-correlation-request-id": [
- "057db79f-5216-4db1-83c4-97744f68fc5e"
- ],
- "x-ms-request-id": [
- "eastus:4bcfae5a-0787-484c-95f2-caaafeb75fe5"
- ],
- "x-ba-restapi": [
- "1.0.3.795"
- ],
- "request-id": [
- "4f735717-e003-4348-b89f-cfbec6f0d990"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14954"
- ],
- "x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194908Z:057db79f-5216-4db1-83c4-97744f68fc5e"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "X-Content-Type-Options": [
- "nosniff"
- ],
- "Cache-Control": [
- "no-cache"
- ],
- "Date": [
- "Thu, 24 May 2018 19:49:07 GMT"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
- ],
- "X-Powered-By": [
- "ASP.NET"
- ],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSNewGroup5\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSNewGroup5\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"TestPSNewGroup5\",\r\n \"details\": {\r\n \"version\": 7,\r\n \"updatedTime\": \"2022-04-18T21:40:16.1968659Z\",\r\n \"updatedBy\": \"9e41f384-0aa9-41bc-a29d-6d956cd8eadb\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestParent5\",\r\n \"name\": \"TestParent5\",\r\n \"displayName\": \"TestParent5\"\r\n }\r\n }\r\n }\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSNewGroup5?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU05ld0dyb3VwNT9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSNewGroup5?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU05ld0dyb3VwNT9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
"RequestMethod": "DELETE",
"RequestBody": "",
"RequestHeaders": {
"x-ms-client-request-id": [
- "b53507c4-88f2-410a-8868-e233c82ea8ac"
+ "f84143de-d8d6-491c-abd0-0bd8cbea7e04"
],
"Cache-Control": [
"no-cache"
],
- "accept-language": [
+ "Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSNewGroup5\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSNewGroup5\",\r\n \"status\": \"NotStarted\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "178"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
+ "Location": [
+ "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSNewGroup5?api-version=2021-04-01"
+ ],
"Retry-After": [
"0"
],
+ "Azure-AsyncOperation": [
+ "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/TestPSNewGroup5?api-version=2021-04-01"
+ ],
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "59"
+ ],
"x-ms-request-id": [
- "eastus:2ea84ca6-79f3-4385-bdba-2e253466afe2"
+ "westus:e9ad99c1-8511-4ebe-a02e-485eb6c28103"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "e9ad99c1-8511-4ebe-a02e-485eb6c28103"
],
"request-id": [
- "bae70cc4-efae-4b75-aeed-bbbb91b62825"
+ "e9ad99c1-8511-4ebe-a02e-485eb6c28103"
],
- "x-ms-ratelimit-remaining-tenant-writes": [
- "1187"
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-deletes": [
+ "14999"
],
"x-ms-correlation-request-id": [
- "0ecd5003-9897-432f-b1f7-a8e8b9dabd0a"
+ "e9ad99c1-8511-4ebe-a02e-485eb6c28103"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194911Z:0ecd5003-9897-432f-b1f7-a8e8b9dabd0a"
+ "WESTUS:20220418T214051Z:e9ad99c1-8511-4ebe-a02e-485eb6c28103"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -468,74 +245,68 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:49:10 GMT"
- ],
- "Location": [
- "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSNewGroup5?api-version=2018-03-01-preview"
+ "Mon, 18 Apr 2022 21:40:51 GMT"
],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "167"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSNewGroup5\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSNewGroup5\",\r\n \"status\": \"NotStarted\"\r\n}",
"StatusCode": 202
},
{
- "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSNewGroup5?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU05ld0dyb3VwNT9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/TestPSNewGroup5?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9hc3luY09wZXJhdGlvbi9zdGF0dXMvbWFuYWdlbWVudEdyb3Vwcy9UZXN0UFNOZXdHcm91cDU/YXBpLXZlcnNpb249MjAyMS0wNC0wMQ==",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
+ "x-ms-client-request-id": [
+ "f84143de-d8d6-491c-abd0-0bd8cbea7e04"
+ ],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSNewGroup5\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSNewGroup5\",\r\n \"status\": \"Succeeded\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "177"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14953"
- ],
"x-ms-request-id": [
- "eastus:f7a7109d-9cfb-491a-8489-8f769823e309"
+ "westus:1c5ac199-eb55-426b-bf80-3412bdca84a2"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "1c5ac199-eb55-426b-bf80-3412bdca84a2"
],
"request-id": [
- "57c8ebdf-bbcb-4433-97b1-1547cd3a1141"
+ "1c5ac199-eb55-426b-bf80-3412bdca84a2"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "11999"
],
"x-ms-correlation-request-id": [
- "fbad75d5-83f4-4019-9bef-fa7e9da94429"
+ "1c5ac199-eb55-426b-bf80-3412bdca84a2"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194921Z:fbad75d5-83f4-4019-9bef-fa7e9da94429"
+ "WESTUS:20220418T214101Z:1c5ac199-eb55-426b-bf80-3412bdca84a2"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -543,74 +314,71 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:49:20 GMT"
+ "Mon, 18 Apr 2022 21:41:01 GMT"
],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "165"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/TestPSNewGroup5\",\r\n \"name\": \"TestPSNewGroup5\",\r\n \"status\": \"Succeeded\"\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSNewGroup5?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU05ld0dyb3VwNT9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSNewGroup5?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU05ld0dyb3VwNT9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
+ "x-ms-client-request-id": [
+ "f84143de-d8d6-491c-abd0-0bd8cbea7e04"
+ ],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSNewGroup5\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSNewGroup5\",\r\n \"status\": \"Succeeded\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "177"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14952"
- ],
"x-ms-request-id": [
- "eastus:c9d17d29-6f9d-4983-9ee1-59a080f198ce"
+ "westus:a73d8dfd-8aec-4b72-80db-617d1ed80ea4"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "a73d8dfd-8aec-4b72-80db-617d1ed80ea4"
],
"request-id": [
- "f3a1702d-ca1f-4a14-8b3b-d92ee5bc4512"
+ "a73d8dfd-8aec-4b72-80db-617d1ed80ea4"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "11998"
],
"x-ms-correlation-request-id": [
- "aeb6c25a-66e4-42b5-b26c-11db55dbdf34"
+ "a73d8dfd-8aec-4b72-80db-617d1ed80ea4"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194921Z:aeb6c25a-66e4-42b5-b26c-11db55dbdf34"
+ "WESTUS:20220418T214101Z:a73d8dfd-8aec-4b72-80db-617d1ed80ea4"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -618,83 +386,89 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:49:21 GMT"
+ "Mon, 18 Apr 2022 21:41:01 GMT"
],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "166"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSNewGroup5\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSNewGroup5\",\r\n \"status\": \"Succeeded\"\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/TestParent5?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQYXJlbnQ1P2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestParent5?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQYXJlbnQ1P2FwaS12ZXJzaW9uPTIwMjEtMDQtMDE=",
"RequestMethod": "DELETE",
"RequestBody": "",
"RequestHeaders": {
"x-ms-client-request-id": [
- "263d2bd9-c97d-4506-b859-7657438fcdb8"
+ "5b66b508-5c88-4096-8730-59a178e755db"
],
"Cache-Control": [
"no-cache"
],
- "accept-language": [
+ "Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestParent5\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestParent5\",\r\n \"status\": \"NotStarted\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "170"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
+ "Location": [
+ "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/TestParent5?api-version=2021-04-01"
+ ],
"Retry-After": [
"0"
],
+ "Azure-AsyncOperation": [
+ "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/TestParent5?api-version=2021-04-01"
+ ],
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "59"
+ ],
"x-ms-request-id": [
- "eastus:2bf5be25-6ff2-4b68-8d99-5a9a6024630f"
+ "westcentralus:26fae1d2-fd83-4750-b20e-e5c3fc95fd87"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "26fae1d2-fd83-4750-b20e-e5c3fc95fd87"
],
"request-id": [
- "1accc261-cfe1-42aa-a781-d48aa228eabc"
+ "26fae1d2-fd83-4750-b20e-e5c3fc95fd87"
],
- "x-ms-ratelimit-remaining-tenant-writes": [
- "1186"
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-deletes": [
+ "14998"
],
"x-ms-correlation-request-id": [
- "ca30713a-c1dd-4b05-ad97-2e2dc1380ed6"
+ "26fae1d2-fd83-4750-b20e-e5c3fc95fd87"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194924Z:ca30713a-c1dd-4b05-ad97-2e2dc1380ed6"
+ "WESTCENTRALUS:20220418T214103Z:26fae1d2-fd83-4750-b20e-e5c3fc95fd87"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -702,74 +476,68 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:49:24 GMT"
- ],
- "Location": [
- "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/operationResults/delete/managementGroups/TestParent5?api-version=2018-03-01-preview"
+ "Mon, 18 Apr 2022 21:41:03 GMT"
],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "159"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestParent5\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestParent5\",\r\n \"status\": \"NotStarted\"\r\n}",
"StatusCode": 202
},
{
- "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestParent5?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQYXJlbnQ1P2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==",
+ "RequestUri": "/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/TestParent5?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9hc3luY09wZXJhdGlvbi9zdGF0dXMvbWFuYWdlbWVudEdyb3Vwcy9UZXN0UGFyZW50NT9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
+ "x-ms-client-request-id": [
+ "5b66b508-5c88-4096-8730-59a178e755db"
+ ],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestParent5\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestParent5\",\r\n \"status\": \"Succeeded\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "169"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-correlation-request-id": [
- "a280a2ac-8d81-43bf-8b85-c7644693a96d"
- ],
"x-ms-request-id": [
- "eastus:a349d95e-8922-4d91-80a1-b23d5e4ee8cf"
+ "westcentralus:dc90ec2a-83d7-411a-8e6f-3439f9f9249b"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "dc90ec2a-83d7-411a-8e6f-3439f9f9249b"
],
"request-id": [
- "5627264d-f15e-4f36-9683-da0391ea75e0"
+ "dc90ec2a-83d7-411a-8e6f-3439f9f9249b"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
],
"x-ms-ratelimit-remaining-tenant-reads": [
- "14951"
+ "11996"
+ ],
+ "x-ms-correlation-request-id": [
+ "dc90ec2a-83d7-411a-8e6f-3439f9f9249b"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194934Z:a280a2ac-8d81-43bf-8b85-c7644693a96d"
+ "WESTCENTRALUS:20220418T214113Z:dc90ec2a-83d7-411a-8e6f-3439f9f9249b"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -777,74 +545,71 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:49:34 GMT"
+ "Mon, 18 Apr 2022 21:41:13 GMT"
],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "157"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/TestParent5\",\r\n \"name\": \"TestParent5\",\r\n \"status\": \"Succeeded\"\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestParent5?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQYXJlbnQ1P2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==",
+ "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestParent5?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQYXJlbnQ1P2FwaS12ZXJzaW9uPTIwMjEtMDQtMDE=",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
+ "x-ms-client-request-id": [
+ "5b66b508-5c88-4096-8730-59a178e755db"
+ ],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestParent5\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestParent5\",\r\n \"status\": \"Succeeded\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "169"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14950"
- ],
"x-ms-request-id": [
- "eastus:2df88639-0ac5-44dc-9608-a9a19adf8e5d"
+ "westcentralus:adb119f5-59ed-4a5e-8258-dbe7457e8028"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "adb119f5-59ed-4a5e-8258-dbe7457e8028"
],
"request-id": [
- "8d73a8b2-2d91-463c-b338-6b73fdf2870f"
+ "adb119f5-59ed-4a5e-8258-dbe7457e8028"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "11995"
],
"x-ms-correlation-request-id": [
- "7ee6c907-8b00-41b6-bfa8-4e50b82a7917"
+ "adb119f5-59ed-4a5e-8258-dbe7457e8028"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194935Z:7ee6c907-8b00-41b6-bfa8-4e50b82a7917"
+ "WESTCENTRALUS:20220418T214113Z:adb119f5-59ed-4a5e-8258-dbe7457e8028"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -852,32 +617,28 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:49:34 GMT"
+ "Mon, 18 Apr 2022 21:41:13 GMT"
],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "158"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestParent5\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestParent5\",\r\n \"status\": \"Succeeded\"\r\n}",
"StatusCode": 200
}
],
"Names": {},
"Variables": {
- "SubscriptionId": "394ae65d-9e71-4462-930f-3332dedf845c",
- "TenantId": "b1af47f1-138c-4ed2-8bba-119041b95450",
- "Domain": ""
+ "SubscriptionId": "5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de"
}
}
\ No newline at end of file
diff --git a/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestNewRemoveManagementGroupSubscription.json b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestNewRemoveManagementGroupSubscription.json
index d543948d15d7..90ef99c805f4 100644
--- a/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestNewRemoveManagementGroupSubscription.json
+++ b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestNewRemoveManagementGroupSubscription.json
@@ -1,67 +1,66 @@
{
"Entries": [
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/TestSubGroup?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RTdWJHcm91cD9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestSubGroup?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RTdWJHcm91cD9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
"RequestMethod": "PUT",
"RequestBody": "{\r\n \"name\": \"TestSubGroup\",\r\n \"properties\": {\r\n \"details\": {\r\n \"parent\": {}\r\n }\r\n }\r\n}",
"RequestHeaders": {
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Content-Length": [
- "100"
- ],
"x-ms-client-request-id": [
- "3ff334c7-8a00-4338-9fec-9f482882cd55"
+ "389c25ee-5fe0-4d84-ad8f-7de4bb06519c"
],
"Cache-Control": [
"no-cache"
],
- "accept-language": [
+ "Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
- ]
- },
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestSubGroup\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestSubGroup\",\r\n \"status\": \"NotStarted\"\r\n}",
- "ResponseHeaders": {
- "Content-Length": [
- "172"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
],
"Content-Type": [
"application/json; charset=utf-8"
],
- "Expires": [
- "-1"
+ "Content-Length": [
+ "100"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Retry-After": [
- "0"
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "59"
],
"x-ms-request-id": [
- "eastus:e8f45a7d-e496-41a5-b6f3-c52f3fd92a14"
+ "westcentralus:ddb0784a-0415-441f-a8ac-2c43fcd7495a"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "ddb0784a-0415-441f-a8ac-2c43fcd7495a"
],
"request-id": [
- "a54ead26-7e8a-4f90-b742-7398a3226fef"
+ "ddb0784a-0415-441f-a8ac-2c43fcd7495a"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
],
"x-ms-ratelimit-remaining-tenant-writes": [
- "1192"
+ "1199"
],
"x-ms-correlation-request-id": [
- "84d003f4-8c36-4678-9db8-3c8abe0e7678"
+ "ddb0784a-0415-441f-a8ac-2c43fcd7495a"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194947Z:84d003f4-8c36-4678-9db8-3c8abe0e7678"
+ "WESTCENTRALUS:20220418T212849Z:ddb0784a-0415-441f-a8ac-2c43fcd7495a"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -69,44 +68,11 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:49:47 GMT"
- ],
- "Location": [
- "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/operationResults/create/managementGroups/TestSubGroup?api-version=2018-03-01-preview"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Mon, 18 Apr 2022 21:28:49 GMT"
],
- "X-AspNet-Version": [
- "4.0.30319"
- ],
- "X-Powered-By": [
- "ASP.NET"
- ]
- },
- "StatusCode": 202
- },
- {
- "RequestUri": "/providers/Microsoft.Management/operationResults/create/managementGroups/TestSubGroup?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2NyZWF0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RTdWJHcm91cD9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
- "RequestMethod": "GET",
- "RequestBody": "",
- "RequestHeaders": {
- "User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
- ]
- },
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestSubGroup\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestSubGroup\",\r\n \"status\": \"Succeeded\",\r\n \"properties\": {\r\n \"tenantId\": \"b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"displayName\": \"TestSubGroup\",\r\n \"details\": {\r\n \"version\": 8,\r\n \"updatedTime\": \"2018-05-24T19:49:53.2934654Z\",\r\n \"updatedBy\": \"aef7ed39-6482-40be-a70c-8ec0669b0d04\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"name\": \"b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"displayName\": \"b1af47f1-138c-4ed2-8bba-119041b95450\"\r\n }\r\n }\r\n }\r\n}",
- "ResponseHeaders": {
"Content-Length": [
- "588"
+ "541"
],
"Content-Type": [
"application/json; charset=utf-8"
@@ -114,104 +80,68 @@
"Expires": [
"-1"
],
- "Pragma": [
- "no-cache"
- ],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14953"
- ],
- "x-ms-request-id": [
- "eastus:f1d8d05b-4b0e-4ac0-aba7-2bfe907cd7df"
- ],
- "x-ba-restapi": [
- "1.0.3.795"
- ],
- "request-id": [
- "cf4694b1-6aef-4e45-bc6d-610c9eb80199"
- ],
- "x-ms-correlation-request-id": [
- "bbf52eae-c571-497a-8efa-354cc3427880"
- ],
- "x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194958Z:bbf52eae-c571-497a-8efa-354cc3427880"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "X-Content-Type-Options": [
- "nosniff"
- ],
- "Cache-Control": [
- "no-cache"
- ],
- "Date": [
- "Thu, 24 May 2018 19:49:57 GMT"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
- ],
- "X-Powered-By": [
- "ASP.NET"
- ],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestSubGroup\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestSubGroup\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"TestSubGroup\",\r\n \"details\": {\r\n \"version\": 4,\r\n \"updatedTime\": \"2022-03-31T20:47:49.1041656Z\",\r\n \"updatedBy\": \"9e41f384-0aa9-41bc-a29d-6d956cd8eadb\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"name\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"Root Management Group\"\r\n }\r\n }\r\n }\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/TestSubGroup/subscriptions/394ae65d-9e71-4462-930f-3332dedf845c?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RTdWJHcm91cC9zdWJzY3JpcHRpb25zLzM5NGFlNjVkLTllNzEtNDQ2Mi05MzBmLTMzMzJkZWRmODQ1Yz9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestSubGroup/subscriptions/5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RTdWJHcm91cC9zdWJzY3JpcHRpb25zLzU2MDJmYmQ5LWZiMGQtNGZiYi05OGIzLTEwYzhlYTIwYjZkZT9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
"RequestMethod": "PUT",
"RequestBody": "",
"RequestHeaders": {
"x-ms-client-request-id": [
- "beb4111f-63aa-48a3-8de8-e9ca7006e5a0"
+ "4b9bf9fe-5942-4035-ad14-0a457f27bbc0"
],
"Cache-Control": [
"no-cache"
],
- "accept-language": [
+ "Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "",
"ResponseHeaders": {
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "249"
+ ],
"x-ms-request-id": [
- "eastus:a800a9d1-5eb6-4dea-9d88-bc9f5b113b79"
+ "westcentralus:f06c4d61-5822-4f53-92c5-76e7a7cfa20a"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "f06c4d61-5822-4f53-92c5-76e7a7cfa20a"
],
"request-id": [
- "8eabd706-4750-49ea-9253-8e86fde9026c"
+ "f06c4d61-5822-4f53-92c5-76e7a7cfa20a"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
],
"x-ms-ratelimit-remaining-tenant-writes": [
- "1191"
+ "1198"
],
"x-ms-correlation-request-id": [
- "efdef509-a5ba-4a88-bca0-90112d7acaae"
+ "f06c4d61-5822-4f53-92c5-76e7a7cfa20a"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T195002Z:efdef509-a5ba-4a88-bca0-90112d7acaae"
+ "WESTCENTRALUS:20220418T212852Z:f06c4d61-5822-4f53-92c5-76e7a7cfa20a"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -219,53 +149,11 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:50:02 GMT"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Mon, 18 Apr 2022 21:28:52 GMT"
],
- "X-AspNet-Version": [
- "4.0.30319"
- ],
- "X-Powered-By": [
- "ASP.NET"
- ],
- "Retry-After": [
- "0"
- ]
- },
- "StatusCode": 204
- },
- {
- "RequestUri": "/providers/Microsoft.Management/managementGroups/TestSubGroup?api-version=2018-03-01-preview&$expand=children&$recurse=false",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RTdWJHcm91cD9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXcmJGV4cGFuZD1jaGlsZHJlbiYkcmVjdXJzZT1mYWxzZQ==",
- "RequestMethod": "GET",
- "RequestBody": "",
- "RequestHeaders": {
- "x-ms-client-request-id": [
- "51179715-78f3-43cd-8d03-240df4028c65"
- ],
- "Cache-Control": [
- "no-cache"
- ],
- "accept-language": [
- "en-US"
- ],
- "User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
- ]
- },
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestSubGroup\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestSubGroup\",\r\n \"properties\": {\r\n \"tenantId\": \"b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"displayName\": \"TestSubGroup\",\r\n \"details\": {\r\n \"version\": 8,\r\n \"updatedTime\": \"2018-05-24T19:49:53.2934654Z\",\r\n \"updatedBy\": \"aef7ed39-6482-40be-a70c-8ec0669b0d04\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"name\": \"b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"displayName\": \"b1af47f1-138c-4ed2-8bba-119041b95450\"\r\n }\r\n },\r\n \"children\": [\r\n {\r\n \"id\": \"/subscriptions/394ae65d-9e71-4462-930f-3332dedf845c\",\r\n \"type\": \"/subscriptions\",\r\n \"name\": \"394ae65d-9e71-4462-930f-3332dedf845c\",\r\n \"displayName\": \"Pay-As-You-Go\"\r\n }\r\n ]\r\n }\r\n}",
- "ResponseHeaders": {
"Content-Length": [
- "741"
+ "473"
],
"Content-Type": [
"application/json; charset=utf-8"
@@ -273,113 +161,68 @@
"Expires": [
"-1"
],
- "Pragma": [
- "no-cache"
- ],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14952"
- ],
- "x-ms-request-id": [
- "eastus:b1b954a7-274c-4ecc-9fb3-6f9fe171b68e"
- ],
- "x-ba-restapi": [
- "1.0.3.795"
- ],
- "request-id": [
- "5e35288f-ee27-4922-92d3-6acdbe4be889"
- ],
- "x-ms-correlation-request-id": [
- "2bbfcd57-78c5-49fa-b7dd-5be3b84fa211"
- ],
- "x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T195003Z:2bbfcd57-78c5-49fa-b7dd-5be3b84fa211"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "X-Content-Type-Options": [
- "nosniff"
- ],
- "Cache-Control": [
- "no-cache"
- ],
- "Date": [
- "Thu, 24 May 2018 19:50:03 GMT"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
- ],
- "X-Powered-By": [
- "ASP.NET"
- ],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"name\": \"5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de\",\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestSubGroup/subscriptions/5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de\",\r\n \"type\": \"Microsoft.Management/managementGroups/subscriptions\",\r\n \"properties\": {\r\n \"displayName\": \"Visual Studio Enterprise Subscription\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestSubGroup\",\r\n \"name\": null,\r\n \"displayName\": null\r\n },\r\n \"state\": \"Active\",\r\n \"tenant\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\"\r\n }\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/TestSubGroup?api-version=2018-03-01-preview&$expand=children&$recurse=false",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RTdWJHcm91cD9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXcmJGV4cGFuZD1jaGlsZHJlbiYkcmVjdXJzZT1mYWxzZQ==",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestSubGroup?api-version=2021-04-01&$expand=children&$recurse=false",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RTdWJHcm91cD9hcGktdmVyc2lvbj0yMDIxLTA0LTAxJiRleHBhbmQ9Y2hpbGRyZW4mJHJlY3Vyc2U9ZmFsc2U=",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
"x-ms-client-request-id": [
- "bea3d1fc-3503-49ea-888d-d46c65047b60"
+ "4254acc7-8311-4459-9733-08628d0e05d5"
],
"Cache-Control": [
"no-cache"
],
- "accept-language": [
+ "Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestSubGroup\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestSubGroup\",\r\n \"properties\": {\r\n \"tenantId\": \"b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"displayName\": \"TestSubGroup\",\r\n \"details\": {\r\n \"version\": 8,\r\n \"updatedTime\": \"2018-05-24T19:49:53.2934654Z\",\r\n \"updatedBy\": \"aef7ed39-6482-40be-a70c-8ec0669b0d04\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"name\": \"b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"displayName\": \"b1af47f1-138c-4ed2-8bba-119041b95450\"\r\n }\r\n },\r\n \"children\": null\r\n }\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "583"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14951"
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "59"
],
"x-ms-request-id": [
- "eastus:26be94e1-dd8f-4a9d-a961-1b18258e2a34"
+ "westcentralus:f0343efe-8d7f-4237-9dc9-c9532b3809cf"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "f0343efe-8d7f-4237-9dc9-c9532b3809cf"
],
"request-id": [
- "8c4c47e3-0625-4cbc-b11a-75d793f83e8f"
+ "f0343efe-8d7f-4237-9dc9-c9532b3809cf"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "11999"
],
"x-ms-correlation-request-id": [
- "1663b99b-d59d-4227-8de2-c34de5148057"
+ "f0343efe-8d7f-4237-9dc9-c9532b3809cf"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T195009Z:1663b99b-d59d-4227-8de2-c34de5148057"
+ "WESTCENTRALUS:20220418T212853Z:f0343efe-8d7f-4237-9dc9-c9532b3809cf"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -387,74 +230,80 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:50:09 GMT"
+ "Mon, 18 Apr 2022 21:28:53 GMT"
],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "739"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestSubGroup\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestSubGroup\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"TestSubGroup\",\r\n \"details\": {\r\n \"version\": 4,\r\n \"updatedTime\": \"2022-03-31T20:47:49.1041656Z\",\r\n \"updatedBy\": \"9e41f384-0aa9-41bc-a29d-6d956cd8eadb\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"name\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"Root Management Group\"\r\n }\r\n },\r\n \"children\": [\r\n {\r\n \"id\": \"/subscriptions/5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de\",\r\n \"type\": \"/subscriptions\",\r\n \"name\": \"5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de\",\r\n \"displayName\": \"Visual Studio Enterprise Subscription\"\r\n }\r\n ]\r\n }\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/TestSubGroup/subscriptions/394ae65d-9e71-4462-930f-3332dedf845c?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RTdWJHcm91cC9zdWJzY3JpcHRpb25zLzM5NGFlNjVkLTllNzEtNDQ2Mi05MzBmLTMzMzJkZWRmODQ1Yz9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
- "RequestMethod": "DELETE",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestSubGroup?api-version=2021-04-01&$expand=children&$recurse=false",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RTdWJHcm91cD9hcGktdmVyc2lvbj0yMDIxLTA0LTAxJiRleHBhbmQ9Y2hpbGRyZW4mJHJlY3Vyc2U9ZmFsc2U=",
+ "RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
"x-ms-client-request-id": [
- "9e2fc497-b733-4729-8769-e2993e625838"
+ "53cbb38e-97ee-40aa-9dd3-a06ab106108a"
],
"Cache-Control": [
"no-cache"
],
- "accept-language": [
+ "Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "",
"ResponseHeaders": {
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "59"
+ ],
"x-ms-request-id": [
- "eastus:deb546cf-22c3-46bd-90ec-00c2fb89acf1"
+ "westcentralus:74cc42e6-43b6-40c9-8082-4c14fd0ebcd0"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "74cc42e6-43b6-40c9-8082-4c14fd0ebcd0"
],
"request-id": [
- "8b2c7af5-0517-4e34-af21-7c00402de3cd"
+ "74cc42e6-43b6-40c9-8082-4c14fd0ebcd0"
],
- "x-ms-ratelimit-remaining-tenant-writes": [
- "1190"
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "11998"
],
"x-ms-correlation-request-id": [
- "0c94c6ee-2818-45f3-9e86-b5d37069fdb5"
+ "74cc42e6-43b6-40c9-8082-4c14fd0ebcd0"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T195008Z:0c94c6ee-2818-45f3-9e86-b5d37069fdb5"
+ "WESTCENTRALUS:20220418T212856Z:74cc42e6-43b6-40c9-8082-4c14fd0ebcd0"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -462,233 +311,80 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:50:08 GMT"
+ "Mon, 18 Apr 2022 21:28:56 GMT"
],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "557"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
],
"Retry-After": [
"0"
]
},
- "StatusCode": 204
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestSubGroup\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestSubGroup\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"TestSubGroup\",\r\n \"details\": {\r\n \"version\": 4,\r\n \"updatedTime\": \"2022-03-31T20:47:49.1041656Z\",\r\n \"updatedBy\": \"9e41f384-0aa9-41bc-a29d-6d956cd8eadb\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"name\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"Root Management Group\"\r\n }\r\n },\r\n \"children\": null\r\n }\r\n}",
+ "StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/TestSubGroup?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RTdWJHcm91cD9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestSubGroup/subscriptions/5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RTdWJHcm91cC9zdWJzY3JpcHRpb25zLzU2MDJmYmQ5LWZiMGQtNGZiYi05OGIzLTEwYzhlYTIwYjZkZT9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
"RequestMethod": "DELETE",
"RequestBody": "",
"RequestHeaders": {
"x-ms-client-request-id": [
- "d68543ce-694b-4d14-9a1e-c5e7bf0220a5"
+ "d16bb566-c03a-4b83-98e1-89174567a41a"
],
"Cache-Control": [
"no-cache"
],
- "accept-language": [
+ "Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestSubGroup\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestSubGroup\",\r\n \"status\": \"NotStarted\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "172"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
- ],
- "Pragma": [
- "no-cache"
- ],
- "Retry-After": [
- "0"
- ],
- "x-ms-request-id": [
- "eastus:538df913-ab70-4a0d-8b8d-f08e6b0335e4"
- ],
- "x-ba-restapi": [
- "1.0.3.795"
- ],
- "request-id": [
- "10730f38-85a2-4751-ae4c-115de312bbc1"
- ],
- "x-ms-ratelimit-remaining-tenant-writes": [
- "1189"
- ],
- "x-ms-correlation-request-id": [
- "4e78e553-cfd1-44c1-930e-866872c4a32e"
- ],
- "x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T195012Z:4e78e553-cfd1-44c1-930e-866872c4a32e"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "X-Content-Type-Options": [
- "nosniff"
- ],
"Cache-Control": [
"no-cache"
],
- "Date": [
- "Thu, 24 May 2018 19:50:11 GMT"
- ],
- "Location": [
- "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/operationResults/delete/managementGroups/TestSubGroup?api-version=2018-03-01-preview"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
- ],
- "X-Powered-By": [
- "ASP.NET"
- ]
- },
- "StatusCode": 202
- },
- {
- "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestSubGroup?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RTdWJHcm91cD9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
- "RequestMethod": "GET",
- "RequestBody": "",
- "RequestHeaders": {
- "User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
- ]
- },
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestSubGroup\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestSubGroup\",\r\n \"status\": \"Succeeded\"\r\n}",
- "ResponseHeaders": {
- "Content-Length": [
- "171"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
- ],
"Pragma": [
"no-cache"
],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14950"
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "249"
],
"x-ms-request-id": [
- "eastus:dd680135-b98f-4ecf-8f3d-8ed06330175f"
+ "westcentralus:42b6c42e-2ba6-4e09-a0a6-fa476f422d17"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
],
- "request-id": [
- "4e981694-3180-43ea-924b-5cec8f394787"
+ "client-request-id": [
+ "42b6c42e-2ba6-4e09-a0a6-fa476f422d17"
],
- "x-ms-correlation-request-id": [
- "8946237d-b3cb-4e8a-9063-e4c4cbf5c110"
- ],
- "x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T195022Z:8946237d-b3cb-4e8a-9063-e4c4cbf5c110"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "X-Content-Type-Options": [
- "nosniff"
- ],
- "Cache-Control": [
- "no-cache"
- ],
- "Date": [
- "Thu, 24 May 2018 19:50:22 GMT"
+ "request-id": [
+ "42b6c42e-2ba6-4e09-a0a6-fa476f422d17"
],
"Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Microsoft-HTTPAPI/2.0"
],
- "X-Powered-By": [
- "ASP.NET"
- ],
- "Retry-After": [
- "0"
- ]
- },
- "StatusCode": 200
- },
- {
- "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestSubGroup?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RTdWJHcm91cD9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
- "RequestMethod": "GET",
- "RequestBody": "",
- "RequestHeaders": {
- "User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
- ]
- },
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestSubGroup\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestSubGroup\",\r\n \"status\": \"Succeeded\"\r\n}",
- "ResponseHeaders": {
- "Content-Length": [
- "171"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
- ],
- "Pragma": [
- "no-cache"
- ],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14949"
- ],
- "x-ms-request-id": [
- "eastus:0dcffa37-7b98-4e13-a197-43cfb77dbca5"
- ],
- "x-ba-restapi": [
- "1.0.3.795"
- ],
- "request-id": [
- "57e0bf4a-c9ef-4837-a679-a13d4abac296"
+ "x-ms-ratelimit-remaining-tenant-deletes": [
+ "14999"
],
"x-ms-correlation-request-id": [
- "a72fa3a9-68ea-42c3-81a3-9e3ef9b3243e"
+ "42b6c42e-2ba6-4e09-a0a6-fa476f422d17"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T195022Z:a72fa3a9-68ea-42c3-81a3-9e3ef9b3243e"
+ "WESTCENTRALUS:20220418T212856Z:42b6c42e-2ba6-4e09-a0a6-fa476f422d17"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -696,32 +392,25 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:50:22 GMT"
+ "Mon, 18 Apr 2022 21:28:55 GMT"
],
- "Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Expires": [
+ "-1"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Content-Length": [
+ "0"
],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "",
"StatusCode": 200
}
],
"Names": {},
"Variables": {
- "SubscriptionId": "394ae65d-9e71-4462-930f-3332dedf845c",
- "TenantId": "b1af47f1-138c-4ed2-8bba-119041b95450",
- "Domain": ""
+ "SubscriptionId": "5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de"
}
}
\ No newline at end of file
diff --git a/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestRemoveHierarcySetting.json b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestRemoveHierarcySetting.json
new file mode 100644
index 000000000000..3d7eb252174a
--- /dev/null
+++ b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestRemoveHierarcySetting.json
@@ -0,0 +1,161 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL2M3YTg3Y2RhLTlhNjYtNDkyMC1iMGY4LTg2OWJhYTA0ZWZlMC9zZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMjEtMDQtMDE=",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"properties\": {\r\n \"requireAuthorizationForGroupCreation\": true\r\n }\r\n}",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "7a01019d-c098-4e6b-b53d-bd60a10f401a"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "78"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "westcentralus:d33c273b-57ef-432f-83ad-da2d3ea0111f"
+ ],
+ "x-ba-restapi": [
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "d33c273b-57ef-432f-83ad-da2d3ea0111f"
+ ],
+ "request-id": [
+ "d33c273b-57ef-432f-83ad-da2d3ea0111f"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1199"
+ ],
+ "x-ms-correlation-request-id": [
+ "d33c273b-57ef-432f-83ad-da2d3ea0111f"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTCENTRALUS:20220418T213344Z:d33c273b-57ef-432f-83ad-da2d3ea0111f"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Mon, 18 Apr 2022 21:33:44 GMT"
+ ],
+ "Content-Length": [
+ "323"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Retry-After": [
+ "0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default\",\r\n \"type\": \"Microsoft.Management/managementGroups/settings\",\r\n \"name\": \"default\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"requireAuthorizationForGroupCreation\": true,\r\n \"defaultManagementGroup\": null\r\n }\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL2M3YTg3Y2RhLTlhNjYtNDkyMC1iMGY4LTg2OWJhYTA0ZWZlMC9zZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMjEtMDQtMDE=",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "ed97fc26-5980-42e6-aa54-6a410d4a1ec0"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "westcentralus:d6a2dbe2-a6c2-48e9-b00a-846cc9c28d61"
+ ],
+ "x-ba-restapi": [
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "d6a2dbe2-a6c2-48e9-b00a-846cc9c28d61"
+ ],
+ "request-id": [
+ "d6a2dbe2-a6c2-48e9-b00a-846cc9c28d61"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-deletes": [
+ "14999"
+ ],
+ "x-ms-correlation-request-id": [
+ "d6a2dbe2-a6c2-48e9-b00a-846cc9c28d61"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTCENTRALUS:20220418T213344Z:d6a2dbe2-a6c2-48e9-b00a-846cc9c28d61"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Mon, 18 Apr 2022 21:33:44 GMT"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Content-Length": [
+ "0"
+ ],
+ "Retry-After": [
+ "0"
+ ]
+ },
+ "ResponseBody": "",
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de"
+ }
+}
\ No newline at end of file
diff --git a/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestRemoveManagementGroup.json b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestRemoveManagementGroup.json
index 5937481d7ef6..db49a2758cc2 100644
--- a/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestRemoveManagementGroup.json
+++ b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestRemoveManagementGroup.json
@@ -1,142 +1,66 @@
{
"Entries": [
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSRemoveGroup?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1JlbW92ZUdyb3VwP2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSRemoveGroup?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1JlbW92ZUdyb3VwP2FwaS12ZXJzaW9uPTIwMjEtMDQtMDE=",
"RequestMethod": "PUT",
"RequestBody": "{\r\n \"name\": \"TestPSRemoveGroup\",\r\n \"properties\": {\r\n \"details\": {\r\n \"parent\": {}\r\n }\r\n }\r\n}",
"RequestHeaders": {
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Content-Length": [
- "105"
- ],
"x-ms-client-request-id": [
- "7bea2d58-83a2-42c8-899c-fa4ed993785b"
+ "3ad17ff9-aa0f-4f9a-bdb7-0c1b7774c99c"
],
"Cache-Control": [
"no-cache"
],
- "accept-language": [
+ "Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
- ]
- },
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSRemoveGroup\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSRemoveGroup\",\r\n \"status\": \"NotStarted\"\r\n}",
- "ResponseHeaders": {
- "Content-Length": [
- "182"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
],
"Content-Type": [
"application/json; charset=utf-8"
],
- "Expires": [
- "-1"
- ],
- "Pragma": [
- "no-cache"
- ],
- "Retry-After": [
- "0"
- ],
- "x-ms-request-id": [
- "eastus:fdf85487-e646-49d6-906e-e717a02ef8de"
- ],
- "x-ba-restapi": [
- "1.0.3.795"
- ],
- "request-id": [
- "3ffe681c-c240-4ac0-8b66-0dc84b35add6"
- ],
- "x-ms-ratelimit-remaining-tenant-writes": [
- "1199"
- ],
- "x-ms-correlation-request-id": [
- "3807dbbf-88f7-4e5e-9d2e-2fc83519eb96"
- ],
- "x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T193850Z:3807dbbf-88f7-4e5e-9d2e-2fc83519eb96"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "X-Content-Type-Options": [
- "nosniff"
- ],
- "Cache-Control": [
- "no-cache"
- ],
- "Date": [
- "Thu, 24 May 2018 19:38:50 GMT"
- ],
- "Location": [
- "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/operationResults/create/managementGroups/TestPSRemoveGroup?api-version=2018-03-01-preview"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
- ],
- "X-Powered-By": [
- "ASP.NET"
- ]
- },
- "StatusCode": 202
- },
- {
- "RequestUri": "/providers/Microsoft.Management/operationResults/create/managementGroups/TestPSRemoveGroup?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2NyZWF0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1JlbW92ZUdyb3VwP2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==",
- "RequestMethod": "GET",
- "RequestBody": "",
- "RequestHeaders": {
- "User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "Content-Length": [
+ "105"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSRemoveGroup\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSRemoveGroup\",\r\n \"status\": \"Running\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "179"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Retry-After": [
- "0"
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "59"
],
"x-ms-request-id": [
- "eastus:0c3e915c-e6ff-4422-9bcd-fd84f03a6f2d"
+ "westcentralus:5cfc998e-eb5a-49ec-be96-89baf25212b5"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "5cfc998e-eb5a-49ec-be96-89baf25212b5"
],
"request-id": [
- "260d751a-6fc9-482b-bfc9-936b97caa972"
+ "5cfc998e-eb5a-49ec-be96-89baf25212b5"
],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14992"
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1199"
],
"x-ms-correlation-request-id": [
- "3ab14e3e-0c75-4df3-a97f-1ff9f934fecf"
+ "5cfc998e-eb5a-49ec-be96-89baf25212b5"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T193900Z:3ab14e3e-0c75-4df3-a97f-1ff9f934fecf"
+ "WESTCENTRALUS:20220418T214133Z:5cfc998e-eb5a-49ec-be96-89baf25212b5"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -144,44 +68,11 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:38:59 GMT"
- ],
- "Location": [
- "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/operationResults/create/managementGroups/TestPSRemoveGroup?api-version=2018-03-01-preview"
+ "Mon, 18 Apr 2022 21:41:32 GMT"
],
- "Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
- ],
- "X-Powered-By": [
- "ASP.NET"
- ]
- },
- "StatusCode": 202
- },
- {
- "RequestUri": "/providers/Microsoft.Management/operationResults/create/managementGroups/TestPSRemoveGroup?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2NyZWF0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1JlbW92ZUdyb3VwP2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==",
- "RequestMethod": "GET",
- "RequestBody": "",
- "RequestHeaders": {
- "User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
- ]
- },
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSRemoveGroup\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSRemoveGroup\",\r\n \"status\": \"Succeeded\",\r\n \"properties\": {\r\n \"tenantId\": \"b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"displayName\": \"TestPSRemoveGroup\",\r\n \"details\": {\r\n \"version\": 12,\r\n \"updatedTime\": \"2018-05-24T19:39:02.3702878Z\",\r\n \"updatedBy\": \"aef7ed39-6482-40be-a70c-8ec0669b0d04\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"name\": \"b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"displayName\": \"b1af47f1-138c-4ed2-8bba-119041b95450\"\r\n }\r\n }\r\n }\r\n}",
- "ResponseHeaders": {
"Content-Length": [
- "604"
+ "557"
],
"Content-Type": [
"application/json; charset=utf-8"
@@ -189,113 +80,68 @@
"Expires": [
"-1"
],
- "Pragma": [
- "no-cache"
- ],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14991"
- ],
- "x-ms-request-id": [
- "eastus:2b031048-4119-4205-bc9a-0f14f45f4768"
- ],
- "x-ba-restapi": [
- "1.0.3.795"
- ],
- "request-id": [
- "69bb9799-6039-4d73-b3a2-b36409813724"
- ],
- "x-ms-correlation-request-id": [
- "63169878-fa05-46e1-a7e8-6b26db1a727e"
- ],
- "x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T193911Z:63169878-fa05-46e1-a7e8-6b26db1a727e"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "X-Content-Type-Options": [
- "nosniff"
- ],
- "Cache-Control": [
- "no-cache"
- ],
- "Date": [
- "Thu, 24 May 2018 19:39:10 GMT"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
- ],
- "X-Powered-By": [
- "ASP.NET"
- ],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSRemoveGroup\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSRemoveGroup\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"TestPSRemoveGroup\",\r\n \"details\": {\r\n \"version\": 11,\r\n \"updatedTime\": \"2022-04-18T21:30:14.9640175Z\",\r\n \"updatedBy\": \"9e41f384-0aa9-41bc-a29d-6d956cd8eadb\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"name\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"Root Management Group\"\r\n }\r\n }\r\n }\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSRemoveGroup?api-version=2018-03-01-preview&$recurse=false",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1JlbW92ZUdyb3VwP2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldyYkcmVjdXJzZT1mYWxzZQ==",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSRemoveGroup?api-version=2021-04-01&$recurse=false",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1JlbW92ZUdyb3VwP2FwaS12ZXJzaW9uPTIwMjEtMDQtMDEmJHJlY3Vyc2U9ZmFsc2U=",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
"x-ms-client-request-id": [
- "92e89d65-376a-401a-958e-d1b9750232ce"
+ "6d75a96a-1260-4df4-8927-adc6993119c8"
],
"Cache-Control": [
"no-cache"
],
- "accept-language": [
+ "Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSRemoveGroup\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSRemoveGroup\",\r\n \"properties\": {\r\n \"tenantId\": \"b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"displayName\": \"TestPSRemoveGroup\",\r\n \"details\": {\r\n \"version\": 12,\r\n \"updatedTime\": \"2018-05-24T19:39:02.3702878Z\",\r\n \"updatedBy\": \"aef7ed39-6482-40be-a70c-8ec0669b0d04\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"name\": \"b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"displayName\": \"b1af47f1-138c-4ed2-8bba-119041b95450\"\r\n }\r\n }\r\n }\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "583"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14990"
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "57"
],
"x-ms-request-id": [
- "eastus:99e5373c-cda2-49a8-a13f-3a5037a79873"
+ "westcentralus:820b2f34-0f4c-4f18-93d8-841f270d708f"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "820b2f34-0f4c-4f18-93d8-841f270d708f"
],
"request-id": [
- "ceab6d40-64ea-48ad-84e8-c0a9ab401ed4"
+ "820b2f34-0f4c-4f18-93d8-841f270d708f"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "11994"
],
"x-ms-correlation-request-id": [
- "03e60a13-de34-4459-bd88-d9bb7f264de6"
+ "820b2f34-0f4c-4f18-93d8-841f270d708f"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T193912Z:03e60a13-de34-4459-bd88-d9bb7f264de6"
+ "WESTCENTRALUS:20220418T214134Z:820b2f34-0f4c-4f18-93d8-841f270d708f"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -303,53 +149,11 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:39:12 GMT"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
- ],
- "X-Powered-By": [
- "ASP.NET"
- ],
- "Retry-After": [
- "0"
- ]
- },
- "StatusCode": 200
- },
- {
- "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSRemoveGroup?api-version=2018-03-01-preview&$recurse=false",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1JlbW92ZUdyb3VwP2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldyYkcmVjdXJzZT1mYWxzZQ==",
- "RequestMethod": "GET",
- "RequestBody": "",
- "RequestHeaders": {
- "x-ms-client-request-id": [
- "0f274860-8732-4941-8ce2-6dc7bdc16ff5"
+ "Mon, 18 Apr 2022 21:41:33 GMT"
],
- "Cache-Control": [
- "no-cache"
- ],
- "accept-language": [
- "en-US"
- ],
- "User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
- ]
- },
- "ResponseBody": "{\r\n \"code\": \"NotFound\",\r\n \"message\": \"'/providers/Microsoft.Management/managementGroups/TestPSRemoveGroup' not found\",\r\n \"details\": null\r\n}",
- "ResponseHeaders": {
"Content-Length": [
- "125"
+ "557"
],
"Content-Type": [
"application/json; charset=utf-8"
@@ -357,110 +161,77 @@
"Expires": [
"-1"
],
- "Pragma": [
- "no-cache"
- ],
- "x-ms-request-id": [
- "eastus:89837017-9513-4f54-bc58-81045df7adef"
- ],
- "x-ba-restapi": [
- "1.0.3.795"
- ],
- "request-id": [
- "5c3b3420-4c4e-4dc2-b244-771efdd72e6d"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14987"
- ],
- "x-ms-correlation-request-id": [
- "c7b0adf7-f5f7-42a3-9a56-7831aa906598"
- ],
- "x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T193928Z:c7b0adf7-f5f7-42a3-9a56-7831aa906598"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "X-Content-Type-Options": [
- "nosniff"
- ],
- "Cache-Control": [
- "no-cache"
- ],
- "Date": [
- "Thu, 24 May 2018 19:39:28 GMT"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
- ],
- "X-Powered-By": [
- "ASP.NET"
- ],
"Retry-After": [
"0"
]
},
- "StatusCode": 404
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSRemoveGroup\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSRemoveGroup\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"TestPSRemoveGroup\",\r\n \"details\": {\r\n \"version\": 11,\r\n \"updatedTime\": \"2022-04-18T21:30:14.9640175Z\",\r\n \"updatedBy\": \"9e41f384-0aa9-41bc-a29d-6d956cd8eadb\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"name\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"Root Management Group\"\r\n }\r\n }\r\n }\r\n}",
+ "StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSRemoveGroup?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1JlbW92ZUdyb3VwP2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSRemoveGroup?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1JlbW92ZUdyb3VwP2FwaS12ZXJzaW9uPTIwMjEtMDQtMDE=",
"RequestMethod": "DELETE",
"RequestBody": "",
"RequestHeaders": {
"x-ms-client-request-id": [
- "edc9458b-085b-401a-8501-d45c695ac1e0"
+ "314c4042-0d10-4075-bf7e-3cad2eaf6dfe"
],
"Cache-Control": [
"no-cache"
],
- "accept-language": [
+ "Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSRemoveGroup\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSRemoveGroup\",\r\n \"status\": \"NotStarted\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "182"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
+ "Location": [
+ "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSRemoveGroup?api-version=2021-04-01"
+ ],
"Retry-After": [
"0"
],
+ "Azure-AsyncOperation": [
+ "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/TestPSRemoveGroup?api-version=2021-04-01"
+ ],
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "58"
+ ],
"x-ms-request-id": [
- "eastus:ccad251e-484a-4cdb-bf57-c36ba70a2873"
+ "westcentralus:4c6e8943-be6a-4b14-babc-5447c7de37fd"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "4c6e8943-be6a-4b14-babc-5447c7de37fd"
],
"request-id": [
- "44ffd7ca-0f5f-4e7a-95a8-40a0f97ead77"
+ "4c6e8943-be6a-4b14-babc-5447c7de37fd"
],
- "x-ms-ratelimit-remaining-tenant-writes": [
- "1198"
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-deletes": [
+ "14998"
],
"x-ms-correlation-request-id": [
- "5e6289d9-b9ed-41bb-91b7-02a31f6afe2a"
+ "4c6e8943-be6a-4b14-babc-5447c7de37fd"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T193915Z:5e6289d9-b9ed-41bb-91b7-02a31f6afe2a"
+ "WESTCENTRALUS:20220418T214135Z:4c6e8943-be6a-4b14-babc-5447c7de37fd"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -468,74 +239,68 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:39:15 GMT"
- ],
- "Location": [
- "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSRemoveGroup?api-version=2018-03-01-preview"
+ "Mon, 18 Apr 2022 21:41:34 GMT"
],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "171"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSRemoveGroup\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSRemoveGroup\",\r\n \"status\": \"NotStarted\"\r\n}",
"StatusCode": 202
},
{
- "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSRemoveGroup?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1JlbW92ZUdyb3VwP2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==",
+ "RequestUri": "/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/TestPSRemoveGroup?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9hc3luY09wZXJhdGlvbi9zdGF0dXMvbWFuYWdlbWVudEdyb3Vwcy9UZXN0UFNSZW1vdmVHcm91cD9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
+ "x-ms-client-request-id": [
+ "314c4042-0d10-4075-bf7e-3cad2eaf6dfe"
+ ],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSRemoveGroup\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSRemoveGroup\",\r\n \"status\": \"Succeeded\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "181"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-correlation-request-id": [
- "db0f3912-cfb2-4b56-9d4b-f64ca0275995"
- ],
"x-ms-request-id": [
- "eastus:5916a1bf-fbee-44aa-9907-31e4e4ff8fa4"
+ "westcentralus:8690f5f5-617f-4b19-87dc-29ac0173003c"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "8690f5f5-617f-4b19-87dc-29ac0173003c"
],
"request-id": [
- "6cac8efa-cc08-47b4-80c8-6d3d1cfb5c45"
+ "8690f5f5-617f-4b19-87dc-29ac0173003c"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
],
"x-ms-ratelimit-remaining-tenant-reads": [
- "14989"
+ "11997"
+ ],
+ "x-ms-correlation-request-id": [
+ "8690f5f5-617f-4b19-87dc-29ac0173003c"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T193926Z:db0f3912-cfb2-4b56-9d4b-f64ca0275995"
+ "WESTCENTRALUS:20220418T214145Z:8690f5f5-617f-4b19-87dc-29ac0173003c"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -543,74 +308,71 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:39:25 GMT"
+ "Mon, 18 Apr 2022 21:41:45 GMT"
],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "169"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/TestPSRemoveGroup\",\r\n \"name\": \"TestPSRemoveGroup\",\r\n \"status\": \"Succeeded\"\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSRemoveGroup?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1JlbW92ZUdyb3VwP2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==",
+ "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSRemoveGroup?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1JlbW92ZUdyb3VwP2FwaS12ZXJzaW9uPTIwMjEtMDQtMDE=",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
+ "x-ms-client-request-id": [
+ "314c4042-0d10-4075-bf7e-3cad2eaf6dfe"
+ ],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSRemoveGroup\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSRemoveGroup\",\r\n \"status\": \"Succeeded\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "181"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14988"
- ],
"x-ms-request-id": [
- "eastus:9899a161-44ea-4090-a6c6-8edb7b11240d"
+ "westcentralus:dca0bc79-cdf0-4a4a-8e99-a1570b780c95"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "dca0bc79-cdf0-4a4a-8e99-a1570b780c95"
],
"request-id": [
- "e1c64b80-611b-4bf7-b00d-7cb863194e96"
+ "dca0bc79-cdf0-4a4a-8e99-a1570b780c95"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "11996"
],
"x-ms-correlation-request-id": [
- "5a815ee6-5826-4368-8e26-46ff86c322ec"
+ "dca0bc79-cdf0-4a4a-8e99-a1570b780c95"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T193927Z:5a815ee6-5826-4368-8e26-46ff86c322ec"
+ "WESTCENTRALUS:20220418T214145Z:dca0bc79-cdf0-4a4a-8e99-a1570b780c95"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -618,32 +380,28 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:39:27 GMT"
+ "Mon, 18 Apr 2022 21:41:45 GMT"
],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "170"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSRemoveGroup\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSRemoveGroup\",\r\n \"status\": \"Succeeded\"\r\n}",
"StatusCode": 200
}
],
"Names": {},
"Variables": {
- "SubscriptionId": "394ae65d-9e71-4462-930f-3332dedf845c",
- "TenantId": "b1af47f1-138c-4ed2-8bba-119041b95450",
- "Domain": ""
+ "SubscriptionId": "5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de"
}
}
\ No newline at end of file
diff --git a/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestStartTenantBackfill.json b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestStartTenantBackfill.json
new file mode 100644
index 000000000000..d75ad255bb46
--- /dev/null
+++ b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestStartTenantBackfill.json
@@ -0,0 +1,83 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/providers/Microsoft.Management/startTenantBackfill?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9zdGFydFRlbmFudEJhY2tmaWxsP2FwaS12ZXJzaW9uPTIwMjEtMDQtMDE=",
+ "RequestMethod": "POST",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "a0d3ca45-bb5a-4a5d-9afb-6e95858e0b0c"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "westcentralus:d5d12c07-200b-4e8a-9c30-eee5417eb0f8"
+ ],
+ "x-ba-restapi": [
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "d5d12c07-200b-4e8a-9c30-eee5417eb0f8"
+ ],
+ "request-id": [
+ "d5d12c07-200b-4e8a-9c30-eee5417eb0f8"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1199"
+ ],
+ "x-ms-correlation-request-id": [
+ "d5d12c07-200b-4e8a-9c30-eee5417eb0f8"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTCENTRALUS:20220418T212845Z:d5d12c07-200b-4e8a-9c30-eee5417eb0f8"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Mon, 18 Apr 2022 21:28:45 GMT"
+ ],
+ "Content-Length": [
+ "72"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Retry-After": [
+ "0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"status\": \"Completed\"\r\n}",
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de"
+ }
+}
\ No newline at end of file
diff --git a/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestUpdateBothHierarchySettings.json b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestUpdateBothHierarchySettings.json
new file mode 100644
index 000000000000..2e77ab54336e
--- /dev/null
+++ b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestUpdateBothHierarchySettings.json
@@ -0,0 +1,329 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL2M3YTg3Y2RhLTlhNjYtNDkyMC1iMGY4LTg2OWJhYTA0ZWZlMC9zZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMjEtMDQtMDE=",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"properties\": {\r\n \"requireAuthorizationForGroupCreation\": false,\r\n \"defaultManagementGroup\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0\"\r\n }\r\n}",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "73dafcb5-fb21-46c4-ae4b-0bd465c1e746"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "199"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "westcentralus:60fb237b-a1c9-4340-a8ce-44002c0ae378"
+ ],
+ "x-ba-restapi": [
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "60fb237b-a1c9-4340-a8ce-44002c0ae378"
+ ],
+ "request-id": [
+ "60fb237b-a1c9-4340-a8ce-44002c0ae378"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1199"
+ ],
+ "x-ms-correlation-request-id": [
+ "60fb237b-a1c9-4340-a8ce-44002c0ae378"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTCENTRALUS:20220418T212749Z:60fb237b-a1c9-4340-a8ce-44002c0ae378"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Mon, 18 Apr 2022 21:27:48 GMT"
+ ],
+ "Content-Length": [
+ "358"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Retry-After": [
+ "0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default\",\r\n \"type\": \"Microsoft.Management/managementGroups/settings\",\r\n \"name\": \"default\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"requireAuthorizationForGroupCreation\": false,\r\n \"defaultManagementGroup\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\"\r\n }\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/defaultMG?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL2RlZmF1bHRNRz9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"name\": \"defaultMG\",\r\n \"properties\": {\r\n \"details\": {\r\n \"parent\": {}\r\n }\r\n }\r\n}",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "dd8f2cf9-6d9e-46a9-8998-7b3935ab266c"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "97"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "59"
+ ],
+ "x-ms-request-id": [
+ "westcentralus:7c795d4a-fefe-4a99-bd41-4efc06ac3670"
+ ],
+ "x-ba-restapi": [
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "7c795d4a-fefe-4a99-bd41-4efc06ac3670"
+ ],
+ "request-id": [
+ "7c795d4a-fefe-4a99-bd41-4efc06ac3670"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1199"
+ ],
+ "x-ms-correlation-request-id": [
+ "7c795d4a-fefe-4a99-bd41-4efc06ac3670"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTCENTRALUS:20220418T212750Z:7c795d4a-fefe-4a99-bd41-4efc06ac3670"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Mon, 18 Apr 2022 21:27:49 GMT"
+ ],
+ "Content-Length": [
+ "532"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Retry-After": [
+ "0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/defaultMG\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"defaultMG\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"defaultMG\",\r\n \"details\": {\r\n \"version\": 8,\r\n \"updatedTime\": \"2022-03-31T23:54:11.2458002Z\",\r\n \"updatedBy\": \"9e41f384-0aa9-41bc-a29d-6d956cd8eadb\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"name\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"Root Management Group\"\r\n }\r\n }\r\n }\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL2M3YTg3Y2RhLTlhNjYtNDkyMC1iMGY4LTg2OWJhYTA0ZWZlMC9zZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMjEtMDQtMDE=",
+ "RequestMethod": "PATCH",
+ "RequestBody": "{\r\n \"properties\": {\r\n \"requireAuthorizationForGroupCreation\": true,\r\n \"defaultManagementGroup\": \"/providers/Microsoft.Management/managementGroups/defaultMG\"\r\n }\r\n}",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "280188a4-cad1-4307-b362-53c00233df6b"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "171"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "westcentralus:2debcbf2-b05c-4553-ba65-df0ff0918810"
+ ],
+ "x-ba-restapi": [
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "2debcbf2-b05c-4553-ba65-df0ff0918810"
+ ],
+ "request-id": [
+ "2debcbf2-b05c-4553-ba65-df0ff0918810"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1199"
+ ],
+ "x-ms-correlation-request-id": [
+ "2debcbf2-b05c-4553-ba65-df0ff0918810"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTCENTRALUS:20220418T212750Z:2debcbf2-b05c-4553-ba65-df0ff0918810"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Mon, 18 Apr 2022 21:27:50 GMT"
+ ],
+ "Content-Length": [
+ "330"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Retry-After": [
+ "0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default\",\r\n \"type\": \"Microsoft.Management/managementGroups/settings\",\r\n \"name\": \"default\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"requireAuthorizationForGroupCreation\": true,\r\n \"defaultManagementGroup\": \"defaultMG\"\r\n }\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL2M3YTg3Y2RhLTlhNjYtNDkyMC1iMGY4LTg2OWJhYTA0ZWZlMC9zZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMjEtMDQtMDE=",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "24070798-1643-40f5-ac69-598e53f8e74e"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "westcentralus:82a9bc83-d566-449d-9a3f-5b053ae6b272"
+ ],
+ "x-ba-restapi": [
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "82a9bc83-d566-449d-9a3f-5b053ae6b272"
+ ],
+ "request-id": [
+ "82a9bc83-d566-449d-9a3f-5b053ae6b272"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-deletes": [
+ "14999"
+ ],
+ "x-ms-correlation-request-id": [
+ "82a9bc83-d566-449d-9a3f-5b053ae6b272"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTCENTRALUS:20220418T212751Z:82a9bc83-d566-449d-9a3f-5b053ae6b272"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Mon, 18 Apr 2022 21:27:51 GMT"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Content-Length": [
+ "0"
+ ],
+ "Retry-After": [
+ "0"
+ ]
+ },
+ "ResponseBody": "",
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de"
+ }
+}
\ No newline at end of file
diff --git a/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestUpdateHierarchySettingsAuth.json b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestUpdateHierarchySettingsAuth.json
new file mode 100644
index 000000000000..f4b91abf8807
--- /dev/null
+++ b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestUpdateHierarchySettingsAuth.json
@@ -0,0 +1,329 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL2M3YTg3Y2RhLTlhNjYtNDkyMC1iMGY4LTg2OWJhYTA0ZWZlMC9zZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMjEtMDQtMDE=",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"properties\": {\r\n \"requireAuthorizationForGroupCreation\": false,\r\n \"defaultManagementGroup\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0\"\r\n }\r\n}",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "5535b794-49a7-493e-bdff-5137f6b736dc"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "199"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "westcentralus:6f61a5eb-0d3f-4722-a5b2-abfe13b8e9ed"
+ ],
+ "x-ba-restapi": [
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "6f61a5eb-0d3f-4722-a5b2-abfe13b8e9ed"
+ ],
+ "request-id": [
+ "6f61a5eb-0d3f-4722-a5b2-abfe13b8e9ed"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1199"
+ ],
+ "x-ms-correlation-request-id": [
+ "6f61a5eb-0d3f-4722-a5b2-abfe13b8e9ed"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTCENTRALUS:20220418T212859Z:6f61a5eb-0d3f-4722-a5b2-abfe13b8e9ed"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Mon, 18 Apr 2022 21:28:59 GMT"
+ ],
+ "Content-Length": [
+ "358"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Retry-After": [
+ "0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default\",\r\n \"type\": \"Microsoft.Management/managementGroups/settings\",\r\n \"name\": \"default\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"requireAuthorizationForGroupCreation\": false,\r\n \"defaultManagementGroup\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\"\r\n }\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/defaultMG?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL2RlZmF1bHRNRz9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"name\": \"defaultMG\",\r\n \"properties\": {\r\n \"details\": {\r\n \"parent\": {}\r\n }\r\n }\r\n}",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "d8a491e7-41b6-4aa5-9fbb-ee2a6deb54d7"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "97"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "59"
+ ],
+ "x-ms-request-id": [
+ "westcentralus:68622f6c-e6c2-4993-8663-9acecb61bd6b"
+ ],
+ "x-ba-restapi": [
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "68622f6c-e6c2-4993-8663-9acecb61bd6b"
+ ],
+ "request-id": [
+ "68622f6c-e6c2-4993-8663-9acecb61bd6b"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1199"
+ ],
+ "x-ms-correlation-request-id": [
+ "68622f6c-e6c2-4993-8663-9acecb61bd6b"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTCENTRALUS:20220418T212901Z:68622f6c-e6c2-4993-8663-9acecb61bd6b"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Mon, 18 Apr 2022 21:29:00 GMT"
+ ],
+ "Content-Length": [
+ "532"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Retry-After": [
+ "0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/defaultMG\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"defaultMG\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"defaultMG\",\r\n \"details\": {\r\n \"version\": 8,\r\n \"updatedTime\": \"2022-03-31T23:54:11.2458002Z\",\r\n \"updatedBy\": \"9e41f384-0aa9-41bc-a29d-6d956cd8eadb\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"name\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"Root Management Group\"\r\n }\r\n }\r\n }\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL2M3YTg3Y2RhLTlhNjYtNDkyMC1iMGY4LTg2OWJhYTA0ZWZlMC9zZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMjEtMDQtMDE=",
+ "RequestMethod": "PATCH",
+ "RequestBody": "{\r\n \"properties\": {\r\n \"requireAuthorizationForGroupCreation\": false,\r\n \"defaultManagementGroup\": \"/providers/Microsoft.Management/managementGroups/defaultMG\"\r\n }\r\n}",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "f9c28b05-8265-4217-915e-9995fdf28c5d"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "172"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "westcentralus:f5dde4c0-74dc-436f-bb2f-34fb15df975f"
+ ],
+ "x-ba-restapi": [
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "f5dde4c0-74dc-436f-bb2f-34fb15df975f"
+ ],
+ "request-id": [
+ "f5dde4c0-74dc-436f-bb2f-34fb15df975f"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1199"
+ ],
+ "x-ms-correlation-request-id": [
+ "f5dde4c0-74dc-436f-bb2f-34fb15df975f"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTCENTRALUS:20220418T212901Z:f5dde4c0-74dc-436f-bb2f-34fb15df975f"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Mon, 18 Apr 2022 21:29:00 GMT"
+ ],
+ "Content-Length": [
+ "331"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Retry-After": [
+ "0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default\",\r\n \"type\": \"Microsoft.Management/managementGroups/settings\",\r\n \"name\": \"default\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"requireAuthorizationForGroupCreation\": false,\r\n \"defaultManagementGroup\": \"defaultMG\"\r\n }\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL2M3YTg3Y2RhLTlhNjYtNDkyMC1iMGY4LTg2OWJhYTA0ZWZlMC9zZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMjEtMDQtMDE=",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "f219abe6-666f-44c8-b3b3-73eb5260d6eb"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "westcentralus:bdd5c172-a215-44bb-a910-785eea22e175"
+ ],
+ "x-ba-restapi": [
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "bdd5c172-a215-44bb-a910-785eea22e175"
+ ],
+ "request-id": [
+ "bdd5c172-a215-44bb-a910-785eea22e175"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-deletes": [
+ "14999"
+ ],
+ "x-ms-correlation-request-id": [
+ "bdd5c172-a215-44bb-a910-785eea22e175"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTCENTRALUS:20220418T212902Z:bdd5c172-a215-44bb-a910-785eea22e175"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Mon, 18 Apr 2022 21:29:02 GMT"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Content-Length": [
+ "0"
+ ],
+ "Retry-After": [
+ "0"
+ ]
+ },
+ "ResponseBody": "",
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de"
+ }
+}
\ No newline at end of file
diff --git a/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestUpdateHierarchySettingsDefaultMG.json b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestUpdateHierarchySettingsDefaultMG.json
new file mode 100644
index 000000000000..471a78d871ed
--- /dev/null
+++ b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestUpdateHierarchySettingsDefaultMG.json
@@ -0,0 +1,329 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL2M3YTg3Y2RhLTlhNjYtNDkyMC1iMGY4LTg2OWJhYTA0ZWZlMC9zZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMjEtMDQtMDE=",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"properties\": {\r\n \"requireAuthorizationForGroupCreation\": false,\r\n \"defaultManagementGroup\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0\"\r\n }\r\n}",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "66182003-7fb3-4cef-b10f-40e2170238d6"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "199"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "westcentralus:a1cc16cc-890b-4cf1-8e73-7a48387b4167"
+ ],
+ "x-ba-restapi": [
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "a1cc16cc-890b-4cf1-8e73-7a48387b4167"
+ ],
+ "request-id": [
+ "a1cc16cc-890b-4cf1-8e73-7a48387b4167"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1199"
+ ],
+ "x-ms-correlation-request-id": [
+ "a1cc16cc-890b-4cf1-8e73-7a48387b4167"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTCENTRALUS:20220418T212906Z:a1cc16cc-890b-4cf1-8e73-7a48387b4167"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Mon, 18 Apr 2022 21:29:05 GMT"
+ ],
+ "Content-Length": [
+ "358"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Retry-After": [
+ "0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default\",\r\n \"type\": \"Microsoft.Management/managementGroups/settings\",\r\n \"name\": \"default\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"requireAuthorizationForGroupCreation\": false,\r\n \"defaultManagementGroup\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\"\r\n }\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/defaultMG?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL2RlZmF1bHRNRz9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"name\": \"defaultMG\",\r\n \"properties\": {\r\n \"details\": {\r\n \"parent\": {}\r\n }\r\n }\r\n}",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "af8dba8a-f32c-48ea-b5b8-f2fd71b42edb"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "97"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "58"
+ ],
+ "x-ms-request-id": [
+ "westcentralus:cbd18727-005b-41b9-b1b0-ba968450f6b8"
+ ],
+ "x-ba-restapi": [
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "cbd18727-005b-41b9-b1b0-ba968450f6b8"
+ ],
+ "request-id": [
+ "cbd18727-005b-41b9-b1b0-ba968450f6b8"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1198"
+ ],
+ "x-ms-correlation-request-id": [
+ "cbd18727-005b-41b9-b1b0-ba968450f6b8"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTCENTRALUS:20220418T212907Z:cbd18727-005b-41b9-b1b0-ba968450f6b8"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Mon, 18 Apr 2022 21:29:06 GMT"
+ ],
+ "Content-Length": [
+ "532"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Retry-After": [
+ "0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/defaultMG\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"defaultMG\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"defaultMG\",\r\n \"details\": {\r\n \"version\": 8,\r\n \"updatedTime\": \"2022-03-31T23:54:11.2458002Z\",\r\n \"updatedBy\": \"9e41f384-0aa9-41bc-a29d-6d956cd8eadb\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"name\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"Root Management Group\"\r\n }\r\n }\r\n }\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL2M3YTg3Y2RhLTlhNjYtNDkyMC1iMGY4LTg2OWJhYTA0ZWZlMC9zZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMjEtMDQtMDE=",
+ "RequestMethod": "PATCH",
+ "RequestBody": "{\r\n \"properties\": {\r\n \"requireAuthorizationForGroupCreation\": false,\r\n \"defaultManagementGroup\": \"/providers/Microsoft.Management/managementGroups/defaultMG\"\r\n }\r\n}",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "e26fef9d-1fde-458e-a93c-2dd28a3d4dbf"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "172"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "westcentralus:41e452dd-e326-447b-bb5c-2e9eb2cacf83"
+ ],
+ "x-ba-restapi": [
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "41e452dd-e326-447b-bb5c-2e9eb2cacf83"
+ ],
+ "request-id": [
+ "41e452dd-e326-447b-bb5c-2e9eb2cacf83"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1199"
+ ],
+ "x-ms-correlation-request-id": [
+ "41e452dd-e326-447b-bb5c-2e9eb2cacf83"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTCENTRALUS:20220418T212907Z:41e452dd-e326-447b-bb5c-2e9eb2cacf83"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Mon, 18 Apr 2022 21:29:07 GMT"
+ ],
+ "Content-Length": [
+ "331"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Retry-After": [
+ "0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default\",\r\n \"type\": \"Microsoft.Management/managementGroups/settings\",\r\n \"name\": \"default\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"requireAuthorizationForGroupCreation\": false,\r\n \"defaultManagementGroup\": \"defaultMG\"\r\n }\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL2M3YTg3Y2RhLTlhNjYtNDkyMC1iMGY4LTg2OWJhYTA0ZWZlMC9zZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMjEtMDQtMDE=",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "dd8f8773-4704-4889-91d6-e3b6e4ebfa5a"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "westcentralus:2301338e-a559-4de7-bcf3-514e14bd047a"
+ ],
+ "x-ba-restapi": [
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "2301338e-a559-4de7-bcf3-514e14bd047a"
+ ],
+ "request-id": [
+ "2301338e-a559-4de7-bcf3-514e14bd047a"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-deletes": [
+ "14999"
+ ],
+ "x-ms-correlation-request-id": [
+ "2301338e-a559-4de7-bcf3-514e14bd047a"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTCENTRALUS:20220418T212908Z:2301338e-a559-4de7-bcf3-514e14bd047a"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Mon, 18 Apr 2022 21:29:07 GMT"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Content-Length": [
+ "0"
+ ],
+ "Retry-After": [
+ "0"
+ ]
+ },
+ "ResponseBody": "",
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de"
+ }
+}
\ No newline at end of file
diff --git a/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestUpdateManagementGroupWithDisplayName.json b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestUpdateManagementGroupWithDisplayName.json
index 8d01b9e4e1e4..b96c51b608ac 100644
--- a/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestUpdateManagementGroupWithDisplayName.json
+++ b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestUpdateManagementGroupWithDisplayName.json
@@ -1,142 +1,66 @@
{
"Entries": [
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup1?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwMT9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup1?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwMT9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
"RequestMethod": "PUT",
"RequestBody": "{\r\n \"name\": \"TestPSUpdateGroup1\",\r\n \"properties\": {\r\n \"details\": {\r\n \"parent\": {}\r\n }\r\n }\r\n}",
"RequestHeaders": {
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Content-Length": [
- "106"
- ],
"x-ms-client-request-id": [
- "a8e4397c-da5f-48e7-8c5e-2ea9b9ae0192"
+ "424dd363-18c7-4bc5-ab86-d0efda3efecd"
],
"Cache-Control": [
"no-cache"
],
- "accept-language": [
+ "Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
- ]
- },
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup1\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSUpdateGroup1\",\r\n \"status\": \"NotStarted\"\r\n}",
- "ResponseHeaders": {
- "Content-Length": [
- "184"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
],
"Content-Type": [
"application/json; charset=utf-8"
],
- "Expires": [
- "-1"
- ],
- "Pragma": [
- "no-cache"
- ],
- "Retry-After": [
- "0"
- ],
- "x-ms-request-id": [
- "eastus:fd445f8c-3730-4362-800d-77e5bfd8ab4e"
- ],
- "x-ba-restapi": [
- "1.0.3.795"
- ],
- "request-id": [
- "34a2b145-a946-43b3-9e30-30dab2f3bdf8"
- ],
- "x-ms-ratelimit-remaining-tenant-writes": [
- "1199"
- ],
- "x-ms-correlation-request-id": [
- "68727cf1-1e3b-4008-a123-c0bf595472f3"
- ],
- "x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T193756Z:68727cf1-1e3b-4008-a123-c0bf595472f3"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "X-Content-Type-Options": [
- "nosniff"
- ],
- "Cache-Control": [
- "no-cache"
- ],
- "Date": [
- "Thu, 24 May 2018 19:37:56 GMT"
- ],
- "Location": [
- "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/operationResults/create/managementGroups/TestPSUpdateGroup1?api-version=2018-03-01-preview"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
- ],
- "X-Powered-By": [
- "ASP.NET"
- ]
- },
- "StatusCode": 202
- },
- {
- "RequestUri": "/providers/Microsoft.Management/operationResults/create/managementGroups/TestPSUpdateGroup1?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2NyZWF0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwMT9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
- "RequestMethod": "GET",
- "RequestBody": "",
- "RequestHeaders": {
- "User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "Content-Length": [
+ "106"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup1\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSUpdateGroup1\",\r\n \"status\": \"Running\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "181"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Retry-After": [
- "0"
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "59"
],
"x-ms-request-id": [
- "eastus:e1afcde4-2a81-4f78-8fc6-e71647c97d34"
+ "westcentralus:32607a14-e351-4911-b3ae-7d74247011d7"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "32607a14-e351-4911-b3ae-7d74247011d7"
],
"request-id": [
- "053984b6-c62f-4af6-8186-9784300f49e8"
+ "32607a14-e351-4911-b3ae-7d74247011d7"
],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14995"
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1198"
],
"x-ms-correlation-request-id": [
- "7c3566d3-4f23-4ef8-bb11-c403e7a59371"
+ "32607a14-e351-4911-b3ae-7d74247011d7"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T193806Z:7c3566d3-4f23-4ef8-bb11-c403e7a59371"
+ "WESTCENTRALUS:20220418T214203Z:32607a14-e351-4911-b3ae-7d74247011d7"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -144,44 +68,11 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:38:06 GMT"
+ "Mon, 18 Apr 2022 21:42:02 GMT"
],
- "Location": [
- "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/operationResults/create/managementGroups/TestPSUpdateGroup1?api-version=2018-03-01-preview"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
- ],
- "X-Powered-By": [
- "ASP.NET"
- ]
- },
- "StatusCode": 202
- },
- {
- "RequestUri": "/providers/Microsoft.Management/operationResults/create/managementGroups/TestPSUpdateGroup1?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2NyZWF0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwMT9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
- "RequestMethod": "GET",
- "RequestBody": "",
- "RequestHeaders": {
- "User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
- ]
- },
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup1\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSUpdateGroup1\",\r\n \"status\": \"Succeeded\",\r\n \"properties\": {\r\n \"tenantId\": \"b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"displayName\": \"TestPSUpdateGroup1\",\r\n \"details\": {\r\n \"version\": 25,\r\n \"updatedTime\": \"2018-05-24T19:38:07.7536091Z\",\r\n \"updatedBy\": \"aef7ed39-6482-40be-a70c-8ec0669b0d04\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"name\": \"b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"displayName\": \"b1af47f1-138c-4ed2-8bba-119041b95450\"\r\n }\r\n }\r\n }\r\n}",
- "ResponseHeaders": {
"Content-Length": [
- "607"
+ "560"
],
"Content-Type": [
"application/json; charset=utf-8"
@@ -189,119 +80,74 @@
"Expires": [
"-1"
],
- "Pragma": [
- "no-cache"
- ],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14994"
- ],
- "x-ms-request-id": [
- "eastus:f3ddc8cb-bb84-44f3-8e22-3382765d205d"
- ],
- "x-ba-restapi": [
- "1.0.3.795"
- ],
- "request-id": [
- "5eaed2c4-9319-4ace-99cd-c9a2e39a350c"
- ],
- "x-ms-correlation-request-id": [
- "11dc7587-6796-4afb-9c22-ac11ad086c22"
- ],
- "x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T193818Z:11dc7587-6796-4afb-9c22-ac11ad086c22"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "X-Content-Type-Options": [
- "nosniff"
- ],
- "Cache-Control": [
- "no-cache"
- ],
- "Date": [
- "Thu, 24 May 2018 19:38:17 GMT"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
- ],
- "X-Powered-By": [
- "ASP.NET"
- ],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup1\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSUpdateGroup1\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"TestPSUpdateGroup1\",\r\n \"details\": {\r\n \"version\": 19,\r\n \"updatedTime\": \"2022-04-18T21:29:21.4258704Z\",\r\n \"updatedBy\": \"9e41f384-0aa9-41bc-a29d-6d956cd8eadb\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"name\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"Root Management Group\"\r\n }\r\n }\r\n }\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup1?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwMT9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup1?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwMT9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
"RequestMethod": "PATCH",
"RequestBody": "{\r\n \"displayName\": \"TestDisplayName\"\r\n}",
"RequestHeaders": {
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Content-Length": [
- "40"
- ],
"x-ms-client-request-id": [
- "5b8c33f3-2d01-4344-8f26-4583f6adf919"
+ "4fb53141-fcae-47eb-88de-fab9fbc3982a"
],
"Cache-Control": [
"no-cache"
],
- "accept-language": [
+ "Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
- ]
- },
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup1\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSUpdateGroup1\",\r\n \"properties\": {\r\n \"tenantId\": \"b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"displayName\": \"TestDisplayName\",\r\n \"details\": {\r\n \"version\": 26,\r\n \"updatedTime\": \"2018-05-24T19:38:22.1624825Z\",\r\n \"updatedBy\": \"aef7ed39-6482-40be-a70c-8ec0669b0d04\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"name\": \"b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"displayName\": \"b1af47f1-138c-4ed2-8bba-119041b95450\"\r\n }\r\n }\r\n }\r\n}",
- "ResponseHeaders": {
- "Content-Length": [
- "583"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
],
"Content-Type": [
"application/json; charset=utf-8"
],
- "Expires": [
- "-1"
+ "Content-Length": [
+ "40"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-writes": [
- "1198"
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "59"
],
"x-ms-request-id": [
- "eastus:23b72095-1da7-4264-ac81-b1d25daede9d"
+ "westcentralus:865afb46-3ebb-4be7-a817-953ba15301d5"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "865afb46-3ebb-4be7-a817-953ba15301d5"
],
"request-id": [
- "43f9e585-7575-4b87-9fe9-dc138fef6964"
+ "865afb46-3ebb-4be7-a817-953ba15301d5"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1198"
],
"x-ms-correlation-request-id": [
- "ad3ff6c9-fa78-46ae-8fe0-13db2949cb4e"
+ "865afb46-3ebb-4be7-a817-953ba15301d5"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T193822Z:ad3ff6c9-fa78-46ae-8fe0-13db2949cb4e"
+ "WESTCENTRALUS:20220418T214206Z:865afb46-3ebb-4be7-a817-953ba15301d5"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -309,83 +155,89 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:38:22 GMT"
+ "Mon, 18 Apr 2022 21:42:05 GMT"
],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "557"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup1\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSUpdateGroup1\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"TestDisplayName\",\r\n \"details\": {\r\n \"version\": 20,\r\n \"updatedTime\": \"2022-04-18T21:42:04.3130699Z\",\r\n \"updatedBy\": \"9e41f384-0aa9-41bc-a29d-6d956cd8eadb\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"name\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"Root Management Group\"\r\n }\r\n }\r\n }\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup1?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwMT9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup1?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwMT9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
"RequestMethod": "DELETE",
"RequestBody": "",
"RequestHeaders": {
"x-ms-client-request-id": [
- "21847dde-bb08-4538-b83d-8a96fa6e5a4e"
+ "637a3f92-bcaa-4c65-9973-2d9a1442f354"
],
"Cache-Control": [
"no-cache"
],
- "accept-language": [
+ "Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup1\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSUpdateGroup1\",\r\n \"status\": \"NotStarted\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "184"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
+ "Location": [
+ "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSUpdateGroup1?api-version=2021-04-01"
+ ],
"Retry-After": [
"0"
],
+ "Azure-AsyncOperation": [
+ "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/TestPSUpdateGroup1?api-version=2021-04-01"
+ ],
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "58"
+ ],
"x-ms-request-id": [
- "eastus:ff5e16e1-4bca-4a1b-b47d-39e5212b739b"
+ "westcentralus:8bd7eb77-f209-40fd-bb6d-d6d052b9f3fa"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "8bd7eb77-f209-40fd-bb6d-d6d052b9f3fa"
],
"request-id": [
- "5a7902c4-ff7b-484c-9ba1-6ff38a4cf002"
+ "8bd7eb77-f209-40fd-bb6d-d6d052b9f3fa"
],
- "x-ms-ratelimit-remaining-tenant-writes": [
- "1197"
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-deletes": [
+ "14999"
],
"x-ms-correlation-request-id": [
- "7a87b14e-bfd4-451f-af65-ccd1fc9cd59a"
+ "8bd7eb77-f209-40fd-bb6d-d6d052b9f3fa"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T193826Z:7a87b14e-bfd4-451f-af65-ccd1fc9cd59a"
+ "WESTCENTRALUS:20220418T214207Z:8bd7eb77-f209-40fd-bb6d-d6d052b9f3fa"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -393,74 +245,68 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:38:25 GMT"
+ "Mon, 18 Apr 2022 21:42:06 GMT"
],
- "Location": [
- "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSUpdateGroup1?api-version=2018-03-01-preview"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "173"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup1\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSUpdateGroup1\",\r\n \"status\": \"NotStarted\"\r\n}",
"StatusCode": 202
},
{
- "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSUpdateGroup1?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwMT9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/TestPSUpdateGroup1?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9hc3luY09wZXJhdGlvbi9zdGF0dXMvbWFuYWdlbWVudEdyb3Vwcy9UZXN0UFNVcGRhdGVHcm91cDE/YXBpLXZlcnNpb249MjAyMS0wNC0wMQ==",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
+ "x-ms-client-request-id": [
+ "637a3f92-bcaa-4c65-9973-2d9a1442f354"
+ ],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup1\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSUpdateGroup1\",\r\n \"status\": \"Succeeded\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "183"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14993"
- ],
"x-ms-request-id": [
- "eastus:6f7732d6-7417-43fd-8c4b-9edbbdc18916"
+ "westcentralus:d8b1e03d-2d7a-4189-9ec8-4de86d5a66ca"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "d8b1e03d-2d7a-4189-9ec8-4de86d5a66ca"
],
"request-id": [
- "f10b94c3-72c9-43f0-9417-a25431efcc48"
+ "d8b1e03d-2d7a-4189-9ec8-4de86d5a66ca"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "11995"
],
"x-ms-correlation-request-id": [
- "2297a126-1944-4455-9ff3-5aeacd025196"
+ "d8b1e03d-2d7a-4189-9ec8-4de86d5a66ca"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T193837Z:2297a126-1944-4455-9ff3-5aeacd025196"
+ "WESTCENTRALUS:20220418T214217Z:d8b1e03d-2d7a-4189-9ec8-4de86d5a66ca"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -468,74 +314,71 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:38:37 GMT"
+ "Mon, 18 Apr 2022 21:42:16 GMT"
],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "171"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/TestPSUpdateGroup1\",\r\n \"name\": \"TestPSUpdateGroup1\",\r\n \"status\": \"Succeeded\"\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSUpdateGroup1?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwMT9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSUpdateGroup1?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwMT9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
+ "x-ms-client-request-id": [
+ "637a3f92-bcaa-4c65-9973-2d9a1442f354"
+ ],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup1\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSUpdateGroup1\",\r\n \"status\": \"Succeeded\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "183"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14992"
- ],
"x-ms-request-id": [
- "eastus:eaf6a3cc-ac51-4371-b5ab-fd52447ed873"
+ "westcentralus:1d4b6481-1c33-418f-828d-d57d5d80cbb5"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "1d4b6481-1c33-418f-828d-d57d5d80cbb5"
],
"request-id": [
- "9b187d27-835d-4a05-af0f-29426e54e8a1"
+ "1d4b6481-1c33-418f-828d-d57d5d80cbb5"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "11994"
],
"x-ms-correlation-request-id": [
- "1fdb18d8-53bd-45fe-8272-57b311b740b0"
+ "1d4b6481-1c33-418f-828d-d57d5d80cbb5"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T193837Z:1fdb18d8-53bd-45fe-8272-57b311b740b0"
+ "WESTCENTRALUS:20220418T214217Z:1d4b6481-1c33-418f-828d-d57d5d80cbb5"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -543,32 +386,28 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:38:37 GMT"
+ "Mon, 18 Apr 2022 21:42:16 GMT"
],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "172"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup1\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSUpdateGroup1\",\r\n \"status\": \"Succeeded\"\r\n}",
"StatusCode": 200
}
],
"Names": {},
"Variables": {
- "SubscriptionId": "394ae65d-9e71-4462-930f-3332dedf845c",
- "TenantId": "b1af47f1-138c-4ed2-8bba-119041b95450",
- "Domain": ""
+ "SubscriptionId": "5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de"
}
}
\ No newline at end of file
diff --git a/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestUpdateManagementGroupWithDisplayNameAndParentId.json b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestUpdateManagementGroupWithDisplayNameAndParentId.json
index 94f5da13e54e..50c843c20a1e 100644
--- a/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestUpdateManagementGroupWithDisplayNameAndParentId.json
+++ b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestUpdateManagementGroupWithDisplayNameAndParentId.json
@@ -1,67 +1,66 @@
{
"Entries": [
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSUpdateGroupParent3?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwUGFyZW50Mz9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSUpdateGroupParent3?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwUGFyZW50Mz9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
"RequestMethod": "PUT",
"RequestBody": "{\r\n \"name\": \"TestPSUpdateGroupParent3\",\r\n \"properties\": {\r\n \"details\": {\r\n \"parent\": {}\r\n }\r\n }\r\n}",
"RequestHeaders": {
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Content-Length": [
- "112"
- ],
"x-ms-client-request-id": [
- "f732ce82-ac39-41bb-9b3c-b604ccb33acb"
+ "ae179a69-6e32-4034-96c9-874030af60c3"
],
"Cache-Control": [
"no-cache"
],
- "accept-language": [
+ "Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
- ]
- },
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSUpdateGroupParent3\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSUpdateGroupParent3\",\r\n \"status\": \"NotStarted\"\r\n}",
- "ResponseHeaders": {
- "Content-Length": [
- "196"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
],
"Content-Type": [
"application/json; charset=utf-8"
],
- "Expires": [
- "-1"
+ "Content-Length": [
+ "112"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Retry-After": [
- "0"
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "57"
],
"x-ms-request-id": [
- "eastus:eedb9067-6739-4c98-ae82-08e58ab4cfd4"
+ "westcentralus:ff3c9e6f-2edf-46b2-bc47-353a97168fff"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "ff3c9e6f-2edf-46b2-bc47-353a97168fff"
],
"request-id": [
- "e79b2992-859e-4495-8d5d-9f5ddc88f89b"
+ "ff3c9e6f-2edf-46b2-bc47-353a97168fff"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
],
"x-ms-ratelimit-remaining-tenant-writes": [
- "1196"
+ "1199"
],
"x-ms-correlation-request-id": [
- "ba406ca9-9029-45ca-95ca-730698ea7251"
+ "ff3c9e6f-2edf-46b2-bc47-353a97168fff"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194545Z:ba406ca9-9029-45ca-95ca-730698ea7251"
+ "WESTCENTRALUS:20220418T214443Z:ff3c9e6f-2edf-46b2-bc47-353a97168fff"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -69,44 +68,11 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:45:45 GMT"
- ],
- "Location": [
- "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/operationResults/create/managementGroups/TestPSUpdateGroupParent3?api-version=2018-03-01-preview"
+ "Mon, 18 Apr 2022 21:44:42 GMT"
],
- "Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
- ],
- "X-Powered-By": [
- "ASP.NET"
- ]
- },
- "StatusCode": 202
- },
- {
- "RequestUri": "/providers/Microsoft.Management/operationResults/create/managementGroups/TestPSUpdateGroupParent3?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2NyZWF0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwUGFyZW50Mz9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
- "RequestMethod": "GET",
- "RequestBody": "",
- "RequestHeaders": {
- "User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
- ]
- },
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSUpdateGroupParent3\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSUpdateGroupParent3\",\r\n \"status\": \"Succeeded\",\r\n \"properties\": {\r\n \"tenantId\": \"b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"displayName\": \"TestPSUpdateGroupParent3\",\r\n \"details\": {\r\n \"version\": 7,\r\n \"updatedTime\": \"2018-05-24T19:45:48.0041857Z\",\r\n \"updatedBy\": \"aef7ed39-6482-40be-a70c-8ec0669b0d04\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"name\": \"b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"displayName\": \"b1af47f1-138c-4ed2-8bba-119041b95450\"\r\n }\r\n }\r\n }\r\n}",
- "ResponseHeaders": {
"Content-Length": [
- "624"
+ "577"
],
"Content-Type": [
"application/json; charset=utf-8"
@@ -114,119 +80,74 @@
"Expires": [
"-1"
],
- "Pragma": [
- "no-cache"
- ],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14973"
- ],
- "x-ms-request-id": [
- "eastus:7d960d76-db3f-4f73-b377-d1a36a7a16be"
- ],
- "x-ba-restapi": [
- "1.0.3.795"
- ],
- "request-id": [
- "7e72c845-b2d9-4f54-8cbc-a22eda2f6dd6"
- ],
- "x-ms-correlation-request-id": [
- "8ac68c17-bca1-4cf1-872a-893c952526ec"
- ],
- "x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194555Z:8ac68c17-bca1-4cf1-872a-893c952526ec"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "X-Content-Type-Options": [
- "nosniff"
- ],
- "Cache-Control": [
- "no-cache"
- ],
- "Date": [
- "Thu, 24 May 2018 19:45:55 GMT"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
- ],
- "X-Powered-By": [
- "ASP.NET"
- ],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSUpdateGroupParent3\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSUpdateGroupParent3\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"TestPSUpdateGroupParent3\",\r\n \"details\": {\r\n \"version\": 7,\r\n \"updatedTime\": \"2022-04-18T21:32:59.3717626Z\",\r\n \"updatedBy\": \"9e41f384-0aa9-41bc-a29d-6d956cd8eadb\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"name\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"Root Management Group\"\r\n }\r\n }\r\n }\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup3?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwMz9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup3?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwMz9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
"RequestMethod": "PUT",
"RequestBody": "{\r\n \"name\": \"TestPSUpdateGroup3\",\r\n \"properties\": {\r\n \"details\": {\r\n \"parent\": {}\r\n }\r\n }\r\n}",
"RequestHeaders": {
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Content-Length": [
- "106"
- ],
"x-ms-client-request-id": [
- "37e3662a-bee3-4081-9ab8-284a91cb937b"
+ "161c85ea-baf6-469a-933b-a88a063229b1"
],
"Cache-Control": [
"no-cache"
],
- "accept-language": [
+ "Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
- ]
- },
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup3\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSUpdateGroup3\",\r\n \"status\": \"NotStarted\"\r\n}",
- "ResponseHeaders": {
- "Content-Length": [
- "184"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
],
"Content-Type": [
"application/json; charset=utf-8"
],
- "Expires": [
- "-1"
+ "Content-Length": [
+ "106"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Retry-After": [
- "0"
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "59"
],
"x-ms-request-id": [
- "eastus:446e4587-7d1b-482a-aaa5-20bd38792bcd"
+ "westcentralus:5810acf0-ba70-42cb-8ec9-08ade5bc81ba"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "5810acf0-ba70-42cb-8ec9-08ade5bc81ba"
],
"request-id": [
- "0cf9e704-8b86-4d0f-bdaf-83cddcdd3191"
+ "5810acf0-ba70-42cb-8ec9-08ade5bc81ba"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
],
"x-ms-ratelimit-remaining-tenant-writes": [
- "1195"
+ "1199"
],
"x-ms-correlation-request-id": [
- "379b99be-5bbf-4d10-9ff7-e127f0d06dc0"
+ "5810acf0-ba70-42cb-8ec9-08ade5bc81ba"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194558Z:379b99be-5bbf-4d10-9ff7-e127f0d06dc0"
+ "WESTCENTRALUS:20220418T214443Z:5810acf0-ba70-42cb-8ec9-08ade5bc81ba"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -234,44 +155,11 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:45:57 GMT"
- ],
- "Location": [
- "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/operationResults/create/managementGroups/TestPSUpdateGroup3?api-version=2018-03-01-preview"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Mon, 18 Apr 2022 21:44:43 GMT"
],
- "X-Powered-By": [
- "ASP.NET"
- ]
- },
- "StatusCode": 202
- },
- {
- "RequestUri": "/providers/Microsoft.Management/operationResults/create/managementGroups/TestPSUpdateGroup3?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2NyZWF0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwMz9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
- "RequestMethod": "GET",
- "RequestBody": "",
- "RequestHeaders": {
- "User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
- ]
- },
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup3\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSUpdateGroup3\",\r\n \"status\": \"Succeeded\",\r\n \"properties\": {\r\n \"tenantId\": \"b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"displayName\": \"TestPSUpdateGroup3\",\r\n \"details\": {\r\n \"version\": 13,\r\n \"updatedTime\": \"2018-05-24T19:46:04.1124268Z\",\r\n \"updatedBy\": \"aef7ed39-6482-40be-a70c-8ec0669b0d04\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"name\": \"b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"displayName\": \"b1af47f1-138c-4ed2-8bba-119041b95450\"\r\n }\r\n }\r\n }\r\n}",
- "ResponseHeaders": {
"Content-Length": [
- "607"
+ "560"
],
"Content-Type": [
"application/json; charset=utf-8"
@@ -279,119 +167,74 @@
"Expires": [
"-1"
],
- "Pragma": [
- "no-cache"
- ],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14972"
- ],
- "x-ms-request-id": [
- "eastus:ba9c8860-a45f-4c6d-bd83-17d82809b0c9"
- ],
- "x-ba-restapi": [
- "1.0.3.795"
- ],
- "request-id": [
- "824b4cb7-36b8-4eb2-a795-4b70616fc498"
- ],
- "x-ms-correlation-request-id": [
- "019e4e8b-5ed2-4859-9ac1-215bbf2a7679"
- ],
- "x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194608Z:019e4e8b-5ed2-4859-9ac1-215bbf2a7679"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "X-Content-Type-Options": [
- "nosniff"
- ],
- "Cache-Control": [
- "no-cache"
- ],
- "Date": [
- "Thu, 24 May 2018 19:46:07 GMT"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
- ],
- "X-Powered-By": [
- "ASP.NET"
- ],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup3\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSUpdateGroup3\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"TestPSUpdateGroup3\",\r\n \"details\": {\r\n \"version\": 13,\r\n \"updatedTime\": \"2022-04-18T21:43:30.8190324Z\",\r\n \"updatedBy\": \"9e41f384-0aa9-41bc-a29d-6d956cd8eadb\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"name\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"Root Management Group\"\r\n }\r\n }\r\n }\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup3?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwMz9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup3?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwMz9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
"RequestMethod": "PATCH",
- "RequestBody": "{\r\n \"displayName\": \"TestDisplayName\",\r\n \"parentId\": \"/providers/Microsoft.Management/managementGroups/TestPSUpdateGroupParent3\"\r\n}",
+ "RequestBody": "{\r\n \"displayName\": \"TestDisplayName\",\r\n \"parentGroupId\": \"/providers/Microsoft.Management/managementGroups/TestPSUpdateGroupParent3\"\r\n}",
"RequestHeaders": {
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Content-Length": [
- "132"
- ],
"x-ms-client-request-id": [
- "15d27180-e5b7-4d16-9e45-cabfb19a9ba7"
+ "5cdf483e-c03b-4b4d-8e33-da6cd20c0061"
],
"Cache-Control": [
"no-cache"
],
- "accept-language": [
+ "Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
- ]
- },
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup3\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSUpdateGroup3\",\r\n \"properties\": {\r\n \"tenantId\": \"b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"displayName\": \"TestDisplayName\",\r\n \"details\": {\r\n \"version\": 14,\r\n \"updatedTime\": \"2018-05-24T19:46:10.5452483Z\",\r\n \"updatedBy\": \"aef7ed39-6482-40be-a70c-8ec0669b0d04\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSUpdateGroupParent3\",\r\n \"name\": \"TestPSUpdateGroupParent3\",\r\n \"displayName\": \"TestPSUpdateGroupParent3\"\r\n }\r\n }\r\n }\r\n}",
- "ResponseHeaders": {
- "Content-Length": [
- "547"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
],
"Content-Type": [
"application/json; charset=utf-8"
],
- "Expires": [
- "-1"
+ "Content-Length": [
+ "137"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-writes": [
- "1194"
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "59"
],
"x-ms-request-id": [
- "eastus:7b051b99-685d-49d8-9eb3-5ede1fb2ee74"
+ "westcentralus:6d8cf6bb-b413-4108-9009-6d5ae0ba00ef"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "6d8cf6bb-b413-4108-9009-6d5ae0ba00ef"
],
"request-id": [
- "15fdc5c5-fb76-4a04-aa7f-32312e3b88b9"
+ "6d8cf6bb-b413-4108-9009-6d5ae0ba00ef"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1199"
],
"x-ms-correlation-request-id": [
- "f12f466e-ca15-417d-a799-5a88d11341d6"
+ "6d8cf6bb-b413-4108-9009-6d5ae0ba00ef"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194612Z:f12f466e-ca15-417d-a799-5a88d11341d6"
+ "WESTCENTRALUS:20220418T214446Z:6d8cf6bb-b413-4108-9009-6d5ae0ba00ef"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -399,83 +242,89 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:46:11 GMT"
+ "Mon, 18 Apr 2022 21:44:45 GMT"
],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "533"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup3\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSUpdateGroup3\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"TestDisplayName\",\r\n \"details\": {\r\n \"version\": 14,\r\n \"updatedTime\": \"2022-04-18T21:44:44.7809Z\",\r\n \"updatedBy\": \"9e41f384-0aa9-41bc-a29d-6d956cd8eadb\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSUpdateGroupParent3\",\r\n \"name\": \"TestPSUpdateGroupParent3\",\r\n \"displayName\": \"TestPSUpdateGroupParent3\"\r\n }\r\n }\r\n }\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup3?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwMz9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup3?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwMz9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
"RequestMethod": "DELETE",
"RequestBody": "",
"RequestHeaders": {
"x-ms-client-request-id": [
- "1a38908c-bc41-4c42-bb01-3ba85700ff29"
+ "3be87a7c-7ed3-4621-9deb-4aa0b0cfdeb5"
],
"Cache-Control": [
"no-cache"
],
- "accept-language": [
+ "Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup3\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSUpdateGroup3\",\r\n \"status\": \"NotStarted\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "184"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
+ "Location": [
+ "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSUpdateGroup3?api-version=2021-04-01"
+ ],
"Retry-After": [
"0"
],
+ "Azure-AsyncOperation": [
+ "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/TestPSUpdateGroup3?api-version=2021-04-01"
+ ],
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "59"
+ ],
"x-ms-request-id": [
- "eastus:5a68c6fe-1fe7-4dc3-b22c-58b8d8e3389e"
+ "westcentralus:8021f81c-b11a-4fda-8de3-59234455e904"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "8021f81c-b11a-4fda-8de3-59234455e904"
],
"request-id": [
- "f3af3591-ead8-43ff-85be-f803401b52c2"
+ "8021f81c-b11a-4fda-8de3-59234455e904"
],
- "x-ms-ratelimit-remaining-tenant-writes": [
- "1193"
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-deletes": [
+ "14999"
],
"x-ms-correlation-request-id": [
- "97952840-4d51-4c89-b622-087746750411"
+ "8021f81c-b11a-4fda-8de3-59234455e904"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194614Z:97952840-4d51-4c89-b622-087746750411"
+ "WESTCENTRALUS:20220418T214447Z:8021f81c-b11a-4fda-8de3-59234455e904"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -483,74 +332,68 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:46:14 GMT"
+ "Mon, 18 Apr 2022 21:44:47 GMT"
],
- "Location": [
- "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSUpdateGroup3?api-version=2018-03-01-preview"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "173"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup3\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSUpdateGroup3\",\r\n \"status\": \"NotStarted\"\r\n}",
"StatusCode": 202
},
{
- "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSUpdateGroup3?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwMz9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/TestPSUpdateGroup3?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9hc3luY09wZXJhdGlvbi9zdGF0dXMvbWFuYWdlbWVudEdyb3Vwcy9UZXN0UFNVcGRhdGVHcm91cDM/YXBpLXZlcnNpb249MjAyMS0wNC0wMQ==",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
+ "x-ms-client-request-id": [
+ "3be87a7c-7ed3-4621-9deb-4aa0b0cfdeb5"
+ ],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup3\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSUpdateGroup3\",\r\n \"status\": \"Succeeded\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "183"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14971"
- ],
"x-ms-request-id": [
- "eastus:735eed7e-1363-40e8-9102-7e1b35ece6f7"
+ "westcentralus:49274b23-f26f-4f6a-a9c9-c6939d381d44"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "49274b23-f26f-4f6a-a9c9-c6939d381d44"
],
"request-id": [
- "4d5ef4b0-9d3f-49fb-9d96-ba767360864d"
+ "49274b23-f26f-4f6a-a9c9-c6939d381d44"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "11994"
],
"x-ms-correlation-request-id": [
- "53d21f92-a98a-45ac-b45b-5a5d0772af43"
+ "49274b23-f26f-4f6a-a9c9-c6939d381d44"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194624Z:53d21f92-a98a-45ac-b45b-5a5d0772af43"
+ "WESTCENTRALUS:20220418T214457Z:49274b23-f26f-4f6a-a9c9-c6939d381d44"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -558,74 +401,71 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:46:24 GMT"
+ "Mon, 18 Apr 2022 21:44:57 GMT"
],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "171"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/TestPSUpdateGroup3\",\r\n \"name\": \"TestPSUpdateGroup3\",\r\n \"status\": \"Succeeded\"\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSUpdateGroup3?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwMz9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSUpdateGroup3?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwMz9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
+ "x-ms-client-request-id": [
+ "3be87a7c-7ed3-4621-9deb-4aa0b0cfdeb5"
+ ],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup3\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSUpdateGroup3\",\r\n \"status\": \"Succeeded\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "183"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14970"
- ],
"x-ms-request-id": [
- "eastus:41804825-7383-4e24-bbcd-019d9cb928ae"
+ "westcentralus:caad81b7-a5cf-4905-8dd6-6e6212ec3b79"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "caad81b7-a5cf-4905-8dd6-6e6212ec3b79"
],
"request-id": [
- "45121e84-987b-4224-a8d8-64b10fad5da8"
+ "caad81b7-a5cf-4905-8dd6-6e6212ec3b79"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "11993"
],
"x-ms-correlation-request-id": [
- "f19a31ed-3914-4efd-bc9a-135e7f283736"
+ "caad81b7-a5cf-4905-8dd6-6e6212ec3b79"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194625Z:f19a31ed-3914-4efd-bc9a-135e7f283736"
+ "WESTCENTRALUS:20220418T214458Z:caad81b7-a5cf-4905-8dd6-6e6212ec3b79"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -633,83 +473,89 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:46:24 GMT"
+ "Mon, 18 Apr 2022 21:44:57 GMT"
],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "172"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup3\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSUpdateGroup3\",\r\n \"status\": \"Succeeded\"\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSUpdateGroupParent3?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwUGFyZW50Mz9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSUpdateGroupParent3?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwUGFyZW50Mz9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
"RequestMethod": "DELETE",
"RequestBody": "",
"RequestHeaders": {
"x-ms-client-request-id": [
- "7385ef02-6289-41b5-8623-623ca0d9424b"
+ "e3ae8237-c1f5-446c-90bb-8d075f8a4b9b"
],
"Cache-Control": [
"no-cache"
],
- "accept-language": [
+ "Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSUpdateGroupParent3\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSUpdateGroupParent3\",\r\n \"status\": \"NotStarted\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "196"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
+ "Location": [
+ "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSUpdateGroupParent3?api-version=2021-04-01"
+ ],
"Retry-After": [
"0"
],
+ "Azure-AsyncOperation": [
+ "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/TestPSUpdateGroupParent3?api-version=2021-04-01"
+ ],
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "59"
+ ],
"x-ms-request-id": [
- "eastus:fef8a77d-4284-43d6-91e6-d091afb985df"
+ "westcentralus:ae42ceec-71c7-48b4-abe0-954bd763178b"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "ae42ceec-71c7-48b4-abe0-954bd763178b"
],
"request-id": [
- "431f1e8c-752d-4bbb-8d81-cf3d331884d4"
+ "ae42ceec-71c7-48b4-abe0-954bd763178b"
],
- "x-ms-ratelimit-remaining-tenant-writes": [
- "1192"
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-deletes": [
+ "14999"
],
"x-ms-correlation-request-id": [
- "d3cc2b79-a852-4bbc-8203-7d248c1ec849"
+ "ae42ceec-71c7-48b4-abe0-954bd763178b"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194627Z:d3cc2b79-a852-4bbc-8203-7d248c1ec849"
+ "WESTCENTRALUS:20220418T214459Z:ae42ceec-71c7-48b4-abe0-954bd763178b"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -717,74 +563,68 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:46:26 GMT"
+ "Mon, 18 Apr 2022 21:44:59 GMT"
],
- "Location": [
- "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSUpdateGroupParent3?api-version=2018-03-01-preview"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "185"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSUpdateGroupParent3\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSUpdateGroupParent3\",\r\n \"status\": \"NotStarted\"\r\n}",
"StatusCode": 202
},
{
- "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSUpdateGroupParent3?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwUGFyZW50Mz9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/TestPSUpdateGroupParent3?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9hc3luY09wZXJhdGlvbi9zdGF0dXMvbWFuYWdlbWVudEdyb3Vwcy9UZXN0UFNVcGRhdGVHcm91cFBhcmVudDM/YXBpLXZlcnNpb249MjAyMS0wNC0wMQ==",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
+ "x-ms-client-request-id": [
+ "e3ae8237-c1f5-446c-90bb-8d075f8a4b9b"
+ ],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSUpdateGroupParent3\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSUpdateGroupParent3\",\r\n \"status\": \"Succeeded\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "195"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-correlation-request-id": [
- "6397cf9e-0886-4763-b994-01939ae613fa"
- ],
"x-ms-request-id": [
- "eastus:06731480-22e4-403e-bdb4-b8baf59cb916"
+ "westcentralus:4a75e401-550b-47e1-80ae-b6c25b166faf"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "4a75e401-550b-47e1-80ae-b6c25b166faf"
],
"request-id": [
- "1557c06c-f84a-443e-a244-58a856187bfa"
+ "4a75e401-550b-47e1-80ae-b6c25b166faf"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
],
"x-ms-ratelimit-remaining-tenant-reads": [
- "14969"
+ "11996"
+ ],
+ "x-ms-correlation-request-id": [
+ "4a75e401-550b-47e1-80ae-b6c25b166faf"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194637Z:6397cf9e-0886-4763-b994-01939ae613fa"
+ "WESTCENTRALUS:20220418T214509Z:4a75e401-550b-47e1-80ae-b6c25b166faf"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -792,74 +632,71 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:46:37 GMT"
+ "Mon, 18 Apr 2022 21:45:09 GMT"
],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "183"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/TestPSUpdateGroupParent3\",\r\n \"name\": \"TestPSUpdateGroupParent3\",\r\n \"status\": \"Succeeded\"\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSUpdateGroupParent3?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwUGFyZW50Mz9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSUpdateGroupParent3?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwUGFyZW50Mz9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
+ "x-ms-client-request-id": [
+ "e3ae8237-c1f5-446c-90bb-8d075f8a4b9b"
+ ],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSUpdateGroupParent3\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSUpdateGroupParent3\",\r\n \"status\": \"Succeeded\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "195"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14968"
- ],
"x-ms-request-id": [
- "eastus:8757b356-a017-4408-b4b4-ff2cd3987cc8"
+ "westcentralus:796e7fd7-4f0b-46ac-9593-b717aa2d8fa2"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "796e7fd7-4f0b-46ac-9593-b717aa2d8fa2"
],
"request-id": [
- "f840168a-da3b-4e7e-b96a-44e20956dfbb"
+ "796e7fd7-4f0b-46ac-9593-b717aa2d8fa2"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "11995"
],
"x-ms-correlation-request-id": [
- "1923d658-9ecc-43ac-89c6-d2ba654aef0f"
+ "796e7fd7-4f0b-46ac-9593-b717aa2d8fa2"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194638Z:1923d658-9ecc-43ac-89c6-d2ba654aef0f"
+ "WESTCENTRALUS:20220418T214509Z:796e7fd7-4f0b-46ac-9593-b717aa2d8fa2"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -867,32 +704,28 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:46:38 GMT"
+ "Mon, 18 Apr 2022 21:45:09 GMT"
],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "184"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSUpdateGroupParent3\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSUpdateGroupParent3\",\r\n \"status\": \"Succeeded\"\r\n}",
"StatusCode": 200
}
],
"Names": {},
"Variables": {
- "SubscriptionId": "394ae65d-9e71-4462-930f-3332dedf845c",
- "TenantId": "b1af47f1-138c-4ed2-8bba-119041b95450",
- "Domain": ""
+ "SubscriptionId": "5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de"
}
}
\ No newline at end of file
diff --git a/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestUpdateManagementGroupWithParentId.json b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestUpdateManagementGroupWithParentId.json
index 567faa04474e..d6a50d30f049 100644
--- a/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestUpdateManagementGroupWithParentId.json
+++ b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestUpdateManagementGroupWithParentId.json
@@ -1,142 +1,66 @@
{
"Entries": [
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSUpdateGroupParent2?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwUGFyZW50Mj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSUpdateGroupParent2?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwUGFyZW50Mj9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
"RequestMethod": "PUT",
"RequestBody": "{\r\n \"name\": \"TestPSUpdateGroupParent2\",\r\n \"properties\": {\r\n \"details\": {\r\n \"parent\": {}\r\n }\r\n }\r\n}",
"RequestHeaders": {
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Content-Length": [
- "112"
- ],
"x-ms-client-request-id": [
- "b23e8265-f220-4594-a7d8-44305176e1a4"
+ "e4e74663-67af-47fe-83ab-3115903038ae"
],
"Cache-Control": [
"no-cache"
],
- "accept-language": [
+ "Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
- ]
- },
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSUpdateGroupParent2\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSUpdateGroupParent2\",\r\n \"status\": \"NotStarted\"\r\n}",
- "ResponseHeaders": {
- "Content-Length": [
- "196"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
],
"Content-Type": [
"application/json; charset=utf-8"
],
- "Expires": [
- "-1"
- ],
- "Pragma": [
- "no-cache"
- ],
- "Retry-After": [
- "0"
- ],
- "x-ms-request-id": [
- "eastus:22ca7051-1c32-4041-8018-bced7b43a58e"
- ],
- "x-ba-restapi": [
- "1.0.3.795"
- ],
- "request-id": [
- "dba1caf9-1e51-44c9-b2a9-59d2b26a52b5"
- ],
- "x-ms-ratelimit-remaining-tenant-writes": [
- "1197"
- ],
- "x-ms-correlation-request-id": [
- "82212770-afc2-4aa1-b5ba-af091fc0720d"
- ],
- "x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194428Z:82212770-afc2-4aa1-b5ba-af091fc0720d"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "X-Content-Type-Options": [
- "nosniff"
- ],
- "Cache-Control": [
- "no-cache"
- ],
- "Date": [
- "Thu, 24 May 2018 19:44:28 GMT"
- ],
- "Location": [
- "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/operationResults/create/managementGroups/TestPSUpdateGroupParent2?api-version=2018-03-01-preview"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
- ],
- "X-Powered-By": [
- "ASP.NET"
- ]
- },
- "StatusCode": 202
- },
- {
- "RequestUri": "/providers/Microsoft.Management/operationResults/create/managementGroups/TestPSUpdateGroupParent2?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2NyZWF0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwUGFyZW50Mj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
- "RequestMethod": "GET",
- "RequestBody": "",
- "RequestHeaders": {
- "User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "Content-Length": [
+ "112"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSUpdateGroupParent2\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSUpdateGroupParent2\",\r\n \"status\": \"Running\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "193"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Retry-After": [
- "0"
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "59"
],
"x-ms-request-id": [
- "eastus:7e7138e4-fcb7-40f4-a5cd-3644d0f93928"
+ "westus:45a243f1-4c88-4d32-a333-4346a96687a3"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "45a243f1-4c88-4d32-a333-4346a96687a3"
],
"request-id": [
- "b27b0148-826c-4660-99f7-09570684e5b5"
+ "45a243f1-4c88-4d32-a333-4346a96687a3"
],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14974"
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1199"
],
"x-ms-correlation-request-id": [
- "50d83856-071d-45e6-bd13-07d5ed4e091d"
+ "45a243f1-4c88-4d32-a333-4346a96687a3"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194439Z:50d83856-071d-45e6-bd13-07d5ed4e091d"
+ "WESTUS:20220418T214544Z:45a243f1-4c88-4d32-a333-4346a96687a3"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -144,44 +68,11 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:44:39 GMT"
+ "Mon, 18 Apr 2022 21:45:44 GMT"
],
- "Location": [
- "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/operationResults/create/managementGroups/TestPSUpdateGroupParent2?api-version=2018-03-01-preview"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
- ],
- "X-Powered-By": [
- "ASP.NET"
- ]
- },
- "StatusCode": 202
- },
- {
- "RequestUri": "/providers/Microsoft.Management/operationResults/create/managementGroups/TestPSUpdateGroupParent2?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2NyZWF0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwUGFyZW50Mj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
- "RequestMethod": "GET",
- "RequestBody": "",
- "RequestHeaders": {
- "User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
- ]
- },
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSUpdateGroupParent2\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSUpdateGroupParent2\",\r\n \"status\": \"Succeeded\",\r\n \"properties\": {\r\n \"tenantId\": \"b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"displayName\": \"TestPSUpdateGroupParent2\",\r\n \"details\": {\r\n \"version\": 7,\r\n \"updatedTime\": \"2018-05-24T19:44:38.1322441Z\",\r\n \"updatedBy\": \"aef7ed39-6482-40be-a70c-8ec0669b0d04\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"name\": \"b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"displayName\": \"b1af47f1-138c-4ed2-8bba-119041b95450\"\r\n }\r\n }\r\n }\r\n}",
- "ResponseHeaders": {
"Content-Length": [
- "624"
+ "577"
],
"Content-Type": [
"application/json; charset=utf-8"
@@ -189,119 +80,74 @@
"Expires": [
"-1"
],
- "Pragma": [
- "no-cache"
- ],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14973"
- ],
- "x-ms-request-id": [
- "eastus:c8787d2e-ccb9-41dd-9727-39d906e79b96"
- ],
- "x-ba-restapi": [
- "1.0.3.795"
- ],
- "request-id": [
- "b34f6f0e-bd8d-4955-8483-82773aa2e9e9"
- ],
- "x-ms-correlation-request-id": [
- "540a9c3b-1603-4949-a8a0-348ff062eebd"
- ],
- "x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194450Z:540a9c3b-1603-4949-a8a0-348ff062eebd"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "X-Content-Type-Options": [
- "nosniff"
- ],
- "Cache-Control": [
- "no-cache"
- ],
- "Date": [
- "Thu, 24 May 2018 19:44:49 GMT"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
- ],
- "X-Powered-By": [
- "ASP.NET"
- ],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSUpdateGroupParent2\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSUpdateGroupParent2\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"TestPSUpdateGroupParent2\",\r\n \"details\": {\r\n \"version\": 10,\r\n \"updatedTime\": \"2022-04-18T21:28:25.371741Z\",\r\n \"updatedBy\": \"9e41f384-0aa9-41bc-a29d-6d956cd8eadb\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"name\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"Root Management Group\"\r\n }\r\n }\r\n }\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup2?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwMj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup2?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwMj9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
"RequestMethod": "PUT",
"RequestBody": "{\r\n \"name\": \"TestPSUpdateGroup2\",\r\n \"properties\": {\r\n \"details\": {\r\n \"parent\": {}\r\n }\r\n }\r\n}",
"RequestHeaders": {
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Content-Length": [
- "106"
- ],
"x-ms-client-request-id": [
- "360bc1c9-509e-49e9-9068-ac1c94708be0"
+ "ff4dce21-52e3-4e84-aa2d-7ec9c803a62c"
],
"Cache-Control": [
"no-cache"
],
- "accept-language": [
+ "Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
- ]
- },
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup2\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSUpdateGroup2\",\r\n \"status\": \"NotStarted\"\r\n}",
- "ResponseHeaders": {
- "Content-Length": [
- "184"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
],
"Content-Type": [
"application/json; charset=utf-8"
],
- "Expires": [
- "-1"
+ "Content-Length": [
+ "106"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Retry-After": [
- "0"
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "59"
],
"x-ms-request-id": [
- "eastus:6b9be925-d090-43de-8c41-5ab1a164c72c"
+ "westus:13b69e0d-31e1-4086-b07c-8e27dcccd895"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "13b69e0d-31e1-4086-b07c-8e27dcccd895"
],
"request-id": [
- "4d4a8320-956f-4c79-93fe-cbc9227a9177"
+ "13b69e0d-31e1-4086-b07c-8e27dcccd895"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
],
"x-ms-ratelimit-remaining-tenant-writes": [
- "1196"
+ "1199"
],
"x-ms-correlation-request-id": [
- "dc454713-4586-4d42-864f-cd4426237b97"
+ "13b69e0d-31e1-4086-b07c-8e27dcccd895"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194451Z:dc454713-4586-4d42-864f-cd4426237b97"
+ "WESTUS:20220418T214545Z:13b69e0d-31e1-4086-b07c-8e27dcccd895"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -309,44 +155,11 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:44:51 GMT"
+ "Mon, 18 Apr 2022 21:45:44 GMT"
],
- "Location": [
- "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/operationResults/create/managementGroups/TestPSUpdateGroup2?api-version=2018-03-01-preview"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
- ],
- "X-Powered-By": [
- "ASP.NET"
- ]
- },
- "StatusCode": 202
- },
- {
- "RequestUri": "/providers/Microsoft.Management/operationResults/create/managementGroups/TestPSUpdateGroup2?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2NyZWF0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwMj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
- "RequestMethod": "GET",
- "RequestBody": "",
- "RequestHeaders": {
- "User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
- ]
- },
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup2\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSUpdateGroup2\",\r\n \"status\": \"Succeeded\",\r\n \"properties\": {\r\n \"tenantId\": \"b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"displayName\": \"TestPSUpdateGroup2\",\r\n \"details\": {\r\n \"version\": 13,\r\n \"updatedTime\": \"2018-05-24T19:45:00.6849191Z\",\r\n \"updatedBy\": \"aef7ed39-6482-40be-a70c-8ec0669b0d04\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"name\": \"b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"displayName\": \"b1af47f1-138c-4ed2-8bba-119041b95450\"\r\n }\r\n }\r\n }\r\n}",
- "ResponseHeaders": {
"Content-Length": [
- "607"
+ "560"
],
"Content-Type": [
"application/json; charset=utf-8"
@@ -354,119 +167,74 @@
"Expires": [
"-1"
],
- "Pragma": [
- "no-cache"
- ],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14972"
- ],
- "x-ms-request-id": [
- "eastus:e1a9f536-e320-4d26-bef5-492184552349"
- ],
- "x-ba-restapi": [
- "1.0.3.795"
- ],
- "request-id": [
- "1859577f-4630-4e30-b395-30f9105b9c80"
- ],
- "x-ms-correlation-request-id": [
- "d566b4f3-8dbb-4d13-895e-acb07ff7cf67"
- ],
- "x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194503Z:d566b4f3-8dbb-4d13-895e-acb07ff7cf67"
- ],
- "Strict-Transport-Security": [
- "max-age=31536000; includeSubDomains"
- ],
- "X-Content-Type-Options": [
- "nosniff"
- ],
- "Cache-Control": [
- "no-cache"
- ],
- "Date": [
- "Thu, 24 May 2018 19:45:03 GMT"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
- ],
- "X-AspNet-Version": [
- "4.0.30319"
- ],
- "X-Powered-By": [
- "ASP.NET"
- ],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup2\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSUpdateGroup2\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"TestPSUpdateGroup2\",\r\n \"details\": {\r\n \"version\": 19,\r\n \"updatedTime\": \"2022-04-18T21:44:14.6259029Z\",\r\n \"updatedBy\": \"9e41f384-0aa9-41bc-a29d-6d956cd8eadb\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"name\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"Root Management Group\"\r\n }\r\n }\r\n }\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup2?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwMj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup2?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwMj9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
"RequestMethod": "PATCH",
- "RequestBody": "{\r\n \"parentId\": \"/providers/Microsoft.Management/managementGroups/TestPSUpdateGroupParent2\"\r\n}",
+ "RequestBody": "{\r\n \"parentGroupId\": \"/providers/Microsoft.Management/managementGroups/TestPSUpdateGroupParent2\"\r\n}",
"RequestHeaders": {
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Content-Length": [
- "95"
- ],
"x-ms-client-request-id": [
- "ca4160ec-0d72-4e70-aae1-038ee0ba4427"
+ "973685ec-2017-444d-be50-0b85a37f5e44"
],
"Cache-Control": [
"no-cache"
],
- "accept-language": [
+ "Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
- ]
- },
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup2\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSUpdateGroup2\",\r\n \"properties\": {\r\n \"tenantId\": \"b1af47f1-138c-4ed2-8bba-119041b95450\",\r\n \"displayName\": \"TestPSUpdateGroup2\",\r\n \"details\": {\r\n \"version\": 14,\r\n \"updatedTime\": \"2018-05-24T19:45:04.8902896Z\",\r\n \"updatedBy\": \"aef7ed39-6482-40be-a70c-8ec0669b0d04\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSUpdateGroupParent2\",\r\n \"name\": \"TestPSUpdateGroupParent2\",\r\n \"displayName\": \"TestPSUpdateGroupParent2\"\r\n }\r\n }\r\n }\r\n}",
- "ResponseHeaders": {
- "Content-Length": [
- "550"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
],
"Content-Type": [
"application/json; charset=utf-8"
],
- "Expires": [
- "-1"
+ "Content-Length": [
+ "100"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-writes": [
- "1195"
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "59"
],
"x-ms-request-id": [
- "eastus:33301b6d-6ee8-4f64-a690-390c660b623a"
+ "westus:18d88fe8-ce5f-4875-b40d-fdad1c8d8724"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "18d88fe8-ce5f-4875-b40d-fdad1c8d8724"
],
"request-id": [
- "45862988-5b1e-4d48-9eb1-1f1094e9285c"
+ "18d88fe8-ce5f-4875-b40d-fdad1c8d8724"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1199"
],
"x-ms-correlation-request-id": [
- "d6ea059e-13f3-4c98-8b5a-13cccb5189d1"
+ "18d88fe8-ce5f-4875-b40d-fdad1c8d8724"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194506Z:d6ea059e-13f3-4c98-8b5a-13cccb5189d1"
+ "WESTUS:20220418T214548Z:18d88fe8-ce5f-4875-b40d-fdad1c8d8724"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -474,83 +242,89 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:45:06 GMT"
+ "Mon, 18 Apr 2022 21:45:47 GMT"
],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "539"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup2\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSUpdateGroup2\",\r\n \"properties\": {\r\n \"tenantId\": \"c7a87cda-9a66-4920-b0f8-869baa04efe0\",\r\n \"displayName\": \"TestPSUpdateGroup2\",\r\n \"details\": {\r\n \"version\": 20,\r\n \"updatedTime\": \"2022-04-18T21:45:46.2742952Z\",\r\n \"updatedBy\": \"9e41f384-0aa9-41bc-a29d-6d956cd8eadb\",\r\n \"parent\": {\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSUpdateGroupParent2\",\r\n \"name\": \"TestPSUpdateGroupParent2\",\r\n \"displayName\": \"TestPSUpdateGroupParent2\"\r\n }\r\n }\r\n }\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup2?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwMj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup2?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwMj9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
"RequestMethod": "DELETE",
"RequestBody": "",
"RequestHeaders": {
"x-ms-client-request-id": [
- "33a82a14-97d5-455f-99fd-36e95d9e3bf6"
+ "6281653e-dacd-4f83-8f00-13a8cd575639"
],
"Cache-Control": [
"no-cache"
],
- "accept-language": [
+ "Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup2\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSUpdateGroup2\",\r\n \"status\": \"NotStarted\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "184"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
+ "Location": [
+ "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSUpdateGroup2?api-version=2021-04-01"
+ ],
"Retry-After": [
"0"
],
+ "Azure-AsyncOperation": [
+ "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/TestPSUpdateGroup2?api-version=2021-04-01"
+ ],
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "59"
+ ],
"x-ms-request-id": [
- "eastus:0f167038-c19f-44ae-9a66-0fefec966a92"
+ "westus:f7970225-ecb5-4f57-8283-43754cc5cc9c"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "f7970225-ecb5-4f57-8283-43754cc5cc9c"
],
"request-id": [
- "2d20e94b-a6fa-4caf-899f-030618a1a833"
+ "f7970225-ecb5-4f57-8283-43754cc5cc9c"
],
- "x-ms-ratelimit-remaining-tenant-writes": [
- "1194"
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-deletes": [
+ "14999"
],
"x-ms-correlation-request-id": [
- "88fc034e-b3a7-472f-a640-dc7be4b969e2"
+ "f7970225-ecb5-4f57-8283-43754cc5cc9c"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194508Z:88fc034e-b3a7-472f-a640-dc7be4b969e2"
+ "WESTUS:20220418T214549Z:f7970225-ecb5-4f57-8283-43754cc5cc9c"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -558,74 +332,68 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:45:08 GMT"
+ "Mon, 18 Apr 2022 21:45:48 GMT"
],
- "Location": [
- "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSUpdateGroup2?api-version=2018-03-01-preview"
- ],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "173"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup2\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSUpdateGroup2\",\r\n \"status\": \"NotStarted\"\r\n}",
"StatusCode": 202
},
{
- "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSUpdateGroup2?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwMj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/TestPSUpdateGroup2?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9hc3luY09wZXJhdGlvbi9zdGF0dXMvbWFuYWdlbWVudEdyb3Vwcy9UZXN0UFNVcGRhdGVHcm91cDI/YXBpLXZlcnNpb249MjAyMS0wNC0wMQ==",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
+ "x-ms-client-request-id": [
+ "6281653e-dacd-4f83-8f00-13a8cd575639"
+ ],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup2\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSUpdateGroup2\",\r\n \"status\": \"Succeeded\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "183"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14971"
- ],
"x-ms-request-id": [
- "eastus:eb092686-d998-44f1-8098-106fa24ad626"
+ "westus:13cfeb2e-4a77-424a-9f00-28e8cacf98d1"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "13cfeb2e-4a77-424a-9f00-28e8cacf98d1"
],
"request-id": [
- "400a5f58-cd63-43b3-ab77-378fa19cb39f"
+ "13cfeb2e-4a77-424a-9f00-28e8cacf98d1"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "11998"
],
"x-ms-correlation-request-id": [
- "e27532ed-f8a6-4c9c-8acb-a9c47c5c0303"
+ "13cfeb2e-4a77-424a-9f00-28e8cacf98d1"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194519Z:e27532ed-f8a6-4c9c-8acb-a9c47c5c0303"
+ "WESTUS:20220418T214559Z:13cfeb2e-4a77-424a-9f00-28e8cacf98d1"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -633,74 +401,71 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:45:18 GMT"
+ "Mon, 18 Apr 2022 21:45:58 GMT"
],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "171"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/TestPSUpdateGroup2\",\r\n \"name\": \"TestPSUpdateGroup2\",\r\n \"status\": \"Succeeded\"\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSUpdateGroup2?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwMj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSUpdateGroup2?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwMj9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
+ "x-ms-client-request-id": [
+ "6281653e-dacd-4f83-8f00-13a8cd575639"
+ ],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup2\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSUpdateGroup2\",\r\n \"status\": \"Succeeded\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "183"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14970"
- ],
"x-ms-request-id": [
- "eastus:96c9f5bf-af56-4b8a-9fc6-2638e2d3308e"
+ "westus:95ba04d8-e611-473e-ae16-08bf35ca5c8e"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "95ba04d8-e611-473e-ae16-08bf35ca5c8e"
],
"request-id": [
- "63675a06-74af-4909-8a9a-4e837c8d45e9"
+ "95ba04d8-e611-473e-ae16-08bf35ca5c8e"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "11997"
],
"x-ms-correlation-request-id": [
- "944124a7-1295-47d9-9f03-62fac5139306"
+ "95ba04d8-e611-473e-ae16-08bf35ca5c8e"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194519Z:944124a7-1295-47d9-9f03-62fac5139306"
+ "WESTUS:20220418T214559Z:95ba04d8-e611-473e-ae16-08bf35ca5c8e"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -708,83 +473,89 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:45:19 GMT"
+ "Mon, 18 Apr 2022 21:45:59 GMT"
],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "172"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup2\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSUpdateGroup2\",\r\n \"status\": \"Succeeded\"\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSUpdateGroupParent2?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwUGFyZW50Mj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSUpdateGroupParent2?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwUGFyZW50Mj9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
"RequestMethod": "DELETE",
"RequestBody": "",
"RequestHeaders": {
"x-ms-client-request-id": [
- "9cee8b40-8d3f-4cfb-be76-b13569c25d9a"
+ "483dfa57-9614-4a94-9365-7bc03149bcbf"
],
"Cache-Control": [
"no-cache"
],
- "accept-language": [
+ "Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSUpdateGroupParent2\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSUpdateGroupParent2\",\r\n \"status\": \"NotStarted\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "196"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
+ "Location": [
+ "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSUpdateGroupParent2?api-version=2021-04-01"
+ ],
"Retry-After": [
"0"
],
+ "Azure-AsyncOperation": [
+ "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/TestPSUpdateGroupParent2?api-version=2021-04-01"
+ ],
+ "x-ms-ratelimit-remaining-managementgroups-requests": [
+ "59"
+ ],
"x-ms-request-id": [
- "eastus:6d2eeabe-8c33-4fec-bb08-f195daff1ee9"
+ "westus:fd6799c2-3720-47b3-b040-9621bdef2627"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "fd6799c2-3720-47b3-b040-9621bdef2627"
],
"request-id": [
- "0a083783-f76c-45f3-9193-66b75dbec8d6"
+ "fd6799c2-3720-47b3-b040-9621bdef2627"
],
- "x-ms-ratelimit-remaining-tenant-writes": [
- "1193"
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-deletes": [
+ "14999"
],
"x-ms-correlation-request-id": [
- "cb401957-d0d2-44ca-9fab-c721bf0288ca"
+ "fd6799c2-3720-47b3-b040-9621bdef2627"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194522Z:cb401957-d0d2-44ca-9fab-c721bf0288ca"
+ "WESTUS:20220418T214600Z:fd6799c2-3720-47b3-b040-9621bdef2627"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -792,74 +563,68 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:45:21 GMT"
- ],
- "Location": [
- "https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSUpdateGroupParent2?api-version=2018-03-01-preview"
+ "Mon, 18 Apr 2022 21:45:59 GMT"
],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "185"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSUpdateGroupParent2\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSUpdateGroupParent2\",\r\n \"status\": \"NotStarted\"\r\n}",
"StatusCode": 202
},
{
- "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSUpdateGroupParent2?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwUGFyZW50Mj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/TestPSUpdateGroupParent2?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9hc3luY09wZXJhdGlvbi9zdGF0dXMvbWFuYWdlbWVudEdyb3Vwcy9UZXN0UFNVcGRhdGVHcm91cFBhcmVudDI/YXBpLXZlcnNpb249MjAyMS0wNC0wMQ==",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
+ "x-ms-client-request-id": [
+ "483dfa57-9614-4a94-9365-7bc03149bcbf"
+ ],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSUpdateGroupParent2\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSUpdateGroupParent2\",\r\n \"status\": \"Succeeded\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "195"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14969"
- ],
"x-ms-request-id": [
- "eastus:fa737475-de45-46ae-a60e-aaaddd229f87"
+ "westus:9f1e6e24-478e-4414-8aec-a6ed06afbd33"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "9f1e6e24-478e-4414-8aec-a6ed06afbd33"
],
"request-id": [
- "916f0a41-06cd-4b12-beda-d189ad637789"
+ "9f1e6e24-478e-4414-8aec-a6ed06afbd33"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "11999"
],
"x-ms-correlation-request-id": [
- "e1579467-dc26-4991-bf5f-ffabe4f0bf5c"
+ "9f1e6e24-478e-4414-8aec-a6ed06afbd33"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194532Z:e1579467-dc26-4991-bf5f-ffabe4f0bf5c"
+ "WESTUS:20220418T214610Z:9f1e6e24-478e-4414-8aec-a6ed06afbd33"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -867,74 +632,71 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:45:31 GMT"
+ "Mon, 18 Apr 2022 21:46:09 GMT"
],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "183"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/TestPSUpdateGroupParent2\",\r\n \"name\": \"TestPSUpdateGroupParent2\",\r\n \"status\": \"Succeeded\"\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSUpdateGroupParent2?api-version=2018-03-01-preview",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwUGFyZW50Mj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSUpdateGroupParent2?api-version=2021-04-01",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwUGFyZW50Mj9hcGktdmVyc2lvbj0yMDIxLTA0LTAx",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
+ "x-ms-client-request-id": [
+ "483dfa57-9614-4a94-9365-7bc03149bcbf"
+ ],
"User-Agent": [
- "FxVersion/4.7.3056.0",
- "OSName/Windows10Enterprise",
- "OSVersion/6.3.17134",
- "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.0.0"
+ "FxVersion/4.700.22.16002",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.19044",
+ "Microsoft.Azure.Management.ManagementGroups.ManagementGroupsAPIClient/1.1.1.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSUpdateGroupParent2\",\r\n \"type\": \"/providers/Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSUpdateGroupParent2\",\r\n \"status\": \"Succeeded\"\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "195"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
+ "Cache-Control": [
+ "no-cache"
],
"Pragma": [
"no-cache"
],
- "Vary": [
- "Accept-Encoding"
- ],
- "x-ms-ratelimit-remaining-tenant-reads": [
- "14968"
- ],
"x-ms-request-id": [
- "eastus:738cdab7-e501-4880-bea3-2b94029f89cf"
+ "westus:bedb4e30-3d84-413e-941c-aae40d661280"
],
"x-ba-restapi": [
- "1.0.3.795"
+ "0.0.0.0"
+ ],
+ "client-request-id": [
+ "bedb4e30-3d84-413e-941c-aae40d661280"
],
"request-id": [
- "88dbef6b-e3f5-44bb-b307-ff95354a33ea"
+ "bedb4e30-3d84-413e-941c-aae40d661280"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "11998"
],
"x-ms-correlation-request-id": [
- "ca776754-89d6-4836-b5a8-4b19b0c039e9"
+ "bedb4e30-3d84-413e-941c-aae40d661280"
],
"x-ms-routing-request-id": [
- "NORTHEUROPE:20180524T194533Z:ca776754-89d6-4836-b5a8-4b19b0c039e9"
+ "WESTUS:20220418T214610Z:bedb4e30-3d84-413e-941c-aae40d661280"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -942,32 +704,28 @@
"X-Content-Type-Options": [
"nosniff"
],
- "Cache-Control": [
- "no-cache"
- ],
"Date": [
- "Thu, 24 May 2018 19:45:33 GMT"
+ "Mon, 18 Apr 2022 21:46:09 GMT"
],
- "Server": [
- "Microsoft-IIS/8.5"
+ "Content-Length": [
+ "184"
],
- "X-AspNet-Version": [
- "4.0.30319"
+ "Content-Type": [
+ "application/json; charset=utf-8"
],
- "X-Powered-By": [
- "ASP.NET"
+ "Expires": [
+ "-1"
],
"Retry-After": [
"0"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Management/managementGroups/TestPSUpdateGroupParent2\",\r\n \"type\": \"Microsoft.Management/managementGroups\",\r\n \"name\": \"TestPSUpdateGroupParent2\",\r\n \"status\": \"Succeeded\"\r\n}",
"StatusCode": 200
}
],
"Names": {},
"Variables": {
- "SubscriptionId": "394ae65d-9e71-4462-930f-3332dedf845c",
- "TenantId": "b1af47f1-138c-4ed2-8bba-119041b95450",
- "Domain": ""
+ "SubscriptionId": "5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de"
}
}
\ No newline at end of file
diff --git a/src/Resources/Resources.sln b/src/Resources/Resources.sln
index 1d50ca90bfcd..f2564c6a313c 100644
--- a/src/Resources/Resources.sln
+++ b/src/Resources/Resources.sln
@@ -1,6 +1,7 @@
-Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio Version 16
-VisualStudioVersion = 16.0.30011.22
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 17
+VisualStudioVersion = 17.1.32228.430
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Resources", "Resources\Resources.csproj", "{E1F5201D-6067-430E-B303-4E367652991B}"
EndProject
@@ -26,11 +27,11 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ScenarioTest.ResourceManage
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestFx", "..\..\tools\TestFx\TestFx.csproj", "{BC80A1D0-FFA4-43D9-AA74-799F5CB54B58}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.MSGraph", "MSGraph.Autorest\Az.MSGraph.csproj", "{5874AEF9-3D19-40B4-91F7-81E05F3BAA4D}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Az.MSGraph", "MSGraph.Autorest\Az.MSGraph.csproj", "{5874AEF9-3D19-40B4-91F7-81E05F3BAA4D}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Authorization", "Authorization.Autorest\Az.Authorization.csproj", "{E14B71EE-4EDA-4FFC-8BD2-DDB73331B955}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Az.Authorization", "Authorization.Autorest\Az.Authorization.csproj", "{E14B71EE-4EDA-4FFC-8BD2-DDB73331B955}"
EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ManagedServiceIdentity", "..\ManagedServiceIdentity\Az.ManagedServiceIdentity.csproj", "{9F6FD098-3A06-4D8F-9807-7E941FBCFEE4}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Az.ManagedServiceIdentity", "..\ManagedServiceIdentity\Az.ManagedServiceIdentity.csproj", "{9F6FD098-3A06-4D8F-9807-7E941FBCFEE4}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -82,10 +83,6 @@ Global
{BC80A1D0-FFA4-43D9-AA74-799F5CB54B58}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BC80A1D0-FFA4-43D9-AA74-799F5CB54B58}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BC80A1D0-FFA4-43D9-AA74-799F5CB54B58}.Release|Any CPU.Build.0 = Release|Any CPU
- {8C3B3618-CBF3-43BC-98FA-286A83207BCC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {8C3B3618-CBF3-43BC-98FA-286A83207BCC}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {8C3B3618-CBF3-43BC-98FA-286A83207BCC}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {8C3B3618-CBF3-43BC-98FA-286A83207BCC}.Release|Any CPU.Build.0 = Release|Any CPU
{5874AEF9-3D19-40B4-91F7-81E05F3BAA4D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5874AEF9-3D19-40B4-91F7-81E05F3BAA4D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5874AEF9-3D19-40B4-91F7-81E05F3BAA4D}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -94,6 +91,10 @@ Global
{E14B71EE-4EDA-4FFC-8BD2-DDB73331B955}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E14B71EE-4EDA-4FFC-8BD2-DDB73331B955}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E14B71EE-4EDA-4FFC-8BD2-DDB73331B955}.Release|Any CPU.Build.0 = Release|Any CPU
+ {9F6FD098-3A06-4D8F-9807-7E941FBCFEE4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {9F6FD098-3A06-4D8F-9807-7E941FBCFEE4}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {9F6FD098-3A06-4D8F-9807-7E941FBCFEE4}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {9F6FD098-3A06-4D8F-9807-7E941FBCFEE4}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
diff --git a/src/Resources/Resources/Az.Resources.psd1 b/src/Resources/Resources/Az.Resources.psd1
index 695909cc4cd3..266e05757ff9 100644
--- a/src/Resources/Resources/Az.Resources.psd1
+++ b/src/Resources/Resources/Az.Resources.psd1
@@ -31,7 +31,6 @@ Copyright = 'Microsoft Corporation. All rights reserved.'
# Description of the functionality provided by this module
Description = 'Microsoft Azure PowerShell - Azure Resource Manager and Active Directory cmdlets in Windows PowerShell and PowerShell Core. Manages subscriptions, tenants, resource groups, deployment templates, providers, and resource permissions in Azure Resource Manager. Provides cmdlets for managing resources generically across resource providers.
-
For more information on Resource Manager, please visit the following: https://docs.microsoft.com/azure/azure-resource-manager/
For more information on Active Directory, please visit the following: https://docs.microsoft.com/azure/active-directory/fundamentals/active-directory-whatis'
@@ -181,7 +180,12 @@ CmdletsToExport = 'Get-AzProviderOperation', 'Remove-AzRoleAssignment',
'Remove-AzResourceManagementPrivateLink',
'New-AzResourceManagementPrivateLink',
'New-AzPrivateLinkAssociation', 'Get-AzPrivateLinkAssociation',
- 'Remove-AzPrivateLinkAssociation'
+ 'Remove-AzPrivateLinkAssociation',
+ 'Get-AzManagementGroupEntity', 'Get-AzManagementGroupNameAvailability',
+ 'Get-AzTenantBackfillStatus', 'Start-AzTenantBackfill',
+ 'Get-AzManagementGroupSubscription', 'New-AzManagementGroupHierarchySetting',
+ 'Update-AzManagementGroupHierarchySetting', 'Get-AzManagementGroupHierarchySetting',
+ 'Remove-AzManagementGroupHierarchySetting'
# Variables to export from this module
VariablesToExport = '*'
diff --git a/src/Resources/Resources/ChangeLog.md b/src/Resources/Resources/ChangeLog.md
index 33de7b48ab4b..07b1ce6d593c 100644
--- a/src/Resources/Resources/ChangeLog.md
+++ b/src/Resources/Resources/ChangeLog.md
@@ -19,6 +19,17 @@
-->
## Upcoming Release
+* Added the following cmdlets to remain in parity with 2021-04-01 API version:
+ - `New-AzHierarchySetting`
+ - `Get-AzHierarchySetting`
+ - `Update-AzHierarchySetting`
+ - `Remove-AzHierarchySetting`
+ - `Get-AzManagementGroupSubscription`
+ - `Get-AzSubscriptionUnderManagementGroup`
+ - `Start-AzTenantBackfill`
+ - `Get-AzTenantBackfillStatus`
+ - `Get-AzManagementGroupNameAvailability`
+ - `Get-AzEntity`
## Version 5.6.0
* Fixed redundant quotes in list pagination [#17667]
diff --git a/src/Resources/Resources/ManagementGroups/GetAzureRmEntities.cs b/src/Resources/Resources/ManagementGroups/GetAzureRmEntities.cs
new file mode 100644
index 000000000000..238488918032
--- /dev/null
+++ b/src/Resources/Resources/ManagementGroups/GetAzureRmEntities.cs
@@ -0,0 +1,50 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System.Linq;
+using System.Management.Automation;
+using Microsoft.Azure.Commands.Resources.ManagementGroups.Common;
+using Microsoft.Azure.Commands.Resources.Models.ManagementGroups;
+using Microsoft.Azure.Management.ManagementGroups;
+using Microsoft.Azure.Management.ManagementGroups.Models;
+using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
+
+namespace Microsoft.Azure.Commands.Resources.ManagementGroups
+{
+ ///
+ /// Get-AzEntities Cmdlet
+ ///
+ [Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "ManagementGroupEntity", SupportsShouldProcess = true), OutputType(typeof(PSEntityInfo))]
+ public class GetAzureRmEntities : AzureManagementGroupsCmdletBase
+ {
+ public override void ExecuteCmdlet()
+ {
+ try
+ {
+ PreregisterSubscription();
+
+ var response = ManagementGroupsApiClient.Entities.List();
+
+ var items = response.Select(entity => new PSEntityInfo(entity));
+
+ WriteObject(items, true);
+ }
+ catch (ErrorResponseException ex)
+ {
+ Utility.HandleErrorResponseException(ex);
+ }
+ }
+
+ }
+}
diff --git a/src/Resources/Resources/ManagementGroups/GetAzureRmManagementGroup.cs b/src/Resources/Resources/ManagementGroups/GetAzureRmManagementGroup.cs
index 6ab832d8f6cc..b207ebc4c27c 100644
--- a/src/Resources/Resources/ManagementGroups/GetAzureRmManagementGroup.cs
+++ b/src/Resources/Resources/ManagementGroups/GetAzureRmManagementGroup.cs
@@ -53,7 +53,7 @@ public override void ExecuteCmdlet()
if (!string.IsNullOrEmpty(GroupName))
{
var response = ManagementGroupsApiClient.ManagementGroups.Get(GroupName, Expand.IsPresent?"children":null, Recurse.IsPresent);
- WriteObject(new PSManagementGroup(response));
+ WriteObject(new PSManagementGroup(response));
}
else
{
diff --git a/src/Resources/Resources/ManagementGroups/GetAzureRmManagementGroupBackfillStatus.cs b/src/Resources/Resources/ManagementGroups/GetAzureRmManagementGroupBackfillStatus.cs
new file mode 100644
index 000000000000..3fe382432411
--- /dev/null
+++ b/src/Resources/Resources/ManagementGroups/GetAzureRmManagementGroupBackfillStatus.cs
@@ -0,0 +1,47 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System.Linq;
+using System.Management.Automation;
+using Microsoft.Azure.Commands.Resources.ManagementGroups.Common;
+using Microsoft.Azure.Commands.Resources.Models.ManagementGroups;
+using Microsoft.Azure.Management.ManagementGroups;
+using Microsoft.Azure.Management.ManagementGroups.Models;
+using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
+
+namespace Microsoft.Azure.Commands.Resources.ManagementGroups
+{
+ ///
+ /// Get-AzTenantBackfillStatus Cmdlet
+ ///
+ [Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "TenantBackfillStatus", SupportsShouldProcess = true), OutputType(typeof(PSBackfillStatus))]
+ public class GetAzureRmManagementGroupBackfillStatus : AzureManagementGroupsCmdletBase
+ {
+ public override void ExecuteCmdlet()
+ {
+ try
+ {
+ PreregisterSubscription();
+
+ var getRequest = ManagementGroupsApiClient.TenantBackfillStatus();
+
+ WriteObject(new PSBackfillStatus(getRequest));
+ }
+ catch(ErrorResponseException ex)
+ {
+ Utility.HandleErrorResponseException(ex);
+ }
+ }
+ }
+}
diff --git a/src/Resources/Resources/ManagementGroups/GetAzureRmManagementGroupHierarchySettings.cs b/src/Resources/Resources/ManagementGroups/GetAzureRmManagementGroupHierarchySettings.cs
new file mode 100644
index 000000000000..6784d69cada1
--- /dev/null
+++ b/src/Resources/Resources/ManagementGroups/GetAzureRmManagementGroupHierarchySettings.cs
@@ -0,0 +1,56 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System.Management.Automation;
+using Microsoft.Azure.Commands.Resources.ManagementGroups.Common;
+using Microsoft.Azure.Commands.Resources.Models.ManagementGroups;
+using Microsoft.Azure.Management.ManagementGroups;
+using Microsoft.Azure.Management.ManagementGroups.Models;
+using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
+
+namespace Microsoft.Azure.Commands.Resources.ManagementGroups
+{
+ [Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "ManagementGroupHierarchySetting", DefaultParameterSetName = Constants.ParameterSetNames.GroupOperationsParameterSet, SupportsShouldProcess = true), OutputType(typeof(PSHierarchySettings))]
+ public class GetAzureRmManagementGroupHierarchySettings : AzureManagementGroupsCmdletBase
+ {
+ [Alias("GroupId")]
+ [CmdletParameterBreakingChange("GroupName", ReplaceMentCmdletParameterName = "GroupId", ChangeDescription = "We will replace GroupName with GroupId to make it more clear.")]
+ [Parameter(ParameterSetName = Constants.ParameterSetNames.GroupOperationsParameterSet, Mandatory = true, HelpMessage = Constants.HelpMessages.GroupName, Position = 0)]
+ [Parameter(ParameterSetName = Constants.ParameterSetNames.ParentGroupParameterSet, Mandatory = true,
+ HelpMessage = Constants.HelpMessages.ParentObject)]
+ [ValidateNotNullOrEmpty]
+ public string GroupName { get; set; }
+
+ public override void ExecuteCmdlet()
+ {
+ try
+ {
+ if (ShouldProcess(
+ string.Format(Resource.NewManagementGroupShouldProcessTarget, GroupName),
+ string.Format(Resource.NewManagementGroupShouldProcessAction, GroupName)))
+ {
+ PreregisterSubscription();
+
+ var response = ManagementGroupsApiClient.HierarchySettings.Get(GroupName);
+
+ WriteObject(new PSHierarchySettings(response));
+ }
+ }
+ catch (ErrorResponseException ex)
+ {
+ Utility.HandleErrorResponseException(ex);
+ }
+ }
+ }
+}
diff --git a/src/Resources/Resources/ManagementGroups/GetAzureRmManagementGroupNameAvailability.cs b/src/Resources/Resources/ManagementGroups/GetAzureRmManagementGroupNameAvailability.cs
new file mode 100644
index 000000000000..f4720923f37a
--- /dev/null
+++ b/src/Resources/Resources/ManagementGroups/GetAzureRmManagementGroupNameAvailability.cs
@@ -0,0 +1,54 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System.Linq;
+using System.Management.Automation;
+using Microsoft.Azure.Commands.Resources.ManagementGroups.Common;
+using Microsoft.Azure.Commands.Resources.Models.ManagementGroups;
+using Microsoft.Azure.Management.ManagementGroups;
+using Microsoft.Azure.Management.ManagementGroups.Models;
+using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
+
+namespace Microsoft.Azure.Commands.Resources.ManagementGroups
+{
+ ///
+ /// Get-AzManagementGroupNameAvailability Cmdlet
+ ///
+ [Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "ManagementGroup" + "NameAvailability", DefaultParameterSetName = Constants.ParameterSetNames.ListParameterSet, SupportsShouldProcess = true), OutputType(typeof(PsManagementGroupNameAvailabilityResult))]
+ public class GetAzureRmManagementGroupNameAvailability : AzureManagementGroupsCmdletBase
+ {
+ [Alias("GroupId")]
+ [CmdletParameterBreakingChange("GroupName", ReplaceMentCmdletParameterName = "GroupId", ChangeDescription = "We will replace GroupName with GroupId to make it more clear.")]
+ [Parameter(ParameterSetName = Constants.ParameterSetNames.ListParameterSet, Mandatory = true, HelpMessage = Constants.HelpMessages.GroupName, Position = 0)]
+ public string GroupName { get; set; }
+
+ public override void ExecuteCmdlet()
+ {
+ try
+ {
+ PreregisterSubscription();
+
+ var checkRequest = new CheckNameAvailabilityRequest(name: GroupName, Type.MicrosoftManagementManagementGroups);
+
+ dynamic response = ManagementGroupsApiClient.CheckNameAvailability(checkRequest);
+
+ WriteObject(new PsManagementGroupNameAvailabilityResult(response));
+ }
+ catch(ErrorResponseException ex)
+ {
+ Utility.HandleErrorResponseException(ex);
+ }
+ }
+ }
+}
diff --git a/src/Resources/Resources/ManagementGroups/GetAzureRmManagementGroupSubscription.cs b/src/Resources/Resources/ManagementGroups/GetAzureRmManagementGroupSubscription.cs
new file mode 100644
index 000000000000..4797d4650559
--- /dev/null
+++ b/src/Resources/Resources/ManagementGroups/GetAzureRmManagementGroupSubscription.cs
@@ -0,0 +1,80 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System;
+using System.Linq;
+using System.Management.Automation;
+using Microsoft.Azure.Commands.Resources.ManagementGroups.Common;
+using Microsoft.Azure.Commands.Resources.Models.ManagementGroups;
+using Microsoft.Azure.Management.ManagementGroups;
+using Microsoft.Azure.Management.ManagementGroups.Models;
+using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
+
+namespace Microsoft.Azure.Commands.Resources.ManagementGroups
+{
+ [Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "ManagementGroupSubscription", DefaultParameterSetName = Constants.ParameterSetNames.GroupOperationsParameterSet, SupportsShouldProcess = true), OutputType(typeof(PSManagementGroupSubscription))]
+ public class GetAzureRmManagementGroupSubscription : AzureManagementGroupsCmdletBase
+ {
+ [Alias("GroupId")]
+ [CmdletParameterBreakingChange("GroupName", ReplaceMentCmdletParameterName = "GroupId", ChangeDescription = "We will replace GroupName with GroupId to make it more clear.")]
+ [Parameter(ParameterSetName = Constants.ParameterSetNames.GroupOperationsParameterSet, Mandatory = true,
+ HelpMessage = Constants.HelpMessages.GroupName, Position = 0)]
+ [ValidateNotNullOrEmpty]
+ public string GroupName { get; set; } = null;
+
+ [Parameter(ParameterSetName = Constants.ParameterSetNames.GroupOperationsParameterSet, Mandatory = false,
+ HelpMessage = Constants.HelpMessages.SubscriptionId, Position = 1)]
+ [ValidateNotNullOrEmpty]
+ public string SubscriptionId { get; set; }
+
+ [Parameter(ParameterSetName = Constants.ParameterSetNames.GroupOperationsParameterSet, Mandatory = false)]
+ public SwitchParameter PassThru { get; set; }
+
+ public override void ExecuteCmdlet()
+ {
+ try
+ {
+ if (!string.IsNullOrEmpty(SubscriptionId) && ShouldProcess(
+ string.Format(Resource.NewManagementGroupSubShouldProcessTarget, SubscriptionId, GroupName),
+ string.Format(Resource.NewManagementGroupSubShouldProcessAction, SubscriptionId, GroupName)))
+ {
+ PreregisterSubscription();
+ PreregisterSubscription(SubscriptionId.ToString());
+
+ var response = ManagementGroupsApiClient.ManagementGroupSubscriptions.GetSubscription(GroupName, SubscriptionId);
+
+ WriteObject(new PSManagementGroupSubscription(response));
+ }
+
+ else if(ShouldProcess(
+ string.Format(Resource.NewManagementGroupShouldProcessTarget, GroupName),
+ string.Format(Resource.NewManagementGroupShouldProcessAction, GroupName)))
+ {
+ PreregisterSubscription();
+
+ var responses = ManagementGroupsApiClient.ManagementGroupSubscriptions.GetSubscriptionsUnderManagementGroup(GroupName);
+
+ var items = responses.Select(item => new PSManagementGroupSubscription(item)).ToList();
+
+ WriteObject(items, true);
+ }
+ }
+
+ catch (ErrorResponseException ex)
+ {
+ Utility.HandleErrorResponseException(ex);
+ }
+ }
+ }
+}
diff --git a/src/Resources/Resources/ManagementGroups/GetAzureRmManagementGroupUnderSubscription.cs b/src/Resources/Resources/ManagementGroups/GetAzureRmManagementGroupUnderSubscription.cs
new file mode 100644
index 000000000000..be31b626d237
--- /dev/null
+++ b/src/Resources/Resources/ManagementGroups/GetAzureRmManagementGroupUnderSubscription.cs
@@ -0,0 +1,62 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System;
+using System.Linq;
+using System.Management.Automation;
+using Microsoft.Azure.Commands.Resources.ManagementGroups.Common;
+using Microsoft.Azure.Commands.Resources.Models.ManagementGroups;
+using Microsoft.Azure.Management.ManagementGroups;
+using Microsoft.Azure.Management.ManagementGroups.Models;
+using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
+using Microsoft.WindowsAzure.Commands.Utilities.Common;
+
+namespace Microsoft.Azure.Commands.Resources.ManagementGroups
+{
+ [Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "SubscriptionUnderManagementGroup", DefaultParameterSetName = Constants.ParameterSetNames.GroupOperationsParameterSet, SupportsShouldProcess = true), OutputType(typeof(PSManagementGroupSubscription))]
+ public class GetAzureRmManagementGroupUnderSubscription : AzureManagementGroupsCmdletBase
+ {
+ [Alias("GroupId")]
+ [CmdletParameterBreakingChange("GroupName", ReplaceMentCmdletParameterName = "GroupId", ChangeDescription = "We will replace GroupName with GroupId to make it more clear.")]
+ [Parameter(ParameterSetName = Constants.ParameterSetNames.GroupOperationsParameterSet, Mandatory = true,
+ HelpMessage = Constants.HelpMessages.GroupName, Position = 0)]
+ [ValidateNotNullOrEmpty]
+ public string GroupName { get; set; } = null;
+
+ [Parameter(ParameterSetName = Constants.ParameterSetNames.GroupOperationsParameterSet, Mandatory = false)]
+ public SwitchParameter PassThru { get; set; }
+
+ public override void ExecuteCmdlet()
+ {
+ try
+ {
+ if (ShouldProcess(
+ string.Format(Resource.NewManagementGroupShouldProcessTarget, GroupName),
+ string.Format(Resource.NewManagementGroupShouldProcessAction, GroupName)))
+ {
+ PreregisterSubscription();
+
+ var responses = ManagementGroupsApiClient.ManagementGroupSubscriptions.GetSubscriptionsUnderManagementGroup(GroupName);
+
+ responses.ForEach(response => WriteObject(new PSManagementGroupSubscription(response)));
+ }
+ }
+
+ catch (ErrorResponseException ex)
+ {
+ Utility.HandleErrorResponseException(ex);
+ }
+ }
+ }
+}
diff --git a/src/Resources/Resources/ManagementGroups/NewAzureRmManagementGroup.cs b/src/Resources/Resources/ManagementGroups/NewAzureRmManagementGroup.cs
index 36af4a98fc62..4d45aa72d23f 100644
--- a/src/Resources/Resources/ManagementGroups/NewAzureRmManagementGroup.cs
+++ b/src/Resources/Resources/ManagementGroups/NewAzureRmManagementGroup.cs
@@ -77,11 +77,8 @@ public override void ExecuteCmdlet()
Parent = new CreateParentGroupInfo() {Id = ParentId}
});
- var response = ManagementGroupsApiClient.ManagementGroups.CreateOrUpdate(GroupName, createGroupRequest);
- var managementGroup =
- ((JObject) response).ToObject(
- JsonSerializer.Create(ManagementGroupsApiClient.DeserializationSettings));
- WriteObject(new PSManagementGroup(managementGroup));
+ var response = (ManagementGroup)ManagementGroupsApiClient.ManagementGroups.CreateOrUpdate(GroupName, createGroupRequest);
+ WriteObject(new PSManagementGroup(response));
}
}
catch (ErrorResponseException ex)
diff --git a/src/Resources/Resources/ManagementGroups/NewAzureRmManagementGroupSubscription.cs b/src/Resources/Resources/ManagementGroups/NewAzureRmManagementGroupSubscription.cs
index 342bbe78fdfc..556769b9c43e 100644
--- a/src/Resources/Resources/ManagementGroups/NewAzureRmManagementGroupSubscription.cs
+++ b/src/Resources/Resources/ManagementGroups/NewAzureRmManagementGroupSubscription.cs
@@ -15,6 +15,7 @@
using System;
using System.Management.Automation;
using Microsoft.Azure.Commands.Resources.ManagementGroups.Common;
+using Microsoft.Azure.Commands.Resources.Models.ManagementGroups;
using Microsoft.Azure.Management.ManagementGroups;
using Microsoft.Azure.Management.ManagementGroups.Models;
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
@@ -24,7 +25,7 @@ namespace Microsoft.Azure.Commands.Resources.ManagementGroups
///
/// Add-AzManagementGroupSubscription Cmdlet
///
- [Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "ManagementGroupSubscription",DefaultParameterSetName = Constants.ParameterSetNames.GroupOperationsParameterSet,SupportsShouldProcess = true), OutputType(typeof(bool))]
+ [Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "ManagementGroupSubscription",DefaultParameterSetName = Constants.ParameterSetNames.GroupOperationsParameterSet,SupportsShouldProcess = true), OutputType(typeof(PSManagementGroupSubscription))]
public class NewAzureRmManagementGroupSubscription : AzureManagementGroupsCmdletBase
{
[Alias("GroupId")]
@@ -53,12 +54,9 @@ public override void ExecuteCmdlet()
PreregisterSubscription();
PreregisterSubscription(SubscriptionId.ToString());
- ManagementGroupsApiClient.ManagementGroupSubscriptions.Create(GroupName, SubscriptionId.ToString());
+ var response = ManagementGroupsApiClient.ManagementGroupSubscriptions.Create(GroupName, SubscriptionId.ToString());
- if (PassThru.IsPresent)
- {
- WriteObject(true);
- }
+ WriteObject(new PSManagementGroupSubscription(response));
}
}
catch (ErrorResponseException ex)
diff --git a/src/Resources/Resources/ManagementGroups/NewAzureRmManagementGroupsHierarchySettings.cs b/src/Resources/Resources/ManagementGroups/NewAzureRmManagementGroupsHierarchySettings.cs
new file mode 100644
index 000000000000..ccd006da950e
--- /dev/null
+++ b/src/Resources/Resources/ManagementGroups/NewAzureRmManagementGroupsHierarchySettings.cs
@@ -0,0 +1,71 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System.Management.Automation;
+using Microsoft.Azure.Commands.Resources.ManagementGroups.Common;
+using Microsoft.Azure.Commands.Resources.Models.ManagementGroups;
+using Microsoft.Azure.Management.ManagementGroups;
+using Microsoft.Azure.Management.ManagementGroups.Models;
+using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
+
+namespace Microsoft.Azure.Commands.Resources.ManagementGroups
+{
+ [Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "ManagementGroupHierarchySetting", DefaultParameterSetName = Constants.ParameterSetNames.GroupOperationsParameterSet, SupportsShouldProcess = true), OutputType(typeof(PSHierarchySettings))]
+ public class NewAzureRmManagementGroupsHierarchySettings : AzureManagementGroupsCmdletBase
+ {
+ [Alias("GroupId")]
+ [CmdletParameterBreakingChange("GroupName", ReplaceMentCmdletParameterName = "GroupId", ChangeDescription = "We will replace GroupName with GroupId to make it more clear.")]
+ [Parameter(ParameterSetName = Constants.ParameterSetNames.GroupOperationsParameterSet, Mandatory = true, HelpMessage = Constants.HelpMessages.GroupName, Position = 0)]
+ [Parameter(ParameterSetName = Constants.ParameterSetNames.ParentGroupParameterSet, Mandatory = true,
+ HelpMessage = Constants.HelpMessages.ParentObject)]
+ [ValidateNotNullOrEmpty]
+ public string GroupName { get; set; }
+
+ [Alias("RequireAuthorizationForGroupCreation")]
+ [Parameter(ParameterSetName = Constants.ParameterSetNames.GroupOperationsParameterSet, Mandatory = false,
+ HelpMessage = Constants.HelpMessages.DisplayName)]
+ [Parameter(ParameterSetName = Constants.ParameterSetNames.ParentGroupParameterSet, Mandatory = false,
+ HelpMessage = Constants.HelpMessages.DisplayName, ValueFromPipeline = false)]
+ [ValidateNotNullOrEmpty]
+ public bool Authorization { get; set; } = false;
+
+ [Alias("DefaultMG")]
+ [Parameter(ParameterSetName = Constants.ParameterSetNames.GroupOperationsParameterSet, Mandatory = false,
+ HelpMessage = Constants.HelpMessages.ParentId)]
+ [ValidateNotNullOrEmpty]
+ public string DefaultManagementGroup { get; set; } = null;
+
+ public override void ExecuteCmdlet()
+ {
+ try
+ {
+ if (ShouldProcess(
+ string.Format(Resource.NewManagementGroupShouldProcessTarget, GroupName),
+ string.Format(Resource.NewManagementGroupShouldProcessAction, GroupName)))
+ {
+ PreregisterSubscription();
+
+ var response = ManagementGroupsApiClient.HierarchySettings.CreateOrUpdate(GroupName, new CreateOrUpdateSettingsRequest(Authorization, DefaultManagementGroup));
+
+ WriteObject(new PSHierarchySettings(response));
+ }
+
+ }
+ catch (ErrorResponseException ex)
+ {
+ Utility.HandleErrorResponseException(ex);
+ }
+ }
+ }
+}
diff --git a/src/Resources/Resources/ManagementGroups/RemoveAzureRmManagementGroup.cs b/src/Resources/Resources/ManagementGroups/RemoveAzureRmManagementGroup.cs
index a1ce3ed18ddd..a35bdc9180c1 100644
--- a/src/Resources/Resources/ManagementGroups/RemoveAzureRmManagementGroup.cs
+++ b/src/Resources/Resources/ManagementGroups/RemoveAzureRmManagementGroup.cs
@@ -59,11 +59,11 @@ public override void ExecuteCmdlet()
{
PreregisterSubscription();
- ManagementGroupsApiClient.ManagementGroups.Delete(GroupName);
+ dynamic response = ManagementGroupsApiClient.ManagementGroups.Delete(GroupName);
if (PassThru.IsPresent)
{
- WriteObject(true);
+ WriteObject(response);
}
}
}
diff --git a/src/Resources/Resources/ManagementGroups/RemoveAzureRmManagementGroupHierarchySettings.cs b/src/Resources/Resources/ManagementGroups/RemoveAzureRmManagementGroupHierarchySettings.cs
new file mode 100644
index 000000000000..1ec8a44a5c49
--- /dev/null
+++ b/src/Resources/Resources/ManagementGroups/RemoveAzureRmManagementGroupHierarchySettings.cs
@@ -0,0 +1,56 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System.Management.Automation;
+using Microsoft.Azure.Commands.Resources.ManagementGroups.Common;
+using Microsoft.Azure.Commands.Resources.Models.ManagementGroups;
+using Microsoft.Azure.Management.ManagementGroups;
+using Microsoft.Azure.Management.ManagementGroups.Models;
+using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
+
+
+namespace Microsoft.Azure.Commands.Resources.ManagementGroups
+{
+ [Cmdlet("Remove", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "ManagementGroupHierarchySetting", DefaultParameterSetName = Constants.ParameterSetNames.GroupOperationsParameterSet, SupportsShouldProcess = true), OutputType(typeof(PSHierarchySettings))]
+ public class RemoveAzureRmManagementGroupHierarchySettings : AzureManagementGroupsCmdletBase
+ {
+ [Alias("GroupId")]
+ [CmdletParameterBreakingChange("GroupName", ReplaceMentCmdletParameterName = "GroupId", ChangeDescription = "We will replace GroupName with GroupId to make it more clear.")]
+ [Parameter(ParameterSetName = Constants.ParameterSetNames.GroupOperationsParameterSet, Mandatory = true, HelpMessage = Constants.HelpMessages.GroupName, Position = 0)]
+ [Parameter(ParameterSetName = Constants.ParameterSetNames.ParentGroupParameterSet, Mandatory = true,
+ HelpMessage = Constants.HelpMessages.ParentObject)]
+ [ValidateNotNullOrEmpty]
+ public string GroupName { get; set; }
+
+ public override void ExecuteCmdlet()
+ {
+ try
+ {
+ if (ShouldProcess(
+ string.Format(Resource.NewManagementGroupShouldProcessTarget, GroupName),
+ string.Format(Resource.NewManagementGroupShouldProcessAction, GroupName)))
+ {
+ PreregisterSubscription();
+
+ ManagementGroupsApiClient.HierarchySettings.Delete(GroupName);
+
+ }
+ }
+ catch (ErrorResponseException ex)
+ {
+ Utility.HandleErrorResponseException(ex);
+ }
+ }
+ }
+}
diff --git a/src/Resources/Resources/ManagementGroups/StartAzureRmManagementGroupBackfill.cs b/src/Resources/Resources/ManagementGroups/StartAzureRmManagementGroupBackfill.cs
new file mode 100644
index 000000000000..6157679b0a38
--- /dev/null
+++ b/src/Resources/Resources/ManagementGroups/StartAzureRmManagementGroupBackfill.cs
@@ -0,0 +1,44 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System.Linq;
+using System.Management.Automation;
+using Microsoft.Azure.Commands.Resources.ManagementGroups.Common;
+using Microsoft.Azure.Commands.Resources.Models.ManagementGroups;
+using Microsoft.Azure.Management.ManagementGroups;
+using Microsoft.Azure.Management.ManagementGroups.Models;
+using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
+
+namespace Microsoft.Azure.Commands.Resources.ManagementGroups
+{
+ [Cmdlet("Start", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "TenantBackfill", SupportsShouldProcess = true), OutputType(typeof(PSBackfillStatus))]
+ public class StartAzureRmManagementGroupBackfill : AzureManagementGroupsCmdletBase
+ {
+ public override void ExecuteCmdlet()
+ {
+ try
+ {
+ PreregisterSubscription();
+
+ var getRequest = ManagementGroupsApiClient.StartTenantBackfill();
+
+ WriteObject(new PSBackfillStatus(getRequest));
+ }
+ catch (ErrorResponseException ex)
+ {
+ Utility.HandleErrorResponseException(ex);
+ }
+ }
+ }
+}
diff --git a/src/Resources/Resources/ManagementGroups/UpdateAzureRmManagementGroup.cs b/src/Resources/Resources/ManagementGroups/UpdateAzureRmManagementGroup.cs
index 25ca0c3a2ec6..20ba46f52a90 100644
--- a/src/Resources/Resources/ManagementGroups/UpdateAzureRmManagementGroup.cs
+++ b/src/Resources/Resources/ManagementGroups/UpdateAzureRmManagementGroup.cs
@@ -13,11 +13,13 @@
// ----------------------------------------------------------------------------------
using System.Management.Automation;
+using Microsoft.Azure.Commands.ResourceManager.Cmdlets.Extensions;
using Microsoft.Azure.Commands.Resources.ManagementGroups.Common;
using Microsoft.Azure.Commands.Resources.Models.ManagementGroups;
using Microsoft.Azure.Management.ManagementGroups;
using Microsoft.Azure.Management.ManagementGroups.Models;
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
+using Newtonsoft.Json.Linq;
namespace Microsoft.Azure.Commands.Resources.ManagementGroups
{
@@ -89,7 +91,7 @@ public override void ExecuteCmdlet()
PatchManagementGroupRequest patchGroupRequest =
new PatchManagementGroupRequest(DisplayName, ParentId);
- var response = ManagementGroupsApiClient.ManagementGroups.Update(GroupName, patchGroupRequest);
+ dynamic response = ManagementGroupsApiClient.ManagementGroups.Update(GroupName, patchGroupRequest);
WriteObject(new PSManagementGroup(response));
}
}
diff --git a/src/Resources/Resources/ManagementGroups/UpdateAzureRmManagementGroupsHierarchySettings.cs b/src/Resources/Resources/ManagementGroups/UpdateAzureRmManagementGroupsHierarchySettings.cs
new file mode 100644
index 000000000000..25ccc1172b99
--- /dev/null
+++ b/src/Resources/Resources/ManagementGroups/UpdateAzureRmManagementGroupsHierarchySettings.cs
@@ -0,0 +1,71 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System.Management.Automation;
+using Microsoft.Azure.Commands.Resources.ManagementGroups.Common;
+using Microsoft.Azure.Commands.Resources.Models.ManagementGroups;
+using Microsoft.Azure.Management.ManagementGroups;
+using Microsoft.Azure.Management.ManagementGroups.Models;
+using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
+
+namespace Microsoft.Azure.Commands.Resources.ManagementGroups
+{
+ [Cmdlet("Update", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "ManagementGroupHierarchySetting", DefaultParameterSetName = Constants.ParameterSetNames.GroupOperationsParameterSet, SupportsShouldProcess = true), OutputType(typeof(PSHierarchySettings))]
+ public class UpdateAzureRmManagementGroupsHierarchySettings : AzureManagementGroupsCmdletBase
+ {
+ [Alias("GroupId")]
+ [CmdletParameterBreakingChange("GroupName", ReplaceMentCmdletParameterName = "GroupId", ChangeDescription = "We will replace GroupName with GroupId to make it more clear.")]
+ [Parameter(ParameterSetName = Constants.ParameterSetNames.GroupOperationsParameterSet, Mandatory = true, HelpMessage = Constants.HelpMessages.GroupName, Position = 0)]
+ [Parameter(ParameterSetName = Constants.ParameterSetNames.ParentGroupParameterSet, Mandatory = true,
+ HelpMessage = Constants.HelpMessages.ParentObject)]
+ [ValidateNotNullOrEmpty]
+ public string GroupName { get; set; }
+
+ [Alias("RequireAuthorizationForGroupCreation")]
+ [Parameter(ParameterSetName = Constants.ParameterSetNames.GroupOperationsParameterSet, Mandatory = false,
+ HelpMessage = Constants.HelpMessages.DisplayName)]
+ [Parameter(ParameterSetName = Constants.ParameterSetNames.ParentGroupParameterSet, Mandatory = false,
+ HelpMessage = Constants.HelpMessages.DisplayName, ValueFromPipeline = false)]
+ [ValidateNotNullOrEmpty]
+ public bool Authorization { get; set; } = false;
+
+ [Alias("DefaultMG")]
+ [Parameter(ParameterSetName = Constants.ParameterSetNames.GroupOperationsParameterSet, Mandatory = false,
+ HelpMessage = Constants.HelpMessages.ParentId)]
+ [ValidateNotNullOrEmpty]
+ public string DefaultManagementGroup { get; set; } = null;
+
+
+ public override void ExecuteCmdlet()
+ {
+ try
+ {
+ if (ShouldProcess(
+ string.Format(Resource.NewManagementGroupShouldProcessTarget, GroupName),
+ string.Format(Resource.NewManagementGroupShouldProcessAction, GroupName)))
+ {
+ PreregisterSubscription();
+
+ var response = ManagementGroupsApiClient.HierarchySettings.Update(GroupName, new CreateOrUpdateSettingsRequest(Authorization, DefaultManagementGroup));
+
+ WriteObject(new PSHierarchySettings(response));
+ }
+ }
+ catch (ErrorResponseException ex)
+ {
+ Utility.HandleErrorResponseException(ex);
+ }
+ }
+ }
+}
diff --git a/src/Resources/Resources/Models.ManagementGroups/PSBackfillStatus.cs b/src/Resources/Resources/Models.ManagementGroups/PSBackfillStatus.cs
new file mode 100644
index 000000000000..1041ecbe4662
--- /dev/null
+++ b/src/Resources/Resources/Models.ManagementGroups/PSBackfillStatus.cs
@@ -0,0 +1,34 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using Microsoft.Azure.Management.ManagementGroups.Models;
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace Microsoft.Azure.Commands.Resources.Models.ManagementGroups
+{
+ public class PSBackfillStatus
+ {
+ public string TenantId { get; set; }
+
+ public string Status { get; set; }
+
+ public PSBackfillStatus(TenantBackfillStatusResult tenantBackfillStatusResult)
+ {
+ TenantId = tenantBackfillStatusResult.TenantId;
+ Status = tenantBackfillStatusResult.Status.ToString();
+ }
+ }
+}
diff --git a/src/Resources/Resources/Models.ManagementGroups/PSEntityInfo.cs b/src/Resources/Resources/Models.ManagementGroups/PSEntityInfo.cs
new file mode 100644
index 000000000000..68db080cd999
--- /dev/null
+++ b/src/Resources/Resources/Models.ManagementGroups/PSEntityInfo.cs
@@ -0,0 +1,66 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System.Collections.Generic;
+using System.Linq;
+using Microsoft.Azure.Management.ManagementGroups.Models;
+
+namespace Microsoft.Azure.Commands.Resources.Models.ManagementGroups
+{
+ public class PSEntityInfo
+ {
+ public string Id { get; private set; }
+
+ public string Type { get; private set; }
+
+ public string Name { get; private set; }
+
+ public string TenantId { get; private set; }
+
+ public string DisplayName { get; private set; }
+
+ public string Parent { get; private set; }
+
+ public string Permissions { get; private set; }
+
+ public string InheritedPermissions { get; private set; }
+
+ public int? NumberOfDescendants { get; private set; }
+
+ //public int? NumberOfChildren { get; private set; }
+
+ //public int? NumberOfChildGroups { get; private set; }
+
+ public IList ParentDisplayNameChain { get; private set; }
+
+ public IList ParentNameChain { get; private set; }
+
+ public PSEntityInfo(EntityInfo entityInfo)
+ {
+ Id = entityInfo.Id;
+ Type = entityInfo.Type;
+ Name = entityInfo.Name;
+ TenantId = entityInfo.TenantId;
+ DisplayName = entityInfo.DisplayName;
+ Parent = entityInfo.Parent.Id;
+ Permissions = entityInfo.Permissions;
+ InheritedPermissions = entityInfo.InheritedPermissions;
+ NumberOfDescendants = entityInfo.NumberOfDescendants;
+ //NumberOfChildren = entityInfo.NumberOfChildren;
+ //NumberOfChildGroups = entityInfo.NumberOfChildGroups;
+ ParentDisplayNameChain = entityInfo.ParentDisplayNameChain;
+ ParentNameChain = entityInfo.ParentNameChain;
+ }
+ }
+}
diff --git a/src/Resources/Resources/Models.ManagementGroups/PSHierarchySettings.cs b/src/Resources/Resources/Models.ManagementGroups/PSHierarchySettings.cs
new file mode 100644
index 000000000000..56c9d61768c4
--- /dev/null
+++ b/src/Resources/Resources/Models.ManagementGroups/PSHierarchySettings.cs
@@ -0,0 +1,49 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+using System.Collections.Generic;
+using System.Linq;
+using Microsoft.Azure.Management.ManagementGroups.Models;
+
+namespace Microsoft.Azure.Commands.Resources.Models.ManagementGroups
+{
+ public class PSHierarchySettings
+ {
+ public string Id { get; private set; }
+
+ public string Type { get; private set; }
+
+ public string Name { get; private set; }
+
+ public string TenantId { get; set; }
+
+ public bool? RequireAuthorizationForGroupCreation { get; set; }
+
+ public string DefaultManagementGroup { get; set; }
+
+ public PSHierarchySettings()
+ {
+ }
+
+ public PSHierarchySettings(HierarchySettings hierarchySettings)
+ {
+ Id = hierarchySettings.Id;
+ Type = hierarchySettings.Type;
+ Name = hierarchySettings.Name;
+ TenantId = hierarchySettings.TenantId;
+ RequireAuthorizationForGroupCreation = hierarchySettings.RequireAuthorizationForGroupCreation;
+ DefaultManagementGroup = hierarchySettings.DefaultManagementGroup;
+
+ }
+ }
+}
diff --git a/src/Resources/Resources/Models.ManagementGroups/PSManagementGroupSubscription.cs b/src/Resources/Resources/Models.ManagementGroups/PSManagementGroupSubscription.cs
new file mode 100644
index 000000000000..e6483cae4b72
--- /dev/null
+++ b/src/Resources/Resources/Models.ManagementGroups/PSManagementGroupSubscription.cs
@@ -0,0 +1,49 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System.Collections.Generic;
+using System.Linq;
+using Microsoft.Azure.Management.ManagementGroups.Models;
+
+namespace Microsoft.Azure.Commands.Resources.Models.ManagementGroups
+{
+ public class PSManagementGroupSubscription
+ {
+ public string Id { get; private set; }
+
+ public string Type { get; private set; }
+
+ public string Tenant { get; private set; }
+
+ public string DisplayName { get; private set; }
+
+ public string Parent { get; set; }
+
+ public string State { get; private set; }
+
+ public PSManagementGroupSubscription()
+ {
+ }
+
+ public PSManagementGroupSubscription(SubscriptionUnderManagementGroup subscriptionUnderManagementGroup)
+ {
+ Id = subscriptionUnderManagementGroup.Id;
+ Type = subscriptionUnderManagementGroup.Type;
+ Tenant = subscriptionUnderManagementGroup.Tenant;
+ DisplayName = subscriptionUnderManagementGroup.DisplayName;
+ Parent = subscriptionUnderManagementGroup.Parent.Id;
+ State = subscriptionUnderManagementGroup.State;
+ }
+ }
+}
diff --git a/src/Resources/Resources/Models.ManagementGroups/PsManagementGroupNameAvailabilityResult.cs b/src/Resources/Resources/Models.ManagementGroups/PsManagementGroupNameAvailabilityResult.cs
new file mode 100644
index 000000000000..2f8acdf8b89e
--- /dev/null
+++ b/src/Resources/Resources/Models.ManagementGroups/PsManagementGroupNameAvailabilityResult.cs
@@ -0,0 +1,36 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System.Collections.Generic;
+using System.Linq;
+using Microsoft.Azure.Management.ManagementGroups.Models;
+
+namespace Microsoft.Azure.Commands.Resources.Models.ManagementGroups
+{
+ public class PsManagementGroupNameAvailabilityResult
+ {
+ public bool? NameAvailable { get; private set; }
+
+ public string Reason { get; private set; }
+
+ public string Message { get; private set; }
+
+ public PsManagementGroupNameAvailabilityResult(CheckNameAvailabilityResult result)
+ {
+ NameAvailable = result.NameAvailable;
+ Reason = result.Reason.ToString();
+ Message = result.Message;
+ }
+ }
+}
diff --git a/src/Resources/Resources/Resources.csproj b/src/Resources/Resources/Resources.csproj
index f3cafa999bf2..40d7ac55c598 100644
--- a/src/Resources/Resources/Resources.csproj
+++ b/src/Resources/Resources/Resources.csproj
@@ -11,9 +11,13 @@
$(LegacyAssemblyPrefix)$(PsModuleName)
+
+
+
+
-
+
diff --git a/src/Resources/Resources/help/Get-AzManagementGroup.md b/src/Resources/Resources/help/Get-AzManagementGroup.md
index 15fff8224fa8..449836ae0436 100644
--- a/src/Resources/Resources/help/Get-AzManagementGroup.md
+++ b/src/Resources/Resources/help/Get-AzManagementGroup.md
@@ -24,7 +24,7 @@ Get-AzManagementGroup [-GroupName] [-DefaultProfile ] [-Expand] [-Recurse] [-WhatIf]
+[-Confirm] []
+```
+
+## DESCRIPTION
+The **Get-AzManagementGroupEntity** cmdlet gets all entities (Management Groups and Subscriptions) under the current tenant.
+## EXAMPLES
+
+### Example 1: Get all Management Groups
+```powershell
+Get-AzManagementGroupEntity
+```
+
+```output
+Id : /providers/Microsoft.Management/managementGroups/TestGroup
+Type : Microsoft.Management/managementGroups
+Name : TestGroup
+TenantId : 6b2064b9-34bd-46e6-9092-52f2dd5f7fc0
+DisplayName : TestGroupDisplayName
+
+Id : /providers/Microsoft.Management/managementGroups/TestGroupChild
+Type : /providers/Microsoft.Management/managementGroups
+Name : TestGroupChild
+TenantId : 6b2064b9-34bd-46e6-9092-52f2dd5f7fc0
+DisplayName : TestGroupChildDisplayName
+```
+
+### CommonParameters
+This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
+
+## INPUTS
+
+### None
+
+## OUTPUTS
+
+### Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSEntityInfo
+
+### Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSEntityInfo
+
+## NOTES
+
+## RELATED LINKS
+
diff --git a/src/Resources/Resources/help/Get-AzManagementGroupHierarchySetting.md b/src/Resources/Resources/help/Get-AzManagementGroupHierarchySetting.md
new file mode 100644
index 000000000000..b8f91d022d17
--- /dev/null
+++ b/src/Resources/Resources/help/Get-AzManagementGroupHierarchySetting.md
@@ -0,0 +1,72 @@
+---
+external help file: Microsoft.Azure.PowerShell.Cmdlets.Resources.dll-Help.xml
+Module Name: Az.Resources
+online version: https://docs.microsoft.com/powershell/module/az.resources/get-azmanagementgroup/
+schema: 2.0.0
+---
+
+# Get-AzManagementGroupHierarchySetting
+
+## SYNOPSIS
+Gets the Hierarchy Settings under the current tenant
+
+## SYNTAX
+
+### GetOperation
+```
+Get-AzManagementGroupHierarchySettings [-GroupName] [-DefaultProfile ]
+```
+
+## DESCRIPTION
+The **Get-AzManagementGroupHierarchySetting** cmdlet Gets all hierarchy settings under the current tenant using the **GroupName** parameter.
+
+## EXAMPLES
+
+### Example 1: Get Hierarchy Settings
+```powershell
+Get-AzManagementGroupHierarchySetting -GroupName c7a87cda-9a66-4920-b0f8-869baa04efe0
+```
+
+```output
+Id : /providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default
+Type : Microsoft.Management/managementGroups/settings
+Name : default
+TenantId : 6b2064b9-34bd-46e6-9092-52f2dd5f7fc0
+RequireAuthorizationForGroupCreation : true
+DefaultManagementGroup : TestGroup
+```
+
+## PARAMETERS
+
+### -GroupName
+Management Group Id of the Root Management Group
+
+```yaml
+Type: System.String
+Parameter Sets: GetOperation
+Aliases: GroupId
+
+Required: True
+Position: 0
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### CommonParameters
+This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
+
+## INPUTS
+
+### None
+
+## OUTPUTS
+
+### Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSHierarchySettings
+
+### Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSHierarchySettings
+
+## NOTES
+
+## RELATED LINKS
+
diff --git a/src/Resources/Resources/help/Get-AzManagementGroupNameAvailability.md b/src/Resources/Resources/help/Get-AzManagementGroupNameAvailability.md
new file mode 100644
index 000000000000..76aee4db2964
--- /dev/null
+++ b/src/Resources/Resources/help/Get-AzManagementGroupNameAvailability.md
@@ -0,0 +1,67 @@
+---
+external help file: Microsoft.Azure.PowerShell.Cmdlets.Resources.dll-Help.xml
+Module Name: Az.Resources
+online version: https://docs.microsoft.com/powershell/module/az.resources/new-azmanagementgroupsubscription/
+schema: 2.0.0
+---
+
+# Get-AzManagementGroupNameAvailability
+
+## SYNOPSIS
+Checks if the Management Group name is available in the Tenant and a valid name.
+
+## SYNTAX
+
+```
+Get-AzManagementGroupNameAvailability
+```
+
+## DESCRIPTION
+The **Get-AzManagementGroupNameAvailability** checks if a Management Group Name is Available and Valid
+
+## EXAMPLES
+
+### Example 1: Get the Name Availability for a Valid Name
+```powershell
+Get-AzManagementGroupNameAvailability -GroupName "testMG"
+```
+
+```output
+Message :
+NameAvailable : True
+Reason :
+```
+
+### Example 2: Get the Name Availability for a name that is already taken
+```powershell
+Get-AzManagementGroupNameAvailability -GroupName "testMG3"
+```
+
+```output
+Message : The group with the specified name already exists
+NameAvailable : False
+Reason : AlreadyExists
+```
+
+### Example 3: Get the Name Availability for a name that contains invalid characters
+```powershell
+Get-AzManagementGroupNameAvailability -GroupName "testMG!"
+```
+
+```output
+Message : The provided management group name has invalid characters
+NameAvailable : False
+Reason : Invalid
+```
+
+## INPUTS
+
+### None
+
+## OUTPUTS
+
+### Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroupNameAvailabilityResult
+
+## NOTES
+
+## RELATED LINKS
diff --git a/src/Resources/Resources/help/Get-AzManagementGroupSubscription.md b/src/Resources/Resources/help/Get-AzManagementGroupSubscription.md
new file mode 100644
index 000000000000..6e03e6795e72
--- /dev/null
+++ b/src/Resources/Resources/help/Get-AzManagementGroupSubscription.md
@@ -0,0 +1,179 @@
+---
+external help file: Microsoft.Azure.PowerShell.Cmdlets.Resources.dll-Help.xml
+Module Name: Az.Resources
+online version: https://docs.microsoft.com/powershell/module/az.resources/new-azmanagementgroupsubscription/
+schema: 2.0.0
+---
+
+# Get-AzManagementGroupSubscription
+
+## SYNOPSIS
+Gets the details of Subscription(s) under a Management Group.
+
+## SYNTAX
+
+### ListOperation
+```
+Get-AzManagementGroupSubscription [-GroupName] [-PassThru][-DefaultProfile ] [-WhatIf] [-Confirm] []
+```
+
+
+### GetOperation
+```
+Get-AzManagementGroupSubscription [-GroupName] [-SubscriptionId] [-PassThru]
+ [-DefaultProfile ] [-WhatIf] [-Confirm] []
+```
+
+## DESCRIPTION
+The **Get-AzManagementGroupSubscription** cmdlet gets the subscription info under a Management Group. Providing the **SubscriptionId** and **GroupName** will give only the Subscription details for that subscription. Providing only the **GroupName** will list the details for all Subscriptions under the Management Group.
+
+## EXAMPLES
+
+### Example 1: Get Subscription Details under a Management Group
+```powershell
+Get-AzManagementGroupSubscription -GroupName "TestGroup" -SubscriptionId 5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de
+```
+
+```output
+Name : 5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de
+Type : Microsoft.Management/managementGroups/subscriptions
+Id : /providers/Microsoft.Management/managementGroups/TestGroup/subscriptions/5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de
+TenantId : 14307de0-5e6f-46cf-b2ba-64a062964d30
+DisplayName : Visual Studio Enterprise Subscription
+ParentId : /providers/Microsoft.Management/managementGroups/TestGroup
+State : Active
+```
+
+### Example 2: Get all Subscription Details under a Management Group
+```powershell
+Get-AzManagementGroupSubscription -GroupName "TestGroup"
+```
+
+```output
+Name : 5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de
+Type : Microsoft.Management/managementGroups/subscriptions
+Id : /providers/Microsoft.Management/managementGroups/TestGroup/subscriptions/5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de
+TenantId : 14307de0-5e6f-46cf-b2ba-64a062964d30
+DisplayName : Visual Studio Enterprise Subscription
+ParentId : /providers/Microsoft.Management/managementGroups/TestGroup
+State : Active
+
+Name : 2120692d-35c3-44c8-81f5-631fa7351726
+Type : Microsoft.Management/managementGroups/subscriptions
+Id : /providers/Microsoft.Management/managementGroups/TestGroup/subscriptions/2120692d-35c3-44c8-81f5-631fa7351726
+TenantId : 14307de0-5e6f-46cf-b2ba-64a062964d30
+DisplayName : Test Subscription
+ParentId : /providers/Microsoft.Management/managementGroups/TestGroup
+State : Active
+
+```
+
+
+
+## PARAMETERS
+
+### -DefaultProfile
+The credentials, account, tenant, and subscription used for communication with Azure.
+
+```yaml
+Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer
+Parameter Sets: (All)
+Aliases: AzContext, AzureRmContext, AzureCredential
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -GroupName
+Management Group Id
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases: GroupId
+
+Required: True
+Position: 0
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -PassThru
+Return `true` on successful execution
+
+```yaml
+Type: System.Management.Automation.SwitchParameter
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -SubscriptionId
+Subscription Id of the subscription associated with the management
+
+```yaml
+Type: System.Guid
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: 1
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -Confirm
+Prompts you for confirmation before running the cmdlet.
+
+```yaml
+Type: System.Management.Automation.SwitchParameter
+Parameter Sets: (All)
+Aliases: cf
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -WhatIf
+Shows what would happen if the cmdlet runs.
+The cmdlet is not run.
+
+```yaml
+Type: System.Management.Automation.SwitchParameter
+Parameter Sets: (All)
+Aliases: wi
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### CommonParameters
+This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
+
+## INPUTS
+
+### None
+
+## OUTPUTS
+
+### Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroupSubscription
+
+## NOTES
+
+## RELATED LINKS
diff --git a/src/Resources/Resources/help/Get-AzTenantBackfillStatus.md b/src/Resources/Resources/help/Get-AzTenantBackfillStatus.md
new file mode 100644
index 000000000000..3259f6617774
--- /dev/null
+++ b/src/Resources/Resources/help/Get-AzTenantBackfillStatus.md
@@ -0,0 +1,44 @@
+---
+external help file: Microsoft.Azure.PowerShell.Cmdlets.Resources.dll-Help.xml
+Module Name: Az.Resources
+online version: https://docs.microsoft.com/powershell/module/az.resources/new-azmanagementgroupsubscription/
+schema: 2.0.0
+---
+
+# Get-AzTenantBackfillStatus
+
+## SYNOPSIS
+Get the current Tenant Backfill Subscription Status
+
+## SYNTAX
+
+```
+Get-AzTenantBackfillStatus
+```
+
+## DESCRIPTION
+The **Get-AzTenantBackfillStatus** gets the Backfill Status for the current Tenant
+
+## EXAMPLES
+
+### Example 1: Get the Backfill Tenant Status
+```powershell
+Get-AzTenantBackfillStatus
+```
+
+```output
+Name : Completed
+Type : c7a87cda-9a66-4920-b0f8-869baa04efe0
+```
+
+## INPUTS
+
+### None
+
+## OUTPUTS
+
+### Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSBackfillStatus
+
+## NOTES
+
+## RELATED LINKS
diff --git a/src/Resources/Resources/help/New-AzManagementGroup.md b/src/Resources/Resources/help/New-AzManagementGroup.md
index 4e0f3c27498b..932b1ad41aa1 100644
--- a/src/Resources/Resources/help/New-AzManagementGroup.md
+++ b/src/Resources/Resources/help/New-AzManagementGroup.md
@@ -25,7 +25,7 @@ New-AzManagementGroup [-GroupName] [-DisplayName ] [-DefaultPro
```
## DESCRIPTION
-The **New-AzManagementGroup** cmdlet creates a management group.
+The **New-AzManagementGroup** cmdlet creates a management group with name **GroupName**. The **DisplayName** and **ParentId** can also be set when creating a new Management Group.
## EXAMPLES
diff --git a/src/Resources/Resources/help/New-AzManagementGroupHierarchySetting.md b/src/Resources/Resources/help/New-AzManagementGroupHierarchySetting.md
new file mode 100644
index 000000000000..9ffa9afc26c9
--- /dev/null
+++ b/src/Resources/Resources/help/New-AzManagementGroupHierarchySetting.md
@@ -0,0 +1,132 @@
+---
+external help file: Microsoft.Azure.PowerShell.Cmdlets.Resources.dll-Help.xml
+Module Name: Az.Resources
+online version: https://docs.microsoft.com/powershell/module/az.resources/get-azmanagementgroup/
+schema: 2.0.0
+---
+
+# New-AzManagementGroupHierarchySetting
+
+## SYNOPSIS
+Creates Hierarchy Settings under the current tenant
+
+## SYNTAX
+
+### CreateOperation
+```
+New-AzManagementGroupHierarchySetting [-GroupName] [-DefaultProfile ] [-Authorization] [-DefaultManagementGroup]
+```
+
+## DESCRIPTION
+The **New-AzManagementGroupHierarchySetting** cmdlet creates new hierarchy settings under the current tenant. Requiring **Authorization** and setting the **DefaultManagementGroup** that new groups get created under can be set.
+
+## EXAMPLES
+
+### Example 1: Create a Hierarchy Setting for an Authorization Requirement for Group Creation
+```powershell
+New-AzManagementGroupHierarchySetting -GroupName c7a87cda-9a66-4920-b0f8-869baa04efe0 -Authorization True
+```
+
+```output
+Id : /providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default
+Type : Microsoft.Management/managementGroups/settings
+Name : default
+TenantId : 6b2064b9-34bd-46e6-9092-52f2dd5f7fc0
+RequireAuthorizationForGroupCreation : true
+DefaultManagementGroup :
+```
+
+### Example 2: Create a Hierarchy Setting for the default Management Group new Groups get placed under
+```powershell
+New-AzManagementGroupHierarchySetting -GroupName c7a87cda-9a66-4920-b0f8-869baa04efe0 -DefaultManagementGroup TestGroup
+```
+
+```output
+Id : /providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default
+Type : Microsoft.Management/managementGroups/settings
+Name : default
+TenantId : 6b2064b9-34bd-46e6-9092-52f2dd5f7fc0
+RequireAuthorizationForGroupCreation : false
+DefaultManagementGroup : TestGroup
+```
+
+### Example 3: Create both Hierarchy Settings
+```powershell
+New-AzManagementGroupHierarchySetting -GroupName c7a87cda-9a66-4920-b0f8-869baa04efe0 -Authorization True -DefaultManagementGroup TestGroup
+```
+
+```output
+Id : /providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default
+Type : Microsoft.Management/managementGroups/settings
+Name : default
+TenantId : 6b2064b9-34bd-46e6-9092-52f2dd5f7fc0
+RequireAuthorizationForGroupCreation : true
+DefaultManagementGroup : TestGroup
+```
+
+
+
+## PARAMETERS
+
+### -GroupName
+Management Group Id
+
+```yaml
+Type: System.String
+Parameter Sets: GetOperation
+Aliases: GroupId
+
+Required: True
+Position: 0
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -Authorization
+Indicate whether RBAC access is required upon group creation under the root Management Group. True means user will require Microsoft.Management/managementGroups/write action on the root Management Group. Default setting is false.
+
+```yaml
+Type: System.String
+Parameter Sets: NewOperation and UpdateOperation
+Aliases: RequireAuthorizationForGroupCreation
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -DefaultManagementGroup
+Expand the output to list the children of the management group
+
+```yaml
+Type: System.String
+Parameter Sets: NewOperation and UpdateOperation
+Aliases: DefaultMG
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+
+### CommonParameters
+This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
+
+## INPUTS
+
+### None
+
+## OUTPUTS
+
+### Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSHierarchySettings
+
+### Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSHierarchySettings
+
+## NOTES
+
+## RELATED LINKS
\ No newline at end of file
diff --git a/src/Resources/Resources/help/New-AzManagementGroupSubscription.md b/src/Resources/Resources/help/New-AzManagementGroupSubscription.md
index ad7c99293168..1b381382fd81 100644
--- a/src/Resources/Resources/help/New-AzManagementGroupSubscription.md
+++ b/src/Resources/Resources/help/New-AzManagementGroupSubscription.md
@@ -24,7 +24,17 @@ The **New-AzManagementGroupSubscription** cmdlet adds a Subscription to a Manage
### Example 1: Add Subscription to a Management Group
```powershell
-New-AzManagementGroupSubscription -GroupName "TestGroup" -SubscriptionId 2120692d-35c3-44c8-81f5-631fa7351726
+New-AzManagementGroupSubscription -GroupName "TestGroup" -SubscriptionId 5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de
+```
+
+```output
+Name : 5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de
+Type : Microsoft.Management/managementGroups/subscriptions
+Id : /providers/Microsoft.Management/managementGroups/TestGroup/subscriptions/5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de
+TenantId : 14307de0-5e6f-46cf-b2ba-64a062964d30
+DisplayName : Visual Studio Enterprise Subscription
+ParentId : /providers/Microsoft.Management/managementGroups/TestGroup
+State : Active
```
## PARAMETERS
@@ -129,7 +139,8 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## OUTPUTS
-### System.Boolean
+### Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroupSubscription
+
## NOTES
diff --git a/src/Resources/Resources/help/Remove-AzManagementGroupHierarchySetting.md b/src/Resources/Resources/help/Remove-AzManagementGroupHierarchySetting.md
new file mode 100644
index 000000000000..302b4150799d
--- /dev/null
+++ b/src/Resources/Resources/help/Remove-AzManagementGroupHierarchySetting.md
@@ -0,0 +1,64 @@
+---
+external help file: Microsoft.Azure.PowerShell.Cmdlets.Resources.dll-Help.xml
+Module Name: Az.Resources
+online version: https://docs.microsoft.com/powershell/module/az.resources/get-azmanagementgroup/
+schema: 2.0.0
+---
+
+# Remove-AzManagementGroupHierarchySetting
+
+## SYNOPSIS
+Deletes all Hierarchy Settings under the current tenant
+
+## SYNTAX
+
+### DeleteOperation
+```
+Remove-AzManagementGroupHierarchySetting [-GroupName] [-DefaultProfile ]
+```
+
+## DESCRIPTION
+The Remove-AzManagementGroupHierarchySetting cmdlet Removes all hierarchy settings under the current tenant.
+
+## EXAMPLES
+
+### Example 1: Remove Hierarchy Settings
+```powershell
+Remove-AzManagementGroupHierarchySetting -GroupName c7a87cda-9a66-4920-b0f8-869baa04efe0
+```
+
+```output
+```
+
+## PARAMETERS
+
+### -GroupName
+Management Group Id of the Root Management Group
+
+```yaml
+Type: System.String
+Parameter Sets: GetOperation
+Aliases: GroupId
+
+Required: True
+Position: 0
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### CommonParameters
+This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
+
+## INPUTS
+
+### None
+
+## OUTPUTS
+
+### None
+
+## NOTES
+
+## RELATED LINKS
+
diff --git a/src/Resources/Resources/help/Remove-AzManagementGroupSubscription.md b/src/Resources/Resources/help/Remove-AzManagementGroupSubscription.md
index c0e865c3bf4d..6d89953c305c 100644
--- a/src/Resources/Resources/help/Remove-AzManagementGroupSubscription.md
+++ b/src/Resources/Resources/help/Remove-AzManagementGroupSubscription.md
@@ -12,6 +12,7 @@ Removes a Subscription from a Management Group.
## SYNTAX
+### DeleteOperation
```
Remove-AzManagementGroupSubscription [-GroupName] [-SubscriptionId] [-PassThru]
[-DefaultProfile ] [-WhatIf] [-Confirm] []
diff --git a/src/Resources/Resources/help/Start-AzTenantBackfill.md b/src/Resources/Resources/help/Start-AzTenantBackfill.md
new file mode 100644
index 000000000000..31f96d868503
--- /dev/null
+++ b/src/Resources/Resources/help/Start-AzTenantBackfill.md
@@ -0,0 +1,44 @@
+---
+external help file: Microsoft.Azure.PowerShell.Cmdlets.Resources.dll-Help.xml
+Module Name: Az.Resources
+online version: https://docs.microsoft.com/powershell/module/az.resources/new-azmanagementgroupsubscription/
+schema: 2.0.0
+---
+
+# Start-AzTenantBackfill
+
+## SYNOPSIS
+Starts backfilling subscriptions for the current Tenant
+
+## SYNTAX
+
+```
+Start-AzTenantBackfill
+```
+
+## DESCRIPTION
+The **Start-AzTenantBackfill** starts backfilling subscriptions under the current tenant
+
+## EXAMPLES
+
+### Example 1: Start Backfilling the Current Tenant
+```powershell
+Start-AzTenantBackfill
+```
+
+```output
+Name : Completed
+Type : c7a87cda-9a66-4920-b0f8-869baa04efe0
+```
+
+## INPUTS
+
+### None
+
+## OUTPUTS
+
+### Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSBackfillStatus
+
+## NOTES
+
+## RELATED LINKS
diff --git a/src/Resources/Resources/help/Update-AzManagementGroupHierarchySetting.md b/src/Resources/Resources/help/Update-AzManagementGroupHierarchySetting.md
new file mode 100644
index 000000000000..02f22a129a2b
--- /dev/null
+++ b/src/Resources/Resources/help/Update-AzManagementGroupHierarchySetting.md
@@ -0,0 +1,132 @@
+---
+external help file: Microsoft.Azure.PowerShell.Cmdlets.Resources.dll-Help.xml
+Module Name: Az.Resources
+online version: https://docs.microsoft.com/powershell/module/az.resources/get-azmanagementgroup/
+schema: 2.0.0
+---
+
+# Update-AzManagementGroupHierarchySetting
+
+## SYNOPSIS
+Updates Hierarchy Settings under the current tenant
+
+## SYNTAX
+
+### PatchOperation
+```
+Update-AzManagementGroupHierarchySetting [-GroupName] [-DefaultProfile ] [-Authorization] [-DefaultManagementGroup]
+```
+
+## DESCRIPTION
+The Update-AzManagementGroupHierarchySetting cmdlet updates the hierarchy settings under the current tenant. Requiring **Authorization** and setting the **DefaultManagementGroup** that new groups get created under can be updated.
+
+## EXAMPLES
+
+### Example 1: Update the Hierarchy Setting for Authorization Requirement for Group Creation
+```powershell
+Update-AzManagementGroupHierarchySetting -GroupName c7a87cda-9a66-4920-b0f8-869baa04efe0 -Authorization True
+```
+
+```output
+Id : /providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default
+Type : Microsoft.Management/managementGroups/settings
+Name : default
+TenantId : 6b2064b9-34bd-46e6-9092-52f2dd5f7fc0
+RequireAuthorizationForGroupCreation : true
+DefaultManagementGroup :
+```
+
+### Example 2: Update the Hierarchy Setting that the default Management Group new Groups get placed under
+```powershell
+Update-AzManagementGroupHierarchySetting -GroupName c7a87cda-9a66-4920-b0f8-869baa04efe0 -DefaultManagementGroup TestGroup
+```
+
+```output
+Id : /providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default
+Type : Microsoft.Management/managementGroups/settings
+Name : default
+TenantId : 6b2064b9-34bd-46e6-9092-52f2dd5f7fc0
+RequireAuthorizationForGroupCreation : false
+DefaultManagementGroup : TestGroup
+```
+
+### Example 3: Create both Hierarchy Settings
+```powershell
+Update-AzManagementGroupHierarchySetting -GroupName c7a87cda-9a66-4920-b0f8-869baa04efe0 -Authorization True -DefaultManagementGroup TestGroup
+```
+
+```output
+Id : /providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default
+Type : Microsoft.Management/managementGroups/settings
+Name : default
+TenantId : 6b2064b9-34bd-46e6-9092-52f2dd5f7fc0
+RequireAuthorizationForGroupCreation : true
+DefaultManagementGroup : TestGroup
+```
+
+
+
+## PARAMETERS
+
+### -GroupName
+Management Group Id
+
+```yaml
+Type: System.String
+Parameter Sets: GetOperation
+Aliases: GroupId
+
+Required: True
+Position: 0
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -Authorization
+Indicate whether RBAC access is required upon group creation under the root Management Group. True means user will require Microsoft.Management/managementGroups/write action on the root Management Group. Default setting is false.
+
+```yaml
+Type: System.String
+Parameter Sets: NewOperation and UpdateOperation
+Aliases: RequireAuthorizationForGroupCreation
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -DefaultManagementGroup
+Expand the output to list the children of the management group
+
+```yaml
+Type: System.String
+Parameter Sets: NewOperation and UpdateOperation
+Aliases: DefaultMG
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+
+### CommonParameters
+This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
+
+## INPUTS
+
+### None
+
+## OUTPUTS
+
+### Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSHierarchySettings
+
+### Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSHierarchySettings
+
+## NOTES
+
+## RELATED LINKS
\ No newline at end of file