diff --git a/src/ResourceManager/Resources/AzureRM.Resources.Netcore.psd1 b/src/ResourceManager/Resources/AzureRM.Resources.Netcore.psd1
index 82899cfcd838..44ca43e90acb 100644
--- a/src/ResourceManager/Resources/AzureRM.Resources.Netcore.psd1
+++ b/src/ResourceManager/Resources/AzureRM.Resources.Netcore.psd1
@@ -56,7 +56,8 @@ RequiredModules = @(@{ModuleName = 'AzureRM.Profile.Netcore'; ModuleVersion = '0
# Assemblies that must be loaded prior to importing this module
RequiredAssemblies = '.\Microsoft.Azure.Management.Authorization.dll',
'.\Microsoft.Azure.Commands.ResourceManager.Cmdlets.dll',
- '.\Microsoft.Azure.Management.ResourceManager.dll'
+ '.\Microsoft.Azure.Management.ResourceManager.dll',
+ '.\Microsoft.Azure.Management.ManagementGroups.dll'
# Script files (.ps1) that are run in the caller's environment prior to importing this module.
ScriptsToProcess = @()
@@ -119,7 +120,10 @@ CmdletsToExport = 'Get-AzureRmProviderOperation', 'Remove-AzureRmRoleAssignment'
'Set-AzureRmManagedApplicationDefinition',
'Remove-AzureRmManagedApplicationDefinition',
'Get-AzureRmManagedApplication', 'New-AzureRmManagedApplication',
- 'Set-AzureRmManagedApplication', 'Remove-AzureRmManagedApplication'
+ 'Set-AzureRmManagedApplication', 'Remove-AzureRmManagedApplication',
+ 'Get-AzureRmManagementGroup', 'New-AzureRmManagementGroup',
+ 'Update-AzureRmManagementGroup', 'Remove-AzureRmManagementGroup',
+ 'New-AzureRmManagementGroupSubscription', 'Remove-AzureRmManagementGroupSubscription'
# Variables to export from this module
# VariablesToExport = @()
@@ -142,7 +146,7 @@ PrivateData = @{
PSData = @{
# Tags applied to this module. These help with module discovery in online galleries.
- Tags = 'Azure','ResourceManager','ARM','Provider','ResourceGroup','Deployment','ActiveDirectory','Authorization'
+ Tags = 'Azure','ResourceManager','ARM','Provider','ResourceGroup','Deployment','ActiveDirectory','Authorization', 'Management','ManagementGroups'
# A URL to the license for this module.
LicenseUri = 'https://aka.ms/azps-license'
diff --git a/src/ResourceManager/Resources/AzureRM.Resources.psd1 b/src/ResourceManager/Resources/AzureRM.Resources.psd1
index e118e3aae975..04ef1d2d226b 100644
--- a/src/ResourceManager/Resources/AzureRM.Resources.psd1
+++ b/src/ResourceManager/Resources/AzureRM.Resources.psd1
@@ -55,7 +55,8 @@ RequiredModules = @(@{ModuleName = 'AzureRM.Profile'; ModuleVersion = '5.1.0'; }
# Assemblies that must be loaded prior to importing this module
RequiredAssemblies = '.\Microsoft.Azure.Management.ResourceManager.dll',
- '.\Microsoft.Azure.Management.Authorization.dll'
+ '.\Microsoft.Azure.Management.Authorization.dll',
+ '.\Microsoft.Azure.Management.ManagementGroups.dll'
# Script files (.ps1) that are run in the caller's environment prior to importing this module.
# ScriptsToProcess = @()
@@ -120,7 +121,10 @@ CmdletsToExport = 'Get-AzureRmProviderOperation', 'Remove-AzureRmRoleAssignment'
'Set-AzureRmManagedApplicationDefinition',
'Remove-AzureRmManagedApplicationDefinition',
'Get-AzureRmManagedApplication', 'New-AzureRmManagedApplication',
- 'Set-AzureRmManagedApplication', 'Remove-AzureRmManagedApplication'
+ 'Set-AzureRmManagedApplication', 'Remove-AzureRmManagedApplication',
+ 'Get-AzureRmManagementGroup', 'New-AzureRmManagementGroup',
+ 'Update-AzureRmManagementGroup', 'Remove-AzureRmManagementGroup',
+ 'New-AzureRmManagementGroupSubscription', 'Remove-AzureRmManagementGroupSubscription'
# Variables to export from this module
# VariablesToExport = @()
@@ -148,7 +152,7 @@ PrivateData = @{
PSData = @{
# Tags applied to this module. These help with module discovery in online galleries.
- Tags = 'Azure','ResourceManager','ARM','Provider','ResourceGroup','Deployment','ActiveDirectory','Authorization'
+ Tags = 'Azure','ResourceManager','ARM','Provider','ResourceGroup','Deployment','ActiveDirectory','Authorization', 'Management','ManagementGroups'
# A URL to the license for this module.
LicenseUri = 'https://aka.ms/azps-license'
diff --git a/src/ResourceManager/Resources/Commands.Resources.Test/Commands.Resources.Test.csproj b/src/ResourceManager/Resources/Commands.Resources.Test/Commands.Resources.Test.csproj
index ba81592e90dd..72e38cb99a09 100644
--- a/src/ResourceManager/Resources/Commands.Resources.Test/Commands.Resources.Test.csproj
+++ b/src/ResourceManager/Resources/Commands.Resources.Test/Commands.Resources.Test.csproj
@@ -67,6 +67,9 @@
..\..\..\packages\Microsoft.Azure.Insights.0.10.0-preview\lib\net45\Microsoft.Azure.Insights.dll
+
+ ..\..\..\packages\Microsoft.Azure.Management.ManagementGroups.1.1.0-preview\lib\net452\Microsoft.Azure.Management.ManagementGroups.dll
+
False
..\..\..\packages\Microsoft.Azure.Management.ResourceManager.1.6.0-preview\lib\net452\Microsoft.Azure.Management.ResourceManager.dll
@@ -173,6 +176,7 @@
+
@@ -320,6 +324,9 @@
PreserveNewest
+
+ PreserveNewest
+
PreserveNewest
@@ -398,6 +405,42 @@
Always
+
+ Always
+
+
+ Always
+
+
+ Always
+
+
+ Always
+
+
+ Always
+
+
+ Always
+
+
+ Always
+
+
+ Always
+
+
+ Always
+
+
+ Always
+
+
+ Always
+
+
+ Always
+
Always
diff --git a/src/ResourceManager/Resources/Commands.Resources.Test/ScenarioTests/ManagementGroupsTests.cs b/src/ResourceManager/Resources/Commands.Resources.Test/ScenarioTests/ManagementGroupsTests.cs
new file mode 100644
index 000000000000..24b65a68eefc
--- /dev/null
+++ b/src/ResourceManager/Resources/Commands.Resources.Test/ScenarioTests/ManagementGroupsTests.cs
@@ -0,0 +1,112 @@
+// ----------------------------------------------------------------------------------
+//
+// 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.ServiceManagemenet.Common.Models;
+using Microsoft.WindowsAzure.Commands.ScenarioTest;
+using Xunit;
+
+namespace Microsoft.Azure.Commands.Resources.Test.ScenarioTests
+{
+ public class ManagementGroupsTests
+ {
+ public ManagementGroupsTests(Xunit.Abstractions.ITestOutputHelper output)
+ {
+ XunitTracingInterceptor.AddToContext(new XunitTracingInterceptor(output));
+ }
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ public void TestGetManagementGroup()
+ {
+ ResourcesController.NewInstance.RunPsTest("Test-GetManagementGroup");
+ }
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ public void TestGetManagementGroupWithExpand()
+ {
+ ResourcesController.NewInstance.RunPsTest("Test-GetManagementGroupWithExpand");
+ }
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ public void TestGetManagementGroupWithExpandAndRecurse()
+ {
+ ResourcesController.NewInstance.RunPsTest("Test-GetManagementGroupWithExpandAndRecurse");
+ }
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ public void TestNewManagementGroup()
+ {
+ ResourcesController.NewInstance.RunPsTest("Test-NewManagementGroup");
+ }
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ public void TestNewManagementGroupWithDisplayName()
+ {
+ ResourcesController.NewInstance.RunPsTest("Test-NewManagementGroupWithDisplayName");
+ }
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ public void TestNewManagementGroupWithParentId()
+ {
+ ResourcesController.NewInstance.RunPsTest("Test-NewManagementGroupWithParentId");
+ }
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ public void TestNewManagementGroupWithDisplayNameAndParentId()
+ {
+ ResourcesController.NewInstance.RunPsTest("Test-NewManagementGroupWithDisplayNameAndParentId");
+ }
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ public void TestUpdateManagementGroupWithDisplayName()
+ {
+ ResourcesController.NewInstance.RunPsTest("Test-UpdateManagementGroupWithDisplayName");
+ }
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ public void TestUpdateManagementGroupWithParentId()
+ {
+ ResourcesController.NewInstance.RunPsTest("Test-UpdateManagementGroupWithParentId");
+ }
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ public void TestUpdateManagementGroupWithDisplayNameAndParentId()
+ {
+ ResourcesController.NewInstance.RunPsTest("Test-UpdateManagementGroupWithDisplayNameAndParentId");
+ }
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ public void TestRemoveManagementGroup()
+ {
+ ResourcesController.NewInstance.RunPsTest("Test-RemoveManagementGroup");
+ }
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ public void TestNewRemoveManagementGroupSubscription()
+ {
+ ResourcesController.NewInstance.RunPsTest("Test-NewRemoveManagementGroupSubscription");
+ }
+ }
+}
diff --git a/src/ResourceManager/Resources/Commands.Resources.Test/ScenarioTests/ManagementGroupsTests.ps1 b/src/ResourceManager/Resources/Commands.Resources.Test/ScenarioTests/ManagementGroupsTests.ps1
new file mode 100644
index 000000000000..0394e265318d
--- /dev/null
+++ b/src/ResourceManager/Resources/Commands.Resources.Test/ScenarioTests/ManagementGroupsTests.ps1
@@ -0,0 +1,329 @@
+# ----------------------------------------------------------------------------------
+#
+# 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.
+# ----------------------------------------------------------------------------------
+
+<#
+.SYNOPSIS
+ManagementGroupsTests
+#>
+
+function Test-GetManagementGroup
+{
+ New-AzureRmManagementGroup -GroupName TestPSGetGroup1
+ New-AzureRmManagementGroup -GroupName TestPSGetGroup2 -ParentId "/providers/Microsoft.Management/managementGroups/TestPSGetGroup1"
+
+ $response = Get-AzureRmManagementGroup -GroupName TestPSGetGroup2
+
+ Remove-AzureRmManagementGroup -GroupName TestPSGetGroup2
+ Remove-AzureRmManagementGroup -GroupName TestPSGetGroup1
+
+ $expectedType = "/providers/Microsoft.Management/managementGroups"
+ $expectedId = "/providers/Microsoft.Management/managementGroups/TestPSGetGroup2"
+ $expectedName = "TestPSGetGroup2"
+ $expectedDisplayName = "TestPSGetGroup2"
+ $expectedParentId = "/providers/Microsoft.Management/managementGroups/TestPSGetGroup1"
+ $expectedParentDisplayName = "TestPSGetGroup1"
+ $expectedParentName = "TestPSGetGroup1"
+
+ Assert-NotNull $response
+ Assert-Null $response.Children
+ Assert-AreEqual $response.Type $expectedType
+ Assert-AreEqual $response.Id $expectedId
+ Assert-AreEqual $response.Name $expectedName
+ Assert-AreEqual $response.DisplayName $expectedDisplayName
+ Assert-AreEqual $response.ParentId $expectedParentId
+ Assert-AreEqual $response.ParentDisplayName $expectedParentDisplayName
+ Assert-AreEqual $response.ParentName $expectedParentName
+}
+
+function Test-GetManagementGroupWithExpand
+{
+ New-AzureRmManagementGroup -GroupName TestPSGetGroup1
+ New-AzureRmManagementGroup -GroupName TestPSGetGroup2 -ParentId "/providers/Microsoft.Management/managementGroups/TestPSGetGroup1"
+ New-AzureRmManagementGroup -GroupName TestPSGetGroup3 -ParentId "/providers/Microsoft.Management/managementGroups/TestPSGetGroup2"
+
+ $response = Get-AzureRmManagementGroup -GroupName TestPSGetGroup2 -Expand
+
+ Remove-AzureRmManagementGroup -GroupName TestPSGetGroup3
+ Remove-AzureRmManagementGroup -GroupName TestPSGetGroup2
+ Remove-AzureRmManagementGroup -GroupName TestPSGetGroup1
+
+ $expectedType = "/providers/Microsoft.Management/managementGroups"
+ $expectedId = "/providers/Microsoft.Management/managementGroups/TestPSGetGroup2"
+ $expectedName = "TestPSGetGroup2"
+ $expectedDisplayName = "TestPSGetGroup2"
+ $expectedParentId = "/providers/Microsoft.Management/managementGroups/TestPSGetGroup1"
+ $expectedParentDisplayName = "TestPSGetGroup1"
+ $expectedParentName = "TestPSGetGroup1"
+
+ $expectedChild0Id = "/providers/Microsoft.Management/managementGroups/TestPSGetGroup3"
+ $expectedChild0DisplayName = "TestPSGetGroup3"
+ $expectedChild0Name = "TestPSGetGroup3"
+
+ Assert-NotNull $response
+ Assert-NotNull $response.Children
+
+ Assert-AreEqual $response.Type $expectedType
+ Assert-AreEqual $response.Id $expectedId
+ Assert-AreEqual $response.Name $expectedName
+ Assert-AreEqual $response.DisplayName $expectedDisplayName
+ Assert-AreEqual $response.ParentId $expectedParentId
+ Assert-AreEqual $response.ParentDisplayName $expectedParentDisplayName
+ Assert-AreEqual $response.ParentName $expectedParentName
+
+ Assert-AreEqual $response.Children[0].Type $expectedType
+ Assert-AreEqual $response.Children[0].Id $expectedChild0Id
+ Assert-AreEqual $response.Children[0].DisplayName $expectedChild0DisplayName
+ Assert-AreEqual $response.Children[0].Name $expectedChild0Name
+}
+
+function Test-GetManagementGroupWithExpandAndRecurse
+{
+ New-AzureRmManagementGroup -GroupName TestPSGetGroup1
+ New-AzureRmManagementGroup -GroupName TestPSGetGroup2 -ParentId "/providers/Microsoft.Management/managementGroups/TestPSGetGroup1"
+ New-AzureRmManagementGroup -GroupName TestPSGetGroup3 -ParentId "/providers/Microsoft.Management/managementGroups/TestPSGetGroup2"
+ New-AzureRmManagementGroup -GroupName TestPSGetGroup4 -ParentId "/providers/Microsoft.Management/managementGroups/TestPSGetGroup3"
+
+ $response = Get-AzureRmManagementGroup -GroupName TestPSGetGroup2 -Expand -Recurse
+
+ Remove-AzureRmManagementGroup -GroupName TestPSGetGroup4
+ Remove-AzureRmManagementGroup -GroupName TestPSGetGroup3
+ Remove-AzureRmManagementGroup -GroupName TestPSGetGroup2
+ Remove-AzureRmManagementGroup -GroupName TestPSGetGroup1
+
+ $expectedType = "/providers/Microsoft.Management/managementGroups"
+ $expectedId = "/providers/Microsoft.Management/managementGroups/TestPSGetGroup2"
+ $expectedName = "TestPSGetGroup2"
+ $expectedDisplayName = "TestPSGetGroup2"
+ $expectedParentId = "/providers/Microsoft.Management/managementGroups/TestPSGetGroup1"
+ $expectedParentDisplayName = "TestPSGetGroup1"
+ $expectedParentName = "TestPSGetGroup1"
+
+ $expectedChild0Id = "/providers/Microsoft.Management/managementGroups/TestPSGetGroup3"
+ $expectedChild0DisplayName = "TestPSGetGroup3"
+ $expectedChild0Name = "TestPSGetGroup3"
+
+ $expectedChild0Child0Id = "/providers/Microsoft.Management/managementGroups/TestPSGetGroup4"
+ $expectedChild0Child0DisplayName = "TestPSGetGroup4"
+ $expectedChild0Child0Name = "TestPSGetGroup4"
+
+ Assert-NotNull $response
+ Assert-NotNull $response.Children
+
+ Assert-AreEqual $response.Type $expectedType
+ Assert-AreEqual $response.Id $expectedId
+ Assert-AreEqual $response.Name $expectedName
+ Assert-AreEqual $response.DisplayName $expectedDisplayName
+ Assert-AreEqual $response.ParentId $expectedParentId
+ Assert-AreEqual $response.ParentDisplayName $expectedParentDisplayName
+ Assert-AreEqual $response.ParentName $expectedParentName
+
+ Assert-AreEqual $response.Children[0].Type $expectedType
+ Assert-AreEqual $response.Children[0].Id $expectedChild0Id
+ Assert-AreEqual $response.Children[0].DisplayName $expectedChild0DisplayName
+ Assert-AreEqual $response.Children[0].Name $expectedChild0Name
+
+ Assert-AreEqual $response.Children[0].Children[0].Type $expectedType
+ Assert-AreEqual $response.Children[0].Children[0].Id $expectedChild0Child0Id
+ Assert-AreEqual $response.Children[0].Children[0].DisplayName $expectedChild0Child0DisplayName
+ Assert-AreEqual $response.Children[0].Children[0].Name $expectedChild0Child0Name
+}
+
+function Test-NewManagementGroup
+{
+ $response = New-AzureRmManagementGroup -GroupName TestPSNewGroup
+ Remove-AzureRmManagementGroup -GroupName TestPSNewGroup
+
+ $expectedType = "/providers/Microsoft.Management/managementGroups"
+ $expectedId = "/providers/Microsoft.Management/managementGroups/TestPSNewGroup"
+ $expectedName = "TestPSNewGroup"
+ $expectedDisplayName = "TestPSNewGroup"
+
+ Assert-AreEqual $response.Type $expectedType
+ Assert-AreEqual $response.Id $expectedId
+ Assert-AreEqual $response.Name $expectedName
+ Assert-AreEqual $response.DisplayName $expectedDisplayName
+ Assert-NotNull $response.ParentId
+ Assert-NotNull $response.ParentDisplayName
+
+}
+
+function Test-NewManagementGroupWithDisplayName
+{
+ $response = New-AzureRmManagementGroup -GroupName TestPSNewGroup2 -DisplayName TestDisplayName
+ Remove-AzureRmManagementGroup -GroupName TestPSNewGroup2
+
+ $expectedType = "/providers/Microsoft.Management/managementGroups"
+ $expectedId = "/providers/Microsoft.Management/managementGroups/TestPSNewGroup2"
+ $expectedName = "TestPSNewGroup2"
+ $expectedDisplayName = "TestDisplayName"
+
+ Assert-AreEqual $response.Type $expectedType
+ Assert-AreEqual $response.Id $expectedId
+ Assert-AreEqual $response.Name $expectedName
+ Assert-AreEqual $response.DisplayName $expectedDisplayName
+ Assert-NotNull $response.ParentId
+ Assert-NotNull $response.ParentDisplayName
+}
+
+function Test-NewManagementGroupWithParentId
+{
+ New-AzureRmManagementGroup -GroupName TestParent5
+ $response = New-AzureRmManagementGroup -GroupName TestPSNewGroup5 -ParentId /providers/Microsoft.Management/managementGroups/TestParent5
+ Remove-AzureRmManagementGroup -GroupName TestPSNewGroup5
+ Remove-AzureRmManagementGroup -GroupName TestParent5
+
+ $expectedType = "/providers/Microsoft.Management/managementGroups"
+ $expectedId = "/providers/Microsoft.Management/managementGroups/TestPSNewGroup5"
+ $expectedName = "TestPSNewGroup5"
+ $expectedDisplayName = "TestPSNewGroup5"
+ $expectedParentId = "/providers/Microsoft.Management/managementGroups/TestParent5"
+ $expectedParentDisplayName = "TestParent5"
+
+ Assert-AreEqual $response.Type $expectedType
+ Assert-AreEqual $response.Id $expectedId
+ Assert-AreEqual $response.Name $expectedName
+ Assert-AreEqual $response.DisplayName $expectedDisplayName
+ Assert-AreEqual $response.ParentId $expectedParentId
+ Assert-AreEqual $response.ParentDisplayName $expectedParentDisplayName
+}
+
+function Test-NewManagementGroupWithDisplayNameAndParentId
+{
+ New-AzureRmManagementGroup -GroupName TestParent4
+ $response = New-AzureRmManagementGroup -GroupName TestPSGroup4 -DisplayName TestDisplayName -ParentId /providers/Microsoft.Management/managementGroups/TestParent4
+ Remove-AzureRmManagementGroup -GroupName TestPSGroup4
+ Remove-AzureRmManagementGroup -GroupName TestParent4
+
+ $expectedType = "/providers/Microsoft.Management/managementGroups"
+ $expectedId = "/providers/Microsoft.Management/managementGroups/TestPSGroup4"
+ $expectedName = "TestPSGroup4"
+ $expectedDisplayName = "TestDisplayName"
+ $expectedParentId = "/providers/Microsoft.Management/managementGroups/TestParent4"
+ $expectedParentDisplayName = "TestParent4"
+
+ Assert-AreEqual $response.Type $expectedType
+ Assert-AreEqual $response.Id $expectedId
+ Assert-AreEqual $response.Name $expectedName
+ Assert-AreEqual $response.DisplayName $expectedDisplayName
+ Assert-AreEqual $response.ParentId $expectedParentId
+ Assert-AreEqual $response.ParentDisplayName $expectedParentDisplayName
+}
+
+function Test-UpdateManagementGroupWithDisplayName
+{
+ New-AzureRmManagementGroup -GroupName TestPSUpdateGroup1
+ $response = Update-AzureRmManagementGroup -GroupName TestPSUpdateGroup1 -DisplayName TestDisplayName
+ Remove-AzureRmManagementGroup -GroupName TestPSUpdateGroup1
+
+ $expectedType = "/providers/Microsoft.Management/managementGroups"
+ $expectedId = "/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup1"
+ $expectedName = "TestPSUpdateGroup1"
+ $expectedDisplayName = "TestDisplayName"
+
+ Assert-AreEqual $response.Type $expectedType
+ Assert-AreEqual $response.Id $expectedId
+ Assert-AreEqual $response.Name $expectedName
+ Assert-AreEqual $response.DisplayName $expectedDisplayName
+}
+
+function Test-UpdateManagementGroupWithParentId
+{
+ New-AzureRmManagementGroup -GroupName TestPSUpdateGroupParent2
+ New-AzureRmManagementGroup -GroupName TestPSUpdateGroup2
+ $response = Update-AzureRmManagementGroup -GroupName TestPSUpdateGroup2 -ParentId /providers/Microsoft.Management/managementGroups/TestPSUpdateGroupParent2
+ Remove-AzureRmManagementGroup -GroupName TestPSUpdateGroup2
+ Remove-AzureRmManagementGroup -GroupName TestPSUpdateGroupParent2
+
+ $expectedType = "/providers/Microsoft.Management/managementGroups"
+ $expectedId = "/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup2"
+ $expectedName = "TestPSUpdateGroup2"
+ $expectedDisplayName = "TestPSUpdateGroup2"
+ $expectedParentId = "/providers/Microsoft.Management/managementGroups/TestPSUpdateGroupParent2"
+ $expectedParentDisplayName = "TestPSUpdateGroupParent2"
+
+ Assert-AreEqual $response.Type $expectedType
+ Assert-AreEqual $response.Id $expectedId
+ Assert-AreEqual $response.Name $expectedName
+ Assert-AreEqual $response.DisplayName $expectedDisplayName
+ Assert-AreEqual $response.ParentId $expectedParentId
+ Assert-AreEqual $response.ParentDisplayName $expectedParentDisplayName
+}
+
+function Test-UpdateManagementGroupWithDisplayNameAndParentId
+{
+ New-AzureRmManagementGroup -GroupName TestPSUpdateGroupParent3
+ New-AzureRmManagementGroup -GroupName TestPSUpdateGroup3
+ $response = Update-AzureRmManagementGroup -GroupName TestPSUpdateGroup3 -DisplayName TestDisplayName -ParentId /providers/Microsoft.Management/managementGroups/TestPSUpdateGroupParent3
+ Remove-AzureRmManagementGroup -GroupName TestPSUpdateGroup3
+ Remove-AzureRmManagementGroup -GroupName TestPSUpdateGroupParent3
+
+ $expectedType = "/providers/Microsoft.Management/managementGroups"
+ $expectedId = "/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup3"
+ $expectedName = "TestPSUpdateGroup3"
+ $expectedDisplayName = "TestDisplayName"
+ $expectedParentId = "/providers/Microsoft.Management/managementGroups/TestPSUpdateGroupParent3"
+ $expectedParentDisplayName = "TestPSUpdateGroupParent3"
+
+ Assert-AreEqual $response.Type $expectedType
+ Assert-AreEqual $response.Id $expectedId
+ Assert-AreEqual $response.Name $expectedName
+ Assert-AreEqual $response.DisplayName $expectedDisplayName
+ Assert-AreEqual $response.ParentId $expectedParentId
+ Assert-AreEqual $response.ParentDisplayName $expectedParentDisplayName
+}
+
+function Test-RemoveManagementGroup
+{
+ New-AzureRmManagementGroup -GroupName TestPSRemoveGroup
+
+ $getresponse = Get-AzureRmManagementGroup -GroupName TestPSRemoveGroup
+
+ $response = Remove-AzureRmManagementGroup -GroupName TestPSRemoveGroup
+
+ $getresponse2 = Get-AzureRmManagementGroup -GroupName TestPSRemoveGroup
+
+ Assert-NotNull $getresponse
+ Assert-Null $getresponse2
+ Assert-Null $response
+}
+
+function Test-NewRemoveManagementGroupSubscription
+{
+ New-AzureRmManagementGroup -GroupName TestSubGroup
+
+ $response1 = New-AzureRmManagementGroupSubscription -GroupName TestSubGroup -SubscriptionId 394ae65d-9e71-4462-930f-3332dedf845c
+
+ $getresponse = Get-AzureRmManagementGroup -GroupName TestSubGroup -Expand
+
+ $response2 = Remove-AzureRmManagementGroupSubscription -GroupName TestSubGroup -SubscriptionId 394ae65d-9e71-4462-930f-3332dedf845c
+
+ $getresponse2 = Get-AzureRmManagementGroup -GroupName TestSubGroup -Expand
+
+ Remove-AzureRmManagementGroup -GroupName TestSubGroup
+
+ $expectedType = "/subscriptions"
+ $expectedId = "/subscriptions/394ae65d-9e71-4462-930f-3332dedf845c"
+ $expectedName = "394ae65d-9e71-4462-930f-3332dedf845c"
+ $expectedDisplayName = "Pay-As-You-Go"
+
+ 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-Null $response1
+ Assert-Null $response2
+ Assert-Null $getresponse2.Children
+}
+
diff --git a/src/ResourceManager/Resources/Commands.Resources.Test/ScenarioTests/ResourcesController.cs b/src/ResourceManager/Resources/Commands.Resources.Test/ScenarioTests/ResourcesController.cs
index 5cd03199e8cb..d96f22b59855 100644
--- a/src/ResourceManager/Resources/Commands.Resources.Test/ScenarioTests/ResourcesController.cs
+++ b/src/ResourceManager/Resources/Commands.Resources.Test/ScenarioTests/ResourcesController.cs
@@ -21,13 +21,13 @@
using Microsoft.Azure.Commands.Common.Authentication;
using Microsoft.Azure.Commands.ResourceManager.Cmdlets.Components;
using Microsoft.Azure.Commands.ResourceManager.Cmdlets.Extensions;
+using Microsoft.Azure.Management.ManagementGroups;
using Microsoft.Azure.Graph.RBAC.Version1_6;
using Microsoft.Azure.Insights;
using Microsoft.Azure.Management.Authorization;
using Microsoft.Azure.Management.ResourceManager;
using Microsoft.Azure.Test.HttpRecorder;
using Microsoft.Rest.ClientRuntime.Azure.TestFramework;
-using Microsoft.WindowsAzure.Commands.Common;
using Microsoft.WindowsAzure.Commands.ScenarioTest;
using LegacyRMClient = Microsoft.Azure.Management.Resources;
using LegacyRMSubscription = Microsoft.Azure.Subscriptions;
@@ -67,6 +67,8 @@ public sealed class ResourcesController
public AuthorizationManagementClient AuthorizationManagementClient { get; private set; }
+ public ManagementGroupsAPIClient ManagementGroupsApiClient { get; private set; }
+
public string UserDomain { get; private set; }
@@ -182,6 +184,7 @@ private void SetupManagementClients(MockContext context)
AuthorizationManagementClient = GetAuthorizationManagementClient(context);
GraphClient = GetGraphClient(context);
InsightsClient = GetInsightsClient();
+ ManagementGroupsApiClient = GetManagementGroupsApiClient(context);
this.FeatureClient = this.GetFeatureClient(context);
var testEnvironment = this.csmTestFactory.GetTestEnvironment();
var credentials = new SubscriptionCredentialsAdapter(
@@ -197,7 +200,8 @@ private void SetupManagementClients(MockContext context)
AuthorizationManagementClient,
GraphClient,
InsightsClient,
- this.FeatureClient);
+ this.FeatureClient,
+ ManagementGroupsApiClient);
}
private GraphRbacManagementClient GetGraphClient(MockContext context)
@@ -281,6 +285,11 @@ private InsightsClient GetInsightsClient()
return LegacyTest.TestBase.GetServiceClient(this.csmTestFactory);
}
+ private ManagementGroupsAPIClient GetManagementGroupsApiClient(MockContext context)
+ {
+ return context.GetServiceClient(TestEnvironmentFactory.GetTestEnvironment());
+ }
+
///
/// The test http client helper factory.
///
diff --git a/src/ResourceManager/Resources/Commands.Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestGetManagementGroup.json b/src/ResourceManager/Resources/Commands.Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestGetManagementGroup.json
new file mode 100644
index 000000000000..7b3615fdc82a
--- /dev/null
+++ b/src/ResourceManager/Resources/Commands.Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestGetManagementGroup.json
@@ -0,0 +1,892 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSGetGroup1?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMT9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "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"
+ ],
+ "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/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"
+ ],
+ "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"
+ ]
+ },
+ "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"
+ ],
+ "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-request-id": [
+ "eastus:9493ec55-06d3-4996-971c-f43d17a8b20e"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "8c481626-0a98-4573-9507-75d1e3726a72"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1180"
+ ],
+ "x-ms-correlation-request-id": [
+ "67e75aae-db5a-4402-862c-f45067c380c5"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194704Z:67e75aae-db5a-4402-862c-f45067c380c5"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "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"
+ ],
+ "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"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "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"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSGetGroup2?api-version=2018-03-01-preview&$recurse=false",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXcmJHJlY3Vyc2U9ZmFsc2U=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "3e763fdc-e11b-43bc-aed8-e154ed12b739"
+ ],
+ "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 \"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"
+ ],
+ "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"
+ ]
+ },
+ "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"
+ ],
+ "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-request-id": [
+ "eastus:8b56e260-3a5b-41d9-b80a-f701302be9fc"
+ ],
+ "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"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194720Z:bba18515-0967-48e4-8815-0274df40f762"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "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"
+ ],
+ "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"
+ ],
+ "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-correlation-request-id": [
+ "4f61dcfd-e32e-4307-be27-e5b36dc5473b"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194730Z:4f61dcfd-e32e-4307-be27-e5b36dc5473b"
+ ],
+ "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"
+ ]
+ },
+ "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"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "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"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSGetGroup1?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMT9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "6ab928e4-ed18-4ec9-a0f7-94b085a978ee"
+ ],
+ "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/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"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "0"
+ ],
+ "x-ms-request-id": [
+ "eastus:ff5682c1-3030-4fd5-80ba-1ff95fb0701a"
+ ],
+ "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"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:47:34 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"
+ ],
+ "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"
+ ],
+ "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"
+ ],
+ "x-ms-correlation-request-id": [
+ "87a51554-f8b0-4fb4-b950-ca5e36382800"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194744Z:87a51554-f8b0-4fb4-b950-ca5e36382800"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "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"
+ ],
+ "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"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "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"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "394ae65d-9e71-4462-930f-3332dedf845c",
+ "TenantId": "b1af47f1-138c-4ed2-8bba-119041b95450",
+ "Domain": ""
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/Resources/Commands.Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestGetManagementGroupWithExpand.json b/src/ResourceManager/Resources/Commands.Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestGetManagementGroupWithExpand.json
new file mode 100644
index 000000000000..61f63bc97f89
--- /dev/null
+++ b/src/ResourceManager/Resources/Commands.Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestGetManagementGroupWithExpand.json
@@ -0,0 +1,1366 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSGetGroup1?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMT9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "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"
+ ],
+ "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/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"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "0"
+ ],
+ "x-ms-request-id": [
+ "eastus:7693300a-9432-4997-a07f-7ddfd957c9f0"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "55f39066-9e57-4ae3-b29b-c3ecb90bba42"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1191"
+ ],
+ "x-ms-correlation-request-id": [
+ "dc8ca857-4b6d-4dbf-95e5-d8b5e22500b3"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194140Z:dc8ca857-4b6d-4dbf-95e5-d8b5e22500b3"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "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"
+ ],
+ "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"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "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"
+ ]
+ },
+ "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": [
+ "7c872dbf-d855-4966-a4f8-0f59c80f3171"
+ ],
+ "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-request-id": [
+ "eastus:fce171fb-ca46-40a6-8951-44b0897725ad"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "c4439f2b-fbb9-4f0e-ab1c-aba96042fb95"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1190"
+ ],
+ "x-ms-correlation-request-id": [
+ "cdfbdaca-d31c-4aea-83e9-eb98f309818f"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194154Z:cdfbdaca-d31c-4aea-83e9-eb98f309818f"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:41:53 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"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "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"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSGetGroup3?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMz9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "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"
+ ],
+ "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/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"
+ ],
+ "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"
+ ]
+ },
+ "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"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "0"
+ ],
+ "x-ms-request-id": [
+ "eastus:fd2bbbb9-d703-40ee-a288-b325eed54310"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "50122128-7828-4628-a296-9a78bf554db7"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "14972"
+ ],
+ "x-ms-correlation-request-id": [
+ "e5f15ee9-08a4-4929-a2a1-87447b3d0af4"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194217Z:e5f15ee9-08a4-4929-a2a1-87447b3d0af4"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "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"
+ ],
+ "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"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "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"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSGetGroup2?api-version=2018-03-01-preview&$expand=children&$recurse=false",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXcmJGV4cGFuZD1jaGlsZHJlbiYkcmVjdXJzZT1mYWxzZQ==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "529e9d7e-5dbc-43ec-951d-4420c9fcb6c8"
+ ],
+ "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 \"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"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "14970"
+ ],
+ "x-ms-request-id": [
+ "eastus:5b665570-bb3c-4876-a584-2ce102f7b570"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "43c5b0e8-486c-48b1-98f7-515244b3e233"
+ ],
+ "x-ms-correlation-request-id": [
+ "1bb182e5-8f75-4b1d-bcee-3043b258bb23"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194231Z:1bb182e5-8f75-4b1d-bcee-3043b258bb23"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:42:31 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/TestPSGetGroup3?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMz9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "d610920b-1eb9-4876-96da-c77cf618d557"
+ ],
+ "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/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"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "0"
+ ],
+ "x-ms-request-id": [
+ "eastus:6ac70fe7-dcf3-4d91-9050-f3e16cf1fe8e"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "00c0c570-3d23-4127-b044-3e8acc913c65"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1188"
+ ],
+ "x-ms-correlation-request-id": [
+ "b46f2814-d91a-49b5-9257-b997e7b9b582"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194234Z:b46f2814-d91a-49b5-9257-b997e7b9b582"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:42:33 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"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSGetGroup3?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMz9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "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}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "177"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "14969"
+ ],
+ "x-ms-request-id": [
+ "eastus:37f99767-398e-470f-b7a2-e58aba1d163d"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "be4190bf-b837-4ab9-8a89-fee31c1c3aae"
+ ],
+ "x-ms-correlation-request-id": [
+ "72f7747b-783b-4b3c-b56b-315bd5fe74b1"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194244Z:72f7747b-783b-4b3c-b56b-315bd5fe74b1"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:42:44 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/operationResults/delete/managementGroups/TestPSGetGroup3?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMz9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "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}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "177"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "14968"
+ ],
+ "x-ms-request-id": [
+ "eastus:ce8eaaf9-7b9a-459f-b4ce-decde74a55a2"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "55278fb5-f566-4bcd-8977-bfdea8d76655"
+ ],
+ "x-ms-correlation-request-id": [
+ "6fb1cf18-106a-452d-bcf6-c836c2594117"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194245Z:6fb1cf18-106a-452d-bcf6-c836c2594117"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:42:44 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/TestPSGetGroup2?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "d04b4237-aa6b-4e64-99ca-1be158d2f0be"
+ ],
+ "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-request-id": [
+ "eastus:e62aafd1-f022-40a5-a231-923e29554275"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "14bfcca4-3aa0-4b47-8009-8734beddfa03"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1187"
+ ],
+ "x-ms-correlation-request-id": [
+ "1865e786-3f33-48f4-ab29-bcc45829e2f0"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194247Z:1865e786-3f33-48f4-ab29-bcc45829e2f0"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:42:47 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"
+ ],
+ "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"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "14967"
+ ],
+ "x-ms-request-id": [
+ "eastus:b75b5dbc-b365-4849-bdf2-b2baec6953ac"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "f5a22a51-e1f9-4af7-a4ac-e4a987a2aa4e"
+ ],
+ "x-ms-correlation-request-id": [
+ "1540276c-b8c0-461d-a238-7ff72128bf6e"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194258Z:1540276c-b8c0-461d-a238-7ff72128bf6e"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:42:58 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/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"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "14966"
+ ],
+ "x-ms-request-id": [
+ "eastus:aff6d815-589b-4e2f-b6b7-81b79375825a"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "baf6c7e1-64e3-4c11-b9c7-087cec4080ae"
+ ],
+ "x-ms-correlation-request-id": [
+ "37a4c60c-fc04-4b95-ba52-fbdd10698cb8"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194258Z:37a4c60c-fc04-4b95-ba52-fbdd10698cb8"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:42:58 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/TestPSGetGroup1?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMT9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "727bd969-9f0e-4095-91e6-3360fd464613"
+ ],
+ "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/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"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "0"
+ ],
+ "x-ms-request-id": [
+ "eastus:a3ff0ec2-c719-4086-a91a-61c39ff57a4e"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "33de1c4a-5800-474a-b8d3-3f81a9ab0bd3"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1186"
+ ],
+ "x-ms-correlation-request-id": [
+ "4172c28a-fb74-4b26-9b26-488dfe117100"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194301Z:4172c28a-fb74-4b26-9b26-488dfe117100"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:43:01 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"
+ ],
+ "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"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "14965"
+ ],
+ "x-ms-request-id": [
+ "eastus:339fecd2-b392-4a5a-89b8-dc88ed8ef987"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "ac7d4e68-d9f4-44be-8f3d-4075fd773dc0"
+ ],
+ "x-ms-correlation-request-id": [
+ "e7e07cb2-6f4f-4ebe-a145-a7dfba86cdd3"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194312Z:e7e07cb2-6f4f-4ebe-a145-a7dfba86cdd3"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:43: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/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"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "14964"
+ ],
+ "x-ms-request-id": [
+ "eastus:b12d8116-1640-49cf-b169-0cbc81783e18"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "cd3b64fb-5d0f-416a-9813-585dcf714686"
+ ],
+ "x-ms-correlation-request-id": [
+ "722c3c3e-33e4-4a04-9983-33111e0095fd"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194312Z:722c3c3e-33e4-4a04-9983-33111e0095fd"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:43:12 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ],
+ "Retry-After": [
+ "0"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "394ae65d-9e71-4462-930f-3332dedf845c",
+ "TenantId": "b1af47f1-138c-4ed2-8bba-119041b95450",
+ "Domain": ""
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/Resources/Commands.Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestGetManagementGroupWithExpandAndRecurse.json b/src/ResourceManager/Resources/Commands.Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestGetManagementGroupWithExpandAndRecurse.json
new file mode 100644
index 000000000000..0c93c9aebe7d
--- /dev/null
+++ b/src/ResourceManager/Resources/Commands.Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestGetManagementGroupWithExpandAndRecurse.json
@@ -0,0 +1,1690 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSGetGroup1?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMT9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "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"
+ ],
+ "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/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"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "0"
+ ],
+ "x-ms-request-id": [
+ "eastus:f1c79b7e-1623-475b-9720-0c01ca4b759e"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "5aea5e53-81de-4847-89fd-cbebed9d0d0d"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1199"
+ ],
+ "x-ms-correlation-request-id": [
+ "dcd5bc5e-4456-4615-acc1-b67991865e2c"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T193940Z:dcd5bc5e-4456-4615-acc1-b67991865e2c"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "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"
+ ],
+ "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"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "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"
+ ]
+ },
+ "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": [
+ "e1b00c8e-69f6-494b-a18d-869dd1ce93b7"
+ ],
+ "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-request-id": [
+ "eastus:62249987-393e-41e0-8265-73362bf177a3"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "7b664d66-e26d-4e63-8b56-89a019d9113c"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1198"
+ ],
+ "x-ms-correlation-request-id": [
+ "bf80e98f-8238-4c89-b647-a19d5d042b8d"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T193953Z:bf80e98f-8238-4c89-b647-a19d5d042b8d"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "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"
+ ],
+ "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"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "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"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSGetGroup3?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMz9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "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"
+ ],
+ "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/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"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "0"
+ ],
+ "x-ms-request-id": [
+ "eastus:35e16788-66b9-4c0f-9e4a-0852a4c65830"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "e3da43ce-bfac-44a5-9602-d373af2aac18"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1197"
+ ],
+ "x-ms-correlation-request-id": [
+ "640d6d8c-01e5-4701-ac8a-db607b580f6a"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194007Z:640d6d8c-01e5-4701-ac8a-db607b580f6a"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:40: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"
+ ]
+ },
+ "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"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "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"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSGetGroup4?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwND9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "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"
+ ],
+ "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/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"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "0"
+ ],
+ "x-ms-request-id": [
+ "eastus:9844700c-2903-473f-bf1d-b0465d7bea4a"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "2e136126-30ee-4746-87be-816a434cf2d7"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1196"
+ ],
+ "x-ms-correlation-request-id": [
+ "1cd85c32-180f-4d36-ae43-c0b7bba798fb"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194020Z:1cd85c32-180f-4d36-ae43-c0b7bba798fb"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:40:20 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"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "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"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSGetGroup2?api-version=2018-03-01-preview&$expand=children&$recurse=true",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXcmJGV4cGFuZD1jaGlsZHJlbiYkcmVjdXJzZT10cnVl",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "4b241bfe-35e7-4a3c-951f-6ec812068b46"
+ ],
+ "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 \"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"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "14986"
+ ],
+ "x-ms-request-id": [
+ "eastus:e829128c-0b81-473d-bb71-a25f4d0f315f"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "2067642e-efcb-4ae7-9bd8-9b85009959ab"
+ ],
+ "x-ms-correlation-request-id": [
+ "41d2449d-8e6e-4b31-ad42-3eef3f0ff936"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194035Z:41d2449d-8e6e-4b31-ad42-3eef3f0ff936"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:40:34 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/TestPSGetGroup4?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwND9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "12dc9046-cd1e-437e-ac2f-d9bbfa3f0fbb"
+ ],
+ "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/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"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "0"
+ ],
+ "x-ms-request-id": [
+ "eastus:25004523-14fd-4489-bb8d-9bb3e52c793d"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "4d1a99d4-19de-4312-aa22-596a105bf6e8"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1195"
+ ],
+ "x-ms-correlation-request-id": [
+ "5799c828-7cd9-4467-838c-19232cd0607f"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194038Z:5799c828-7cd9-4467-838c-19232cd0607f"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:40:38 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"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSGetGroup4?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwND9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "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}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "177"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "14985"
+ ],
+ "x-ms-request-id": [
+ "eastus:c45b68f5-1267-45ee-8fb7-c316665c98de"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "dc6a036e-8483-426c-b552-b8e579d1590c"
+ ],
+ "x-ms-correlation-request-id": [
+ "98b96d81-59ce-47de-a001-2ca82d7e4796"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194048Z:98b96d81-59ce-47de-a001-2ca82d7e4796"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:40:48 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/operationResults/delete/managementGroups/TestPSGetGroup4?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwND9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "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}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "177"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "14984"
+ ],
+ "x-ms-request-id": [
+ "eastus:fa5c1292-163a-48ec-b93b-23e0a11ee6cd"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "a8fecae1-8574-48da-b4da-fc0d4caeb113"
+ ],
+ "x-ms-correlation-request-id": [
+ "f98f1d17-0002-4df6-822a-bffcfa168971"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194049Z:f98f1d17-0002-4df6-822a-bffcfa168971"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:40:48 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/TestPSGetGroup3?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMz9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "a6606ac3-e26a-4541-b08f-6bf393d58d9f"
+ ],
+ "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/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"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "0"
+ ],
+ "x-ms-request-id": [
+ "eastus:127c2312-5d7c-4791-9d13-cec3f96d0e75"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "8f5fc427-160d-4ae0-869f-0cc631df3814"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1194"
+ ],
+ "x-ms-correlation-request-id": [
+ "5c203ea3-6c38-43bf-89e4-55cd976845b8"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194051Z:5c203ea3-6c38-43bf-89e4-55cd976845b8"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:40:50 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"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSGetGroup3?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMz9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "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}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "177"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "14983"
+ ],
+ "x-ms-request-id": [
+ "eastus:0be290fb-8eb9-448f-9c79-fa353b4bb432"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "d70dca59-3455-4ab5-b21b-1dd3ce31e09b"
+ ],
+ "x-ms-correlation-request-id": [
+ "2120618c-bb51-453a-a83f-6f4be70f29c9"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194102Z:2120618c-bb51-453a-a83f-6f4be70f29c9"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:41:01 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/operationResults/delete/managementGroups/TestPSGetGroup3?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMz9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "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}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "177"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "14982"
+ ],
+ "x-ms-request-id": [
+ "eastus:abe6eb2c-d996-46b7-878f-6c8e435f086b"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "1d0637b3-995a-4b36-9a78-4ad03b753a87"
+ ],
+ "x-ms-correlation-request-id": [
+ "f627d5f2-cea9-4e2b-a031-928881eec9a5"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194102Z:f627d5f2-cea9-4e2b-a031-928881eec9a5"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:41:01 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/TestPSGetGroup2?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "f6da54fa-7c26-4aef-97eb-e319013479f9"
+ ],
+ "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-request-id": [
+ "eastus:bc46c2b7-d205-4ee8-8c93-6bcf5147fc95"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "ea12f938-4791-4ed3-9772-96624f8e1ad8"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1193"
+ ],
+ "x-ms-correlation-request-id": [
+ "d4ea7ed6-980e-4b35-9460-39e7d3a92e19"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194104Z:d4ea7ed6-980e-4b35-9460-39e7d3a92e19"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:41:04 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"
+ ],
+ "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"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "14981"
+ ],
+ "x-ms-request-id": [
+ "eastus:38131425-0f20-4776-b4cb-cbfab545e8d8"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "c862eba4-4d52-404b-bef1-9ef7a7c285b6"
+ ],
+ "x-ms-correlation-request-id": [
+ "931626a0-b075-4bdc-bde9-c7538fa05120"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194115Z:931626a0-b075-4bdc-bde9-c7538fa05120"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:41:15 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/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"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "14980"
+ ],
+ "x-ms-request-id": [
+ "eastus:80be61cb-6b64-4cbe-a0f5-1277b9b6750c"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "943c09eb-2e8b-4cbd-a152-131871268c17"
+ ],
+ "x-ms-correlation-request-id": [
+ "d2b12d66-253f-447c-898a-a196e0d177bb"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194115Z:d2b12d66-253f-447c-898a-a196e0d177bb"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:41:15 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/TestPSGetGroup1?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dldEdyb3VwMT9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "99047a0f-0b89-4923-baf7-f3fcf35244aa"
+ ],
+ "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/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"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "0"
+ ],
+ "x-ms-request-id": [
+ "eastus:e1e463fa-aa2f-4dfe-a8f3-175a216133ec"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "22d8b44c-cae6-4e25-a63a-aba63611b0ea"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1192"
+ ],
+ "x-ms-correlation-request-id": [
+ "4cafea0e-b635-4e30-807d-774a1471b855"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194117Z:4cafea0e-b635-4e30-807d-774a1471b855"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:41:17 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"
+ ],
+ "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"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "14979"
+ ],
+ "x-ms-request-id": [
+ "eastus:007740b4-abb8-4658-ae59-bb78a4c97696"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "9afb8385-45df-4e90-ba38-aabddb644d53"
+ ],
+ "x-ms-correlation-request-id": [
+ "8085a214-ae38-4e98-a7b0-9f506a8f98a1"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194128Z:8085a214-ae38-4e98-a7b0-9f506a8f98a1"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:41:28 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/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"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "14978"
+ ],
+ "x-ms-request-id": [
+ "eastus:f82bbb9d-3de1-4df8-b3a0-73039ab981ee"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "cfa4c928-1f8e-41b7-a1ef-ee0eebe95c97"
+ ],
+ "x-ms-correlation-request-id": [
+ "467924a8-0554-4e9c-acff-24b89182e30d"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194128Z:467924a8-0554-4e9c-acff-24b89182e30d"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:41:28 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ],
+ "Retry-After": [
+ "0"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "394ae65d-9e71-4462-930f-3332dedf845c",
+ "TenantId": "b1af47f1-138c-4ed2-8bba-119041b95450",
+ "Domain": ""
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/Resources/Commands.Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestNewManagementGroup.json b/src/ResourceManager/Resources/Commands.Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestNewManagementGroup.json
new file mode 100644
index 000000000000..b81eb25c9bb7
--- /dev/null
+++ b/src/ResourceManager/Resources/Commands.Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestNewManagementGroup.json
@@ -0,0 +1,409 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSNewGroup?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU05ld0dyb3VwP2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==",
+ "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"
+ ],
+ "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/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"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "0"
+ ],
+ "x-ms-request-id": [
+ "eastus:1a5d4466-e4f0-4d2e-a4d0-ce6e70689eca"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "cb354c5e-8cad-4a77-b42d-eb126a6aa046"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1188"
+ ],
+ "x-ms-correlation-request-id": [
+ "233c60ea-e21f-4700-a749-f4e5ab8b9fa7"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T195034Z:233c60ea-e21f-4700-a749-f4e5ab8b9fa7"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "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"
+ ],
+ "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"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "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"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSNewGroup?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU05ld0dyb3VwP2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "fbe46d64-8dc1-4b48-ad00-22404438611f"
+ ],
+ "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/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"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "0"
+ ],
+ "x-ms-request-id": [
+ "eastus:e411c45b-f078-4413-b1a8-320bc6dd9189"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "c7a031c4-8b84-421c-815c-8d745377ca8e"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1187"
+ ],
+ "x-ms-correlation-request-id": [
+ "a379901c-c3ba-4c1e-8bc4-272208dbaae2"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T195047Z:a379901c-c3ba-4c1e-8bc4-272208dbaae2"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:50:46 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"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSNewGroup?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU05ld0dyb3VwP2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==",
+ "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}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "175"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "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"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "18eec10a-e2a5-46b1-b3e0-d5eda01f477d"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "14945"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T195057Z:f1012c50-a8f3-4609-834c-0a2720d5164b"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:50:57 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/operationResults/delete/managementGroups/TestPSNewGroup?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU05ld0dyb3VwP2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==",
+ "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}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "175"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "14944"
+ ],
+ "x-ms-request-id": [
+ "eastus:61ebb211-a85b-4076-a98d-1b1104a7d982"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "0639924a-a6fd-457d-a929-4087ace02991"
+ ],
+ "x-ms-correlation-request-id": [
+ "96db807d-edee-42d2-92fd-57b49ac39f78"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T195059Z:96db807d-edee-42d2-92fd-57b49ac39f78"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:50:58 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ],
+ "Retry-After": [
+ "0"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "394ae65d-9e71-4462-930f-3332dedf845c",
+ "TenantId": "b1af47f1-138c-4ed2-8bba-119041b95450",
+ "Domain": ""
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/Resources/Commands.Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestNewManagementGroupWithDisplayName.json b/src/ResourceManager/Resources/Commands.Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestNewManagementGroupWithDisplayName.json
new file mode 100644
index 000000000000..282958246579
--- /dev/null
+++ b/src/ResourceManager/Resources/Commands.Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestNewManagementGroupWithDisplayName.json
@@ -0,0 +1,409 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSNewGroup2?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU05ld0dyb3VwMj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "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"
+ ],
+ "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/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"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "0"
+ ],
+ "x-ms-request-id": [
+ "eastus:884015a6-6813-4e48-b08c-154b0a62be00"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "e4222a8d-c5c3-4598-b89f-fe994f0489ff"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1191"
+ ],
+ "x-ms-correlation-request-id": [
+ "f721cc7f-a0dd-4c1f-a890-03768c92880b"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194756Z:f721cc7f-a0dd-4c1f-a890-03768c92880b"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "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"
+ ],
+ "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"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "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"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSNewGroup2?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU05ld0dyb3VwMj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "58c809e8-41b2-4536-a858-f4099931affa"
+ ],
+ "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/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"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "0"
+ ],
+ "x-ms-request-id": [
+ "eastus:4530e555-8c6a-4aa3-8abd-7aa8720b76fa"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "abcfafdf-517f-4857-a459-dc7fad6e00eb"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1190"
+ ],
+ "x-ms-correlation-request-id": [
+ "9e64ccdb-eef7-4941-bcd3-edfef94edfd2"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194810Z:9e64ccdb-eef7-4941-bcd3-edfef94edfd2"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:48:10 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"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSNewGroup2?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU05ld0dyb3VwMj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "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}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "177"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "14961"
+ ],
+ "x-ms-request-id": [
+ "eastus:bbd33077-6f1a-4579-afca-bbf41035bdce"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "cf86533c-f9e9-4329-97b8-a6a9640aee71"
+ ],
+ "x-ms-correlation-request-id": [
+ "14a9b4ac-10a1-40ba-9cc8-45232b0a189a"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194821Z:14a9b4ac-10a1-40ba-9cc8-45232b0a189a"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:48:21 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/operationResults/delete/managementGroups/TestPSNewGroup2?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU05ld0dyb3VwMj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "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}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "177"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "14960"
+ ],
+ "x-ms-request-id": [
+ "eastus:1a541ece-92ab-440f-bbac-d59186f8d655"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "0a90516c-a63d-42d4-ac74-d79a9c1e8d53"
+ ],
+ "x-ms-correlation-request-id": [
+ "56c1c9f5-6030-4871-bc4e-cb06e27ceaf9"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194822Z:56c1c9f5-6030-4871-bc4e-cb06e27ceaf9"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:48:21 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ],
+ "Retry-After": [
+ "0"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "394ae65d-9e71-4462-930f-3332dedf845c",
+ "TenantId": "b1af47f1-138c-4ed2-8bba-119041b95450",
+ "Domain": ""
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/Resources/Commands.Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestNewManagementGroupWithDisplayNameAndParentId.json b/src/ResourceManager/Resources/Commands.Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestNewManagementGroupWithDisplayNameAndParentId.json
new file mode 100644
index 000000000000..95f77d168ec9
--- /dev/null
+++ b/src/ResourceManager/Resources/Commands.Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestNewManagementGroupWithDisplayNameAndParentId.json
@@ -0,0 +1,808 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestParent4?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQYXJlbnQ0P2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==",
+ "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"
+ ],
+ "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/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"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "0"
+ ],
+ "x-ms-request-id": [
+ "eastus:94d859d2-c27f-49f2-bfe8-bb815a177622"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "9508f228-ba1f-472c-9b6f-27025b74001f"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1185"
+ ],
+ "x-ms-correlation-request-id": [
+ "db27a0a5-8e62-44f2-ae18-0fdccfaae418"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194324Z:db27a0a5-8e62-44f2-ae18-0fdccfaae418"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "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"
+ ],
+ "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"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "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"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSGroup4?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dyb3VwND9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "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"
+ ],
+ "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/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"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "0"
+ ],
+ "x-ms-request-id": [
+ "eastus:c42f21ac-1590-47c0-8c69-10f9dfdbc6aa"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "f73cf2cc-6a87-460b-a0f2-26f3d5ce8d19"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1184"
+ ],
+ "x-ms-correlation-request-id": [
+ "77ebcc4f-209f-41f9-936e-f5c293758648"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194337Z:77ebcc4f-209f-41f9-936e-f5c293758648"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "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"
+ ],
+ "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"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "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"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSGroup4?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dyb3VwND9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "05ac2844-0f99-4237-91ce-5564b43db333"
+ ],
+ "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/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"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "0"
+ ],
+ "x-ms-request-id": [
+ "eastus:9542200e-512c-4090-9187-21eabe34b004"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "bbf1319a-809a-4b4d-a5b6-925e66f1f322"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1183"
+ ],
+ "x-ms-correlation-request-id": [
+ "be5ddf37-7bb9-4221-888c-dc1795fd6068"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194353Z:be5ddf37-7bb9-4221-888c-dc1795fd6068"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "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"
+ ],
+ "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/TestPSGroup4?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dyb3VwND9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "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}",
+ "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": [
+ "14958"
+ ],
+ "x-ms-request-id": [
+ "eastus:5489c61c-17d2-421f-9abe-b378d9a7815e"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "33ed8e1b-217a-4e7d-93bc-5633bf2c723e"
+ ],
+ "x-ms-correlation-request-id": [
+ "013febbd-0d0a-41ad-88ea-28c02ccd5c59"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194403Z:013febbd-0d0a-41ad-88ea-28c02ccd5c59"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:44:03 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/operationResults/delete/managementGroups/TestPSGroup4?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU0dyb3VwND9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "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}",
+ "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": [
+ "14957"
+ ],
+ "x-ms-request-id": [
+ "eastus:508dc2ba-1c55-4749-a93d-d4b134632562"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "559ea25c-8641-4167-b167-41e28f37ce94"
+ ],
+ "x-ms-correlation-request-id": [
+ "36b1183a-eb3d-4844-ac2b-1d8dd0320534"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194404Z:36b1183a-eb3d-4844-ac2b-1d8dd0320534"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:44:04 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/TestParent4?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQYXJlbnQ0P2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "79f7fbc5-a5c0-4e0a-a774-e7cf19c272f0"
+ ],
+ "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/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"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "0"
+ ],
+ "x-ms-request-id": [
+ "eastus:86e1c204-a336-48bd-8d9a-aaa61c0fe58d"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "16797594-fb65-41c4-a02a-c42ff6ef0c2a"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1182"
+ ],
+ "x-ms-correlation-request-id": [
+ "9c22d74e-a221-45c1-90b9-ec992a8cfe5a"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194406Z:9c22d74e-a221-45c1-90b9-ec992a8cfe5a"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:44:05 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"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestParent4?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQYXJlbnQ0P2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==",
+ "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}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "169"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "14956"
+ ],
+ "x-ms-request-id": [
+ "eastus:62d01510-5ac0-4f32-9ed9-985fe0f37b79"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "d646dcde-1308-4909-bc0b-9945c858b4b5"
+ ],
+ "x-ms-correlation-request-id": [
+ "a6e2facb-4d91-4e1c-9c78-3b44f960fe04"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194416Z:a6e2facb-4d91-4e1c-9c78-3b44f960fe04"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:44:16 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/operationResults/delete/managementGroups/TestParent4?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQYXJlbnQ0P2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==",
+ "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}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "169"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "14955"
+ ],
+ "x-ms-request-id": [
+ "eastus:2b0f971d-301e-4989-b36e-e16d9c4f66aa"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "96775f5f-41d3-4172-bc4c-e6af8f7b3696"
+ ],
+ "x-ms-correlation-request-id": [
+ "7bfd01e1-4cc2-4c94-9004-9fd6a6b9d92c"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194417Z:7bfd01e1-4cc2-4c94-9004-9fd6a6b9d92c"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:44:17 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ],
+ "Retry-After": [
+ "0"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "394ae65d-9e71-4462-930f-3332dedf845c",
+ "TenantId": "b1af47f1-138c-4ed2-8bba-119041b95450",
+ "Domain": ""
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/Resources/Commands.Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestNewManagementGroupWithParentId.json b/src/ResourceManager/Resources/Commands.Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestNewManagementGroupWithParentId.json
new file mode 100644
index 000000000000..fdcb6a94c779
--- /dev/null
+++ b/src/ResourceManager/Resources/Commands.Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestNewManagementGroupWithParentId.json
@@ -0,0 +1,883 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestParent5?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQYXJlbnQ1P2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==",
+ "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"
+ ],
+ "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/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"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "0"
+ ],
+ "x-ms-request-id": [
+ "eastus:513760cc-1aec-4931-afad-7590b81eda40"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "2c42fb6b-4b88-4e5c-8e62-f9c74f39f48c"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1189"
+ ],
+ "x-ms-correlation-request-id": [
+ "825e7396-27bf-467d-9f26-02814b5166b2"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194833Z:825e7396-27bf-467d-9f26-02814b5166b2"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "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"
+ ],
+ "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"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "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"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSNewGroup5?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU05ld0dyb3VwNT9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "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"
+ ],
+ "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/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"
+ ],
+ "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"
+ ]
+ },
+ "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"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "0"
+ ],
+ "x-ms-request-id": [
+ "eastus:c12be8df-d2a2-4aa6-ba92-cd5c44bf040c"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "ae66b6e8-9274-4441-9eb7-58240e45e0a7"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "14955"
+ ],
+ "x-ms-correlation-request-id": [
+ "3ff69887-1b5c-473b-9416-e12416df05bc"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194856Z:3ff69887-1b5c-473b-9416-e12416df05bc"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "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"
+ ],
+ "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"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "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"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSNewGroup5?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU05ld0dyb3VwNT9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "b53507c4-88f2-410a-8868-e233c82ea8ac"
+ ],
+ "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/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"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "0"
+ ],
+ "x-ms-request-id": [
+ "eastus:2ea84ca6-79f3-4385-bdba-2e253466afe2"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "bae70cc4-efae-4b75-aeed-bbbb91b62825"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1187"
+ ],
+ "x-ms-correlation-request-id": [
+ "0ecd5003-9897-432f-b1f7-a8e8b9dabd0a"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194911Z:0ecd5003-9897-432f-b1f7-a8e8b9dabd0a"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "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"
+ ],
+ "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/TestPSNewGroup5?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU05ld0dyb3VwNT9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "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}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "177"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "14953"
+ ],
+ "x-ms-request-id": [
+ "eastus:f7a7109d-9cfb-491a-8489-8f769823e309"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "57c8ebdf-bbcb-4433-97b1-1547cd3a1141"
+ ],
+ "x-ms-correlation-request-id": [
+ "fbad75d5-83f4-4019-9bef-fa7e9da94429"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194921Z:fbad75d5-83f4-4019-9bef-fa7e9da94429"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:49:20 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/operationResults/delete/managementGroups/TestPSNewGroup5?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU05ld0dyb3VwNT9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "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}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "177"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "14952"
+ ],
+ "x-ms-request-id": [
+ "eastus:c9d17d29-6f9d-4983-9ee1-59a080f198ce"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "f3a1702d-ca1f-4a14-8b3b-d92ee5bc4512"
+ ],
+ "x-ms-correlation-request-id": [
+ "aeb6c25a-66e4-42b5-b26c-11db55dbdf34"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194921Z:aeb6c25a-66e4-42b5-b26c-11db55dbdf34"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:49:21 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/TestParent5?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQYXJlbnQ1P2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "263d2bd9-c97d-4506-b859-7657438fcdb8"
+ ],
+ "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/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"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "0"
+ ],
+ "x-ms-request-id": [
+ "eastus:2bf5be25-6ff2-4b68-8d99-5a9a6024630f"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "1accc261-cfe1-42aa-a781-d48aa228eabc"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1186"
+ ],
+ "x-ms-correlation-request-id": [
+ "ca30713a-c1dd-4b05-ad97-2e2dc1380ed6"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194924Z:ca30713a-c1dd-4b05-ad97-2e2dc1380ed6"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "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"
+ ],
+ "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/TestParent5?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQYXJlbnQ1P2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==",
+ "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}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "169"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "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"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "5627264d-f15e-4f36-9683-da0391ea75e0"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "14951"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194934Z:a280a2ac-8d81-43bf-8b85-c7644693a96d"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:49:34 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/operationResults/delete/managementGroups/TestParent5?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQYXJlbnQ1P2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==",
+ "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}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "169"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "14950"
+ ],
+ "x-ms-request-id": [
+ "eastus:2df88639-0ac5-44dc-9608-a9a19adf8e5d"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "8d73a8b2-2d91-463c-b338-6b73fdf2870f"
+ ],
+ "x-ms-correlation-request-id": [
+ "7ee6c907-8b00-41b6-bfa8-4e50b82a7917"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194935Z:7ee6c907-8b00-41b6-bfa8-4e50b82a7917"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:49:34 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ],
+ "Retry-After": [
+ "0"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "394ae65d-9e71-4462-930f-3332dedf845c",
+ "TenantId": "b1af47f1-138c-4ed2-8bba-119041b95450",
+ "Domain": ""
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/Resources/Commands.Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestNewRemoveManagementGroupSubscription.json b/src/ResourceManager/Resources/Commands.Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestNewRemoveManagementGroupSubscription.json
new file mode 100644
index 000000000000..d543948d15d7
--- /dev/null
+++ b/src/ResourceManager/Resources/Commands.Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestNewRemoveManagementGroupSubscription.json
@@ -0,0 +1,727 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestSubGroup?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RTdWJHcm91cD9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "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"
+ ],
+ "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 \"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:e8f45a7d-e496-41a5-b6f3-c52f3fd92a14"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "a54ead26-7e8a-4f90-b742-7398a3226fef"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1192"
+ ],
+ "x-ms-correlation-request-id": [
+ "84d003f4-8c36-4678-9db8-3c8abe0e7678"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194947Z:84d003f4-8c36-4678-9db8-3c8abe0e7678"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "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"
+ ],
+ "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"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "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"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestSubGroup/subscriptions/394ae65d-9e71-4462-930f-3332dedf845c?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RTdWJHcm91cC9zdWJzY3JpcHRpb25zLzM5NGFlNjVkLTllNzEtNDQ2Mi05MzBmLTMzMzJkZWRmODQ1Yz9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestMethod": "PUT",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "beb4111f-63aa-48a3-8de8-e9ca7006e5a0"
+ ],
+ "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": "",
+ "ResponseHeaders": {
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "eastus:a800a9d1-5eb6-4dea-9d88-bc9f5b113b79"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "8eabd706-4750-49ea-9253-8e86fde9026c"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1191"
+ ],
+ "x-ms-correlation-request-id": [
+ "efdef509-a5ba-4a88-bca0-90112d7acaae"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T195002Z:efdef509-a5ba-4a88-bca0-90112d7acaae"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:50:02 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "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"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "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"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "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": [
+ "bea3d1fc-3503-49ea-888d-d46c65047b60"
+ ],
+ "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\": null\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "583"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "14951"
+ ],
+ "x-ms-request-id": [
+ "eastus:26be94e1-dd8f-4a9d-a961-1b18258e2a34"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "8c4c47e3-0625-4cbc-b11a-75d793f83e8f"
+ ],
+ "x-ms-correlation-request-id": [
+ "1663b99b-d59d-4227-8de2-c34de5148057"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T195009Z:1663b99b-d59d-4227-8de2-c34de5148057"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:50:09 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/TestSubGroup/subscriptions/394ae65d-9e71-4462-930f-3332dedf845c?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RTdWJHcm91cC9zdWJzY3JpcHRpb25zLzM5NGFlNjVkLTllNzEtNDQ2Mi05MzBmLTMzMzJkZWRmODQ1Yz9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "9e2fc497-b733-4729-8769-e2993e625838"
+ ],
+ "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": "",
+ "ResponseHeaders": {
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "eastus:deb546cf-22c3-46bd-90ec-00c2fb89acf1"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "8b2c7af5-0517-4e34-af21-7c00402de3cd"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1190"
+ ],
+ "x-ms-correlation-request-id": [
+ "0c94c6ee-2818-45f3-9e86-b5d37069fdb5"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T195008Z:0c94c6ee-2818-45f3-9e86-b5d37069fdb5"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:50:08 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "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",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RTdWJHcm91cD9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "d68543ce-694b-4d14-9a1e-c5e7bf0220a5"
+ ],
+ "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 \"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-request-id": [
+ "eastus:dd680135-b98f-4ecf-8f3d-8ed06330175f"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "4e981694-3180-43ea-924b-5cec8f394787"
+ ],
+ "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"
+ ],
+ "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/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-correlation-request-id": [
+ "a72fa3a9-68ea-42c3-81a3-9e3ef9b3243e"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T195022Z:a72fa3a9-68ea-42c3-81a3-9e3ef9b3243e"
+ ],
+ "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"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ],
+ "Retry-After": [
+ "0"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "394ae65d-9e71-4462-930f-3332dedf845c",
+ "TenantId": "b1af47f1-138c-4ed2-8bba-119041b95450",
+ "Domain": ""
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/Resources/Commands.Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestRemoveManagementGroup.json b/src/ResourceManager/Resources/Commands.Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestRemoveManagementGroup.json
new file mode 100644
index 000000000000..5937481d7ef6
--- /dev/null
+++ b/src/ResourceManager/Resources/Commands.Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestRemoveManagementGroup.json
@@ -0,0 +1,649 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSRemoveGroup?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1JlbW92ZUdyb3VwP2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==",
+ "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"
+ ],
+ "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/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"
+ ],
+ "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"
+ ]
+ },
+ "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"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "0"
+ ],
+ "x-ms-request-id": [
+ "eastus:0c3e915c-e6ff-4422-9bcd-fd84f03a6f2d"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "260d751a-6fc9-482b-bfc9-936b97caa972"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "14992"
+ ],
+ "x-ms-correlation-request-id": [
+ "3ab14e3e-0c75-4df3-a97f-1ff9f934fecf"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T193900Z:3ab14e3e-0c75-4df3-a97f-1ff9f934fecf"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "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"
+ ],
+ "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"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "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"
+ ]
+ },
+ "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": [
+ "92e89d65-376a-401a-958e-d1b9750232ce"
+ ],
+ "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/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"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "14990"
+ ],
+ "x-ms-request-id": [
+ "eastus:99e5373c-cda2-49a8-a13f-3a5037a79873"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "ceab6d40-64ea-48ad-84e8-c0a9ab401ed4"
+ ],
+ "x-ms-correlation-request-id": [
+ "03e60a13-de34-4459-bd88-d9bb7f264de6"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T193912Z:03e60a13-de34-4459-bd88-d9bb7f264de6"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "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"
+ ],
+ "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"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "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
+ },
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSRemoveGroup?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1JlbW92ZUdyb3VwP2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "edc9458b-085b-401a-8501-d45c695ac1e0"
+ ],
+ "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/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"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "0"
+ ],
+ "x-ms-request-id": [
+ "eastus:ccad251e-484a-4cdb-bf57-c36ba70a2873"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "44ffd7ca-0f5f-4e7a-95a8-40a0f97ead77"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1198"
+ ],
+ "x-ms-correlation-request-id": [
+ "5e6289d9-b9ed-41bb-91b7-02a31f6afe2a"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T193915Z:5e6289d9-b9ed-41bb-91b7-02a31f6afe2a"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "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"
+ ],
+ "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/TestPSRemoveGroup?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1JlbW92ZUdyb3VwP2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==",
+ "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}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "181"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "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"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "6cac8efa-cc08-47b4-80c8-6d3d1cfb5c45"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "14989"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T193926Z:db0f3912-cfb2-4b56-9d4b-f64ca0275995"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:39:25 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/operationResults/delete/managementGroups/TestPSRemoveGroup?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1JlbW92ZUdyb3VwP2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==",
+ "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}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "181"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "14988"
+ ],
+ "x-ms-request-id": [
+ "eastus:9899a161-44ea-4090-a6c6-8edb7b11240d"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "e1c64b80-611b-4bf7-b00d-7cb863194e96"
+ ],
+ "x-ms-correlation-request-id": [
+ "5a815ee6-5826-4368-8e26-46ff86c322ec"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T193927Z:5a815ee6-5826-4368-8e26-46ff86c322ec"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:39:27 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ],
+ "Retry-After": [
+ "0"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "394ae65d-9e71-4462-930f-3332dedf845c",
+ "TenantId": "b1af47f1-138c-4ed2-8bba-119041b95450",
+ "Domain": ""
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/Resources/Commands.Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestUpdateManagementGroupWithDisplayName.json b/src/ResourceManager/Resources/Commands.Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestUpdateManagementGroupWithDisplayName.json
new file mode 100644
index 000000000000..8d01b9e4e1e4
--- /dev/null
+++ b/src/ResourceManager/Resources/Commands.Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestUpdateManagementGroupWithDisplayName.json
@@ -0,0 +1,574 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup1?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwMT9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "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"
+ ],
+ "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/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"
+ ],
+ "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"
+ ]
+ },
+ "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"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "0"
+ ],
+ "x-ms-request-id": [
+ "eastus:e1afcde4-2a81-4f78-8fc6-e71647c97d34"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "053984b6-c62f-4af6-8186-9784300f49e8"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "14995"
+ ],
+ "x-ms-correlation-request-id": [
+ "7c3566d3-4f23-4ef8-bb11-c403e7a59371"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T193806Z:7c3566d3-4f23-4ef8-bb11-c403e7a59371"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:38:06 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"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "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"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup1?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwMT9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "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"
+ ],
+ "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/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"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1198"
+ ],
+ "x-ms-request-id": [
+ "eastus:23b72095-1da7-4264-ac81-b1d25daede9d"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "43f9e585-7575-4b87-9fe9-dc138fef6964"
+ ],
+ "x-ms-correlation-request-id": [
+ "ad3ff6c9-fa78-46ae-8fe0-13db2949cb4e"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T193822Z:ad3ff6c9-fa78-46ae-8fe0-13db2949cb4e"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:38:22 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/TestPSUpdateGroup1?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwMT9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "21847dde-bb08-4538-b83d-8a96fa6e5a4e"
+ ],
+ "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/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"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "0"
+ ],
+ "x-ms-request-id": [
+ "eastus:ff5e16e1-4bca-4a1b-b47d-39e5212b739b"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "5a7902c4-ff7b-484c-9ba1-6ff38a4cf002"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1197"
+ ],
+ "x-ms-correlation-request-id": [
+ "7a87b14e-bfd4-451f-af65-ccd1fc9cd59a"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T193826Z:7a87b14e-bfd4-451f-af65-ccd1fc9cd59a"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:38:25 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"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSUpdateGroup1?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwMT9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "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}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "183"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "14993"
+ ],
+ "x-ms-request-id": [
+ "eastus:6f7732d6-7417-43fd-8c4b-9edbbdc18916"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "f10b94c3-72c9-43f0-9417-a25431efcc48"
+ ],
+ "x-ms-correlation-request-id": [
+ "2297a126-1944-4455-9ff3-5aeacd025196"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T193837Z:2297a126-1944-4455-9ff3-5aeacd025196"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:38:37 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/operationResults/delete/managementGroups/TestPSUpdateGroup1?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwMT9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "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}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "183"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "14992"
+ ],
+ "x-ms-request-id": [
+ "eastus:eaf6a3cc-ac51-4371-b5ab-fd52447ed873"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "9b187d27-835d-4a05-af0f-29426e54e8a1"
+ ],
+ "x-ms-correlation-request-id": [
+ "1fdb18d8-53bd-45fe-8272-57b311b740b0"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T193837Z:1fdb18d8-53bd-45fe-8272-57b311b740b0"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:38:37 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ],
+ "Retry-After": [
+ "0"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "394ae65d-9e71-4462-930f-3332dedf845c",
+ "TenantId": "b1af47f1-138c-4ed2-8bba-119041b95450",
+ "Domain": ""
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/Resources/Commands.Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestUpdateManagementGroupWithDisplayNameAndParentId.json b/src/ResourceManager/Resources/Commands.Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestUpdateManagementGroupWithDisplayNameAndParentId.json
new file mode 100644
index 000000000000..94f5da13e54e
--- /dev/null
+++ b/src/ResourceManager/Resources/Commands.Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestUpdateManagementGroupWithDisplayNameAndParentId.json
@@ -0,0 +1,898 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSUpdateGroupParent3?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwUGFyZW50Mz9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "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"
+ ],
+ "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/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"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "0"
+ ],
+ "x-ms-request-id": [
+ "eastus:eedb9067-6739-4c98-ae82-08e58ab4cfd4"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "e79b2992-859e-4495-8d5d-9f5ddc88f89b"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1196"
+ ],
+ "x-ms-correlation-request-id": [
+ "ba406ca9-9029-45ca-95ca-730698ea7251"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194545Z:ba406ca9-9029-45ca-95ca-730698ea7251"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "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"
+ ],
+ "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"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "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"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup3?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwMz9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "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"
+ ],
+ "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/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"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "0"
+ ],
+ "x-ms-request-id": [
+ "eastus:446e4587-7d1b-482a-aaa5-20bd38792bcd"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "0cf9e704-8b86-4d0f-bdaf-83cddcdd3191"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1195"
+ ],
+ "x-ms-correlation-request-id": [
+ "379b99be-5bbf-4d10-9ff7-e127f0d06dc0"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194558Z:379b99be-5bbf-4d10-9ff7-e127f0d06dc0"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "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"
+ ],
+ "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"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "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"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup3?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwMz9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestMethod": "PATCH",
+ "RequestBody": "{\r\n \"displayName\": \"TestDisplayName\",\r\n \"parentId\": \"/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"
+ ],
+ "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/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"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1194"
+ ],
+ "x-ms-request-id": [
+ "eastus:7b051b99-685d-49d8-9eb3-5ede1fb2ee74"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "15fdc5c5-fb76-4a04-aa7f-32312e3b88b9"
+ ],
+ "x-ms-correlation-request-id": [
+ "f12f466e-ca15-417d-a799-5a88d11341d6"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194612Z:f12f466e-ca15-417d-a799-5a88d11341d6"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:46:11 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/TestPSUpdateGroup3?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwMz9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "1a38908c-bc41-4c42-bb01-3ba85700ff29"
+ ],
+ "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/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"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "0"
+ ],
+ "x-ms-request-id": [
+ "eastus:5a68c6fe-1fe7-4dc3-b22c-58b8d8e3389e"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "f3af3591-ead8-43ff-85be-f803401b52c2"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1193"
+ ],
+ "x-ms-correlation-request-id": [
+ "97952840-4d51-4c89-b622-087746750411"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194614Z:97952840-4d51-4c89-b622-087746750411"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:46:14 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"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSUpdateGroup3?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwMz9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "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}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "183"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "14971"
+ ],
+ "x-ms-request-id": [
+ "eastus:735eed7e-1363-40e8-9102-7e1b35ece6f7"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "4d5ef4b0-9d3f-49fb-9d96-ba767360864d"
+ ],
+ "x-ms-correlation-request-id": [
+ "53d21f92-a98a-45ac-b45b-5a5d0772af43"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194624Z:53d21f92-a98a-45ac-b45b-5a5d0772af43"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:46:24 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/operationResults/delete/managementGroups/TestPSUpdateGroup3?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwMz9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "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}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "183"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "14970"
+ ],
+ "x-ms-request-id": [
+ "eastus:41804825-7383-4e24-bbcd-019d9cb928ae"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "45121e84-987b-4224-a8d8-64b10fad5da8"
+ ],
+ "x-ms-correlation-request-id": [
+ "f19a31ed-3914-4efd-bc9a-135e7f283736"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194625Z:f19a31ed-3914-4efd-bc9a-135e7f283736"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:46:24 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/TestPSUpdateGroupParent3?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwUGFyZW50Mz9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "7385ef02-6289-41b5-8623-623ca0d9424b"
+ ],
+ "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/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"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "0"
+ ],
+ "x-ms-request-id": [
+ "eastus:fef8a77d-4284-43d6-91e6-d091afb985df"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "431f1e8c-752d-4bbb-8d81-cf3d331884d4"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1192"
+ ],
+ "x-ms-correlation-request-id": [
+ "d3cc2b79-a852-4bbc-8203-7d248c1ec849"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194627Z:d3cc2b79-a852-4bbc-8203-7d248c1ec849"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:46:26 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"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSUpdateGroupParent3?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwUGFyZW50Mz9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "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}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "195"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "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"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "1557c06c-f84a-443e-a244-58a856187bfa"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "14969"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194637Z:6397cf9e-0886-4763-b994-01939ae613fa"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:46:37 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/operationResults/delete/managementGroups/TestPSUpdateGroupParent3?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwUGFyZW50Mz9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "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}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "195"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "14968"
+ ],
+ "x-ms-request-id": [
+ "eastus:8757b356-a017-4408-b4b4-ff2cd3987cc8"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "f840168a-da3b-4e7e-b96a-44e20956dfbb"
+ ],
+ "x-ms-correlation-request-id": [
+ "1923d658-9ecc-43ac-89c6-d2ba654aef0f"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194638Z:1923d658-9ecc-43ac-89c6-d2ba654aef0f"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:46:38 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ],
+ "Retry-After": [
+ "0"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "394ae65d-9e71-4462-930f-3332dedf845c",
+ "TenantId": "b1af47f1-138c-4ed2-8bba-119041b95450",
+ "Domain": ""
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/Resources/Commands.Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestUpdateManagementGroupWithParentId.json b/src/ResourceManager/Resources/Commands.Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestUpdateManagementGroupWithParentId.json
new file mode 100644
index 000000000000..567faa04474e
--- /dev/null
+++ b/src/ResourceManager/Resources/Commands.Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests/TestUpdateManagementGroupWithParentId.json
@@ -0,0 +1,973 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSUpdateGroupParent2?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwUGFyZW50Mj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "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"
+ ],
+ "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/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"
+ ],
+ "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"
+ ]
+ },
+ "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"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "0"
+ ],
+ "x-ms-request-id": [
+ "eastus:7e7138e4-fcb7-40f4-a5cd-3644d0f93928"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "b27b0148-826c-4660-99f7-09570684e5b5"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "14974"
+ ],
+ "x-ms-correlation-request-id": [
+ "50d83856-071d-45e6-bd13-07d5ed4e091d"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194439Z:50d83856-071d-45e6-bd13-07d5ed4e091d"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:44:39 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"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "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"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup2?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwMj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "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"
+ ],
+ "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/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"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "0"
+ ],
+ "x-ms-request-id": [
+ "eastus:6b9be925-d090-43de-8c41-5ab1a164c72c"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "4d4a8320-956f-4c79-93fe-cbc9227a9177"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1196"
+ ],
+ "x-ms-correlation-request-id": [
+ "dc454713-4586-4d42-864f-cd4426237b97"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194451Z:dc454713-4586-4d42-864f-cd4426237b97"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:44:51 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"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "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"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/TestPSUpdateGroup2?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwMj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestMethod": "PATCH",
+ "RequestBody": "{\r\n \"parentId\": \"/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"
+ ],
+ "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/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"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1195"
+ ],
+ "x-ms-request-id": [
+ "eastus:33301b6d-6ee8-4f64-a690-390c660b623a"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "45862988-5b1e-4d48-9eb1-1f1094e9285c"
+ ],
+ "x-ms-correlation-request-id": [
+ "d6ea059e-13f3-4c98-8b5a-13cccb5189d1"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194506Z:d6ea059e-13f3-4c98-8b5a-13cccb5189d1"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:45:06 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/TestPSUpdateGroup2?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwMj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "33a82a14-97d5-455f-99fd-36e95d9e3bf6"
+ ],
+ "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/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"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "0"
+ ],
+ "x-ms-request-id": [
+ "eastus:0f167038-c19f-44ae-9a66-0fefec966a92"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "2d20e94b-a6fa-4caf-899f-030618a1a833"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1194"
+ ],
+ "x-ms-correlation-request-id": [
+ "88fc034e-b3a7-472f-a640-dc7be4b969e2"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194508Z:88fc034e-b3a7-472f-a640-dc7be4b969e2"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:45:08 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"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/providers/Microsoft.Management/operationResults/delete/managementGroups/TestPSUpdateGroup2?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwMj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "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}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "183"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "14971"
+ ],
+ "x-ms-request-id": [
+ "eastus:eb092686-d998-44f1-8098-106fa24ad626"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "400a5f58-cd63-43b3-ab77-378fa19cb39f"
+ ],
+ "x-ms-correlation-request-id": [
+ "e27532ed-f8a6-4c9c-8acb-a9c47c5c0303"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194519Z:e27532ed-f8a6-4c9c-8acb-a9c47c5c0303"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:45:18 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/operationResults/delete/managementGroups/TestPSUpdateGroup2?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwMj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "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}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "183"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "14970"
+ ],
+ "x-ms-request-id": [
+ "eastus:96c9f5bf-af56-4b8a-9fc6-2638e2d3308e"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "63675a06-74af-4909-8a9a-4e837c8d45e9"
+ ],
+ "x-ms-correlation-request-id": [
+ "944124a7-1295-47d9-9f03-62fac5139306"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194519Z:944124a7-1295-47d9-9f03-62fac5139306"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:45:19 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/TestPSUpdateGroupParent2?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwUGFyZW50Mj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "9cee8b40-8d3f-4cfb-be76-b13569c25d9a"
+ ],
+ "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/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"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "0"
+ ],
+ "x-ms-request-id": [
+ "eastus:6d2eeabe-8c33-4fec-bb08-f195daff1ee9"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "0a083783-f76c-45f3-9193-66b75dbec8d6"
+ ],
+ "x-ms-ratelimit-remaining-tenant-writes": [
+ "1193"
+ ],
+ "x-ms-correlation-request-id": [
+ "cb401957-d0d2-44ca-9fab-c721bf0288ca"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194522Z:cb401957-d0d2-44ca-9fab-c721bf0288ca"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "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"
+ ],
+ "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/TestPSUpdateGroupParent2?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwUGFyZW50Mj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "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}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "195"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "14969"
+ ],
+ "x-ms-request-id": [
+ "eastus:fa737475-de45-46ae-a60e-aaaddd229f87"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "916f0a41-06cd-4b12-beda-d189ad637789"
+ ],
+ "x-ms-correlation-request-id": [
+ "e1579467-dc26-4991-bf5f-ffabe4f0bf5c"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194532Z:e1579467-dc26-4991-bf5f-ffabe4f0bf5c"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:45:31 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/operationResults/delete/managementGroups/TestPSUpdateGroupParent2?api-version=2018-03-01-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL2RlbGV0ZS9tYW5hZ2VtZW50R3JvdXBzL1Rlc3RQU1VwZGF0ZUdyb3VwUGFyZW50Mj9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
+ "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}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "195"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "14968"
+ ],
+ "x-ms-request-id": [
+ "eastus:738cdab7-e501-4880-bea3-2b94029f89cf"
+ ],
+ "x-ba-restapi": [
+ "1.0.3.795"
+ ],
+ "request-id": [
+ "88dbef6b-e3f5-44bb-b307-ff95354a33ea"
+ ],
+ "x-ms-correlation-request-id": [
+ "ca776754-89d6-4836-b5a8-4b19b0c039e9"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20180524T194533Z:ca776754-89d6-4836-b5a8-4b19b0c039e9"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 19:45:33 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ],
+ "Retry-After": [
+ "0"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "394ae65d-9e71-4462-930f-3332dedf845c",
+ "TenantId": "b1af47f1-138c-4ed2-8bba-119041b95450",
+ "Domain": ""
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/Resources/Commands.Resources.Test/packages.config b/src/ResourceManager/Resources/Commands.Resources.Test/packages.config
index 6429cd3da63e..c25414d5f40b 100644
--- a/src/ResourceManager/Resources/Commands.Resources.Test/packages.config
+++ b/src/ResourceManager/Resources/Commands.Resources.Test/packages.config
@@ -7,6 +7,7 @@
+
diff --git a/src/ResourceManager/Resources/Commands.Resources/Commands.Resources.Netcore.csproj b/src/ResourceManager/Resources/Commands.Resources/Commands.Resources.Netcore.csproj
index 3b4764191aad..1e582e3b7d80 100644
--- a/src/ResourceManager/Resources/Commands.Resources/Commands.Resources.Netcore.csproj
+++ b/src/ResourceManager/Resources/Commands.Resources/Commands.Resources.Netcore.csproj
@@ -28,6 +28,7 @@
+
diff --git a/src/ResourceManager/Resources/Commands.Resources/Commands.Resources.csproj b/src/ResourceManager/Resources/Commands.Resources/Commands.Resources.csproj
index 398ee4c7dfed..bc60fdfe063b 100644
--- a/src/ResourceManager/Resources/Commands.Resources/Commands.Resources.csproj
+++ b/src/ResourceManager/Resources/Commands.Resources/Commands.Resources.csproj
@@ -48,6 +48,9 @@
false
+
+ ..\..\..\packages\Microsoft.Azure.Management.ManagementGroups.1.1.0-preview\lib\net452\Microsoft.Azure.Management.ManagementGroups.dll
+
..\..\..\packages\Microsoft.Azure.Management.ResourceManager.1.6.0-preview\lib\net452\Microsoft.Azure.Management.ResourceManager.dll
@@ -97,8 +100,26 @@
+
+
+
+ True
+ True
+ Resource.resx
+
+
+
+
+
+
+
+
+
+
+
+
@@ -180,6 +201,10 @@
+
+ ResXFileCodeGenerator
+ Resource.Designer.cs
+
ResXFileCodeGenerator
Designer
diff --git a/src/ResourceManager/Resources/Commands.Resources/ManagementGroups/Common/AzureManagementGroupsCmdletBase.cs b/src/ResourceManager/Resources/Commands.Resources/ManagementGroups/Common/AzureManagementGroupsCmdletBase.cs
new file mode 100644
index 000000000000..41d1924ff21f
--- /dev/null
+++ b/src/ResourceManager/Resources/Commands.Resources/ManagementGroups/Common/AzureManagementGroupsCmdletBase.cs
@@ -0,0 +1,143 @@
+// ----------------------------------------------------------------------------------
+//
+// 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 Microsoft.Azure.Commands.Common.Authentication;
+using Microsoft.Azure.Commands.Common.Authentication.Abstractions;
+using Microsoft.Azure.Commands.ResourceManager.Common;
+using Microsoft.Azure.Management.Internal.Resources;
+using Microsoft.Azure.Management.Internal.Resources.Models;
+using Microsoft.Azure.Management.ManagementGroups;
+using Microsoft.Rest.Azure;
+using Microsoft.WindowsAzure.Commands.Utilities.Common;
+
+namespace Microsoft.Azure.Commands.Resources.ManagementGroups.Common
+{
+ ///
+ /// Base class of Azure Management Groups Cmdlet.
+ ///
+ public abstract class AzureManagementGroupsCmdletBase : AzureRMCmdlet
+ {
+ private IManagementGroupsAPIClient _managementGroupsApiClient;
+
+ ///
+ /// Gets or sets the Groups RP client.
+ ///
+ public IManagementGroupsAPIClient ManagementGroupsApiClient
+ {
+ get
+ {
+ return _managementGroupsApiClient ??
+ (_managementGroupsApiClient =
+ AzureSession.Instance.ClientFactory.CreateArmClient(
+ DefaultProfile.DefaultContext,
+ AzureEnvironment.Endpoint.ResourceManager));
+ }
+ set { _managementGroupsApiClient = value; }
+
+ }
+
+ public void PreregisterSubscription(string subscriptionId)
+ {
+ IAzureContext context;
+ if (TryGetDefaultContext(out context)
+ && context.Account != null
+ && context.Subscription != null)
+ {
+ if (subscriptionId == context.Subscription.Id)
+ {
+ return;
+ }
+
+ short RetryCount = 10;
+ string providerName = "Microsoft.Management";
+ try
+ {
+ var rmclient = new ResourceManagementClient(
+ context.Environment.GetEndpointAsUri(AzureEnvironment.Endpoint.ResourceManager),
+ AzureSession.Instance.AuthenticationFactory.GetServiceClientCredentials(context, AzureEnvironment.Endpoint.ResourceManager))
+ {
+ SubscriptionId = subscriptionId
+ };
+ var provider = rmclient.Providers.Get(providerName);
+ if (provider.RegistrationState != RegistrationState.Registered)
+ {
+ short retryCount = 0;
+ do
+ {
+ if (retryCount++ > RetryCount)
+ {
+ throw new TimeoutException();
+ }
+ provider = rmclient.Providers.Register(providerName);
+ TestMockSupport.Delay(2000);
+ } while (provider.RegistrationState != RegistrationState.Registered);
+ }
+ }
+ catch (Exception e)
+ {
+ if (e.Message?.IndexOf("does not have authorization") >= 0 && e.Message?.IndexOf("register/action",
+ StringComparison.InvariantCultureIgnoreCase) >= 0)
+ {
+ throw new CloudException(e.Message);
+ }
+ }
+ }
+ }
+
+ public void PreregisterSubscription()
+ {
+ IAzureContext context;
+ if (TryGetDefaultContext(out context)
+ && context.Account != null
+ && context.Subscription != null)
+ {
+ short RetryCount = 10;
+ string providerName = "Microsoft.Management";
+ try
+ {
+ var rmclient = new ResourceManagementClient(
+ context.Environment.GetEndpointAsUri(AzureEnvironment.Endpoint.ResourceManager),
+ AzureSession.Instance.AuthenticationFactory.GetServiceClientCredentials(context, AzureEnvironment.Endpoint.ResourceManager))
+ {
+ SubscriptionId = context.Subscription.Id
+ };
+ var provider = rmclient.Providers.Get(providerName);
+ if (provider.RegistrationState != RegistrationState.Registered)
+ {
+ short retryCount = 0;
+ do
+ {
+ if (retryCount++ > RetryCount)
+ {
+ throw new TimeoutException();
+ }
+ provider = rmclient.Providers.Register(providerName);
+ TestMockSupport.Delay(2000);
+ } while (provider.RegistrationState != RegistrationState.Registered);
+ }
+ }
+ catch (Exception e)
+ {
+ if (e.Message?.IndexOf("does not have authorization") >= 0 && e.Message?.IndexOf("register/action",
+ StringComparison.InvariantCultureIgnoreCase) >= 0)
+ {
+ throw new CloudException(e.Message);
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/src/ResourceManager/Resources/Commands.Resources/ManagementGroups/Common/Constants.cs b/src/ResourceManager/Resources/Commands.Resources/ManagementGroups/Common/Constants.cs
new file mode 100644
index 000000000000..c14bc579c3f1
--- /dev/null
+++ b/src/ResourceManager/Resources/Commands.Resources/ManagementGroups/Common/Constants.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.
+// ----------------------------------------------------------------------------------
+
+namespace Microsoft.Azure.Commands.Resources.ManagementGroups.Common
+{
+ class Constants
+ {
+ public class ParameterSetNames
+ {
+ public const string GetParameterSet = "GetOperation";
+ public const string ListParameterSet = "ListOperation";
+ public const string GroupOperationsParameterSet = "GroupOperations";
+ public const string SubscriptionOperationsParameterSet = "SubscriptionOperations";
+ public const string ManagementGroupParameterSet = "ManagementGroupObject";
+ public const string ParentGroupParameterSet = "ParentGroupObject";
+ public const string ParentGroupAndManagementGroupParameterSet = "ParentAndManagementGroupObject";
+ }
+
+ public class HelpMessages
+ {
+ public const string SubscriptionId = "Subscription Id of the subscription associated witht the management";
+ public const string GroupId = "Management Group Id";
+ public const string Recurse = "Recursively list the children of the management group";
+ public const string ParentId = "Parent Id of the management group";
+ public const string GroupName = "Management Group Id";
+ public const string DisplayName = "Display Name of the management group";
+ public const string Expand = "Expand the output to list the children of the management group";
+ public const string Force = "Force the action and skip confirmations";
+ public const string InputObject = "Input Object from the Get call";
+ public const string ParentObject = "Parent Object";
+ }
+
+ public static string GroupUrlPrefix = "/providers/Microsoft.Management/managementGroups/";
+ public static string GroupType = "/providers/Microsoft.Management/managementGroups";
+ }
+}
diff --git a/src/ResourceManager/Resources/Commands.Resources/ManagementGroups/Common/Resource.Designer.cs b/src/ResourceManager/Resources/Commands.Resources/ManagementGroups/Common/Resource.Designer.cs
new file mode 100644
index 000000000000..302598c1041a
--- /dev/null
+++ b/src/ResourceManager/Resources/Commands.Resources/ManagementGroups/Common/Resource.Designer.cs
@@ -0,0 +1,174 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+// Runtime Version:4.0.30319.42000
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+namespace Microsoft.Azure.Commands.Resources.ManagementGroups.Common {
+ using System;
+
+
+ ///
+ /// A strongly-typed resource class, for looking up localized strings, etc.
+ ///
+ // This class was auto-generated by the StronglyTypedResourceBuilder
+ // class via a tool like ResGen or Visual Studio.
+ // To add or remove a member, edit your .ResX file then rerun ResGen
+ // with the /str option, or rebuild your VS project.
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ internal class Resource {
+
+ private static global::System.Resources.ResourceManager resourceMan;
+
+ private static global::System.Globalization.CultureInfo resourceCulture;
+
+ [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+ internal Resource() {
+ }
+
+ ///
+ /// Returns the cached ResourceManager instance used by this class.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Resources.ResourceManager ResourceManager {
+ get {
+ if (object.ReferenceEquals(resourceMan, null)) {
+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Microsoft.Azure.Commands.Resources.ManagementGroups.Common.Resource", typeof(Resource).Assembly);
+ resourceMan = temp;
+ }
+ return resourceMan;
+ }
+ }
+
+ ///
+ /// Overrides the current thread's CurrentUICulture property for all
+ /// resource lookups using this strongly typed resource class.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Globalization.CultureInfo Culture {
+ get {
+ return resourceCulture;
+ }
+ set {
+ resourceCulture = value;
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Are you sure you want to create a new management group named "{0}"?.
+ ///
+ internal static string NewManagementGroupShouldProcessAction
+ {
+ get
+ {
+ return ResourceManager.GetString("NewManagementGroupShouldProcessAction", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Creating management group "{0}".
+ ///
+ internal static string NewManagementGroupShouldProcessTarget
+ {
+ get
+ {
+ return ResourceManager.GetString("NewManagementGroupShouldProcessTarget", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Are you sure you want to add subscription {0} to group "{1}"?.
+ ///
+ internal static string NewManagementGroupSubShouldProcessAction
+ {
+ get
+ {
+ return ResourceManager.GetString("NewManagementGroupSubShouldProcessAction", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Adding subscription {0} to group "{1}".
+ ///
+ internal static string NewManagementGroupSubShouldProcessTarget
+ {
+ get
+ {
+ return ResourceManager.GetString("NewManagementGroupSubShouldProcessTarget", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Removing management group "{0}".
+ ///
+ internal static string RemoveManagementGroupShouldProcessAction
+ {
+ get
+ {
+ return ResourceManager.GetString("RemoveManagementGroupShouldProcessAction", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Are you sure you want to remove management group "{0}"?.
+ ///
+ internal static string RemoveManagementGroupShouldProcessTarget
+ {
+ get
+ {
+ return ResourceManager.GetString("RemoveManagementGroupShouldProcessTarget", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Removing subscription {0} from group "{1}".
+ ///
+ internal static string RemoveManagementGroupSubShouldProcessAction
+ {
+ get
+ {
+ return ResourceManager.GetString("RemoveManagementGroupSubShouldProcessAction", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Are you sure you want to remove subscription {0} from group "{1}"?.
+ ///
+ internal static string RemoveManagementGroupSubShouldProcessTarget
+ {
+ get
+ {
+ return ResourceManager.GetString("RemoveManagementGroupSubShouldProcessTarget", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Updating management group "{0}".
+ ///
+ internal static string UpdateManagementGroupShouldProcessAction
+ {
+ get
+ {
+ return ResourceManager.GetString("UpdateManagementGroupShouldProcessAction", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Are you sure you want to update management group "{0}"?.
+ ///
+ internal static string UpdateManagementGroupShouldProcessTarget
+ {
+ get
+ {
+ return ResourceManager.GetString("UpdateManagementGroupShouldProcessTarget", resourceCulture);
+ }
+ }
+
+ }
+}
diff --git a/src/ResourceManager/Resources/Commands.Resources/ManagementGroups/Common/Resource.resx b/src/ResourceManager/Resources/Commands.Resources/ManagementGroups/Common/Resource.resx
new file mode 100644
index 000000000000..1b954d34bc01
--- /dev/null
+++ b/src/ResourceManager/Resources/Commands.Resources/ManagementGroups/Common/Resource.resx
@@ -0,0 +1,150 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ Are you sure you want to create a new management group named "{0}"?
+
+
+ Creating management group "{0}"
+
+
+ Are you sure you want to add subscription {0} to group "{1}"?
+
+
+ Adding subscription {0} to group "{1}"
+
+
+ Removing management group "{0}"
+
+
+ Are you sure you want to remove management group "{0}"?
+
+
+ Removing subscription {0} from group "{1}"
+
+
+ Are you sure you want to remove subscription {0} from group "{1}"?
+
+
+ Updating management group "{0}"
+
+
+ Are you sure you want to update management group "{0}"?
+
+
\ No newline at end of file
diff --git a/src/ResourceManager/Resources/Commands.Resources/ManagementGroups/Common/Utility.cs b/src/ResourceManager/Resources/Commands.Resources/ManagementGroups/Common/Utility.cs
new file mode 100644
index 000000000000..1a801863ab83
--- /dev/null
+++ b/src/ResourceManager/Resources/Commands.Resources/ManagementGroups/Common/Utility.cs
@@ -0,0 +1,61 @@
+// ----------------------------------------------------------------------------------
+//
+// 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.Collections.Generic;
+using Microsoft.Azure.Management.ManagementGroups.Models;
+using Microsoft.Rest.Azure;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Linq;
+
+namespace Microsoft.Azure.Commands.Resources.ManagementGroups.Common
+{
+ static class Utility
+ {
+ public static void HandleErrorResponseException(ErrorResponseException ex)
+ {
+ if (!string.IsNullOrEmpty(ex.Response.Content))
+ {
+ Dictionary content;
+ try
+ {
+ content = JsonConvert.DeserializeObject>(ex.Response.Content);
+ }
+ catch
+ {
+ throw ex;
+ }
+
+ if (content.ContainsKey("Message"))
+ {
+ throw new CloudException(content["Message"].ToString());
+ }
+
+ if (content.ContainsKey("error"))
+ {
+ JObject errorResponse = (JObject)content["error"];
+ JToken errorMessage;
+ if (errorResponse.TryGetValue("message", StringComparison.InvariantCultureIgnoreCase, out errorMessage))
+ {
+ throw new CloudException(errorMessage.ToString());
+ }
+ }
+ }
+ else
+ {
+ throw ex;
+ }
+ }
+ }
+}
diff --git a/src/ResourceManager/Resources/Commands.Resources/ManagementGroups/GetAzureRmManagementGroup.cs b/src/ResourceManager/Resources/Commands.Resources/ManagementGroups/GetAzureRmManagementGroup.cs
new file mode 100644
index 000000000000..160a4c06101d
--- /dev/null
+++ b/src/ResourceManager/Resources/Commands.Resources/ManagementGroups/GetAzureRmManagementGroup.cs
@@ -0,0 +1,69 @@
+// ----------------------------------------------------------------------------------
+//
+// 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;
+
+namespace Microsoft.Azure.Commands.Resources.ManagementGroups
+{
+ ///
+ /// Get-AzureRmManagementGroup Cmdlet
+ ///
+ [Cmdlet(VerbsCommon.Get,"AzureRmManagementGroup", DefaultParameterSetName = Constants.ParameterSetNames.ListParameterSet, SupportsShouldProcess = true), OutputType(typeof(PSManagementGroupInfo), typeof(PSManagementGroup), typeof(string))]
+ public class GetAzureRmManagementGroup : AzureManagementGroupsCmdletBase
+ {
+ ///
+ /// Get-AzureRmManagementGroup Cmdlet
+ ///
+ [Parameter(ParameterSetName = Constants.ParameterSetNames.GetParameterSet, Mandatory = true, HelpMessage = Constants.HelpMessages.GroupName, Position = 0)]
+ public string GroupName { get; set; }
+
+ [Parameter(ParameterSetName = Constants.ParameterSetNames.GetParameterSet, Mandatory = false,
+ HelpMessage = Constants.HelpMessages.Expand)]
+ public SwitchParameter Expand;
+
+ [Parameter(ParameterSetName = Constants.ParameterSetNames.GetParameterSet, Mandatory = false,
+ HelpMessage = Constants.HelpMessages.Recurse)]
+ public SwitchParameter Recurse;
+
+ public override void ExecuteCmdlet()
+ {
+ try
+ {
+ PreregisterSubscription();
+
+ if (!string.IsNullOrEmpty(GroupName))
+ {
+ var response = ManagementGroupsApiClient.ManagementGroups.Get(GroupName, Expand.IsPresent?"children":null, Recurse.IsPresent);
+ WriteObject(new PSManagementGroup(response));
+ }
+ else
+ {
+ var response = ManagementGroupsApiClient.ManagementGroups.List();
+ var items = response.Select(managementGroup => new PSManagementGroupInfo(managementGroup))
+ .ToList();
+ WriteObject(items, true);
+ }
+ }
+ catch (ErrorResponseException ex)
+ {
+ Utility.HandleErrorResponseException(ex);
+ }
+ }
+ }
+}
diff --git a/src/ResourceManager/Resources/Commands.Resources/ManagementGroups/NewAzureRmManagementGroup.cs b/src/ResourceManager/Resources/Commands.Resources/ManagementGroups/NewAzureRmManagementGroup.cs
new file mode 100644
index 000000000000..9ad989eb20e3
--- /dev/null
+++ b/src/ResourceManager/Resources/Commands.Resources/ManagementGroups/NewAzureRmManagementGroup.cs
@@ -0,0 +1,89 @@
+// ----------------------------------------------------------------------------------
+//
+// 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 Newtonsoft.Json;
+using Newtonsoft.Json.Linq;
+
+namespace Microsoft.Azure.Commands.Resources.ManagementGroups
+{
+ ///
+ /// New-AzureRmManagementGroup Cmdlet
+ ///
+ [Cmdlet(VerbsCommon.New, "AzureRmManagementGroup", DefaultParameterSetName = Constants.ParameterSetNames.GroupOperationsParameterSet, SupportsShouldProcess = true), OutputType(typeof(PSManagementGroup))]
+ public class NewAzureRmManagementGroup : AzureManagementGroupsCmdletBase
+ {
+ [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; }
+
+ [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 string DisplayName { get; set; } = null;
+
+ [Parameter(ParameterSetName = Constants.ParameterSetNames.GroupOperationsParameterSet, Mandatory = false,
+ HelpMessage = Constants.HelpMessages.ParentId)]
+ [ValidateNotNullOrEmpty]
+ public string ParentId { get; set; } = null;
+
+ [Parameter(ParameterSetName = Constants.ParameterSetNames.ParentGroupParameterSet, Mandatory = true,
+ HelpMessage = Constants.HelpMessages.ParentObject, ValueFromPipeline = false)]
+ public PSManagementGroup ParentObject;
+
+ public override void ExecuteCmdlet()
+ {
+ try
+ {
+ if (ParameterSetName.Equals(Constants.ParameterSetNames.ParentGroupParameterSet))
+ {
+ ParentId = ParentObject.Id;
+ }
+
+ if (ShouldProcess(
+ string.Format(Resource.NewManagementGroupShouldProcessTarget, GroupName),
+ string.Format(Resource.NewManagementGroupShouldProcessAction, GroupName)))
+ {
+ PreregisterSubscription();
+
+ CreateManagementGroupRequest createGroupRequest = new CreateManagementGroupRequest(
+ id: Constants.GroupUrlPrefix + GroupName, type: Constants.GroupType, name: GroupName,
+ displayName: DisplayName,
+ details: new CreateManagementGroupDetails()
+ {
+ 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));
+ }
+ }
+ catch (ErrorResponseException ex)
+ {
+ Utility.HandleErrorResponseException(ex);
+ }
+ }
+ }
+}
diff --git a/src/ResourceManager/Resources/Commands.Resources/ManagementGroups/NewAzureRmManagementGroupSubscription.cs b/src/ResourceManager/Resources/Commands.Resources/ManagementGroups/NewAzureRmManagementGroupSubscription.cs
new file mode 100644
index 000000000000..1415a6d3e40e
--- /dev/null
+++ b/src/ResourceManager/Resources/Commands.Resources/ManagementGroups/NewAzureRmManagementGroupSubscription.cs
@@ -0,0 +1,69 @@
+// ----------------------------------------------------------------------------------
+//
+// 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.Management.Automation;
+using Microsoft.Azure.Commands.Resources.ManagementGroups.Common;
+using Microsoft.Azure.Management.ManagementGroups;
+using Microsoft.Azure.Management.ManagementGroups.Models;
+
+namespace Microsoft.Azure.Commands.Resources.ManagementGroups
+{
+ ///
+ /// Add-AzureRmManagementGroupSubscription Cmdlet
+ ///
+ [Cmdlet(VerbsCommon.New, "AzureRmManagementGroupSubscription",
+ DefaultParameterSetName = Constants.ParameterSetNames.GroupOperationsParameterSet,
+ SupportsShouldProcess = true), OutputType(typeof(bool))]
+ public class NewAzureRmManagementGroupSubscription : AzureManagementGroupsCmdletBase
+ {
+ [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 = true,
+ HelpMessage = Constants.HelpMessages.SubscriptionId, Position = 1)]
+ [ValidateNotNullOrEmpty]
+ public Guid SubscriptionId { get; set; }
+
+ [Parameter(ParameterSetName = Constants.ParameterSetNames.GroupOperationsParameterSet, Mandatory = false)]
+ public SwitchParameter PassThru { get; set; }
+
+ public override void ExecuteCmdlet()
+ {
+ try
+ {
+ if (ShouldProcess(
+ string.Format(Resource.NewManagementGroupSubShouldProcessTarget, SubscriptionId, GroupName),
+ string.Format(Resource.NewManagementGroupSubShouldProcessAction, SubscriptionId, GroupName)))
+ {
+ PreregisterSubscription();
+ PreregisterSubscription(SubscriptionId.ToString());
+
+ ManagementGroupsApiClient.ManagementGroupSubscriptions.Create(GroupName, SubscriptionId.ToString());
+
+ if (PassThru.IsPresent)
+ {
+ WriteObject(true);
+ }
+ }
+ }
+ catch (ErrorResponseException ex)
+ {
+ Utility.HandleErrorResponseException(ex);
+ }
+ }
+ }
+}
diff --git a/src/ResourceManager/Resources/Commands.Resources/ManagementGroups/RemoveAzureRmManagementGroup.cs b/src/ResourceManager/Resources/Commands.Resources/ManagementGroups/RemoveAzureRmManagementGroup.cs
new file mode 100644
index 000000000000..e20b2e9868a1
--- /dev/null
+++ b/src/ResourceManager/Resources/Commands.Resources/ManagementGroups/RemoveAzureRmManagementGroup.cs
@@ -0,0 +1,75 @@
+// ----------------------------------------------------------------------------------
+//
+// 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;
+
+namespace Microsoft.Azure.Commands.Resources.ManagementGroups
+{
+ ///
+ /// Remove-AzureRmManagementGroup Cmdlet
+ ///
+ [Cmdlet(VerbsCommon.Remove, "AzureRmManagementGroup",
+ DefaultParameterSetName = Constants.ParameterSetNames.GroupOperationsParameterSet,
+ SupportsShouldProcess = true), OutputType(typeof(bool))]
+ public class RemoveAzureRmManagementGroup : AzureManagementGroupsCmdletBase
+ {
+
+ [Parameter(ParameterSetName = Constants.ParameterSetNames.ManagementGroupParameterSet, Mandatory = true,
+ HelpMessage = Constants.HelpMessages.InputObject, ValueFromPipeline = true)]
+ [ValidateNotNullOrEmpty]
+ public PSManagementGroup InputObject { get; set; }
+
+ [Parameter(ParameterSetName = Constants.ParameterSetNames.GroupOperationsParameterSet, Mandatory = true,
+ HelpMessage = Constants.HelpMessages.GroupName, Position = 0)]
+ [ValidateNotNullOrEmpty]
+ public string GroupName { get; set; } = null;
+
+ [Parameter(ParameterSetName = Constants.ParameterSetNames.ManagementGroupParameterSet, Mandatory = false)]
+ [Parameter(ParameterSetName = Constants.ParameterSetNames.GroupOperationsParameterSet, Mandatory = false)]
+ public SwitchParameter PassThru { get; set; }
+
+ public override void ExecuteCmdlet()
+ {
+ try
+ {
+ if (ParameterSetName.Equals(Constants.ParameterSetNames.ManagementGroupParameterSet))
+ {
+ GroupName = InputObject.Name;
+ }
+
+ if (ShouldProcess(
+ string.Format(Resource.RemoveManagementGroupShouldProcessTarget, GroupName),
+ string.Format(Resource.RemoveManagementGroupShouldProcessAction, GroupName)))
+ {
+ PreregisterSubscription();
+
+ ManagementGroupsApiClient.ManagementGroups.Delete(GroupName);
+
+ if (PassThru.IsPresent)
+ {
+ WriteObject(true);
+ }
+ }
+ }
+ catch (ErrorResponseException ex)
+ {
+ Utility.HandleErrorResponseException(ex);
+ }
+ }
+ }
+}
diff --git a/src/ResourceManager/Resources/Commands.Resources/ManagementGroups/RemoveAzureRmManagementGroupSubscription.cs b/src/ResourceManager/Resources/Commands.Resources/ManagementGroups/RemoveAzureRmManagementGroupSubscription.cs
new file mode 100644
index 000000000000..6823a72a226c
--- /dev/null
+++ b/src/ResourceManager/Resources/Commands.Resources/ManagementGroups/RemoveAzureRmManagementGroupSubscription.cs
@@ -0,0 +1,70 @@
+// ----------------------------------------------------------------------------------
+//
+// 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.Management.Automation;
+using Microsoft.Azure.Commands.Resources.ManagementGroups.Common;
+using Microsoft.Azure.Management.ManagementGroups;
+using Microsoft.Azure.Management.ManagementGroups.Models;
+
+namespace Microsoft.Azure.Commands.Resources.ManagementGroups
+{
+ ///
+ /// Remove-AzureRmManagementGroupSubscription Cmdlet
+ ///
+ [Cmdlet(VerbsCommon.Remove, "AzureRmManagementGroupSubscription",
+ DefaultParameterSetName = Constants.ParameterSetNames.GroupOperationsParameterSet,
+ SupportsShouldProcess = true), OutputType(typeof(bool))]
+ public class RemoveAzureRmManagementGroupSubscription : AzureManagementGroupsCmdletBase
+ {
+ [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 = true,
+ HelpMessage = Constants.HelpMessages.SubscriptionId, Position = 1)]
+ [ValidateNotNullOrEmpty]
+ public Guid SubscriptionId { get; set; }
+
+ [Parameter(ParameterSetName = Constants.ParameterSetNames.GroupOperationsParameterSet, Mandatory = false)]
+ public SwitchParameter PassThru { get; set; }
+
+
+ public override void ExecuteCmdlet()
+ {
+ try
+ {
+ if (ShouldProcess(
+ string.Format(Resource.RemoveManagementGroupSubShouldProcessTarget, SubscriptionId,GroupName),
+ string.Format(Resource.RemoveManagementGroupSubShouldProcessAction, SubscriptionId, GroupName)))
+ {
+ PreregisterSubscription();
+ PreregisterSubscription(SubscriptionId.ToString());
+
+ ManagementGroupsApiClient.ManagementGroupSubscriptions.Delete(GroupName, SubscriptionId.ToString());
+
+ if (PassThru.IsPresent)
+ {
+ WriteObject(true);
+ }
+ }
+ }
+ catch (ErrorResponseException ex)
+ {
+ Utility.HandleErrorResponseException(ex);
+ }
+ }
+ }
+}
diff --git a/src/ResourceManager/Resources/Commands.Resources/ManagementGroups/UpdateAzureRmManagementGroup.cs b/src/ResourceManager/Resources/Commands.Resources/ManagementGroups/UpdateAzureRmManagementGroup.cs
new file mode 100644
index 000000000000..1b4ed928380e
--- /dev/null
+++ b/src/ResourceManager/Resources/Commands.Resources/ManagementGroups/UpdateAzureRmManagementGroup.cs
@@ -0,0 +1,99 @@
+// ----------------------------------------------------------------------------------
+//
+// 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;
+
+namespace Microsoft.Azure.Commands.Resources.ManagementGroups
+{
+ [Cmdlet("Update", "AzureRmManagementGroup", DefaultParameterSetName = Constants.ParameterSetNames.GroupOperationsParameterSet, SupportsShouldProcess = true), OutputType(typeof(PSManagementGroup))]
+ public class UpdateAzureRmManagementGroup : AzureManagementGroupsCmdletBase
+ {
+ [Parameter(ParameterSetName = Constants.ParameterSetNames.ParentGroupAndManagementGroupParameterSet, Mandatory = true,
+ HelpMessage = Constants.HelpMessages.InputObject, ValueFromPipeline = true)]
+ [Parameter(ParameterSetName = Constants.ParameterSetNames.ManagementGroupParameterSet, Mandatory = true,
+ HelpMessage = Constants.HelpMessages.InputObject, ValueFromPipeline = true)]
+ [ValidateNotNullOrEmpty]
+ public PSManagementGroup InputObject { get; set; }
+
+ [Parameter(ParameterSetName = Constants.ParameterSetNames.ParentGroupParameterSet, Mandatory = true,
+ HelpMessage = Constants.HelpMessages.InputObject, ValueFromPipeline = false)]
+ [Parameter(ParameterSetName = Constants.ParameterSetNames.GroupOperationsParameterSet, Mandatory = true, HelpMessage = Constants.HelpMessages.GroupName, Position = 0)]
+ [ValidateNotNullOrEmpty]
+ public string GroupName { get; set; }
+
+ [Parameter(ParameterSetName = Constants.ParameterSetNames.ManagementGroupParameterSet, Mandatory = false,
+ HelpMessage = Constants.HelpMessages.DisplayName)]
+ [Parameter(ParameterSetName = Constants.ParameterSetNames.GroupOperationsParameterSet, Mandatory = false,
+ HelpMessage = Constants.HelpMessages.DisplayName)]
+ [Parameter(ParameterSetName = Constants.ParameterSetNames.ParentGroupParameterSet, Mandatory = false,
+ HelpMessage = Constants.HelpMessages.DisplayName, ValueFromPipeline = false)]
+ [Parameter(ParameterSetName = Constants.ParameterSetNames.ParentGroupAndManagementGroupParameterSet, Mandatory = false,
+ HelpMessage = Constants.HelpMessages.InputObject, ValueFromPipeline = false)]
+ [ValidateNotNullOrEmpty]
+ public string DisplayName { get; set; } = null;
+
+ [Parameter(ParameterSetName = Constants.ParameterSetNames.ManagementGroupParameterSet, Mandatory = false,
+ HelpMessage = Constants.HelpMessages.ParentId)]
+ [Parameter(ParameterSetName = Constants.ParameterSetNames.GroupOperationsParameterSet, Mandatory = false,
+ HelpMessage = Constants.HelpMessages.ParentId)]
+ [ValidateNotNullOrEmpty]
+ public string ParentId { get; set; } = null;
+
+
+ [Parameter(ParameterSetName = Constants.ParameterSetNames.ParentGroupAndManagementGroupParameterSet, Mandatory = true,
+ HelpMessage = Constants.HelpMessages.InputObject, ValueFromPipeline = false)]
+ [Parameter(ParameterSetName = Constants.ParameterSetNames.ParentGroupParameterSet, Mandatory = true,
+ HelpMessage = Constants.HelpMessages.ParentObject, ValueFromPipeline = false)]
+ [ValidateNotNullOrEmpty]
+ public PSManagementGroup ParentObject;
+
+ public override void ExecuteCmdlet()
+ {
+ try
+ {
+ if (ParameterSetName.Equals(Constants.ParameterSetNames.ManagementGroupParameterSet)
+ || ParameterSetName.Equals(Constants.ParameterSetNames.ParentGroupAndManagementGroupParameterSet))
+ {
+ GroupName = InputObject.Name;
+ }
+
+ if (ParameterSetName.Equals(Constants.ParameterSetNames.ParentGroupParameterSet)
+ || ParameterSetName.Equals(Constants.ParameterSetNames.ParentGroupAndManagementGroupParameterSet))
+ {
+ ParentId = ParentObject.Id;
+ }
+
+ if (ShouldProcess(
+ string.Format(Resource.UpdateManagementGroupShouldProcessTarget, GroupName),
+ string.Format(Resource.UpdateManagementGroupShouldProcessAction, GroupName)))
+ {
+ PreregisterSubscription();
+
+ PatchManagementGroupRequest patchGroupRequest =
+ new PatchManagementGroupRequest(DisplayName, ParentId);
+ var response = ManagementGroupsApiClient.ManagementGroups.Update(GroupName, patchGroupRequest);
+ WriteObject(new PSManagementGroup(response));
+ }
+ }
+ catch (ErrorResponseException ex)
+ {
+ Utility.HandleErrorResponseException(ex);
+ }
+ }
+ }
+}
diff --git a/src/ResourceManager/Resources/Commands.Resources/Microsoft.Azure.Commands.Resources.format.ps1xml b/src/ResourceManager/Resources/Commands.Resources/Microsoft.Azure.Commands.Resources.format.ps1xml
index 28b96927219e..acba04bb516c 100644
--- a/src/ResourceManager/Resources/Commands.Resources/Microsoft.Azure.Commands.Resources.format.ps1xml
+++ b/src/ResourceManager/Resources/Commands.Resources/Microsoft.Azure.Commands.Resources.format.ps1xml
@@ -173,6 +173,134 @@
+
+
+ Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroup
+
+ Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroup
+
+
+
+
+
+
+
+ Id
+
+
+
+ Type
+
+
+
+ Name
+
+
+
+ TenantId
+
+
+
+ DisplayName
+
+
+
+ UpdatedTime
+
+
+
+ UpdatedBy
+
+
+
+ ParentId
+
+
+
+ ParentName
+
+
+
+ ParentDisplayName
+
+
+ $_.Children -ne $null
+
+ $displayNames=@(); foreach ($child in $_.Children){$displayNames+=$child.DisplayName}; $displayNames
+
+
+
+
+
+
+
+ Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroupChildInfo
+
+ Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroupChildInfo
+
+
+
+
+
+
+
+ Type
+
+
+
+ Id
+
+
+
+ Name
+
+
+
+ DisplayName
+
+
+ $_.Children -ne $null
+
+ $displayNames=@(); foreach ($child in $_.Children){$displayNames+=$child.DisplayName}; $displayNames
+
+
+
+
+
+
+
+ Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroupInfo
+
+ Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroupInfo
+
+
+
+
+
+
+
+ Id
+
+
+
+ Type
+
+
+
+ Name
+
+
+
+ TenantId
+
+
+
+ DisplayName
+
+
+
+
+
diff --git a/src/ResourceManager/Resources/Commands.Resources/Models.ManagementGroups/PSManagementGroup.cs b/src/ResourceManager/Resources/Commands.Resources/Models.ManagementGroups/PSManagementGroup.cs
new file mode 100644
index 000000000000..f828c2b56efd
--- /dev/null
+++ b/src/ResourceManager/Resources/Commands.Resources/Models.ManagementGroups/PSManagementGroup.cs
@@ -0,0 +1,85 @@
+// ----------------------------------------------------------------------------------
+//
+// 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 PSManagementGroup
+ {
+ 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 System.DateTime? UpdatedTime { get; set; }
+
+ public string UpdatedBy { get; set; }
+
+ public string ParentId { get; set; }
+
+ public string ParentName { get; set; }
+
+ public string ParentDisplayName { get; set; }
+
+ public IList Children { get; set; }
+
+
+ public PSManagementGroup()
+ {
+ }
+
+ public PSManagementGroup(ManagementGroup managementGroup)
+ {
+ if (managementGroup != null)
+ {
+ Id = managementGroup.Id;
+ Type = managementGroup.Type;
+ Name = managementGroup.Name;
+ TenantId = managementGroup.TenantId;
+ DisplayName = managementGroup.DisplayName;
+ UpdatedTime = managementGroup.Details.UpdatedTime;
+ UpdatedBy = managementGroup.Details.UpdatedBy;
+
+ if (managementGroup.Details.Parent != null)
+ {
+ if (managementGroup.Details.Parent.Id != null)
+ {
+ ParentId = managementGroup.Details.Parent.Id;
+ }
+ if (managementGroup.Details.Parent.DisplayName != null)
+ {
+ ParentDisplayName = managementGroup.Details.Parent.DisplayName;
+ }
+ if (managementGroup.Details.Parent.Name != null)
+ {
+ ParentName = managementGroup.Details.Parent.Name;
+ }
+ }
+
+ if (managementGroup.Children != null && managementGroup.Children.Count!=0)
+ {
+ this.Children = managementGroup.Children.Select(child => new PSManagementGroupChildInfo(child)).ToList();
+ }
+ }
+ }
+ }
+}
diff --git a/src/ResourceManager/Resources/Commands.Resources/Models.ManagementGroups/PSManagementGroupChildInfo.cs b/src/ResourceManager/Resources/Commands.Resources/Models.ManagementGroups/PSManagementGroupChildInfo.cs
new file mode 100644
index 000000000000..5bb8465ef3e6
--- /dev/null
+++ b/src/ResourceManager/Resources/Commands.Resources/Models.ManagementGroups/PSManagementGroupChildInfo.cs
@@ -0,0 +1,51 @@
+// ----------------------------------------------------------------------------------
+//
+// 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 PSManagementGroupChildInfo
+ {
+ public string Type { get; set; }
+ public string Id { get; set; }
+ public string Name { get; set; }
+ public string DisplayName { get; set; }
+
+ public IList Children { get; set; }
+
+ public PSManagementGroupChildInfo()
+ {
+
+ }
+
+ public PSManagementGroupChildInfo(ManagementGroupChildInfo childInfo)
+ {
+ if (childInfo != null)
+ {
+ this.Type = childInfo.Type;
+ this.DisplayName = childInfo.DisplayName;
+ this.Id = childInfo.Id;
+ this.Name = childInfo.Name;
+
+ if (childInfo.Children != null && childInfo.Children.Count != 0)
+ {
+ this.Children = childInfo.Children.Select(child => new PSManagementGroupChildInfo(child)).ToList();
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/Resources/Commands.Resources/Models.ManagementGroups/PSManagementGroupInfo.cs b/src/ResourceManager/Resources/Commands.Resources/Models.ManagementGroups/PSManagementGroupInfo.cs
new file mode 100644
index 000000000000..b2e333a7df40
--- /dev/null
+++ b/src/ResourceManager/Resources/Commands.Resources/Models.ManagementGroups/PSManagementGroupInfo.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 Microsoft.Azure.Management.ManagementGroups.Models;
+
+namespace Microsoft.Azure.Commands.Resources.Models.ManagementGroups
+{
+ public class PSManagementGroupInfo
+ {
+ 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 PSManagementGroupInfo()
+ {
+ }
+
+ public PSManagementGroupInfo(ManagementGroupInfo managementGroupInfo)
+ {
+ if (managementGroupInfo != null)
+ {
+ Id = managementGroupInfo.Id;
+ Type = managementGroupInfo.Type;
+ Name = managementGroupInfo.Name;
+ TenantId = managementGroupInfo.TenantId;
+ DisplayName = managementGroupInfo.DisplayName;
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/Resources/Commands.Resources/Models.ManagementGroups/PSParentGroupInfo.cs b/src/ResourceManager/Resources/Commands.Resources/Models.ManagementGroups/PSParentGroupInfo.cs
new file mode 100644
index 000000000000..b44296d08de0
--- /dev/null
+++ b/src/ResourceManager/Resources/Commands.Resources/Models.ManagementGroups/PSParentGroupInfo.cs
@@ -0,0 +1,42 @@
+// ----------------------------------------------------------------------------------
+//
+// 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;
+
+namespace Microsoft.Azure.Commands.Resources.Models.ManagementGroups
+{
+ public class PSParentGroupInfo
+ {
+ public string ParentId { get; set; }
+
+ public string ParentName { get; set; }
+
+ public string DisplayName { get; set; }
+
+ public PSParentGroupInfo()
+ {
+
+ }
+
+ public PSParentGroupInfo(ParentGroupInfo parentGroupInfo)
+ {
+ if (parentGroupInfo != null)
+ {
+ this.ParentId = parentGroupInfo.Id;
+ this.DisplayName = parentGroupInfo.DisplayName;
+ this.ParentName = parentGroupInfo.Name;
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/Resources/Commands.Resources/help/AzureRM.Resources.md b/src/ResourceManager/Resources/Commands.Resources/help/AzureRM.Resources.md
index 73e22943e23b..098a5d24d881 100644
--- a/src/ResourceManager/Resources/Commands.Resources/help/AzureRM.Resources.md
+++ b/src/ResourceManager/Resources/Commands.Resources/help/AzureRM.Resources.md
@@ -220,6 +220,24 @@ Updates managed application
### [Set-AzureRmManagedApplicationDefinition](Set-AzureRmManagedApplicationDefinition.md)
Updates managed application definition
+### [Get-AzureRmManagementGroup](Get-AzureRmManagementGroup.md)
+Gets Management Group(s)
+
+### [New-AzureRmManagementGroup](New-AzureRmManagementGroup.md)
+Creates a Management Group
+
+### [New-AzureRmManagementGroupSubscription](New-AzureRmManagementGroupSubscription.md)
+Adds a Subscription to a Management Group.
+
+### [Remove-AzureRmManagementGroup](Remove-AzureRmManagementGroup.md)
+Removes a Management Group
+
+### [Remove-AzureRmManagementGroupSubscription](Remove-AzureRmManagementGroupSubscription.md)
+Removes a Subscription from a Management Group.
+
+### [Update-AzureRmManagementGroup](Update-AzureRmManagementGroup.md)
+Updates a Management Group
+
### [Set-AzureRmPolicyAssignment](Set-AzureRmPolicyAssignment.md)
Modifies a policy assignment.
diff --git a/src/ResourceManager/Resources/Commands.Resources/help/Get-AzureRmManagementGroup.md b/src/ResourceManager/Resources/Commands.Resources/help/Get-AzureRmManagementGroup.md
new file mode 100644
index 000000000000..c3a4b7409391
--- /dev/null
+++ b/src/ResourceManager/Resources/Commands.Resources/help/Get-AzureRmManagementGroup.md
@@ -0,0 +1,235 @@
+---
+external help file: Microsoft.Azure.Commands.Resources.dll-Help.xml
+Module Name: AzureRM.Resources
+online version: https://docs.microsoft.com/en-us/powershell/module/azurerm.resources/get-azurermmanagementgroup/
+schema: 2.0.0
+---
+
+# Get-AzureRmManagementGroup
+
+## SYNOPSIS
+Gets Management Group(s)
+
+## SYNTAX
+
+### ListOperation (Default)
+```
+Get-AzureRmManagementGroup [-DefaultProfile ] [-WhatIf] [-Confirm] []
+```
+
+### GetOperation
+```
+Get-AzureRmManagementGroup [-GroupName] [-DefaultProfile ] [-Expand]
+ [-Recurse] [-WhatIf] [-Confirm] []
+```
+
+## DESCRIPTION
+The Get-AzureRMManagementGroup cmdlet Gets all or a specific Management Group.
+
+## EXAMPLES
+
+### Example 1: Get all Management Groups
+```
+PS C:\> Get-AzureRmManagementGroup
+
+Id : /providers/Microsoft.Management/managementGroups/TestGroup
+Type : /providers/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
+```
+
+### Example 2: Get specific Management Group
+```
+PS C:\> Get-AzureRmManagementGroup -GroupName TestGroup
+
+Id : /providers/Microsoft.Management/managementGroups/TestGroup
+Type : /providers/Microsoft.Management/managementGroups
+Name : TestGroup
+TenantId : 6b2064b9-34bd-46e6-9092-52f2dd5f7fc0
+DisplayName : TestGroupDisplayName
+UpdatedTime : 2/1/2018 11:16:12 AM
+UpdatedBy : 64360beb-ffb4-43a8-9314-01aa34db95a9
+ParentId : /providers/Microsoft.Management/managementGroups/TestGroupParent
+ParentName : TestGroupParent
+ParentDisplayName : TestGroupParent
+```
+
+### Example 3: Get specific Management Group and first level of hierarchy
+```
+PS C:\> $reponse = Get-AzureRmManagementGroup -GroupName TestGroupParent -Expand
+PS C:\> $response
+
+Id : /providers/Microsoft.Management/managementGroups/TestGroupParent
+Type : /providers/Microsoft.Management/managementGroups
+Name : TestGroupParent
+TenantId : 6b2064b9-34bd-46e6-9092-52f2dd5f7fc0
+DisplayName : TestGroupParent
+UpdatedTime : 2/1/2018 11:15:46 AM
+UpdatedBy : 64360beb-ffb4-43a8-9314-01aa34db95a9
+ParentId : /providers/Microsoft.Management/managementGroups/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0
+ParentName : 6b2064b9-34bd-46e6-9092-52f2dd5f7fc0
+ParentDisplayName : 6b2064b9-34bd-46e6-9092-52f2dd5f7fc0
+Children : {TestGroup1DisplayName, TestGroup2DisplayName}
+
+PS C:\> $response.Children[0]
+
+Type : /managementGroup
+Id : /providers/Microsoft.Management/managementGroups/TestGroup1
+Name : TestGroup1
+DisplayName : TestGroup1DisplayName
+Children :
+```
+
+With the `Expand` flag, one can navigate through the `Children` array and get details for each child. For example, `Children[0]` will give details for the group with display name `TestGroup1DisplayName`.
+
+### Example 4: Get specific Management Group and all levels of hiearchy
+```
+PS C:\> $response = Get-AzureRmManagementGroup -GroupName TestGroupParent -Expand -Recurse
+PS C:\> $response
+
+Id : /providers/Microsoft.Management/managementGroups/TestGroupParent
+Type : /providers/Microsoft.Management/managementGroups
+Name : TestGroupParent
+TenantId : 6b2064b9-34bd-46e6-9092-52f2dd5f7fc0
+DisplayName : TestGroupParent
+UpdatedTime : 2/1/2018 11:15:46 AM
+UpdatedBy : 64360beb-ffb4-43a8-9314-01aa34db95a9
+ParentId : /providers/Microsoft.Management/managementGroups/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0
+ParentName : 6b2064b9-34bd-46e6-9092-52f2dd5f7fc0
+ParentDisplayName : 6b2064b9-34bd-46e6-9092-52f2dd5f7fc0
+Children : {TestGroup1DisplayName, TestGroup2DisplayName}
+
+PS C:\> $response.Children[0]
+
+Type : /managementGroup
+Id : /providers/Microsoft.Management/managementGroups/TestGroup1
+Name : TestGroup1
+DisplayName : TestGroup1DisplayName
+Children : {TestRecurseChild}
+
+PS C:\> $response.Children[0].Children[0]
+
+Type : /managementGroup
+Id : /providers/Microsoft.Management/managementGroups/TestRecurseChild
+Name : TestRecurseChild
+DisplayName : TestRecurseChild
+Children :
+```
+
+## PARAMETERS
+
+### -DefaultProfile
+The credentials, account, tenant, and subscription used for communication with Azure.
+
+```yaml
+Type: IAzureContextContainer
+Parameter Sets: (All)
+Aliases: AzureRmContext, AzureCredential
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -Expand
+Expand the output to list the children of the management group
+
+```yaml
+Type: SwitchParameter
+Parameter Sets: GetOperation
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -GroupName
+Management Group Id
+
+```yaml
+Type: String
+Parameter Sets: GetOperation
+Aliases:
+
+Required: True
+Position: 0
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -Recurse
+Recursively list the children of the management group
+
+```yaml
+Type: SwitchParameter
+Parameter Sets: GetOperation
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -Confirm
+Prompts you for confirmation before running the cmdlet.
+
+```yaml
+Type: 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: 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.PSManagementGroup
+
+### System.Collections.Generic.List`1[Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroupInfo]
+
+## NOTES
+
+## RELATED LINKS
+
diff --git a/src/ResourceManager/Resources/Commands.Resources/help/New-AzureRmManagementGroup.md b/src/ResourceManager/Resources/Commands.Resources/help/New-AzureRmManagementGroup.md
new file mode 100644
index 000000000000..2bc86c2fb540
--- /dev/null
+++ b/src/ResourceManager/Resources/Commands.Resources/help/New-AzureRmManagementGroup.md
@@ -0,0 +1,229 @@
+---
+external help file: Microsoft.Azure.Commands.Resources.dll-Help.xml
+Module Name: AzureRM.Resources
+online version: https://docs.microsoft.com/en-us/powershell/module/azurerm.resources/new-azurermmanagementgroup/
+schema: 2.0.0
+---
+
+# New-AzureRmManagementGroup
+
+## SYNOPSIS
+Creates a Management Group
+
+## SYNTAX
+
+### GroupOperations (Default)
+```
+New-AzureRmManagementGroup [-GroupName] [-DisplayName ] [-ParentId ]
+ [-DefaultProfile ] [-WhatIf] [-Confirm] []
+```
+
+### ParentGroupObject
+```
+New-AzureRmManagementGroup [-GroupName] [-DisplayName ]
+ [-DefaultProfile ] -ParentObject [-WhatIf] [-Confirm]
+ []
+```
+
+## DESCRIPTION
+The **New-AzureRMManagementGroup** cmdlet creates a management group.
+
+## EXAMPLES
+
+### Example 1: Create a Management Group
+```
+PS C:\> New-AzureRmManagementGroup -GroupName "TestGroup"
+
+Id : /providers/Microsoft.Management/managementGroups/TestGroup
+Type : /providers/Microsoft.Management/managementGroups
+Name : TestGroup
+TenantId : 14307de0-5e6f-46cf-b2ba-64a062964d30
+DisplayName : TestGroup
+UpdatedTime : 2/1/2018 11:06:27 AM
+UpdatedBy : 14307de0-5e6f-46cf-b2ba-64a062964d30
+ParentId : /providers/Microsoft.Management/managementGroups/14307de0-5e6f-46cf-b2ba-64a062964d30
+ParentName : 14307de0-5e6f-46cf-b2ba-64a062964d30
+ParentDisplayName : 14307de0-5e6f-46cf-b2ba-64a062964d30
+```
+
+Creation of a new group with `DisplayName` and `ParentId` set to `null`. The `DisplayName` will be same as the `GroupName` and the parent of the group will be the tenant.
+
+### Example 2: Create a Management Group with a display name
+```
+PS C:\> New-AzureRmManagementGroup -GroupName "TestGroup" -DisplayName "TestGroupDisplayName"
+
+Id : /providers/Microsoft.Management/managementGroups/TestGroup
+Type : /providers/Microsoft.Management/managementGroups
+Name : TestGroup
+TenantId : 14307de0-5e6f-46cf-b2ba-64a062964d30
+DisplayName : TestGroup
+UpdatedTime : 2/1/2018 11:06:27 AM
+UpdatedBy : 14307de0-5e6f-46cf-b2ba-64a062964d30
+ParentId : /providers/Microsoft.Management/managementGroups/14307de0-5e6f-46cf-b2ba-64a062964d30
+ParentName : 14307de0-5e6f-46cf-b2ba-64a062964d30
+ParentDisplayName : 14307de0-5e6f-46cf-b2ba-64a062964d30
+```
+
+In this case, the parent of the group will be the tenant and the `DisplayName` will be set to the value given.
+
+### Example 3: Create a Management Group with a parent and a display name
+```
+PS C:\> New-AzureRmManagementGroup -GroupName "TestGroup" -DisplayName "TestGroupDisplayName" -ParentId "/providers/Microsoft.Management/managementGroups/TestGroupParent"
+
+Id : /providers/Microsoft.Management/managementGroups/TestGroup
+Type : /providers/Microsoft.Management/managementGroups
+Name : TestGroup
+TenantId : 14307de0-5e6f-46cf-b2ba-64a062964d30
+DisplayName : TestGroupDisplayName
+UpdatedTime : 2/1/2018 11:16:12 AM
+UpdatedBy : 14307de0-5e6f-46cf-b2ba-64a062964d30
+ParentId : /providers/Microsoft.Management/managementGroups/TestGroupParent
+ParentName : TestGroupParent
+ParentDisplayName : TestGroupParent
+```
+
+### Example 4: Create a Management Group with a parent (using a parent object)
+```
+PS C:\> $parentObject = Get-AzureRmManagementGroup -GroupName "TestGroupParent"
+PS C:\> New-AzureRmManagementGroup -GroupName "TestGroup" -ParentObject $parentObject
+
+Id : /providers/Microsoft.Management/managementGroups/TestGroup
+Type : /providers/Microsoft.Management/managementGroups
+Name : TestGroup
+TenantId : 14307de0-5e6f-46cf-b2ba-64a062964d30
+DisplayName : TestGroupDisplayName
+UpdatedTime : 2/1/2018 11:16:12 AM
+UpdatedBy : 14307de0-5e6f-46cf-b2ba-64a062964d30
+ParentId : /providers/Microsoft.Management/managementGroups/TestGroupParent
+ParentName : TestGroupParent
+ParentDisplayName : TestGroupParent
+```
+
+## PARAMETERS
+
+### -DefaultProfile
+The credentials, account, tenant, and subscription used for communication with Azure.
+
+```yaml
+Type: IAzureContextContainer
+Parameter Sets: (All)
+Aliases: AzureRmContext, AzureCredential
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -DisplayName
+Display Name of the management group
+
+```yaml
+Type: String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -GroupName
+Management Group Id
+
+```yaml
+Type: String
+Parameter Sets: (All)
+Aliases:
+
+Required: True
+Position: 0
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ParentId
+Parent Id of the management group
+
+```yaml
+Type: String
+Parameter Sets: GroupOperations
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ParentObject
+Parent Object
+
+```yaml
+Type: PSManagementGroup
+Parameter Sets: ParentGroupObject
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -Confirm
+Prompts you for confirmation before running the cmdlet.
+
+```yaml
+Type: 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: 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.PSManagementGroup
+
+## NOTES
+
+## RELATED LINKS
+
+[Remove-AzureRMManagementGroup](./Remove-AzureRMManagementGroup.md)
+
+[Update-AzureRmManagementGroup](./Update-AzureRmManagementGroup.md)
+
+[Get-AzureRmManagementGroup](./Get-AzureRmManagementGroup.md)
\ No newline at end of file
diff --git a/src/ResourceManager/Resources/Commands.Resources/help/New-AzureRmManagementGroupSubscription.md b/src/ResourceManager/Resources/Commands.Resources/help/New-AzureRmManagementGroupSubscription.md
new file mode 100644
index 000000000000..2de2d7c58368
--- /dev/null
+++ b/src/ResourceManager/Resources/Commands.Resources/help/New-AzureRmManagementGroupSubscription.md
@@ -0,0 +1,137 @@
+---
+external help file: Microsoft.Azure.Commands.Resources.dll-Help.xml
+Module Name: AzureRM.Resources
+online version: https://docs.microsoft.com/en-us/powershell/module/azurerm.resources/new-azurermmanagementgroupsubscription/
+schema: 2.0.0
+---
+
+# New-AzureRmManagementGroupSubscription
+
+## SYNOPSIS
+Adds a Subscription to a Management Group.
+
+## SYNTAX
+
+```
+New-AzureRmManagementGroupSubscription [-GroupName] [-SubscriptionId] [-PassThru]
+ [-DefaultProfile ] [-WhatIf] [-Confirm] []
+```
+
+## DESCRIPTION
+The **New-AzureRMManagementGroupSubscription** cmdlet adds a Subscription to a Management Group.
+
+## EXAMPLES
+
+### Example 1: Add Subscription to a Management Group
+```
+PS C:\> New-AzureRMManagementGroupSubscription -GroupName "TestGroup" -SubscriptionId 2120692d-35c3-44c8-81f5-631fa7351726
+```
+
+## PARAMETERS
+
+### -DefaultProfile
+The credentials, account, tenant, and subscription used for communication with Azure.
+
+```yaml
+Type: IAzureContextContainer
+Parameter Sets: (All)
+Aliases: AzureRmContext, AzureCredential
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -GroupName
+Management Group Id
+
+```yaml
+Type: String
+Parameter Sets: (All)
+Aliases:
+
+Required: True
+Position: 0
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -PassThru
+Return `true` on successful execution
+
+```yaml
+Type: 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 witht the management
+
+```yaml
+Type: Guid
+Parameter Sets: (All)
+Aliases:
+
+Required: True
+Position: 1
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -Confirm
+Prompts you for confirmation before running the cmdlet.
+
+```yaml
+Type: 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: 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
+
+### System.Boolean
+
+## NOTES
+
+## RELATED LINKS
+
diff --git a/src/ResourceManager/Resources/Commands.Resources/help/Remove-AzureRmManagementGroup.md b/src/ResourceManager/Resources/Commands.Resources/help/Remove-AzureRmManagementGroup.md
new file mode 100644
index 000000000000..8bab64e857d4
--- /dev/null
+++ b/src/ResourceManager/Resources/Commands.Resources/help/Remove-AzureRmManagementGroup.md
@@ -0,0 +1,149 @@
+---
+external help file: Microsoft.Azure.Commands.Resources.dll-Help.xml
+Module Name: AzureRM.Resources
+online version: https://docs.microsoft.com/en-us/powershell/module/azurerm.resources/remove-azurermmanagementgroup/
+schema: 2.0.0
+---
+
+# Remove-AzureRmManagementGroup
+
+## SYNOPSIS
+Removes a Management Group
+
+## SYNTAX
+
+### GroupOperations (Default)
+```
+Remove-AzureRmManagementGroup [-GroupName] [-PassThru] [-DefaultProfile ]
+ [-WhatIf] [-Confirm] []
+```
+
+### ManagementGroupObject
+```
+Remove-AzureRmManagementGroup -InputObject [-PassThru]
+ [-DefaultProfile ] [-WhatIf] [-Confirm] []
+```
+
+## DESCRIPTION
+The **Remove-AzureRmManagementGroup** cmdlet deletes a Management Group.
+
+## EXAMPLES
+
+### Example 1 - Remove a Management Group
+```
+PS C:\> Remove-AzureRmManagementGroup -GroupName "TestGroup"
+```
+
+### Example 2 - Remove a Management Group by piping PSManagementGroup Object
+```
+PS C:\> Get-Remove-AzureRmManagementGroup -GroupName "TestGroup" | Remove-AzureRmManagementGroup
+```
+
+## PARAMETERS
+
+### -DefaultProfile
+The credentials, account, tenant, and subscription used for communication with Azure.
+
+```yaml
+Type: IAzureContextContainer
+Parameter Sets: (All)
+Aliases: AzureRmContext, AzureCredential
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -GroupName
+Management Group Id
+
+```yaml
+Type: String
+Parameter Sets: GroupOperations
+Aliases:
+
+Required: True
+Position: 0
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -InputObject
+Input Object from the Get call
+
+```yaml
+Type: PSManagementGroup
+Parameter Sets: ManagementGroupObject
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: True (ByValue)
+Accept wildcard characters: False
+```
+
+### -PassThru
+Return `true` on successful execution
+
+```yaml
+Type: SwitchParameter
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -Confirm
+Prompts you for confirmation before running the cmdlet.
+
+```yaml
+Type: 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: 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
+
+### System.Boolean
+
+## NOTES
+
+## RELATED LINKS
+
diff --git a/src/ResourceManager/Resources/Commands.Resources/help/Remove-AzureRmManagementGroupSubscription.md b/src/ResourceManager/Resources/Commands.Resources/help/Remove-AzureRmManagementGroupSubscription.md
new file mode 100644
index 000000000000..d314c32c4550
--- /dev/null
+++ b/src/ResourceManager/Resources/Commands.Resources/help/Remove-AzureRmManagementGroupSubscription.md
@@ -0,0 +1,137 @@
+---
+external help file: Microsoft.Azure.Commands.Resources.dll-Help.xml
+Module Name: AzureRM.Resources
+online version: https://docs.microsoft.com/en-us/powershell/module/azurerm.resources/remove-azurermmanagementgroupsubscription/
+schema: 2.0.0
+---
+
+# Remove-AzureRmManagementGroupSubscription
+
+## SYNOPSIS
+Removes a Subscription from a Management Group.
+
+## SYNTAX
+
+```
+Remove-AzureRmManagementGroupSubscription [-GroupName] [-SubscriptionId] [-PassThru]
+ [-DefaultProfile ] [-WhatIf] [-Confirm] []
+```
+
+## DESCRIPTION
+The **Remove-AzureRmManagementGroupSubscription** cmdlet removes a Subscription from a Management Group.
+
+## EXAMPLES
+
+### Example 1 - Remove Subscription from a Management Group
+```
+PS C:\> Remove-AzureRmManagementGroupSubscription -GroupName "TestGroup" -SubscriptionId 2120692d-35c3-44c8-81f5-631fa7351726
+```
+
+## PARAMETERS
+
+### -DefaultProfile
+The credentials, account, tenant, and subscription used for communication with Azure.
+
+```yaml
+Type: IAzureContextContainer
+Parameter Sets: (All)
+Aliases: AzureRmContext, AzureCredential
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -GroupName
+Management Group Id
+
+```yaml
+Type: String
+Parameter Sets: (All)
+Aliases:
+
+Required: True
+Position: 0
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -PassThru
+Return `true` on successful execution
+
+```yaml
+Type: 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 witht the management
+
+```yaml
+Type: Guid
+Parameter Sets: (All)
+Aliases:
+
+Required: True
+Position: 1
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -Confirm
+Prompts you for confirmation before running the cmdlet.
+
+```yaml
+Type: 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: 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
+
+### System.Boolean
+
+## NOTES
+
+## RELATED LINKS
+
diff --git a/src/ResourceManager/Resources/Commands.Resources/help/Update-AzureRmManagementGroup.md b/src/ResourceManager/Resources/Commands.Resources/help/Update-AzureRmManagementGroup.md
new file mode 100644
index 000000000000..cbf2584bc613
--- /dev/null
+++ b/src/ResourceManager/Resources/Commands.Resources/help/Update-AzureRmManagementGroup.md
@@ -0,0 +1,248 @@
+---
+external help file: Microsoft.Azure.Commands.Resources.dll-Help.xml
+Module Name: AzureRM.Resources
+online version: https://docs.microsoft.com/en-us/powershell/module/azurerm.resources/update-azurermmanagementgroup/
+schema: 2.0.0
+---
+
+# Update-AzureRmManagementGroup
+
+## SYNOPSIS
+Updates a Management Group
+
+## SYNTAX
+
+### GroupOperations (Default)
+```
+Update-AzureRmManagementGroup -GroupName [-DisplayName ] [-ParentId ]
+ [-DefaultProfile ] [-WhatIf] [-Confirm] []
+```
+
+### ParentAndManagementGroupObject
+```
+Update-AzureRmManagementGroup -InputObject [-DisplayName ]
+ [-DefaultProfile ] -ParentObject [-WhatIf] [-Confirm]
+ []
+```
+
+### ManagementGroupObject
+```
+Update-AzureRmManagementGroup -InputObject [-DisplayName ] [-ParentId ]
+ [-DefaultProfile ] [-WhatIf] [-Confirm] []
+```
+
+### ParentGroupObject
+```
+Update-AzureRmManagementGroup -GroupName [-DisplayName ]
+ [-DefaultProfile ] -ParentObject [-WhatIf] [-Confirm]
+ []
+```
+
+## DESCRIPTION
+The **Update-AzureRMManagementGroup** cmdlet updates the **ParentId** or **DisplayName** for a Management Group.
+
+## EXAMPLES
+
+### Example 1: Update a Management Group's Display Name
+```
+PS C:\> Update-AzureRMManagementGroup -Group "TestGroup" -DisplayName "New Display Name"
+
+Id : /providers/Microsoft.Management/managementGroups/TestGroup
+Type : /providers/Microsoft.Management/managementGroups
+Name : TestGroup
+TenantId : 6b2064b9-34bd-46e6-9092-52f2dd5f7fc0
+DisplayName : New Display Name
+UpdatedTime : 2/1/2018 12:03:37 PM
+UpdatedBy : 64360beb-ffb4-43a8-9314-01aa34db95a9
+ParentId : /providers/Microsoft.Management/managementGroups/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0
+ParentName : 6b2064b9-34bd-46e6-9092-52f2dd5f7fc0
+ParentDisplayName : 6b2064b9-34bd-46e6-9092-52f2dd5f7fc0
+```
+
+### Example 2: Update a Management Group's Parent
+```
+PS C:\> Update-AzureRMManagementGroup -Group "TestGroup" -ParentId "/providers/Microsoft.Management/managementGroups/TestGroupParent"
+
+Id : /providers/Microsoft.Management/managementGroups/TestGroup
+Type : /providers/Microsoft.Management/managementGroups
+Name : TestGroup
+TenantId : 6b2064b9-34bd-46e6-9092-52f2dd5f7fc0
+DisplayName : TestGroup
+UpdatedTime : 2/1/2018 12:03:37 PM
+UpdatedBy : 64360beb-ffb4-43a8-9314-01aa34db95a9
+ParentId : /providers/Microsoft.Management/managementGroups/TestGroupParent
+ParentName : TestGroupParent
+ParentDisplayName : TestGroupParent
+```
+
+### Example 3: Update a Management Group by piping PSManagementGroup Object
+```
+PS C:\> Get-AzureRmManagementGroup -GroupName "TestGroup" | Update-AzureRMManagementGroup -DisplayName "TestDisplayName" -ParentId "/providers/Microsoft.Management/managementGroups/TestGroupParent"
+
+Id : /providers/Microsoft.Management/managementGroups/TestGroup
+Type : /providers/Microsoft.Management/managementGroups
+Name : TestGroup
+TenantId : 6b2064b9-34bd-46e6-9092-52f2dd5f7fc0
+DisplayName : TestDisplayName
+UpdatedTime : 2/1/2018 12:03:37 PM
+UpdatedBy : 64360beb-ffb4-43a8-9314-01aa34db95a9
+ParentId : /providers/Microsoft.Management/managementGroups/TestGroupParent
+ParentName : TestGroupParent
+ParentDisplayName : TestGroupParent
+```
+
+### Example 4: Update a Management Group's parent using the ParentObject
+```
+PS C:\> $parentObject = Get-AzureRmManagementGroup -GroupName "TestGroupParent"
+PS C:\> Update-AzureRmManagementGroup -GroupName "TestGroup" -ParentObject $parentObject
+
+Id : /providers/Microsoft.Management/managementGroups/TestGroup
+Type : /providers/Microsoft.Management/managementGroups
+Name : TestGroup
+TenantId : 14307de0-5e6f-46cf-b2ba-64a062964d30
+DisplayName : TestGroupDisplayName
+UpdatedTime : 2/1/2018 11:16:12 AM
+UpdatedBy : 14307de0-5e6f-46cf-b2ba-64a062964d30
+ParentId : /providers/Microsoft.Management/managementGroups/TestGroupParent
+ParentName : TestGroupParent
+ParentDisplayName : TestGroupParent
+```
+
+## PARAMETERS
+
+### -DefaultProfile
+The credentials, account, tenant, and subscription used for communication with Azure.
+
+```yaml
+Type: IAzureContextContainer
+Parameter Sets: (All)
+Aliases: AzureRmContext, AzureCredential
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -DisplayName
+Display Name of the management group
+
+```yaml
+Type: String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -GroupName
+Management Group Id
+
+```yaml
+Type: String
+Parameter Sets: GroupOperations, ParentGroupObject
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -InputObject
+Input Object from the Get call
+
+```yaml
+Type: PSManagementGroup
+Parameter Sets: ParentAndManagementGroupObject, ManagementGroupObject
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: True (ByValue)
+Accept wildcard characters: False
+```
+
+### -ParentId
+Parent Id of the management group
+
+```yaml
+Type: String
+Parameter Sets: GroupOperations, ManagementGroupObject
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ParentObject
+Input Object from the Get call
+
+```yaml
+Type: PSManagementGroup
+Parameter Sets: ParentAndManagementGroupObject, ParentGroupObject
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -Confirm
+Prompts you for confirmation before running the cmdlet.
+
+```yaml
+Type: 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: 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.PSManagementGroup
+
+## NOTES
+
+## RELATED LINKS
+
diff --git a/src/ResourceManager/Resources/Commands.Resources/packages.config b/src/ResourceManager/Resources/Commands.Resources/packages.config
index fc5b2ae60354..5d97a5cf7146 100644
--- a/src/ResourceManager/Resources/Commands.Resources/packages.config
+++ b/src/ResourceManager/Resources/Commands.Resources/packages.config
@@ -1,5 +1,6 @@
+
\ No newline at end of file