From 77acf80f7086bb63e76bfb9ac3dad02f440db7fa Mon Sep 17 00:00:00 2001 From: m-nash Date: Fri, 9 Jul 2021 15:04:50 -0700 Subject: [PATCH 1/5] wip --- ...Azure.ResourceManager.ManagementGroups.sln | 51 ++ .../CHANGELOG.md | 7 + .../Directory.Build.props | 6 + .../README.md | 77 ++ ...re.ResourceManager.ManagementGroups.csproj | 15 + .../src/Generated/EntitiesOperations.cs | 162 ++++ .../src/Generated/EntitiesRestOperations.cs | 299 +++++++ .../Generated/HierarchySettingsOperations.cs | 255 ++++++ .../HierarchySettingsRestOperations.cs | 444 ++++++++++ .../ManagementGroupSubscriptionsOperations.cs | 284 +++++++ ...agementGroupSubscriptionsRestOperations.cs | 500 ++++++++++++ .../ManagementGroupsAPIManagementClient.cs | 65 ++ ...agementGroupsAPIManagementClientOptions.cs | 16 + .../ManagementGroupsAPIOperations.cs | 145 ++++ .../ManagementGroupsAPIRestOperations.cs | 226 ++++++ .../ManagementGroupsCreateOrUpdateHeaders.cs | 35 + ...ManagementGroupsCreateOrUpdateOperation.cs | 76 ++ .../ManagementGroupsDeleteHeaders.cs | 35 + .../ManagementGroupsDeleteOperation.cs | 72 ++ .../Generated/ManagementGroupsOperations.cs | 466 +++++++++++ .../ManagementGroupsRestOperations.cs | 768 ++++++++++++++++++ ...zureAsyncOperationResults.Serialization.cs | 71 ++ .../Models/AzureAsyncOperationResults.cs | 48 ++ ...ckNameAvailabilityRequest.Serialization.cs | 31 + .../Models/CheckNameAvailabilityRequest.cs | 24 + ...eckNameAvailabilityResult.Serialization.cs | 51 ++ .../Models/CheckNameAvailabilityResult.cs | 36 + ...eManagementGroupChildInfo.Serialization.cs | 13 + .../Models/CreateManagementGroupChildInfo.cs | 33 + ...ateManagementGroupDetails.Serialization.cs | 26 + .../Models/CreateManagementGroupDetails.cs | 29 + ...ateManagementGroupRequest.Serialization.cs | 46 ++ .../Models/CreateManagementGroupRequest.cs | 37 + ...teOrUpdateSettingsRequest.Serialization.cs | 34 + .../Models/CreateOrUpdateSettingsRequest.cs | 23 + .../CreateParentGroupInfo.Serialization.cs | 26 + .../Generated/Models/CreateParentGroupInfo.cs | 25 + .../Models/DescendantInfo.Serialization.cs | 85 ++ .../src/Generated/Models/DescendantInfo.cs | 44 + .../DescendantListResult.Serialization.cs | 46 ++ .../Generated/Models/DescendantListResult.cs | 36 + ...DescendantParentGroupInfo.Serialization.cs | 29 + .../Models/DescendantParentGroupInfo.cs | 28 + .../Generated/Models/EntityHierarchyItem.cs | 35 + .../Models/EntityInfo.Serialization.cs | 184 +++++ .../src/Generated/Models/EntityInfo.cs | 81 ++ .../Models/EntityListResult.Serialization.cs | 57 ++ .../src/Generated/Models/EntityListResult.cs | 40 + .../EntityParentGroupInfo.Serialization.cs | 29 + .../Generated/Models/EntityParentGroupInfo.cs | 28 + .../src/Generated/Models/Enum0.cs | 54 ++ .../src/Generated/Models/Enum2.cs | 60 ++ .../src/Generated/Models/Enum3.cs | 57 ++ .../Models/ErrorDetails.Serialization.cs | 41 + .../src/Generated/Models/ErrorDetails.cs | 36 + .../Models/ErrorResponse.Serialization.cs | 34 + .../src/Generated/Models/ErrorResponse.cs | 28 + .../Models/HierarchySettings.Serialization.cs | 76 ++ .../src/Generated/Models/HierarchySettings.cs | 48 ++ .../HierarchySettingsInfo.Serialization.cs | 76 ++ .../Generated/Models/HierarchySettingsInfo.cs | 48 ++ .../HierarchySettingsList.Serialization.cs | 46 ++ .../Generated/Models/HierarchySettingsList.cs | 36 + ...ptionUnderManagementGroup.Serialization.cs | 46 ++ .../ListSubscriptionUnderManagementGroup.cs | 36 + .../Models/ManagementGroup.Serialization.cs | 93 +++ .../src/Generated/Models/ManagementGroup.cs | 56 ++ .../ManagementGroupChildInfo.Serialization.cs | 69 ++ .../Models/ManagementGroupChildInfo.cs | 48 ++ .../Models/ManagementGroupChildType.cs | 51 ++ .../ManagementGroupDetails.Serialization.cs | 112 +++ .../Models/ManagementGroupDetails.cs | 59 ++ .../ManagementGroupInfo.Serialization.cs | 65 ++ .../Generated/Models/ManagementGroupInfo.cs | 44 + ...ManagementGroupListResult.Serialization.cs | 46 ++ .../Models/ManagementGroupListResult.cs | 36 + ...anagementGroupPathElement.Serialization.cs | 35 + .../Models/ManagementGroupPathElement.cs | 32 + .../Models/Operation.Serialization.cs | 40 + .../src/Generated/Models/Operation.cs | 32 + ...perationDisplayProperties.Serialization.cs | 47 ++ .../Models/OperationDisplayProperties.cs | 40 + .../OperationListResult.Serialization.cs | 46 ++ .../Generated/Models/OperationListResult.cs | 36 + .../src/Generated/Models/OperationResults.cs | 29 + .../Models/ParentGroupInfo.Serialization.cs | 41 + .../src/Generated/Models/ParentGroupInfo.cs | 36 + ...tchManagementGroupRequest.Serialization.cs | 45 + .../Models/PatchManagementGroupRequest.cs | 23 + .../src/Generated/Models/Permissions.cs | 57 ++ .../Generated/Models/Reason.Serialization.cs | 28 + .../src/Generated/Models/Reason.cs | 18 + .../Generated/Models/Status.Serialization.cs | 36 + .../src/Generated/Models/Status.cs | 26 + ...ptionUnderManagementGroup.Serialization.cs | 82 ++ .../SubscriptionUnderManagementGroup.cs | 52 ++ ...enantBackfillStatusResult.Serialization.cs | 40 + .../Models/TenantBackfillStatusResult.cs | 32 + .../src/Generated/Operations.cs | 116 +++ .../src/Generated/RestOperations.cs | 167 ++++ .../src/Properties/AssemblyInfo.cs | 8 + .../src/autorest.md | 11 + ...ourceManager.ManagementGroups.Tests.csproj | 6 + .../ManagementManagementTestEnvironment.cs | 11 + sdk/managementgroups/ci.yml | 31 + sdk/managementgroups/test-resources.json | 6 + .../ManagementGroupsCreateOrUpdateHeaders.cs | 35 + .../ManagementGroupsDeleteHeaders.cs | 35 + .../ManagementGroupsRestOperations.cs | 767 +++++++++++++++++ ...eManagementGroupChildInfo.Serialization.cs | 13 + .../Models/CreateManagementGroupChildInfo.cs | 33 + ...ateManagementGroupDetails.Serialization.cs | 26 + .../Models/CreateManagementGroupDetails.cs | 29 + ...ateManagementGroupRequest.Serialization.cs | 46 ++ .../Models/CreateManagementGroupRequest.cs | 37 + .../CreateParentGroupInfo.Serialization.cs | 26 + .../Models/CreateParentGroupInfo.cs | 25 + .../Models/DescendantInfo.Serialization.cs | 85 ++ .../ManagementGroup/Models/DescendantInfo.cs | 44 + .../DescendantListResult.Serialization.cs | 46 ++ .../Models/DescendantListResult.cs | 36 + ...DescendantParentGroupInfo.Serialization.cs | 29 + .../Models/DescendantParentGroupInfo.cs | 28 + .../Generated/ManagementGroup/Models/Enum0.cs | 54 ++ .../Models/ManagementGroup.Serialization.cs | 93 +++ .../ManagementGroup/Models/ManagementGroup.cs | 56 ++ .../ManagementGroupChildInfo.Serialization.cs | 69 ++ .../Models/ManagementGroupChildInfo.cs | 48 ++ .../Models/ManagementGroupChildType.cs | 51 ++ .../ManagementGroupDetails.Serialization.cs | 112 +++ .../Models/ManagementGroupDetails.cs | 59 ++ .../ManagementGroupInfo.Serialization.cs | 65 ++ .../Models/ManagementGroupInfo.cs | 44 + ...ManagementGroupListResult.Serialization.cs | 46 ++ .../Models/ManagementGroupListResult.cs | 36 + ...anagementGroupPathElement.Serialization.cs | 35 + .../Models/ManagementGroupPathElement.cs | 32 + .../Models/ParentGroupInfo.Serialization.cs | 41 + .../ManagementGroup/Models/ParentGroupInfo.cs | 36 + ...tchManagementGroupRequest.Serialization.cs | 45 + .../Models/PatchManagementGroupRequest.cs | 23 + 141 files changed, 10174 insertions(+) create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/Azure.ResourceManager.ManagementGroups.sln create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/CHANGELOG.md create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/Directory.Build.props create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/README.md create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Azure.ResourceManager.ManagementGroups.csproj create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/EntitiesOperations.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/EntitiesRestOperations.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/HierarchySettingsOperations.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/HierarchySettingsRestOperations.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupSubscriptionsOperations.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupSubscriptionsRestOperations.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsAPIManagementClient.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsAPIManagementClientOptions.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsAPIOperations.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsAPIRestOperations.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsCreateOrUpdateHeaders.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsCreateOrUpdateOperation.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsDeleteHeaders.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsDeleteOperation.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsOperations.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsRestOperations.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/AzureAsyncOperationResults.Serialization.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/AzureAsyncOperationResults.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CheckNameAvailabilityRequest.Serialization.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CheckNameAvailabilityRequest.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CheckNameAvailabilityResult.Serialization.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CheckNameAvailabilityResult.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateManagementGroupChildInfo.Serialization.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateManagementGroupChildInfo.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateManagementGroupDetails.Serialization.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateManagementGroupDetails.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateManagementGroupRequest.Serialization.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateManagementGroupRequest.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateOrUpdateSettingsRequest.Serialization.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateOrUpdateSettingsRequest.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateParentGroupInfo.Serialization.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateParentGroupInfo.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/DescendantInfo.Serialization.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/DescendantInfo.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/DescendantListResult.Serialization.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/DescendantListResult.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/DescendantParentGroupInfo.Serialization.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/DescendantParentGroupInfo.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/EntityHierarchyItem.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/EntityInfo.Serialization.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/EntityInfo.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/EntityListResult.Serialization.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/EntityListResult.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/EntityParentGroupInfo.Serialization.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/EntityParentGroupInfo.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Enum0.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Enum2.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Enum3.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ErrorDetails.Serialization.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ErrorDetails.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ErrorResponse.Serialization.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ErrorResponse.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/HierarchySettings.Serialization.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/HierarchySettings.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/HierarchySettingsInfo.Serialization.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/HierarchySettingsInfo.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/HierarchySettingsList.Serialization.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/HierarchySettingsList.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ListSubscriptionUnderManagementGroup.Serialization.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ListSubscriptionUnderManagementGroup.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroup.Serialization.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroup.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupChildInfo.Serialization.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupChildInfo.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupChildType.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupDetails.Serialization.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupDetails.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupInfo.Serialization.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupInfo.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupListResult.Serialization.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupListResult.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupPathElement.Serialization.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupPathElement.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Operation.Serialization.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Operation.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/OperationDisplayProperties.Serialization.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/OperationDisplayProperties.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/OperationListResult.Serialization.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/OperationListResult.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/OperationResults.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ParentGroupInfo.Serialization.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ParentGroupInfo.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/PatchManagementGroupRequest.Serialization.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/PatchManagementGroupRequest.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Permissions.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Reason.Serialization.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Reason.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Status.Serialization.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Status.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/SubscriptionUnderManagementGroup.Serialization.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/SubscriptionUnderManagementGroup.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/TenantBackfillStatusResult.Serialization.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/TenantBackfillStatusResult.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Operations.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/RestOperations.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Properties/AssemblyInfo.cs create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/autorest.md create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/tests/Azure.ResourceManager.ManagementGroups.Tests.csproj create mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/tests/ManagementManagementTestEnvironment.cs create mode 100644 sdk/managementgroups/ci.yml create mode 100644 sdk/managementgroups/test-resources.json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroupsCreateOrUpdateHeaders.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroupsDeleteHeaders.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroupsRestOperations.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/CreateManagementGroupChildInfo.Serialization.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/CreateManagementGroupChildInfo.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/CreateManagementGroupDetails.Serialization.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/CreateManagementGroupDetails.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/CreateManagementGroupRequest.Serialization.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/CreateManagementGroupRequest.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/CreateParentGroupInfo.Serialization.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/CreateParentGroupInfo.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/DescendantInfo.Serialization.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/DescendantInfo.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/DescendantListResult.Serialization.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/DescendantListResult.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/DescendantParentGroupInfo.Serialization.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/DescendantParentGroupInfo.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/Enum0.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroup.Serialization.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroup.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupChildInfo.Serialization.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupChildInfo.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupChildType.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupDetails.Serialization.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupDetails.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupInfo.Serialization.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupInfo.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupListResult.Serialization.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupListResult.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupPathElement.Serialization.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupPathElement.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ParentGroupInfo.Serialization.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ParentGroupInfo.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/PatchManagementGroupRequest.Serialization.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/PatchManagementGroupRequest.cs diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/Azure.ResourceManager.ManagementGroups.sln b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/Azure.ResourceManager.ManagementGroups.sln new file mode 100644 index 0000000000000..a2b1124f24498 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/Azure.ResourceManager.ManagementGroups.sln @@ -0,0 +1,51 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30309.148 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{B50E35B0-A4E1-4DC4-B3EE-5220A63834E1}") = "Azure.ResourceManager.ManagementGroups", "src\Azure.ResourceManager.ManagementGroups.csproj", "{56985A47-45ED-4214-A1E3-13F4A4C7939D}" +EndProject +Project("{B50E35B0-A4E1-4DC4-B3EE-5220A63834E1}") = "Azure.ResourceManager.ManagementGroups.Tests", "tests\Azure.ResourceManager.ManagementGroups.Tests.csproj", "{0D8A8877-3ADC-4C49-B811-C09B95BE2B56}" +EndProject +Global + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {25FDDB09-AF1C-476E-B776-C34C6A8808BA} + EndGlobalSection + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|Any CPU = Release|Any CPU + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {56985A47-45ED-4214-A1E3-13F4A4C7939D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {56985A47-45ED-4214-A1E3-13F4A4C7939D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {56985A47-45ED-4214-A1E3-13F4A4C7939D}.Debug|x64.ActiveCfg = Debug|Any CPU + {56985A47-45ED-4214-A1E3-13F4A4C7939D}.Debug|x64.Build.0 = Debug|Any CPU + {56985A47-45ED-4214-A1E3-13F4A4C7939D}.Debug|x86.ActiveCfg = Debug|Any CPU + {56985A47-45ED-4214-A1E3-13F4A4C7939D}.Debug|x86.Build.0 = Debug|Any CPU + {56985A47-45ED-4214-A1E3-13F4A4C7939D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {56985A47-45ED-4214-A1E3-13F4A4C7939D}.Release|Any CPU.Build.0 = Release|Any CPU + {56985A47-45ED-4214-A1E3-13F4A4C7939D}.Release|x64.ActiveCfg = Release|Any CPU + {56985A47-45ED-4214-A1E3-13F4A4C7939D}.Release|x64.Build.0 = Release|Any CPU + {56985A47-45ED-4214-A1E3-13F4A4C7939D}.Release|x86.ActiveCfg = Release|Any CPU + {56985A47-45ED-4214-A1E3-13F4A4C7939D}.Release|x86.Build.0 = Release|Any CPU + {0D8A8877-3ADC-4C49-B811-C09B95BE2B56}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {0D8A8877-3ADC-4C49-B811-C09B95BE2B56}.Debug|Any CPU.Build.0 = Debug|Any CPU + {0D8A8877-3ADC-4C49-B811-C09B95BE2B56}.Debug|x64.ActiveCfg = Debug|Any CPU + {0D8A8877-3ADC-4C49-B811-C09B95BE2B56}.Debug|x64.Build.0 = Debug|Any CPU + {0D8A8877-3ADC-4C49-B811-C09B95BE2B56}.Debug|x86.ActiveCfg = Debug|Any CPU + {0D8A8877-3ADC-4C49-B811-C09B95BE2B56}.Debug|x86.Build.0 = Debug|Any CPU + {0D8A8877-3ADC-4C49-B811-C09B95BE2B56}.Release|Any CPU.ActiveCfg = Release|Any CPU + {0D8A8877-3ADC-4C49-B811-C09B95BE2B56}.Release|Any CPU.Build.0 = Release|Any CPU + {0D8A8877-3ADC-4C49-B811-C09B95BE2B56}.Release|x64.ActiveCfg = Release|Any CPU + {0D8A8877-3ADC-4C49-B811-C09B95BE2B56}.Release|x64.Build.0 = Release|Any CPU + {0D8A8877-3ADC-4C49-B811-C09B95BE2B56}.Release|x86.ActiveCfg = Release|Any CPU + {0D8A8877-3ADC-4C49-B811-C09B95BE2B56}.Release|x86.Build.0 = Release|Any CPU + EndGlobalSection +EndGlobal diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/CHANGELOG.md b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/CHANGELOG.md new file mode 100644 index 0000000000000..3d4ff921b5b6e --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/CHANGELOG.md @@ -0,0 +1,7 @@ +# Release History + +## 1.0.0-preview.1 (Unreleased) + +This package follows the [Azure SDK Design Guidelines for .NET](https://azure.github.io/azure-sdk/dotnet_introduction.html) which provide a number of core capabilities that are shared amongst all Azure SDKs, including the intuitive Azure Identity library, an HTTP Pipeline with custom policies, error-handling, distributed tracing, and much more. + +This is a Public Preview version, so expect incompatible changes in subsequent releases as we improve the product. To provide feedback, please submit an issue in our [Azure SDK for .NET GitHub repo](https://github.com/Azure/azure-sdk-for-net/issues). \ No newline at end of file diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/Directory.Build.props b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/Directory.Build.props new file mode 100644 index 0000000000000..1a9611bd49242 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/Directory.Build.props @@ -0,0 +1,6 @@ + + + + diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/README.md b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/README.md new file mode 100644 index 0000000000000..4576cd11cbf94 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/README.md @@ -0,0 +1,77 @@ +# Azure Management Management client library for .NET + +This package follows the [new Azure SDK guidelines](https://azure.github.io/azure-sdk/general_introduction.html) which provide a number of core capabilities that are shared amongst all Azure SDKs, including the intuitive Azure Identity library, an HTTP Pipeline with custom policies, error-handling, distributed tracing, and much more. + +## Getting started + +### Install the package + +Install the Azure Management management library for .NET with [NuGet](https://www.nuget.org/): + +```PowerShell +Install-Package Azure.ResourceManager.ManagementGroups -Version 1.0.0-preview.1 +``` + +### Prerequisites + +* You must have an [Azure subscription](https://azure.microsoft.com/free/dotnet/) + +### Authenticate the Client + +To create an authenticated client and start interacting with Azure resources, please see the [quickstart guide here](https://github.com/Azure/azure-sdk-for-net/blob/main/doc/mgmt_preview_quickstart.md) + +## Key concepts + +Key concepts of the Azure .NET SDK can be found [here](https://azure.github.io/azure-sdk/dotnet_introduction.html) + +## Documentation + +Documentation is available to help you learn how to use this package + +- [Quickstart](https://github.com/Azure/azure-sdk-for-net/blob/main/doc/mgmt_preview_quickstart.md) +- [API References](https://docs.microsoft.com/dotnet/api/?view=azure-dotnet) +- [Authentication](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md) + +## Examples + +Code samples for using the management library for .NET can be found in the following locations +- [.NET Management Library Code Samples](https://docs.microsoft.com/samples/browse/?branch=master&languages=csharp&term=managing%20using%20Azure%20.NET%20SDK) + +## Troubleshooting + +- File an issue via [Github + Issues](https://github.com/Azure/azure-sdk-for-net/issues) +- Check [previous + questions](https://stackoverflow.com/questions/tagged/azure+.net) + or ask new ones on Stack Overflow using azure and .net tags. + + +## Next steps + +For more information on Azure SDK, please refer to [this website](https://azure.github.io/azure-sdk/) + +## Contributing + +For details on contributing to this repository, see the contributing +guide. + +This project welcomes contributions and suggestions. Most contributions +require you to agree to a Contributor License Agreement (CLA) declaring +that you have the right to, and actually do, grant us the rights to use +your contribution. For details, visit . + +When you submit a pull request, a CLA-bot will automatically determine +whether you need to provide a CLA and decorate the PR appropriately +(e.g., label, comment). Simply follow the instructions provided by the +bot. You will only need to do this once across all repositories using +our CLA. + +This project has adopted the Microsoft Open Source Code of Conduct. For +more information see the Code of Conduct FAQ or contact + with any additional questions or comments. + + +[style-guide-msft]: https://docs.microsoft.com/style-guide/capitalization +[style-guide-cloud]: https://aka.ms/azsdk/cloud-style-guide + +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-net%2Fsdk%2Ftemplate%2FAzure.Template%2FREADME.png) \ No newline at end of file diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Azure.ResourceManager.ManagementGroups.csproj b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Azure.ResourceManager.ManagementGroups.csproj new file mode 100644 index 0000000000000..3a1a6d2ce2490 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Azure.ResourceManager.ManagementGroups.csproj @@ -0,0 +1,15 @@ + + + 1.0.0-preview.1 + Azure.ResourceManager.ManagementGroups + Azure Resource Manager client SDK for Azure resource provider Microsoft.Management + azure;management;arm;resource manager;management + + + + + + + + + diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/EntitiesOperations.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/EntitiesOperations.cs new file mode 100644 index 0000000000000..f49f64f101178 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/EntitiesOperations.cs @@ -0,0 +1,162 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.ManagementGroups.Models; + +namespace Azure.ResourceManager.ManagementGroups +{ + /// The Entities service client. + public partial class EntitiesOperations + { + private readonly ClientDiagnostics _clientDiagnostics; + private readonly HttpPipeline _pipeline; + internal EntitiesRestOperations RestClient { get; } + + /// Initializes a new instance of EntitiesOperations for mocking. + protected EntitiesOperations() + { + } + + /// Initializes a new instance of EntitiesOperations. + /// The handler for diagnostic messaging in the client. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// server parameter. + /// Api Version. + internal EntitiesOperations(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint = null, string apiVersion = "2021-04-01") + { + RestClient = new EntitiesRestOperations(clientDiagnostics, pipeline, endpoint, apiVersion); + _clientDiagnostics = clientDiagnostics; + _pipeline = pipeline; + } + + /// + /// List all entities (Management Groups, Subscriptions, etc.) for the authenticated user. + /// . + /// + /// + /// Page continuation token is only used if a previous operation returned a partial result. + /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. + /// . + /// + /// Number of entities to skip over when retrieving results. Passing this in will override $skipToken. + /// Number of elements to return when retrieving results. Passing this in will override $skipToken. + /// This parameter specifies the fields to include in the response. Can include any combination of Name,DisplayName,Type,ParentDisplayNameChain,ParentChain, e.g. '$select=Name,DisplayName,Type,ParentDisplayNameChain,ParentNameChain'. When specified the $select parameter can override select in $skipToken. + /// + /// The $search parameter is used in conjunction with the $filter parameter to return three different outputs depending on the parameter passed in. + /// With $search=AllowedParents the API will return the entity info of all groups that the requested entity will be able to reparent to as determined by the user's permissions. + /// With $search=AllowedChildren the API will return the entity info of all entities that can be added as children of the requested entity. + /// With $search=ParentAndFirstLevelChildren the API will return the parent and first level of children that the user has either direct access to or indirect access via one of their descendants. + /// With $search=ParentOnly the API will return only the group if the user has access to at least one of the descendants of the group. + /// With $search=ChildrenOnly the API will return only the first level of children of the group entity info specified in $filter. The user must have direct access to the children entities or one of it's descendants for it to show up in the results. + /// + /// The filter parameter allows you to filter on the the name or display name fields. You can check for equality on the name field (e.g. name eq '{entityName}') and you can check for substrings on either the name or display name fields(e.g. contains(name, '{substringToSearch}'), contains(displayName, '{substringToSearch')). Note that the '{entityName}' and '{substringToSearch}' fields are checked case insensitively. + /// The view parameter allows clients to filter the type of data that is returned by the getEntities call. + /// A filter which allows the get entities call to focus on a particular group (i.e. "$filter=name eq 'groupName'"). + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + public virtual AsyncPageable ListAsync(string skiptoken = null, int? skip = null, int? top = null, string select = null, Enum2? search = null, string filter = null, Enum3? view = null, string groupName = null, string cacheControl = null, CancellationToken cancellationToken = default) + { + async Task> FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("EntitiesOperations.List"); + scope.Start(); + try + { + var response = await RestClient.ListAsync(skiptoken, skip, top, select, search, filter, view, groupName, cacheControl, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + async Task> NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("EntitiesOperations.List"); + scope.Start(); + try + { + var response = await RestClient.ListNextPageAsync(nextLink, skiptoken, skip, top, select, search, filter, view, groupName, cacheControl, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, NextPageFunc); + } + + /// + /// List all entities (Management Groups, Subscriptions, etc.) for the authenticated user. + /// . + /// + /// + /// Page continuation token is only used if a previous operation returned a partial result. + /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. + /// . + /// + /// Number of entities to skip over when retrieving results. Passing this in will override $skipToken. + /// Number of elements to return when retrieving results. Passing this in will override $skipToken. + /// This parameter specifies the fields to include in the response. Can include any combination of Name,DisplayName,Type,ParentDisplayNameChain,ParentChain, e.g. '$select=Name,DisplayName,Type,ParentDisplayNameChain,ParentNameChain'. When specified the $select parameter can override select in $skipToken. + /// + /// The $search parameter is used in conjunction with the $filter parameter to return three different outputs depending on the parameter passed in. + /// With $search=AllowedParents the API will return the entity info of all groups that the requested entity will be able to reparent to as determined by the user's permissions. + /// With $search=AllowedChildren the API will return the entity info of all entities that can be added as children of the requested entity. + /// With $search=ParentAndFirstLevelChildren the API will return the parent and first level of children that the user has either direct access to or indirect access via one of their descendants. + /// With $search=ParentOnly the API will return only the group if the user has access to at least one of the descendants of the group. + /// With $search=ChildrenOnly the API will return only the first level of children of the group entity info specified in $filter. The user must have direct access to the children entities or one of it's descendants for it to show up in the results. + /// + /// The filter parameter allows you to filter on the the name or display name fields. You can check for equality on the name field (e.g. name eq '{entityName}') and you can check for substrings on either the name or display name fields(e.g. contains(name, '{substringToSearch}'), contains(displayName, '{substringToSearch')). Note that the '{entityName}' and '{substringToSearch}' fields are checked case insensitively. + /// The view parameter allows clients to filter the type of data that is returned by the getEntities call. + /// A filter which allows the get entities call to focus on a particular group (i.e. "$filter=name eq 'groupName'"). + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + public virtual Pageable List(string skiptoken = null, int? skip = null, int? top = null, string select = null, Enum2? search = null, string filter = null, Enum3? view = null, string groupName = null, string cacheControl = null, CancellationToken cancellationToken = default) + { + Page FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("EntitiesOperations.List"); + scope.Start(); + try + { + var response = RestClient.List(skiptoken, skip, top, select, search, filter, view, groupName, cacheControl, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + Page NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("EntitiesOperations.List"); + scope.Start(); + try + { + var response = RestClient.ListNextPage(nextLink, skiptoken, skip, top, select, search, filter, view, groupName, cacheControl, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateEnumerable(FirstPageFunc, NextPageFunc); + } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/EntitiesRestOperations.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/EntitiesRestOperations.cs new file mode 100644 index 0000000000000..c71edf11923be --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/EntitiesRestOperations.cs @@ -0,0 +1,299 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.ManagementGroups.Models; + +namespace Azure.ResourceManager.ManagementGroups +{ + internal partial class EntitiesRestOperations + { + private Uri endpoint; + private string apiVersion; + private ClientDiagnostics _clientDiagnostics; + private HttpPipeline _pipeline; + + /// Initializes a new instance of EntitiesRestOperations. + /// The handler for diagnostic messaging in the client. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// server parameter. + /// Api Version. + /// is null. + public EntitiesRestOperations(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint = null, string apiVersion = "2021-04-01") + { + endpoint ??= new Uri("https://management.azure.com"); + if (apiVersion == null) + { + throw new ArgumentNullException(nameof(apiVersion)); + } + + this.endpoint = endpoint; + this.apiVersion = apiVersion; + _clientDiagnostics = clientDiagnostics; + _pipeline = pipeline; + } + + internal HttpMessage CreateListRequest(string skiptoken, int? skip, int? top, string select, Enum2? search, string filter, Enum3? view, string groupName, string cacheControl) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/providers/Microsoft.Management/getEntities", false); + uri.AppendQuery("api-version", apiVersion, true); + if (skiptoken != null) + { + uri.AppendQuery("$skiptoken", skiptoken, true); + } + if (skip != null) + { + uri.AppendQuery("$skip", skip.Value, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (select != null) + { + uri.AppendQuery("$select", select, true); + } + if (search != null) + { + uri.AppendQuery("$search", search.Value.ToString(), true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (view != null) + { + uri.AppendQuery("$view", view.Value.ToString(), true); + } + if (groupName != null) + { + uri.AppendQuery("groupName", groupName, true); + } + request.Uri = uri; + if (cacheControl != null) + { + request.Headers.Add("Cache-Control", cacheControl); + } + request.Headers.Add("Accept", "application/json"); + return message; + } + + /// + /// List all entities (Management Groups, Subscriptions, etc.) for the authenticated user. + /// . + /// + /// + /// Page continuation token is only used if a previous operation returned a partial result. + /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. + /// . + /// + /// Number of entities to skip over when retrieving results. Passing this in will override $skipToken. + /// Number of elements to return when retrieving results. Passing this in will override $skipToken. + /// This parameter specifies the fields to include in the response. Can include any combination of Name,DisplayName,Type,ParentDisplayNameChain,ParentChain, e.g. '$select=Name,DisplayName,Type,ParentDisplayNameChain,ParentNameChain'. When specified the $select parameter can override select in $skipToken. + /// + /// The $search parameter is used in conjunction with the $filter parameter to return three different outputs depending on the parameter passed in. + /// With $search=AllowedParents the API will return the entity info of all groups that the requested entity will be able to reparent to as determined by the user's permissions. + /// With $search=AllowedChildren the API will return the entity info of all entities that can be added as children of the requested entity. + /// With $search=ParentAndFirstLevelChildren the API will return the parent and first level of children that the user has either direct access to or indirect access via one of their descendants. + /// With $search=ParentOnly the API will return only the group if the user has access to at least one of the descendants of the group. + /// With $search=ChildrenOnly the API will return only the first level of children of the group entity info specified in $filter. The user must have direct access to the children entities or one of it's descendants for it to show up in the results. + /// + /// The filter parameter allows you to filter on the the name or display name fields. You can check for equality on the name field (e.g. name eq '{entityName}') and you can check for substrings on either the name or display name fields(e.g. contains(name, '{substringToSearch}'), contains(displayName, '{substringToSearch')). Note that the '{entityName}' and '{substringToSearch}' fields are checked case insensitively. + /// The view parameter allows clients to filter the type of data that is returned by the getEntities call. + /// A filter which allows the get entities call to focus on a particular group (i.e. "$filter=name eq 'groupName'"). + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + public async Task> ListAsync(string skiptoken = null, int? skip = null, int? top = null, string select = null, Enum2? search = null, string filter = null, Enum3? view = null, string groupName = null, string cacheControl = null, CancellationToken cancellationToken = default) + { + using var message = CreateListRequest(skiptoken, skip, top, select, search, filter, view, groupName, cacheControl); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + EntityListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = EntityListResult.DeserializeEntityListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// + /// List all entities (Management Groups, Subscriptions, etc.) for the authenticated user. + /// . + /// + /// + /// Page continuation token is only used if a previous operation returned a partial result. + /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. + /// . + /// + /// Number of entities to skip over when retrieving results. Passing this in will override $skipToken. + /// Number of elements to return when retrieving results. Passing this in will override $skipToken. + /// This parameter specifies the fields to include in the response. Can include any combination of Name,DisplayName,Type,ParentDisplayNameChain,ParentChain, e.g. '$select=Name,DisplayName,Type,ParentDisplayNameChain,ParentNameChain'. When specified the $select parameter can override select in $skipToken. + /// + /// The $search parameter is used in conjunction with the $filter parameter to return three different outputs depending on the parameter passed in. + /// With $search=AllowedParents the API will return the entity info of all groups that the requested entity will be able to reparent to as determined by the user's permissions. + /// With $search=AllowedChildren the API will return the entity info of all entities that can be added as children of the requested entity. + /// With $search=ParentAndFirstLevelChildren the API will return the parent and first level of children that the user has either direct access to or indirect access via one of their descendants. + /// With $search=ParentOnly the API will return only the group if the user has access to at least one of the descendants of the group. + /// With $search=ChildrenOnly the API will return only the first level of children of the group entity info specified in $filter. The user must have direct access to the children entities or one of it's descendants for it to show up in the results. + /// + /// The filter parameter allows you to filter on the the name or display name fields. You can check for equality on the name field (e.g. name eq '{entityName}') and you can check for substrings on either the name or display name fields(e.g. contains(name, '{substringToSearch}'), contains(displayName, '{substringToSearch')). Note that the '{entityName}' and '{substringToSearch}' fields are checked case insensitively. + /// The view parameter allows clients to filter the type of data that is returned by the getEntities call. + /// A filter which allows the get entities call to focus on a particular group (i.e. "$filter=name eq 'groupName'"). + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + public Response List(string skiptoken = null, int? skip = null, int? top = null, string select = null, Enum2? search = null, string filter = null, Enum3? view = null, string groupName = null, string cacheControl = null, CancellationToken cancellationToken = default) + { + using var message = CreateListRequest(skiptoken, skip, top, select, search, filter, view, groupName, cacheControl); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + EntityListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = EntityListResult.DeserializeEntityListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListNextPageRequest(string nextLink, string skiptoken, int? skip, int? top, string select, Enum2? search, string filter, Enum3? view, string groupName, string cacheControl) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + if (cacheControl != null) + { + request.Headers.Add("Cache-Control", cacheControl); + } + request.Headers.Add("Accept", "application/json"); + return message; + } + + /// + /// List all entities (Management Groups, Subscriptions, etc.) for the authenticated user. + /// . + /// + /// The URL to the next page of results. + /// + /// Page continuation token is only used if a previous operation returned a partial result. + /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. + /// . + /// + /// Number of entities to skip over when retrieving results. Passing this in will override $skipToken. + /// Number of elements to return when retrieving results. Passing this in will override $skipToken. + /// This parameter specifies the fields to include in the response. Can include any combination of Name,DisplayName,Type,ParentDisplayNameChain,ParentChain, e.g. '$select=Name,DisplayName,Type,ParentDisplayNameChain,ParentNameChain'. When specified the $select parameter can override select in $skipToken. + /// + /// The $search parameter is used in conjunction with the $filter parameter to return three different outputs depending on the parameter passed in. + /// With $search=AllowedParents the API will return the entity info of all groups that the requested entity will be able to reparent to as determined by the user's permissions. + /// With $search=AllowedChildren the API will return the entity info of all entities that can be added as children of the requested entity. + /// With $search=ParentAndFirstLevelChildren the API will return the parent and first level of children that the user has either direct access to or indirect access via one of their descendants. + /// With $search=ParentOnly the API will return only the group if the user has access to at least one of the descendants of the group. + /// With $search=ChildrenOnly the API will return only the first level of children of the group entity info specified in $filter. The user must have direct access to the children entities or one of it's descendants for it to show up in the results. + /// + /// The filter parameter allows you to filter on the the name or display name fields. You can check for equality on the name field (e.g. name eq '{entityName}') and you can check for substrings on either the name or display name fields(e.g. contains(name, '{substringToSearch}'), contains(displayName, '{substringToSearch')). Note that the '{entityName}' and '{substringToSearch}' fields are checked case insensitively. + /// The view parameter allows clients to filter the type of data that is returned by the getEntities call. + /// A filter which allows the get entities call to focus on a particular group (i.e. "$filter=name eq 'groupName'"). + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + /// is null. + public async Task> ListNextPageAsync(string nextLink, string skiptoken = null, int? skip = null, int? top = null, string select = null, Enum2? search = null, string filter = null, Enum3? view = null, string groupName = null, string cacheControl = null, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateListNextPageRequest(nextLink, skiptoken, skip, top, select, search, filter, view, groupName, cacheControl); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + EntityListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = EntityListResult.DeserializeEntityListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// + /// List all entities (Management Groups, Subscriptions, etc.) for the authenticated user. + /// . + /// + /// The URL to the next page of results. + /// + /// Page continuation token is only used if a previous operation returned a partial result. + /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. + /// . + /// + /// Number of entities to skip over when retrieving results. Passing this in will override $skipToken. + /// Number of elements to return when retrieving results. Passing this in will override $skipToken. + /// This parameter specifies the fields to include in the response. Can include any combination of Name,DisplayName,Type,ParentDisplayNameChain,ParentChain, e.g. '$select=Name,DisplayName,Type,ParentDisplayNameChain,ParentNameChain'. When specified the $select parameter can override select in $skipToken. + /// + /// The $search parameter is used in conjunction with the $filter parameter to return three different outputs depending on the parameter passed in. + /// With $search=AllowedParents the API will return the entity info of all groups that the requested entity will be able to reparent to as determined by the user's permissions. + /// With $search=AllowedChildren the API will return the entity info of all entities that can be added as children of the requested entity. + /// With $search=ParentAndFirstLevelChildren the API will return the parent and first level of children that the user has either direct access to or indirect access via one of their descendants. + /// With $search=ParentOnly the API will return only the group if the user has access to at least one of the descendants of the group. + /// With $search=ChildrenOnly the API will return only the first level of children of the group entity info specified in $filter. The user must have direct access to the children entities or one of it's descendants for it to show up in the results. + /// + /// The filter parameter allows you to filter on the the name or display name fields. You can check for equality on the name field (e.g. name eq '{entityName}') and you can check for substrings on either the name or display name fields(e.g. contains(name, '{substringToSearch}'), contains(displayName, '{substringToSearch')). Note that the '{entityName}' and '{substringToSearch}' fields are checked case insensitively. + /// The view parameter allows clients to filter the type of data that is returned by the getEntities call. + /// A filter which allows the get entities call to focus on a particular group (i.e. "$filter=name eq 'groupName'"). + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + /// is null. + public Response ListNextPage(string nextLink, string skiptoken = null, int? skip = null, int? top = null, string select = null, Enum2? search = null, string filter = null, Enum3? view = null, string groupName = null, string cacheControl = null, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateListNextPageRequest(nextLink, skiptoken, skip, top, select, search, filter, view, groupName, cacheControl); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + EntityListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = EntityListResult.DeserializeEntityListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/HierarchySettingsOperations.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/HierarchySettingsOperations.cs new file mode 100644 index 0000000000000..86c7aeb163d33 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/HierarchySettingsOperations.cs @@ -0,0 +1,255 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core.Pipeline; +using Azure.ResourceManager.ManagementGroups.Models; + +namespace Azure.ResourceManager.ManagementGroups +{ + /// The HierarchySettings service client. + public partial class HierarchySettingsOperations + { + private readonly ClientDiagnostics _clientDiagnostics; + private readonly HttpPipeline _pipeline; + internal HierarchySettingsRestOperations RestClient { get; } + + /// Initializes a new instance of HierarchySettingsOperations for mocking. + protected HierarchySettingsOperations() + { + } + + /// Initializes a new instance of HierarchySettingsOperations. + /// The handler for diagnostic messaging in the client. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// server parameter. + /// Api Version. + internal HierarchySettingsOperations(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint = null, string apiVersion = "2021-04-01") + { + RestClient = new HierarchySettingsRestOperations(clientDiagnostics, pipeline, endpoint, apiVersion); + _clientDiagnostics = clientDiagnostics; + _pipeline = pipeline; + } + + /// + /// Gets all the hierarchy settings defined at the Management Group level. Settings can only be set on the root Management Group of the hierarchy. + /// . + /// + /// Management Group ID. + /// The cancellation token to use. + public virtual async Task> ListAsync(string groupId, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("HierarchySettingsOperations.List"); + scope.Start(); + try + { + return await RestClient.ListAsync(groupId, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets all the hierarchy settings defined at the Management Group level. Settings can only be set on the root Management Group of the hierarchy. + /// . + /// + /// Management Group ID. + /// The cancellation token to use. + public virtual Response List(string groupId, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("HierarchySettingsOperations.List"); + scope.Start(); + try + { + return RestClient.List(groupId, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets the hierarchy settings defined at the Management Group level. Settings can only be set on the root Management Group of the hierarchy. + /// . + /// + /// Management Group ID. + /// The cancellation token to use. + public virtual async Task> GetAsync(string groupId, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("HierarchySettingsOperations.Get"); + scope.Start(); + try + { + return await RestClient.GetAsync(groupId, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets the hierarchy settings defined at the Management Group level. Settings can only be set on the root Management Group of the hierarchy. + /// . + /// + /// Management Group ID. + /// The cancellation token to use. + public virtual Response Get(string groupId, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("HierarchySettingsOperations.Get"); + scope.Start(); + try + { + return RestClient.Get(groupId, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Creates or updates the hierarchy settings defined at the Management Group level. + /// . + /// + /// Management Group ID. + /// Tenant level settings request parameter. + /// The cancellation token to use. + public virtual async Task> CreateOrUpdateAsync(string groupId, CreateOrUpdateSettingsRequest createTenantSettingsRequest, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("HierarchySettingsOperations.CreateOrUpdate"); + scope.Start(); + try + { + return await RestClient.CreateOrUpdateAsync(groupId, createTenantSettingsRequest, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Creates or updates the hierarchy settings defined at the Management Group level. + /// . + /// + /// Management Group ID. + /// Tenant level settings request parameter. + /// The cancellation token to use. + public virtual Response CreateOrUpdate(string groupId, CreateOrUpdateSettingsRequest createTenantSettingsRequest, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("HierarchySettingsOperations.CreateOrUpdate"); + scope.Start(); + try + { + return RestClient.CreateOrUpdate(groupId, createTenantSettingsRequest, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Updates the hierarchy settings defined at the Management Group level. + /// . + /// + /// Management Group ID. + /// Tenant level settings request parameter. + /// The cancellation token to use. + public virtual async Task> UpdateAsync(string groupId, CreateOrUpdateSettingsRequest createTenantSettingsRequest, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("HierarchySettingsOperations.Update"); + scope.Start(); + try + { + return await RestClient.UpdateAsync(groupId, createTenantSettingsRequest, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Updates the hierarchy settings defined at the Management Group level. + /// . + /// + /// Management Group ID. + /// Tenant level settings request parameter. + /// The cancellation token to use. + public virtual Response Update(string groupId, CreateOrUpdateSettingsRequest createTenantSettingsRequest, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("HierarchySettingsOperations.Update"); + scope.Start(); + try + { + return RestClient.Update(groupId, createTenantSettingsRequest, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Deletes the hierarchy settings defined at the Management Group level. + /// . + /// + /// Management Group ID. + /// The cancellation token to use. + public virtual async Task DeleteAsync(string groupId, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("HierarchySettingsOperations.Delete"); + scope.Start(); + try + { + return await RestClient.DeleteAsync(groupId, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Deletes the hierarchy settings defined at the Management Group level. + /// . + /// + /// Management Group ID. + /// The cancellation token to use. + public virtual Response Delete(string groupId, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("HierarchySettingsOperations.Delete"); + scope.Start(); + try + { + return RestClient.Delete(groupId, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/HierarchySettingsRestOperations.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/HierarchySettingsRestOperations.cs new file mode 100644 index 0000000000000..a2784037e62be --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/HierarchySettingsRestOperations.cs @@ -0,0 +1,444 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.ManagementGroups.Models; + +namespace Azure.ResourceManager.ManagementGroups +{ + internal partial class HierarchySettingsRestOperations + { + private Uri endpoint; + private string apiVersion; + private ClientDiagnostics _clientDiagnostics; + private HttpPipeline _pipeline; + + /// Initializes a new instance of HierarchySettingsRestOperations. + /// The handler for diagnostic messaging in the client. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// server parameter. + /// Api Version. + /// is null. + public HierarchySettingsRestOperations(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint = null, string apiVersion = "2021-04-01") + { + endpoint ??= new Uri("https://management.azure.com"); + if (apiVersion == null) + { + throw new ArgumentNullException(nameof(apiVersion)); + } + + this.endpoint = endpoint; + this.apiVersion = apiVersion; + _clientDiagnostics = clientDiagnostics; + _pipeline = pipeline; + } + + internal HttpMessage CreateListRequest(string groupId) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); + uri.AppendPath(groupId, true); + uri.AppendPath("/settings", false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + return message; + } + + /// + /// Gets all the hierarchy settings defined at the Management Group level. Settings can only be set on the root Management Group of the hierarchy. + /// . + /// + /// Management Group ID. + /// The cancellation token to use. + /// is null. + public async Task> ListAsync(string groupId, CancellationToken cancellationToken = default) + { + if (groupId == null) + { + throw new ArgumentNullException(nameof(groupId)); + } + + using var message = CreateListRequest(groupId); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + HierarchySettingsList value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = HierarchySettingsList.DeserializeHierarchySettingsList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// + /// Gets all the hierarchy settings defined at the Management Group level. Settings can only be set on the root Management Group of the hierarchy. + /// . + /// + /// Management Group ID. + /// The cancellation token to use. + /// is null. + public Response List(string groupId, CancellationToken cancellationToken = default) + { + if (groupId == null) + { + throw new ArgumentNullException(nameof(groupId)); + } + + using var message = CreateListRequest(groupId); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + HierarchySettingsList value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = HierarchySettingsList.DeserializeHierarchySettingsList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetRequest(string groupId) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); + uri.AppendPath(groupId, true); + uri.AppendPath("/settings/default", false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + return message; + } + + /// + /// Gets the hierarchy settings defined at the Management Group level. Settings can only be set on the root Management Group of the hierarchy. + /// . + /// + /// Management Group ID. + /// The cancellation token to use. + /// is null. + public async Task> GetAsync(string groupId, CancellationToken cancellationToken = default) + { + if (groupId == null) + { + throw new ArgumentNullException(nameof(groupId)); + } + + using var message = CreateGetRequest(groupId); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + HierarchySettings value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = HierarchySettings.DeserializeHierarchySettings(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// + /// Gets the hierarchy settings defined at the Management Group level. Settings can only be set on the root Management Group of the hierarchy. + /// . + /// + /// Management Group ID. + /// The cancellation token to use. + /// is null. + public Response Get(string groupId, CancellationToken cancellationToken = default) + { + if (groupId == null) + { + throw new ArgumentNullException(nameof(groupId)); + } + + using var message = CreateGetRequest(groupId); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + HierarchySettings value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = HierarchySettings.DeserializeHierarchySettings(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateCreateOrUpdateRequest(string groupId, CreateOrUpdateSettingsRequest createTenantSettingsRequest) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Put; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); + uri.AppendPath(groupId, true); + uri.AppendPath("/settings/default", false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(createTenantSettingsRequest); + request.Content = content; + return message; + } + + /// + /// Creates or updates the hierarchy settings defined at the Management Group level. + /// . + /// + /// Management Group ID. + /// Tenant level settings request parameter. + /// The cancellation token to use. + /// or is null. + public async Task> CreateOrUpdateAsync(string groupId, CreateOrUpdateSettingsRequest createTenantSettingsRequest, CancellationToken cancellationToken = default) + { + if (groupId == null) + { + throw new ArgumentNullException(nameof(groupId)); + } + if (createTenantSettingsRequest == null) + { + throw new ArgumentNullException(nameof(createTenantSettingsRequest)); + } + + using var message = CreateCreateOrUpdateRequest(groupId, createTenantSettingsRequest); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + HierarchySettings value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = HierarchySettings.DeserializeHierarchySettings(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// + /// Creates or updates the hierarchy settings defined at the Management Group level. + /// . + /// + /// Management Group ID. + /// Tenant level settings request parameter. + /// The cancellation token to use. + /// or is null. + public Response CreateOrUpdate(string groupId, CreateOrUpdateSettingsRequest createTenantSettingsRequest, CancellationToken cancellationToken = default) + { + if (groupId == null) + { + throw new ArgumentNullException(nameof(groupId)); + } + if (createTenantSettingsRequest == null) + { + throw new ArgumentNullException(nameof(createTenantSettingsRequest)); + } + + using var message = CreateCreateOrUpdateRequest(groupId, createTenantSettingsRequest); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + HierarchySettings value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = HierarchySettings.DeserializeHierarchySettings(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateUpdateRequest(string groupId, CreateOrUpdateSettingsRequest createTenantSettingsRequest) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Patch; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); + uri.AppendPath(groupId, true); + uri.AppendPath("/settings/default", false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(createTenantSettingsRequest); + request.Content = content; + return message; + } + + /// + /// Updates the hierarchy settings defined at the Management Group level. + /// . + /// + /// Management Group ID. + /// Tenant level settings request parameter. + /// The cancellation token to use. + /// or is null. + public async Task> UpdateAsync(string groupId, CreateOrUpdateSettingsRequest createTenantSettingsRequest, CancellationToken cancellationToken = default) + { + if (groupId == null) + { + throw new ArgumentNullException(nameof(groupId)); + } + if (createTenantSettingsRequest == null) + { + throw new ArgumentNullException(nameof(createTenantSettingsRequest)); + } + + using var message = CreateUpdateRequest(groupId, createTenantSettingsRequest); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + HierarchySettings value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = HierarchySettings.DeserializeHierarchySettings(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// + /// Updates the hierarchy settings defined at the Management Group level. + /// . + /// + /// Management Group ID. + /// Tenant level settings request parameter. + /// The cancellation token to use. + /// or is null. + public Response Update(string groupId, CreateOrUpdateSettingsRequest createTenantSettingsRequest, CancellationToken cancellationToken = default) + { + if (groupId == null) + { + throw new ArgumentNullException(nameof(groupId)); + } + if (createTenantSettingsRequest == null) + { + throw new ArgumentNullException(nameof(createTenantSettingsRequest)); + } + + using var message = CreateUpdateRequest(groupId, createTenantSettingsRequest); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + HierarchySettings value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = HierarchySettings.DeserializeHierarchySettings(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateDeleteRequest(string groupId) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); + uri.AppendPath(groupId, true); + uri.AppendPath("/settings/default", false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + return message; + } + + /// + /// Deletes the hierarchy settings defined at the Management Group level. + /// . + /// + /// Management Group ID. + /// The cancellation token to use. + /// is null. + public async Task DeleteAsync(string groupId, CancellationToken cancellationToken = default) + { + if (groupId == null) + { + throw new ArgumentNullException(nameof(groupId)); + } + + using var message = CreateDeleteRequest(groupId); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + return message.Response; + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// + /// Deletes the hierarchy settings defined at the Management Group level. + /// . + /// + /// Management Group ID. + /// The cancellation token to use. + /// is null. + public Response Delete(string groupId, CancellationToken cancellationToken = default) + { + if (groupId == null) + { + throw new ArgumentNullException(nameof(groupId)); + } + + using var message = CreateDeleteRequest(groupId); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + return message.Response; + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupSubscriptionsOperations.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupSubscriptionsOperations.cs new file mode 100644 index 0000000000000..6a1b056b13b4f --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupSubscriptionsOperations.cs @@ -0,0 +1,284 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.ManagementGroups.Models; + +namespace Azure.ResourceManager.ManagementGroups +{ + /// The ManagementGroupSubscriptions service client. + public partial class ManagementGroupSubscriptionsOperations + { + private readonly ClientDiagnostics _clientDiagnostics; + private readonly HttpPipeline _pipeline; + internal ManagementGroupSubscriptionsRestOperations RestClient { get; } + + /// Initializes a new instance of ManagementGroupSubscriptionsOperations for mocking. + protected ManagementGroupSubscriptionsOperations() + { + } + + /// Initializes a new instance of ManagementGroupSubscriptionsOperations. + /// The handler for diagnostic messaging in the client. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// server parameter. + /// Api Version. + internal ManagementGroupSubscriptionsOperations(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint = null, string apiVersion = "2021-04-01") + { + RestClient = new ManagementGroupSubscriptionsRestOperations(clientDiagnostics, pipeline, endpoint, apiVersion); + _clientDiagnostics = clientDiagnostics; + _pipeline = pipeline; + } + + /// + /// Associates existing subscription with the management group. + /// . + /// + /// Management Group ID. + /// Subscription ID. + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + public virtual async Task> CreateAsync(string groupId, string subscriptionId, string cacheControl = null, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ManagementGroupSubscriptionsOperations.Create"); + scope.Start(); + try + { + return await RestClient.CreateAsync(groupId, subscriptionId, cacheControl, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Associates existing subscription with the management group. + /// . + /// + /// Management Group ID. + /// Subscription ID. + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + public virtual Response Create(string groupId, string subscriptionId, string cacheControl = null, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ManagementGroupSubscriptionsOperations.Create"); + scope.Start(); + try + { + return RestClient.Create(groupId, subscriptionId, cacheControl, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// De-associates subscription from the management group. + /// . + /// + /// Management Group ID. + /// Subscription ID. + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + public virtual async Task DeleteAsync(string groupId, string subscriptionId, string cacheControl = null, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ManagementGroupSubscriptionsOperations.Delete"); + scope.Start(); + try + { + return await RestClient.DeleteAsync(groupId, subscriptionId, cacheControl, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// De-associates subscription from the management group. + /// . + /// + /// Management Group ID. + /// Subscription ID. + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + public virtual Response Delete(string groupId, string subscriptionId, string cacheControl = null, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ManagementGroupSubscriptionsOperations.Delete"); + scope.Start(); + try + { + return RestClient.Delete(groupId, subscriptionId, cacheControl, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Retrieves details about given subscription which is associated with the management group. + /// . + /// + /// Management Group ID. + /// Subscription ID. + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + public virtual async Task> GetSubscriptionAsync(string groupId, string subscriptionId, string cacheControl = null, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ManagementGroupSubscriptionsOperations.GetSubscription"); + scope.Start(); + try + { + return await RestClient.GetSubscriptionAsync(groupId, subscriptionId, cacheControl, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Retrieves details about given subscription which is associated with the management group. + /// . + /// + /// Management Group ID. + /// Subscription ID. + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + public virtual Response GetSubscription(string groupId, string subscriptionId, string cacheControl = null, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ManagementGroupSubscriptionsOperations.GetSubscription"); + scope.Start(); + try + { + return RestClient.GetSubscription(groupId, subscriptionId, cacheControl, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Retrieves details about all subscriptions which are associated with the management group. + /// . + /// + /// Management Group ID. + /// + /// Page continuation token is only used if a previous operation returned a partial result. + /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. + /// . + /// + /// The cancellation token to use. + /// is null. + public virtual AsyncPageable GetSubscriptionsUnderManagementGroupAsync(string groupId, string skiptoken = null, CancellationToken cancellationToken = default) + { + if (groupId == null) + { + throw new ArgumentNullException(nameof(groupId)); + } + + async Task> FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ManagementGroupSubscriptionsOperations.GetSubscriptionsUnderManagementGroup"); + scope.Start(); + try + { + var response = await RestClient.GetSubscriptionsUnderManagementGroupAsync(groupId, skiptoken, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + async Task> NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ManagementGroupSubscriptionsOperations.GetSubscriptionsUnderManagementGroup"); + scope.Start(); + try + { + var response = await RestClient.GetSubscriptionsUnderManagementGroupNextPageAsync(nextLink, groupId, skiptoken, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, NextPageFunc); + } + + /// + /// Retrieves details about all subscriptions which are associated with the management group. + /// . + /// + /// Management Group ID. + /// + /// Page continuation token is only used if a previous operation returned a partial result. + /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. + /// . + /// + /// The cancellation token to use. + /// is null. + public virtual Pageable GetSubscriptionsUnderManagementGroup(string groupId, string skiptoken = null, CancellationToken cancellationToken = default) + { + if (groupId == null) + { + throw new ArgumentNullException(nameof(groupId)); + } + + Page FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ManagementGroupSubscriptionsOperations.GetSubscriptionsUnderManagementGroup"); + scope.Start(); + try + { + var response = RestClient.GetSubscriptionsUnderManagementGroup(groupId, skiptoken, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + Page NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ManagementGroupSubscriptionsOperations.GetSubscriptionsUnderManagementGroup"); + scope.Start(); + try + { + var response = RestClient.GetSubscriptionsUnderManagementGroupNextPage(nextLink, groupId, skiptoken, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateEnumerable(FirstPageFunc, NextPageFunc); + } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupSubscriptionsRestOperations.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupSubscriptionsRestOperations.cs new file mode 100644 index 0000000000000..ac0cac4e46fde --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupSubscriptionsRestOperations.cs @@ -0,0 +1,500 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.ManagementGroups.Models; + +namespace Azure.ResourceManager.ManagementGroups +{ + internal partial class ManagementGroupSubscriptionsRestOperations + { + private Uri endpoint; + private string apiVersion; + private ClientDiagnostics _clientDiagnostics; + private HttpPipeline _pipeline; + + /// Initializes a new instance of ManagementGroupSubscriptionsRestOperations. + /// The handler for diagnostic messaging in the client. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// server parameter. + /// Api Version. + /// is null. + public ManagementGroupSubscriptionsRestOperations(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint = null, string apiVersion = "2021-04-01") + { + endpoint ??= new Uri("https://management.azure.com"); + if (apiVersion == null) + { + throw new ArgumentNullException(nameof(apiVersion)); + } + + this.endpoint = endpoint; + this.apiVersion = apiVersion; + _clientDiagnostics = clientDiagnostics; + _pipeline = pipeline; + } + + internal HttpMessage CreateCreateRequest(string groupId, string subscriptionId, string cacheControl) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Put; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); + uri.AppendPath(groupId, true); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + if (cacheControl != null) + { + request.Headers.Add("Cache-Control", cacheControl); + } + request.Headers.Add("Accept", "application/json"); + return message; + } + + /// + /// Associates existing subscription with the management group. + /// . + /// + /// Management Group ID. + /// Subscription ID. + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + /// or is null. + public async Task> CreateAsync(string groupId, string subscriptionId, string cacheControl = null, CancellationToken cancellationToken = default) + { + if (groupId == null) + { + throw new ArgumentNullException(nameof(groupId)); + } + if (subscriptionId == null) + { + throw new ArgumentNullException(nameof(subscriptionId)); + } + + using var message = CreateCreateRequest(groupId, subscriptionId, cacheControl); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + SubscriptionUnderManagementGroup value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = SubscriptionUnderManagementGroup.DeserializeSubscriptionUnderManagementGroup(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// + /// Associates existing subscription with the management group. + /// . + /// + /// Management Group ID. + /// Subscription ID. + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + /// or is null. + public Response Create(string groupId, string subscriptionId, string cacheControl = null, CancellationToken cancellationToken = default) + { + if (groupId == null) + { + throw new ArgumentNullException(nameof(groupId)); + } + if (subscriptionId == null) + { + throw new ArgumentNullException(nameof(subscriptionId)); + } + + using var message = CreateCreateRequest(groupId, subscriptionId, cacheControl); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + SubscriptionUnderManagementGroup value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = SubscriptionUnderManagementGroup.DeserializeSubscriptionUnderManagementGroup(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateDeleteRequest(string groupId, string subscriptionId, string cacheControl) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); + uri.AppendPath(groupId, true); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + if (cacheControl != null) + { + request.Headers.Add("Cache-Control", cacheControl); + } + request.Headers.Add("Accept", "application/json"); + return message; + } + + /// + /// De-associates subscription from the management group. + /// . + /// + /// Management Group ID. + /// Subscription ID. + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + /// or is null. + public async Task DeleteAsync(string groupId, string subscriptionId, string cacheControl = null, CancellationToken cancellationToken = default) + { + if (groupId == null) + { + throw new ArgumentNullException(nameof(groupId)); + } + if (subscriptionId == null) + { + throw new ArgumentNullException(nameof(subscriptionId)); + } + + using var message = CreateDeleteRequest(groupId, subscriptionId, cacheControl); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 204: + return message.Response; + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// + /// De-associates subscription from the management group. + /// . + /// + /// Management Group ID. + /// Subscription ID. + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + /// or is null. + public Response Delete(string groupId, string subscriptionId, string cacheControl = null, CancellationToken cancellationToken = default) + { + if (groupId == null) + { + throw new ArgumentNullException(nameof(groupId)); + } + if (subscriptionId == null) + { + throw new ArgumentNullException(nameof(subscriptionId)); + } + + using var message = CreateDeleteRequest(groupId, subscriptionId, cacheControl); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 204: + return message.Response; + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetSubscriptionRequest(string groupId, string subscriptionId, string cacheControl) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); + uri.AppendPath(groupId, true); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + if (cacheControl != null) + { + request.Headers.Add("Cache-Control", cacheControl); + } + request.Headers.Add("Accept", "application/json"); + return message; + } + + /// + /// Retrieves details about given subscription which is associated with the management group. + /// . + /// + /// Management Group ID. + /// Subscription ID. + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + /// or is null. + public async Task> GetSubscriptionAsync(string groupId, string subscriptionId, string cacheControl = null, CancellationToken cancellationToken = default) + { + if (groupId == null) + { + throw new ArgumentNullException(nameof(groupId)); + } + if (subscriptionId == null) + { + throw new ArgumentNullException(nameof(subscriptionId)); + } + + using var message = CreateGetSubscriptionRequest(groupId, subscriptionId, cacheControl); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + SubscriptionUnderManagementGroup value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = SubscriptionUnderManagementGroup.DeserializeSubscriptionUnderManagementGroup(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// + /// Retrieves details about given subscription which is associated with the management group. + /// . + /// + /// Management Group ID. + /// Subscription ID. + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + /// or is null. + public Response GetSubscription(string groupId, string subscriptionId, string cacheControl = null, CancellationToken cancellationToken = default) + { + if (groupId == null) + { + throw new ArgumentNullException(nameof(groupId)); + } + if (subscriptionId == null) + { + throw new ArgumentNullException(nameof(subscriptionId)); + } + + using var message = CreateGetSubscriptionRequest(groupId, subscriptionId, cacheControl); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + SubscriptionUnderManagementGroup value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = SubscriptionUnderManagementGroup.DeserializeSubscriptionUnderManagementGroup(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetSubscriptionsUnderManagementGroupRequest(string groupId, string skiptoken) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); + uri.AppendPath(groupId, true); + uri.AppendPath("/subscriptions", false); + uri.AppendQuery("api-version", apiVersion, true); + if (skiptoken != null) + { + uri.AppendQuery("$skiptoken", skiptoken, true); + } + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + return message; + } + + /// + /// Retrieves details about all subscriptions which are associated with the management group. + /// . + /// + /// Management Group ID. + /// + /// Page continuation token is only used if a previous operation returned a partial result. + /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. + /// . + /// + /// The cancellation token to use. + /// is null. + public async Task> GetSubscriptionsUnderManagementGroupAsync(string groupId, string skiptoken = null, CancellationToken cancellationToken = default) + { + if (groupId == null) + { + throw new ArgumentNullException(nameof(groupId)); + } + + using var message = CreateGetSubscriptionsUnderManagementGroupRequest(groupId, skiptoken); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ListSubscriptionUnderManagementGroup value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = ListSubscriptionUnderManagementGroup.DeserializeListSubscriptionUnderManagementGroup(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// + /// Retrieves details about all subscriptions which are associated with the management group. + /// . + /// + /// Management Group ID. + /// + /// Page continuation token is only used if a previous operation returned a partial result. + /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. + /// . + /// + /// The cancellation token to use. + /// is null. + public Response GetSubscriptionsUnderManagementGroup(string groupId, string skiptoken = null, CancellationToken cancellationToken = default) + { + if (groupId == null) + { + throw new ArgumentNullException(nameof(groupId)); + } + + using var message = CreateGetSubscriptionsUnderManagementGroupRequest(groupId, skiptoken); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ListSubscriptionUnderManagementGroup value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = ListSubscriptionUnderManagementGroup.DeserializeListSubscriptionUnderManagementGroup(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetSubscriptionsUnderManagementGroupNextPageRequest(string nextLink, string groupId, string skiptoken) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + return message; + } + + /// + /// Retrieves details about all subscriptions which are associated with the management group. + /// . + /// + /// The URL to the next page of results. + /// Management Group ID. + /// + /// Page continuation token is only used if a previous operation returned a partial result. + /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. + /// . + /// + /// The cancellation token to use. + /// or is null. + public async Task> GetSubscriptionsUnderManagementGroupNextPageAsync(string nextLink, string groupId, string skiptoken = null, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + if (groupId == null) + { + throw new ArgumentNullException(nameof(groupId)); + } + + using var message = CreateGetSubscriptionsUnderManagementGroupNextPageRequest(nextLink, groupId, skiptoken); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ListSubscriptionUnderManagementGroup value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = ListSubscriptionUnderManagementGroup.DeserializeListSubscriptionUnderManagementGroup(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// + /// Retrieves details about all subscriptions which are associated with the management group. + /// . + /// + /// The URL to the next page of results. + /// Management Group ID. + /// + /// Page continuation token is only used if a previous operation returned a partial result. + /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. + /// . + /// + /// The cancellation token to use. + /// or is null. + public Response GetSubscriptionsUnderManagementGroupNextPage(string nextLink, string groupId, string skiptoken = null, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + if (groupId == null) + { + throw new ArgumentNullException(nameof(groupId)); + } + + using var message = CreateGetSubscriptionsUnderManagementGroupNextPageRequest(nextLink, groupId, skiptoken); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ListSubscriptionUnderManagementGroup value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = ListSubscriptionUnderManagementGroup.DeserializeListSubscriptionUnderManagementGroup(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsAPIManagementClient.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsAPIManagementClient.cs new file mode 100644 index 0000000000000..5d9bade1721a8 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsAPIManagementClient.cs @@ -0,0 +1,65 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.ManagementGroups; + +namespace Azure.ResourceManager.ManagementGroups +{ + /// ManagementGroupsAPI service management client. + public partial class ManagementGroupsAPIManagementClient + { + private readonly ClientDiagnostics _clientDiagnostics; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + + /// Initializes a new instance of ManagementGroupsAPIManagementClient for mocking. + protected ManagementGroupsAPIManagementClient() + { + } + + /// Initializes a new instance of ManagementGroupsAPIManagementClient. + /// The OAuth token for making client requests. + /// The options for configuring the client. + public ManagementGroupsAPIManagementClient(TokenCredential tokenCredential, ManagementGroupsAPIManagementClientOptions options = null) : this(null, tokenCredential, options) + { + } + /// Initializes a new instance of ManagementGroupsAPIManagementClient. + /// server parameter. + /// The OAuth token for making client requests. + /// The options for configuring the client. + public ManagementGroupsAPIManagementClient(Uri endpoint, TokenCredential tokenCredential, ManagementGroupsAPIManagementClientOptions options = null) + { + endpoint ??= new Uri("https://management.azure.com"); + + options ??= new ManagementGroupsAPIManagementClientOptions(); + _clientDiagnostics = new ClientDiagnostics(options); + _pipeline = ManagementPipelineBuilder.Build(tokenCredential, endpoint, options); + _endpoint = endpoint; + } + + /// Returns an instance of ManagementGroupsOperations. + public virtual ManagementGroupsOperations ManagementGroups => new ManagementGroupsOperations(_clientDiagnostics, _pipeline, _endpoint); + + /// Returns an instance of ManagementGroupSubscriptionsOperations. + public virtual ManagementGroupSubscriptionsOperations ManagementGroupSubscriptions => new ManagementGroupSubscriptionsOperations(_clientDiagnostics, _pipeline, _endpoint); + + /// Returns an instance of HierarchySettingsOperations. + public virtual HierarchySettingsOperations HierarchySettings => new HierarchySettingsOperations(_clientDiagnostics, _pipeline, _endpoint); + + /// Returns an instance of Operations. + public virtual Operations Operations => new Operations(_clientDiagnostics, _pipeline, _endpoint); + + /// Returns an instance of ManagementGroupsAPIOperations. + public virtual ManagementGroupsAPIOperations ManagementGroupsAPI => new ManagementGroupsAPIOperations(_clientDiagnostics, _pipeline, _endpoint); + + /// Returns an instance of EntitiesOperations. + public virtual EntitiesOperations Entities => new EntitiesOperations(_clientDiagnostics, _pipeline, _endpoint); + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsAPIManagementClientOptions.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsAPIManagementClientOptions.cs new file mode 100644 index 0000000000000..827408a8df078 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsAPIManagementClientOptions.cs @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using Azure.Core; + +namespace Azure.ResourceManager.ManagementGroups +{ + /// Client options for ManagementGroupsAPI. + public partial class ManagementGroupsAPIManagementClientOptions : ClientOptions + { + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsAPIOperations.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsAPIOperations.cs new file mode 100644 index 0000000000000..01a6352538ed6 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsAPIOperations.cs @@ -0,0 +1,145 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core.Pipeline; +using Azure.ResourceManager.ManagementGroups.Models; + +namespace Azure.ResourceManager.ManagementGroups +{ + /// The ManagementGroupsAPI service client. + public partial class ManagementGroupsAPIOperations + { + private readonly ClientDiagnostics _clientDiagnostics; + private readonly HttpPipeline _pipeline; + internal ManagementGroupsAPIRestOperations RestClient { get; } + + /// Initializes a new instance of ManagementGroupsAPIOperations for mocking. + protected ManagementGroupsAPIOperations() + { + } + + /// Initializes a new instance of ManagementGroupsAPIOperations. + /// The handler for diagnostic messaging in the client. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// server parameter. + /// Api Version. + internal ManagementGroupsAPIOperations(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint = null, string apiVersion = "2021-04-01") + { + RestClient = new ManagementGroupsAPIRestOperations(clientDiagnostics, pipeline, endpoint, apiVersion); + _clientDiagnostics = clientDiagnostics; + _pipeline = pipeline; + } + + /// Checks if the specified management group name is valid and unique. + /// Management group name availability check parameters. + /// The cancellation token to use. + public virtual async Task> CheckNameAvailabilityAsync(CheckNameAvailabilityRequest checkNameAvailabilityRequest, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ManagementGroupsAPIOperations.CheckNameAvailability"); + scope.Start(); + try + { + return await RestClient.CheckNameAvailabilityAsync(checkNameAvailabilityRequest, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Checks if the specified management group name is valid and unique. + /// Management group name availability check parameters. + /// The cancellation token to use. + public virtual Response CheckNameAvailability(CheckNameAvailabilityRequest checkNameAvailabilityRequest, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ManagementGroupsAPIOperations.CheckNameAvailability"); + scope.Start(); + try + { + return RestClient.CheckNameAvailability(checkNameAvailabilityRequest, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Starts backfilling subscriptions for the Tenant. + /// The cancellation token to use. + public virtual async Task> StartTenantBackfillAsync(CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ManagementGroupsAPIOperations.StartTenantBackfill"); + scope.Start(); + try + { + return await RestClient.StartTenantBackfillAsync(cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Starts backfilling subscriptions for the Tenant. + /// The cancellation token to use. + public virtual Response StartTenantBackfill(CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ManagementGroupsAPIOperations.StartTenantBackfill"); + scope.Start(); + try + { + return RestClient.StartTenantBackfill(cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets tenant backfill status. + /// The cancellation token to use. + public virtual async Task> TenantBackfillStatusAsync(CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ManagementGroupsAPIOperations.TenantBackfillStatus"); + scope.Start(); + try + { + return await RestClient.TenantBackfillStatusAsync(cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets tenant backfill status. + /// The cancellation token to use. + public virtual Response TenantBackfillStatus(CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ManagementGroupsAPIOperations.TenantBackfillStatus"); + scope.Start(); + try + { + return RestClient.TenantBackfillStatus(cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsAPIRestOperations.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsAPIRestOperations.cs new file mode 100644 index 0000000000000..192a4de49e1f6 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsAPIRestOperations.cs @@ -0,0 +1,226 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.ManagementGroups.Models; + +namespace Azure.ResourceManager.ManagementGroups +{ + internal partial class ManagementGroupsAPIRestOperations + { + private Uri endpoint; + private string apiVersion; + private ClientDiagnostics _clientDiagnostics; + private HttpPipeline _pipeline; + + /// Initializes a new instance of ManagementGroupsAPIRestOperations. + /// The handler for diagnostic messaging in the client. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// server parameter. + /// Api Version. + /// is null. + public ManagementGroupsAPIRestOperations(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint = null, string apiVersion = "2021-04-01") + { + endpoint ??= new Uri("https://management.azure.com"); + if (apiVersion == null) + { + throw new ArgumentNullException(nameof(apiVersion)); + } + + this.endpoint = endpoint; + this.apiVersion = apiVersion; + _clientDiagnostics = clientDiagnostics; + _pipeline = pipeline; + } + + internal HttpMessage CreateCheckNameAvailabilityRequest(CheckNameAvailabilityRequest checkNameAvailabilityRequest) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/providers/Microsoft.Management/checkNameAvailability", false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(checkNameAvailabilityRequest); + request.Content = content; + return message; + } + + /// Checks if the specified management group name is valid and unique. + /// Management group name availability check parameters. + /// The cancellation token to use. + /// is null. + public async Task> CheckNameAvailabilityAsync(CheckNameAvailabilityRequest checkNameAvailabilityRequest, CancellationToken cancellationToken = default) + { + if (checkNameAvailabilityRequest == null) + { + throw new ArgumentNullException(nameof(checkNameAvailabilityRequest)); + } + + using var message = CreateCheckNameAvailabilityRequest(checkNameAvailabilityRequest); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + CheckNameAvailabilityResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = CheckNameAvailabilityResult.DeserializeCheckNameAvailabilityResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Checks if the specified management group name is valid and unique. + /// Management group name availability check parameters. + /// The cancellation token to use. + /// is null. + public Response CheckNameAvailability(CheckNameAvailabilityRequest checkNameAvailabilityRequest, CancellationToken cancellationToken = default) + { + if (checkNameAvailabilityRequest == null) + { + throw new ArgumentNullException(nameof(checkNameAvailabilityRequest)); + } + + using var message = CreateCheckNameAvailabilityRequest(checkNameAvailabilityRequest); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + CheckNameAvailabilityResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = CheckNameAvailabilityResult.DeserializeCheckNameAvailabilityResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateStartTenantBackfillRequest() + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/providers/Microsoft.Management/startTenantBackfill", false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + return message; + } + + /// Starts backfilling subscriptions for the Tenant. + /// The cancellation token to use. + public async Task> StartTenantBackfillAsync(CancellationToken cancellationToken = default) + { + using var message = CreateStartTenantBackfillRequest(); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + TenantBackfillStatusResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = TenantBackfillStatusResult.DeserializeTenantBackfillStatusResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Starts backfilling subscriptions for the Tenant. + /// The cancellation token to use. + public Response StartTenantBackfill(CancellationToken cancellationToken = default) + { + using var message = CreateStartTenantBackfillRequest(); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + TenantBackfillStatusResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = TenantBackfillStatusResult.DeserializeTenantBackfillStatusResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateTenantBackfillStatusRequest() + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/providers/Microsoft.Management/tenantBackfillStatus", false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + return message; + } + + /// Gets tenant backfill status. + /// The cancellation token to use. + public async Task> TenantBackfillStatusAsync(CancellationToken cancellationToken = default) + { + using var message = CreateTenantBackfillStatusRequest(); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + TenantBackfillStatusResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = TenantBackfillStatusResult.DeserializeTenantBackfillStatusResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Gets tenant backfill status. + /// The cancellation token to use. + public Response TenantBackfillStatus(CancellationToken cancellationToken = default) + { + using var message = CreateTenantBackfillStatusRequest(); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + TenantBackfillStatusResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = TenantBackfillStatusResult.DeserializeTenantBackfillStatusResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsCreateOrUpdateHeaders.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsCreateOrUpdateHeaders.cs new file mode 100644 index 0000000000000..3ff8b19fb442b --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsCreateOrUpdateHeaders.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using Azure; +using Azure.Core; + +namespace Azure.ResourceManager.ManagementGroups +{ + internal partial class ManagementGroupsCreateOrUpdateHeaders + { + private readonly Response _response; + public ManagementGroupsCreateOrUpdateHeaders(Response response) + { + _response = response; + } + /// + /// URL for determining when an operation has completed. Send a GET request to the URL in Location header. + /// The URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state. + /// + /// For more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers. + /// + public string Location => _response.Headers.TryGetValue("Location", out string value) ? value : null; + /// + /// URL for checking the ongoing status of the operation. + /// To get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value. + /// + /// For more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations. + /// + public string AzureAsyncOperation => _response.Headers.TryGetValue("Azure-AsyncOperation", out string value) ? value : null; + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsCreateOrUpdateOperation.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsCreateOrUpdateOperation.cs new file mode 100644 index 0000000000000..fdd189d2da117 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsCreateOrUpdateOperation.cs @@ -0,0 +1,76 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.ManagementGroups.Models; + +namespace Azure.ResourceManager.ManagementGroups +{ + /// + /// Create or update a management group. + /// If a management group is already created and a subsequent create request is issued with different properties, the management group properties will be updated. + /// . + /// + public partial class ManagementGroupsCreateOrUpdateOperation : Operation, IOperationSource + { + private readonly ArmOperationHelpers _operation; + + /// Initializes a new instance of ManagementGroupsCreateOrUpdateOperation for mocking. + protected ManagementGroupsCreateOrUpdateOperation() + { + } + + internal ManagementGroupsCreateOrUpdateOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) + { + _operation = new ArmOperationHelpers(this, clientDiagnostics, pipeline, request, response, OperationFinalStateVia.AzureAsyncOperation, "ManagementGroupsCreateOrUpdateOperation"); + } + /// + public override string Id => _operation.Id; + + /// + public override ManagementGroup Value => _operation.Value; + + /// + public override bool HasCompleted => _operation.HasCompleted; + + /// + public override bool HasValue => _operation.HasValue; + + /// + public override Response GetRawResponse() => _operation.GetRawResponse(); + + /// + public override Response UpdateStatus(CancellationToken cancellationToken = default) => _operation.UpdateStatus(cancellationToken); + + /// + public override ValueTask UpdateStatusAsync(CancellationToken cancellationToken = default) => _operation.UpdateStatusAsync(cancellationToken); + + /// + public override ValueTask> WaitForCompletionAsync(CancellationToken cancellationToken = default) => _operation.WaitForCompletionAsync(cancellationToken); + + /// + public override ValueTask> WaitForCompletionAsync(TimeSpan pollingInterval, CancellationToken cancellationToken = default) => _operation.WaitForCompletionAsync(pollingInterval, cancellationToken); + + ManagementGroup IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + return ManagementGroup.DeserializeManagementGroup(document.RootElement); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + return ManagementGroup.DeserializeManagementGroup(document.RootElement); + } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsDeleteHeaders.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsDeleteHeaders.cs new file mode 100644 index 0000000000000..89a2a2f84bdfd --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsDeleteHeaders.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using Azure; +using Azure.Core; + +namespace Azure.ResourceManager.ManagementGroups +{ + internal partial class ManagementGroupsDeleteHeaders + { + private readonly Response _response; + public ManagementGroupsDeleteHeaders(Response response) + { + _response = response; + } + /// + /// URL for determining when an operation has completed. Send a GET request to the URL in Location header. + /// The URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state. + /// + /// For more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers. + /// + public string Location => _response.Headers.TryGetValue("Location", out string value) ? value : null; + /// + /// URL for checking the ongoing status of the operation. + /// To get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value. + /// + /// For more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations. + /// + public string AzureAsyncOperation => _response.Headers.TryGetValue("Azure-AsyncOperation", out string value) ? value : null; + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsDeleteOperation.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsDeleteOperation.cs new file mode 100644 index 0000000000000..5e169649dd2cd --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsDeleteOperation.cs @@ -0,0 +1,72 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.ResourceManager.ManagementGroups +{ + /// + /// Delete management group. + /// If a management group contains child resources, the request will fail. + /// . + /// + public partial class ManagementGroupsDeleteOperation : Operation, IOperationSource + { + private readonly ArmOperationHelpers _operation; + + /// Initializes a new instance of ManagementGroupsDeleteOperation for mocking. + protected ManagementGroupsDeleteOperation() + { + } + + internal ManagementGroupsDeleteOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) + { + _operation = new ArmOperationHelpers(this, clientDiagnostics, pipeline, request, response, OperationFinalStateVia.AzureAsyncOperation, "ManagementGroupsDeleteOperation"); + } + /// + public override string Id => _operation.Id; + + /// + public override Response Value => _operation.Value; + + /// + public override bool HasCompleted => _operation.HasCompleted; + + /// + public override bool HasValue => _operation.HasValue; + + /// + public override Response GetRawResponse() => _operation.GetRawResponse(); + + /// + public override Response UpdateStatus(CancellationToken cancellationToken = default) => _operation.UpdateStatus(cancellationToken); + + /// + public override ValueTask UpdateStatusAsync(CancellationToken cancellationToken = default) => _operation.UpdateStatusAsync(cancellationToken); + + /// + public override ValueTask> WaitForCompletionAsync(CancellationToken cancellationToken = default) => _operation.WaitForCompletionAsync(cancellationToken); + + /// + public override ValueTask> WaitForCompletionAsync(TimeSpan pollingInterval, CancellationToken cancellationToken = default) => _operation.WaitForCompletionAsync(pollingInterval, cancellationToken); + + Response IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + return response; + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + return await new ValueTask(response).ConfigureAwait(false); + } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsOperations.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsOperations.cs new file mode 100644 index 0000000000000..dd2d220b6146c --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsOperations.cs @@ -0,0 +1,466 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.ManagementGroups.Models; + +namespace Azure.ResourceManager.ManagementGroups +{ + /// The ManagementGroups service client. + public partial class ManagementGroupsOperations + { + private readonly ClientDiagnostics _clientDiagnostics; + private readonly HttpPipeline _pipeline; + internal ManagementGroupsRestOperations RestClient { get; } + + /// Initializes a new instance of ManagementGroupsOperations for mocking. + protected ManagementGroupsOperations() + { + } + + /// Initializes a new instance of ManagementGroupsOperations. + /// The handler for diagnostic messaging in the client. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// server parameter. + /// Api Version. + internal ManagementGroupsOperations(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint = null, string apiVersion = "2021-04-01") + { + RestClient = new ManagementGroupsRestOperations(clientDiagnostics, pipeline, endpoint, apiVersion); + _clientDiagnostics = clientDiagnostics; + _pipeline = pipeline; + } + + /// + /// Get the details of the management group. + /// . + /// + /// Management Group ID. + /// The $expand=children query string parameter allows clients to request inclusion of children in the response payload. $expand=path includes the path from the root group to the current group. $expand=ancestors includes the ancestor Ids of the current group. + /// The $recurse=true query string parameter allows clients to request inclusion of entire hierarchy in the response payload. Note that $expand=children must be passed up if $recurse is set to true. + /// A filter which allows the exclusion of subscriptions from results (i.e. '$filter=children.childType ne Subscription'). + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + public virtual async Task> GetAsync(string groupId, Enum0? expand = null, bool? recurse = null, string filter = null, string cacheControl = null, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ManagementGroupsOperations.Get"); + scope.Start(); + try + { + return await RestClient.GetAsync(groupId, expand, recurse, filter, cacheControl, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get the details of the management group. + /// . + /// + /// Management Group ID. + /// The $expand=children query string parameter allows clients to request inclusion of children in the response payload. $expand=path includes the path from the root group to the current group. $expand=ancestors includes the ancestor Ids of the current group. + /// The $recurse=true query string parameter allows clients to request inclusion of entire hierarchy in the response payload. Note that $expand=children must be passed up if $recurse is set to true. + /// A filter which allows the exclusion of subscriptions from results (i.e. '$filter=children.childType ne Subscription'). + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + public virtual Response Get(string groupId, Enum0? expand = null, bool? recurse = null, string filter = null, string cacheControl = null, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ManagementGroupsOperations.Get"); + scope.Start(); + try + { + return RestClient.Get(groupId, expand, recurse, filter, cacheControl, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Update a management group. + /// . + /// + /// Management Group ID. + /// Management group patch parameters. + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + public virtual async Task> UpdateAsync(string groupId, PatchManagementGroupRequest patchGroupRequest, string cacheControl = null, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ManagementGroupsOperations.Update"); + scope.Start(); + try + { + return await RestClient.UpdateAsync(groupId, patchGroupRequest, cacheControl, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Update a management group. + /// . + /// + /// Management Group ID. + /// Management group patch parameters. + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + public virtual Response Update(string groupId, PatchManagementGroupRequest patchGroupRequest, string cacheControl = null, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ManagementGroupsOperations.Update"); + scope.Start(); + try + { + return RestClient.Update(groupId, patchGroupRequest, cacheControl, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// List management groups for the authenticated user. + /// . + /// + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// + /// Page continuation token is only used if a previous operation returned a partial result. + /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. + /// . + /// + /// The cancellation token to use. + public virtual AsyncPageable ListAsync(string cacheControl = null, string skiptoken = null, CancellationToken cancellationToken = default) + { + async Task> FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ManagementGroupsOperations.List"); + scope.Start(); + try + { + var response = await RestClient.ListAsync(cacheControl, skiptoken, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + async Task> NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ManagementGroupsOperations.List"); + scope.Start(); + try + { + var response = await RestClient.ListNextPageAsync(nextLink, cacheControl, skiptoken, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, NextPageFunc); + } + + /// + /// List management groups for the authenticated user. + /// . + /// + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// + /// Page continuation token is only used if a previous operation returned a partial result. + /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. + /// . + /// + /// The cancellation token to use. + public virtual Pageable List(string cacheControl = null, string skiptoken = null, CancellationToken cancellationToken = default) + { + Page FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ManagementGroupsOperations.List"); + scope.Start(); + try + { + var response = RestClient.List(cacheControl, skiptoken, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + Page NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ManagementGroupsOperations.List"); + scope.Start(); + try + { + var response = RestClient.ListNextPage(nextLink, cacheControl, skiptoken, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateEnumerable(FirstPageFunc, NextPageFunc); + } + + /// + /// List all entities that descend from a management group. + /// . + /// + /// Management Group ID. + /// + /// Page continuation token is only used if a previous operation returned a partial result. + /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. + /// . + /// + /// Number of elements to return when retrieving results. Passing this in will override $skipToken. + /// The cancellation token to use. + /// is null. + public virtual AsyncPageable GetDescendantsAsync(string groupId, string skiptoken = null, int? top = null, CancellationToken cancellationToken = default) + { + if (groupId == null) + { + throw new ArgumentNullException(nameof(groupId)); + } + + async Task> FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ManagementGroupsOperations.GetDescendants"); + scope.Start(); + try + { + var response = await RestClient.GetDescendantsAsync(groupId, skiptoken, top, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + async Task> NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ManagementGroupsOperations.GetDescendants"); + scope.Start(); + try + { + var response = await RestClient.GetDescendantsNextPageAsync(nextLink, groupId, skiptoken, top, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, NextPageFunc); + } + + /// + /// List all entities that descend from a management group. + /// . + /// + /// Management Group ID. + /// + /// Page continuation token is only used if a previous operation returned a partial result. + /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. + /// . + /// + /// Number of elements to return when retrieving results. Passing this in will override $skipToken. + /// The cancellation token to use. + /// is null. + public virtual Pageable GetDescendants(string groupId, string skiptoken = null, int? top = null, CancellationToken cancellationToken = default) + { + if (groupId == null) + { + throw new ArgumentNullException(nameof(groupId)); + } + + Page FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ManagementGroupsOperations.GetDescendants"); + scope.Start(); + try + { + var response = RestClient.GetDescendants(groupId, skiptoken, top, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + Page NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ManagementGroupsOperations.GetDescendants"); + scope.Start(); + try + { + var response = RestClient.GetDescendantsNextPage(nextLink, groupId, skiptoken, top, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateEnumerable(FirstPageFunc, NextPageFunc); + } + + /// + /// Create or update a management group. + /// If a management group is already created and a subsequent create request is issued with different properties, the management group properties will be updated. + /// . + /// + /// Management Group ID. + /// Management group creation parameters. + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + /// or is null. + public virtual async Task StartCreateOrUpdateAsync(string groupId, CreateManagementGroupRequest createManagementGroupRequest, string cacheControl = null, CancellationToken cancellationToken = default) + { + if (groupId == null) + { + throw new ArgumentNullException(nameof(groupId)); + } + if (createManagementGroupRequest == null) + { + throw new ArgumentNullException(nameof(createManagementGroupRequest)); + } + + using var scope = _clientDiagnostics.CreateScope("ManagementGroupsOperations.StartCreateOrUpdate"); + scope.Start(); + try + { + var originalResponse = await RestClient.CreateOrUpdateAsync(groupId, createManagementGroupRequest, cacheControl, cancellationToken).ConfigureAwait(false); + return new ManagementGroupsCreateOrUpdateOperation(_clientDiagnostics, _pipeline, RestClient.CreateCreateOrUpdateRequest(groupId, createManagementGroupRequest, cacheControl).Request, originalResponse); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or update a management group. + /// If a management group is already created and a subsequent create request is issued with different properties, the management group properties will be updated. + /// . + /// + /// Management Group ID. + /// Management group creation parameters. + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + /// or is null. + public virtual ManagementGroupsCreateOrUpdateOperation StartCreateOrUpdate(string groupId, CreateManagementGroupRequest createManagementGroupRequest, string cacheControl = null, CancellationToken cancellationToken = default) + { + if (groupId == null) + { + throw new ArgumentNullException(nameof(groupId)); + } + if (createManagementGroupRequest == null) + { + throw new ArgumentNullException(nameof(createManagementGroupRequest)); + } + + using var scope = _clientDiagnostics.CreateScope("ManagementGroupsOperations.StartCreateOrUpdate"); + scope.Start(); + try + { + var originalResponse = RestClient.CreateOrUpdate(groupId, createManagementGroupRequest, cacheControl, cancellationToken); + return new ManagementGroupsCreateOrUpdateOperation(_clientDiagnostics, _pipeline, RestClient.CreateCreateOrUpdateRequest(groupId, createManagementGroupRequest, cacheControl).Request, originalResponse); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete management group. + /// If a management group contains child resources, the request will fail. + /// . + /// + /// Management Group ID. + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + /// is null. + public virtual async Task StartDeleteAsync(string groupId, string cacheControl = null, CancellationToken cancellationToken = default) + { + if (groupId == null) + { + throw new ArgumentNullException(nameof(groupId)); + } + + using var scope = _clientDiagnostics.CreateScope("ManagementGroupsOperations.StartDelete"); + scope.Start(); + try + { + var originalResponse = await RestClient.DeleteAsync(groupId, cacheControl, cancellationToken).ConfigureAwait(false); + return new ManagementGroupsDeleteOperation(_clientDiagnostics, _pipeline, RestClient.CreateDeleteRequest(groupId, cacheControl).Request, originalResponse); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete management group. + /// If a management group contains child resources, the request will fail. + /// . + /// + /// Management Group ID. + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + /// is null. + public virtual ManagementGroupsDeleteOperation StartDelete(string groupId, string cacheControl = null, CancellationToken cancellationToken = default) + { + if (groupId == null) + { + throw new ArgumentNullException(nameof(groupId)); + } + + using var scope = _clientDiagnostics.CreateScope("ManagementGroupsOperations.StartDelete"); + scope.Start(); + try + { + var originalResponse = RestClient.Delete(groupId, cacheControl, cancellationToken); + return new ManagementGroupsDeleteOperation(_clientDiagnostics, _pipeline, RestClient.CreateDeleteRequest(groupId, cacheControl).Request, originalResponse); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsRestOperations.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsRestOperations.cs new file mode 100644 index 0000000000000..3fa926dacb828 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsRestOperations.cs @@ -0,0 +1,768 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.ManagementGroups.Models; + +namespace Azure.ResourceManager.ManagementGroups +{ + internal partial class ManagementGroupsRestOperations + { + private Uri endpoint; + private string apiVersion; + private ClientDiagnostics _clientDiagnostics; + private HttpPipeline _pipeline; + + /// Initializes a new instance of ManagementGroupsRestOperations. + /// The handler for diagnostic messaging in the client. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// server parameter. + /// Api Version. + /// is null. + public ManagementGroupsRestOperations(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint = null, string apiVersion = "2021-04-01") + { + endpoint ??= new Uri("https://management.azure.com"); + if (apiVersion == null) + { + throw new ArgumentNullException(nameof(apiVersion)); + } + + this.endpoint = endpoint; + this.apiVersion = apiVersion; + _clientDiagnostics = clientDiagnostics; + _pipeline = pipeline; + } + + internal HttpMessage CreateListRequest(string cacheControl, string skiptoken) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/providers/Microsoft.Management/managementGroups", false); + uri.AppendQuery("api-version", apiVersion, true); + if (skiptoken != null) + { + uri.AppendQuery("$skiptoken", skiptoken, true); + } + request.Uri = uri; + if (cacheControl != null) + { + request.Headers.Add("Cache-Control", cacheControl); + } + request.Headers.Add("Accept", "application/json"); + return message; + } + + /// + /// List management groups for the authenticated user. + /// . + /// + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// + /// Page continuation token is only used if a previous operation returned a partial result. + /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. + /// . + /// + /// The cancellation token to use. + public async Task> ListAsync(string cacheControl = null, string skiptoken = null, CancellationToken cancellationToken = default) + { + using var message = CreateListRequest(cacheControl, skiptoken); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ManagementGroupListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = ManagementGroupListResult.DeserializeManagementGroupListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// + /// List management groups for the authenticated user. + /// . + /// + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// + /// Page continuation token is only used if a previous operation returned a partial result. + /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. + /// . + /// + /// The cancellation token to use. + public Response List(string cacheControl = null, string skiptoken = null, CancellationToken cancellationToken = default) + { + using var message = CreateListRequest(cacheControl, skiptoken); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ManagementGroupListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = ManagementGroupListResult.DeserializeManagementGroupListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetRequest(string groupId, Enum0? expand, bool? recurse, string filter, string cacheControl) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); + uri.AppendPath(groupId, true); + uri.AppendQuery("api-version", apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand.Value.ToString(), true); + } + if (recurse != null) + { + uri.AppendQuery("$recurse", recurse.Value, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + request.Uri = uri; + if (cacheControl != null) + { + request.Headers.Add("Cache-Control", cacheControl); + } + request.Headers.Add("Accept", "application/json"); + return message; + } + + /// + /// Get the details of the management group. + /// . + /// + /// Management Group ID. + /// The $expand=children query string parameter allows clients to request inclusion of children in the response payload. $expand=path includes the path from the root group to the current group. $expand=ancestors includes the ancestor Ids of the current group. + /// The $recurse=true query string parameter allows clients to request inclusion of entire hierarchy in the response payload. Note that $expand=children must be passed up if $recurse is set to true. + /// A filter which allows the exclusion of subscriptions from results (i.e. '$filter=children.childType ne Subscription'). + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + /// is null. + public async Task> GetAsync(string groupId, Enum0? expand = null, bool? recurse = null, string filter = null, string cacheControl = null, CancellationToken cancellationToken = default) + { + if (groupId == null) + { + throw new ArgumentNullException(nameof(groupId)); + } + + using var message = CreateGetRequest(groupId, expand, recurse, filter, cacheControl); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ManagementGroup value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = ManagementGroup.DeserializeManagementGroup(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// + /// Get the details of the management group. + /// . + /// + /// Management Group ID. + /// The $expand=children query string parameter allows clients to request inclusion of children in the response payload. $expand=path includes the path from the root group to the current group. $expand=ancestors includes the ancestor Ids of the current group. + /// The $recurse=true query string parameter allows clients to request inclusion of entire hierarchy in the response payload. Note that $expand=children must be passed up if $recurse is set to true. + /// A filter which allows the exclusion of subscriptions from results (i.e. '$filter=children.childType ne Subscription'). + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + /// is null. + public Response Get(string groupId, Enum0? expand = null, bool? recurse = null, string filter = null, string cacheControl = null, CancellationToken cancellationToken = default) + { + if (groupId == null) + { + throw new ArgumentNullException(nameof(groupId)); + } + + using var message = CreateGetRequest(groupId, expand, recurse, filter, cacheControl); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ManagementGroup value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = ManagementGroup.DeserializeManagementGroup(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateCreateOrUpdateRequest(string groupId, CreateManagementGroupRequest createManagementGroupRequest, string cacheControl) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Put; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); + uri.AppendPath(groupId, true); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + if (cacheControl != null) + { + request.Headers.Add("Cache-Control", cacheControl); + } + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(createManagementGroupRequest); + request.Content = content; + return message; + } + + /// + /// Create or update a management group. + /// If a management group is already created and a subsequent create request is issued with different properties, the management group properties will be updated. + /// . + /// + /// Management Group ID. + /// Management group creation parameters. + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + /// or is null. + public async Task> CreateOrUpdateAsync(string groupId, CreateManagementGroupRequest createManagementGroupRequest, string cacheControl = null, CancellationToken cancellationToken = default) + { + if (groupId == null) + { + throw new ArgumentNullException(nameof(groupId)); + } + if (createManagementGroupRequest == null) + { + throw new ArgumentNullException(nameof(createManagementGroupRequest)); + } + + using var message = CreateCreateOrUpdateRequest(groupId, createManagementGroupRequest, cacheControl); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + var headers = new ManagementGroupsCreateOrUpdateHeaders(message.Response); + switch (message.Response.Status) + { + case 200: + case 202: + return ResponseWithHeaders.FromValue(headers, message.Response); + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// + /// Create or update a management group. + /// If a management group is already created and a subsequent create request is issued with different properties, the management group properties will be updated. + /// . + /// + /// Management Group ID. + /// Management group creation parameters. + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + /// or is null. + public ResponseWithHeaders CreateOrUpdate(string groupId, CreateManagementGroupRequest createManagementGroupRequest, string cacheControl = null, CancellationToken cancellationToken = default) + { + if (groupId == null) + { + throw new ArgumentNullException(nameof(groupId)); + } + if (createManagementGroupRequest == null) + { + throw new ArgumentNullException(nameof(createManagementGroupRequest)); + } + + using var message = CreateCreateOrUpdateRequest(groupId, createManagementGroupRequest, cacheControl); + _pipeline.Send(message, cancellationToken); + var headers = new ManagementGroupsCreateOrUpdateHeaders(message.Response); + switch (message.Response.Status) + { + case 200: + case 202: + return ResponseWithHeaders.FromValue(headers, message.Response); + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateUpdateRequest(string groupId, PatchManagementGroupRequest patchGroupRequest, string cacheControl) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Patch; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); + uri.AppendPath(groupId, true); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + if (cacheControl != null) + { + request.Headers.Add("Cache-Control", cacheControl); + } + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(patchGroupRequest); + request.Content = content; + return message; + } + + /// + /// Update a management group. + /// . + /// + /// Management Group ID. + /// Management group patch parameters. + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + /// or is null. + public async Task> UpdateAsync(string groupId, PatchManagementGroupRequest patchGroupRequest, string cacheControl = null, CancellationToken cancellationToken = default) + { + if (groupId == null) + { + throw new ArgumentNullException(nameof(groupId)); + } + if (patchGroupRequest == null) + { + throw new ArgumentNullException(nameof(patchGroupRequest)); + } + + using var message = CreateUpdateRequest(groupId, patchGroupRequest, cacheControl); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ManagementGroup value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = ManagementGroup.DeserializeManagementGroup(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// + /// Update a management group. + /// . + /// + /// Management Group ID. + /// Management group patch parameters. + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + /// or is null. + public Response Update(string groupId, PatchManagementGroupRequest patchGroupRequest, string cacheControl = null, CancellationToken cancellationToken = default) + { + if (groupId == null) + { + throw new ArgumentNullException(nameof(groupId)); + } + if (patchGroupRequest == null) + { + throw new ArgumentNullException(nameof(patchGroupRequest)); + } + + using var message = CreateUpdateRequest(groupId, patchGroupRequest, cacheControl); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ManagementGroup value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = ManagementGroup.DeserializeManagementGroup(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateDeleteRequest(string groupId, string cacheControl) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); + uri.AppendPath(groupId, true); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + if (cacheControl != null) + { + request.Headers.Add("Cache-Control", cacheControl); + } + request.Headers.Add("Accept", "application/json"); + return message; + } + + /// + /// Delete management group. + /// If a management group contains child resources, the request will fail. + /// . + /// + /// Management Group ID. + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + /// is null. + public async Task> DeleteAsync(string groupId, string cacheControl = null, CancellationToken cancellationToken = default) + { + if (groupId == null) + { + throw new ArgumentNullException(nameof(groupId)); + } + + using var message = CreateDeleteRequest(groupId, cacheControl); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + var headers = new ManagementGroupsDeleteHeaders(message.Response); + switch (message.Response.Status) + { + case 202: + case 204: + return ResponseWithHeaders.FromValue(headers, message.Response); + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// + /// Delete management group. + /// If a management group contains child resources, the request will fail. + /// . + /// + /// Management Group ID. + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + /// is null. + public ResponseWithHeaders Delete(string groupId, string cacheControl = null, CancellationToken cancellationToken = default) + { + if (groupId == null) + { + throw new ArgumentNullException(nameof(groupId)); + } + + using var message = CreateDeleteRequest(groupId, cacheControl); + _pipeline.Send(message, cancellationToken); + var headers = new ManagementGroupsDeleteHeaders(message.Response); + switch (message.Response.Status) + { + case 202: + case 204: + return ResponseWithHeaders.FromValue(headers, message.Response); + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetDescendantsRequest(string groupId, string skiptoken, int? top) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); + uri.AppendPath(groupId, true); + uri.AppendPath("/descendants", false); + uri.AppendQuery("api-version", apiVersion, true); + if (skiptoken != null) + { + uri.AppendQuery("$skiptoken", skiptoken, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + return message; + } + + /// + /// List all entities that descend from a management group. + /// . + /// + /// Management Group ID. + /// + /// Page continuation token is only used if a previous operation returned a partial result. + /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. + /// . + /// + /// Number of elements to return when retrieving results. Passing this in will override $skipToken. + /// The cancellation token to use. + /// is null. + public async Task> GetDescendantsAsync(string groupId, string skiptoken = null, int? top = null, CancellationToken cancellationToken = default) + { + if (groupId == null) + { + throw new ArgumentNullException(nameof(groupId)); + } + + using var message = CreateGetDescendantsRequest(groupId, skiptoken, top); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + DescendantListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = DescendantListResult.DeserializeDescendantListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// + /// List all entities that descend from a management group. + /// . + /// + /// Management Group ID. + /// + /// Page continuation token is only used if a previous operation returned a partial result. + /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. + /// . + /// + /// Number of elements to return when retrieving results. Passing this in will override $skipToken. + /// The cancellation token to use. + /// is null. + public Response GetDescendants(string groupId, string skiptoken = null, int? top = null, CancellationToken cancellationToken = default) + { + if (groupId == null) + { + throw new ArgumentNullException(nameof(groupId)); + } + + using var message = CreateGetDescendantsRequest(groupId, skiptoken, top); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + DescendantListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = DescendantListResult.DeserializeDescendantListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListNextPageRequest(string nextLink, string cacheControl, string skiptoken) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + if (cacheControl != null) + { + request.Headers.Add("Cache-Control", cacheControl); + } + request.Headers.Add("Accept", "application/json"); + return message; + } + + /// + /// List management groups for the authenticated user. + /// . + /// + /// The URL to the next page of results. + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// + /// Page continuation token is only used if a previous operation returned a partial result. + /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. + /// . + /// + /// The cancellation token to use. + /// is null. + public async Task> ListNextPageAsync(string nextLink, string cacheControl = null, string skiptoken = null, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateListNextPageRequest(nextLink, cacheControl, skiptoken); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ManagementGroupListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = ManagementGroupListResult.DeserializeManagementGroupListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// + /// List management groups for the authenticated user. + /// . + /// + /// The URL to the next page of results. + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// + /// Page continuation token is only used if a previous operation returned a partial result. + /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. + /// . + /// + /// The cancellation token to use. + /// is null. + public Response ListNextPage(string nextLink, string cacheControl = null, string skiptoken = null, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateListNextPageRequest(nextLink, cacheControl, skiptoken); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ManagementGroupListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = ManagementGroupListResult.DeserializeManagementGroupListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetDescendantsNextPageRequest(string nextLink, string groupId, string skiptoken, int? top) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + return message; + } + + /// + /// List all entities that descend from a management group. + /// . + /// + /// The URL to the next page of results. + /// Management Group ID. + /// + /// Page continuation token is only used if a previous operation returned a partial result. + /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. + /// . + /// + /// Number of elements to return when retrieving results. Passing this in will override $skipToken. + /// The cancellation token to use. + /// or is null. + public async Task> GetDescendantsNextPageAsync(string nextLink, string groupId, string skiptoken = null, int? top = null, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + if (groupId == null) + { + throw new ArgumentNullException(nameof(groupId)); + } + + using var message = CreateGetDescendantsNextPageRequest(nextLink, groupId, skiptoken, top); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + DescendantListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = DescendantListResult.DeserializeDescendantListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// + /// List all entities that descend from a management group. + /// . + /// + /// The URL to the next page of results. + /// Management Group ID. + /// + /// Page continuation token is only used if a previous operation returned a partial result. + /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. + /// . + /// + /// Number of elements to return when retrieving results. Passing this in will override $skipToken. + /// The cancellation token to use. + /// or is null. + public Response GetDescendantsNextPage(string nextLink, string groupId, string skiptoken = null, int? top = null, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + if (groupId == null) + { + throw new ArgumentNullException(nameof(groupId)); + } + + using var message = CreateGetDescendantsNextPageRequest(nextLink, groupId, skiptoken, top); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + DescendantListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = DescendantListResult.DeserializeDescendantListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/AzureAsyncOperationResults.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/AzureAsyncOperationResults.Serialization.cs new file mode 100644 index 0000000000000..d5e4a27d1496c --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/AzureAsyncOperationResults.Serialization.cs @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + public partial class AzureAsyncOperationResults + { + internal static AzureAsyncOperationResults DeserializeAzureAsyncOperationResults(JsonElement element) + { + Optional id = default; + Optional type = default; + Optional name = default; + Optional status = default; + Optional tenantId = default; + Optional displayName = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id")) + { + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("type")) + { + type = property.Value.GetString(); + continue; + } + if (property.NameEquals("name")) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("status")) + { + status = property.Value.GetString(); + continue; + } + if (property.NameEquals("properties")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("tenantId")) + { + tenantId = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("displayName")) + { + displayName = property0.Value.GetString(); + continue; + } + } + continue; + } + } + return new AzureAsyncOperationResults(id.Value, type.Value, name.Value, status.Value, tenantId.Value, displayName.Value); + } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/AzureAsyncOperationResults.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/AzureAsyncOperationResults.cs new file mode 100644 index 0000000000000..826203d0a8479 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/AzureAsyncOperationResults.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + /// The results of Azure-AsyncOperation. + public partial class AzureAsyncOperationResults + { + /// Initializes a new instance of AzureAsyncOperationResults. + internal AzureAsyncOperationResults() + { + } + + /// Initializes a new instance of AzureAsyncOperationResults. + /// The fully qualified ID for the management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. + /// The type of the resource. For example, Microsoft.Management/managementGroups. + /// The name of the management group. For example, 00000000-0000-0000-0000-000000000000. + /// The current status of the asynchronous operation performed . For example, Running, Succeeded, Failed. + /// The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000. + /// The friendly name of the management group. + internal AzureAsyncOperationResults(string id, string type, string name, string status, string tenantId, string displayName) + { + Id = id; + Type = type; + Name = name; + Status = status; + TenantId = tenantId; + DisplayName = displayName; + } + + /// The fully qualified ID for the management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. + public string Id { get; } + /// The type of the resource. For example, Microsoft.Management/managementGroups. + public string Type { get; } + /// The name of the management group. For example, 00000000-0000-0000-0000-000000000000. + public string Name { get; } + /// The current status of the asynchronous operation performed . For example, Running, Succeeded, Failed. + public string Status { get; } + /// The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000. + public string TenantId { get; } + /// The friendly name of the management group. + public string DisplayName { get; } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CheckNameAvailabilityRequest.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CheckNameAvailabilityRequest.Serialization.cs new file mode 100644 index 0000000000000..4c2c88e1c6831 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CheckNameAvailabilityRequest.Serialization.cs @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + public partial class CheckNameAvailabilityRequest : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Name)) + { + writer.WritePropertyName("name"); + writer.WriteStringValue(Name); + } + if (Optional.IsDefined(Type)) + { + writer.WritePropertyName("type"); + writer.WriteStringValue(Type); + } + writer.WriteEndObject(); + } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CheckNameAvailabilityRequest.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CheckNameAvailabilityRequest.cs new file mode 100644 index 0000000000000..e93ff6651a618 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CheckNameAvailabilityRequest.cs @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + /// Management group name availability check parameters. + public partial class CheckNameAvailabilityRequest + { + /// Initializes a new instance of CheckNameAvailabilityRequest. + public CheckNameAvailabilityRequest() + { + Type = "Microsoft.Management/managementGroups"; + } + + /// the name to check for availability. + public string Name { get; set; } + /// fully qualified resource type which includes provider namespace. + public string Type { get; set; } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CheckNameAvailabilityResult.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CheckNameAvailabilityResult.Serialization.cs new file mode 100644 index 0000000000000..2b16c5964daae --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CheckNameAvailabilityResult.Serialization.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + public partial class CheckNameAvailabilityResult + { + internal static CheckNameAvailabilityResult DeserializeCheckNameAvailabilityResult(JsonElement element) + { + Optional nameAvailable = default; + Optional reason = default; + Optional message = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("nameAvailable")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + nameAvailable = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("reason")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + reason = property.Value.GetString().ToReason(); + continue; + } + if (property.NameEquals("message")) + { + message = property.Value.GetString(); + continue; + } + } + return new CheckNameAvailabilityResult(Optional.ToNullable(nameAvailable), Optional.ToNullable(reason), message.Value); + } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CheckNameAvailabilityResult.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CheckNameAvailabilityResult.cs new file mode 100644 index 0000000000000..6ba79c9ee67c3 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CheckNameAvailabilityResult.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + /// Describes the result of the request to check management group name availability. + public partial class CheckNameAvailabilityResult + { + /// Initializes a new instance of CheckNameAvailabilityResult. + internal CheckNameAvailabilityResult() + { + } + + /// Initializes a new instance of CheckNameAvailabilityResult. + /// Required. True indicates name is valid and available. False indicates the name is invalid, unavailable, or both. + /// Required if nameAvailable == false. Invalid indicates the name provided does not match the resource provider's naming requirements (incorrect length, unsupported characters, etc.) AlreadyExists indicates that the name is already in use and is therefore unavailable. + /// Required if nameAvailable == false. Localized. If reason == invalid, provide the user with the reason why the given name is invalid, and provide the resource naming requirements so that the user can select a valid name. If reason == AlreadyExists, explain that is already in use, and direct them to select a different name. + internal CheckNameAvailabilityResult(bool? nameAvailable, Reason? reason, string message) + { + NameAvailable = nameAvailable; + Reason = reason; + Message = message; + } + + /// Required. True indicates name is valid and available. False indicates the name is invalid, unavailable, or both. + public bool? NameAvailable { get; } + /// Required if nameAvailable == false. Invalid indicates the name provided does not match the resource provider's naming requirements (incorrect length, unsupported characters, etc.) AlreadyExists indicates that the name is already in use and is therefore unavailable. + public Reason? Reason { get; } + /// Required if nameAvailable == false. Localized. If reason == invalid, provide the user with the reason why the given name is invalid, and provide the resource naming requirements so that the user can select a valid name. If reason == AlreadyExists, explain that is already in use, and direct them to select a different name. + public string Message { get; } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateManagementGroupChildInfo.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateManagementGroupChildInfo.Serialization.cs new file mode 100644 index 0000000000000..4fbd78d61502e --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateManagementGroupChildInfo.Serialization.cs @@ -0,0 +1,13 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + public partial class CreateManagementGroupChildInfo + { + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateManagementGroupChildInfo.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateManagementGroupChildInfo.cs new file mode 100644 index 0000000000000..617d7616f65ba --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateManagementGroupChildInfo.cs @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + /// The child information of a management group used during creation. + public partial class CreateManagementGroupChildInfo + { + /// Initializes a new instance of CreateManagementGroupChildInfo. + internal CreateManagementGroupChildInfo() + { + Children = new ChangeTrackingList(); + } + + /// The fully qualified resource type which includes provider namespace (e.g. Microsoft.Management/managementGroups). + public ManagementGroupChildType? Type { get; } + /// The fully qualified ID for the child resource (management group or subscription). For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. + public string Id { get; } + /// The name of the child entity. + public string Name { get; } + /// The friendly name of the child resource. + public string DisplayName { get; } + /// The list of children. + public IReadOnlyList Children { get; } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateManagementGroupDetails.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateManagementGroupDetails.Serialization.cs new file mode 100644 index 0000000000000..6aa0c739d125a --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateManagementGroupDetails.Serialization.cs @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + public partial class CreateManagementGroupDetails : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Parent)) + { + writer.WritePropertyName("parent"); + writer.WriteObjectValue(Parent); + } + writer.WriteEndObject(); + } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateManagementGroupDetails.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateManagementGroupDetails.cs new file mode 100644 index 0000000000000..12ddb9928687e --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateManagementGroupDetails.cs @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + /// The details of a management group used during creation. + public partial class CreateManagementGroupDetails + { + /// Initializes a new instance of CreateManagementGroupDetails. + public CreateManagementGroupDetails() + { + } + + /// The version number of the object. + public int? Version { get; } + /// The date and time when this object was last updated. + public DateTimeOffset? UpdatedTime { get; } + /// The identity of the principal or process that updated the object. + public string UpdatedBy { get; } + /// (Optional) The ID of the parent management group used during creation. + public CreateParentGroupInfo Parent { get; set; } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateManagementGroupRequest.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateManagementGroupRequest.Serialization.cs new file mode 100644 index 0000000000000..ebc5332879a17 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateManagementGroupRequest.Serialization.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + public partial class CreateManagementGroupRequest : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Name)) + { + writer.WritePropertyName("name"); + writer.WriteStringValue(Name); + } + writer.WritePropertyName("properties"); + writer.WriteStartObject(); + if (Optional.IsDefined(DisplayName)) + { + if (DisplayName != null) + { + writer.WritePropertyName("displayName"); + writer.WriteStringValue(DisplayName); + } + else + { + writer.WriteNull("displayName"); + } + } + if (Optional.IsDefined(Details)) + { + writer.WritePropertyName("details"); + writer.WriteObjectValue(Details); + } + writer.WriteEndObject(); + writer.WriteEndObject(); + } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateManagementGroupRequest.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateManagementGroupRequest.cs new file mode 100644 index 0000000000000..c493f554d603a --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateManagementGroupRequest.cs @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + /// Management group creation parameters. + public partial class CreateManagementGroupRequest + { + /// Initializes a new instance of CreateManagementGroupRequest. + public CreateManagementGroupRequest() + { + Children = new ChangeTrackingList(); + } + + /// The fully qualified ID for the management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. + public string Id { get; } + /// The type of the resource. For example, Microsoft.Management/managementGroups. + public string Type { get; } + /// The name of the management group. For example, 00000000-0000-0000-0000-000000000000. + public string Name { get; set; } + /// The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000. + public string TenantId { get; } + /// The friendly name of the management group. If no value is passed then this field will be set to the groupId. + public string DisplayName { get; set; } + /// The details of a management group used during creation. + public CreateManagementGroupDetails Details { get; set; } + /// The list of children. + public IReadOnlyList Children { get; } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateOrUpdateSettingsRequest.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateOrUpdateSettingsRequest.Serialization.cs new file mode 100644 index 0000000000000..6c4e1c576eaf2 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateOrUpdateSettingsRequest.Serialization.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + public partial class CreateOrUpdateSettingsRequest : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("properties"); + writer.WriteStartObject(); + if (Optional.IsDefined(RequireAuthorizationForGroupCreation)) + { + writer.WritePropertyName("requireAuthorizationForGroupCreation"); + writer.WriteBooleanValue(RequireAuthorizationForGroupCreation.Value); + } + if (Optional.IsDefined(DefaultManagementGroup)) + { + writer.WritePropertyName("defaultManagementGroup"); + writer.WriteStringValue(DefaultManagementGroup); + } + writer.WriteEndObject(); + writer.WriteEndObject(); + } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateOrUpdateSettingsRequest.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateOrUpdateSettingsRequest.cs new file mode 100644 index 0000000000000..21b0427a6eb7c --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateOrUpdateSettingsRequest.cs @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + /// Parameters for creating or updating Management Group settings. + public partial class CreateOrUpdateSettingsRequest + { + /// Initializes a new instance of CreateOrUpdateSettingsRequest. + public CreateOrUpdateSettingsRequest() + { + } + + /// Indicates whether RBAC access is required upon group creation under the root Management Group. If set to true, user will require Microsoft.Management/managementGroups/write action on the root Management Group scope in order to create new Groups directly under the root. This will prevent new users from creating new Management Groups, unless they are given access. + public bool? RequireAuthorizationForGroupCreation { get; set; } + /// Settings that sets the default Management Group under which new subscriptions get added in this tenant. For example, /providers/Microsoft.Management/managementGroups/defaultGroup. + public string DefaultManagementGroup { get; set; } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateParentGroupInfo.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateParentGroupInfo.Serialization.cs new file mode 100644 index 0000000000000..11a4298be0129 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateParentGroupInfo.Serialization.cs @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + public partial class CreateParentGroupInfo : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"); + writer.WriteStringValue(Id); + } + writer.WriteEndObject(); + } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateParentGroupInfo.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateParentGroupInfo.cs new file mode 100644 index 0000000000000..4d4c739ea5172 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateParentGroupInfo.cs @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + /// (Optional) The ID of the parent management group used during creation. + public partial class CreateParentGroupInfo + { + /// Initializes a new instance of CreateParentGroupInfo. + public CreateParentGroupInfo() + { + } + + /// The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. + public string Id { get; set; } + /// The name of the parent management group. + public string Name { get; } + /// The friendly name of the parent management group. + public string DisplayName { get; } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/DescendantInfo.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/DescendantInfo.Serialization.cs new file mode 100644 index 0000000000000..7aed01312bba2 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/DescendantInfo.Serialization.cs @@ -0,0 +1,85 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + public partial class DescendantInfo + { + internal static DescendantInfo DeserializeDescendantInfo(JsonElement element) + { + Optional id = default; + Optional type = default; + Optional name = default; + Optional displayName = default; + Optional parent = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + id = null; + continue; + } + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("type")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + type = null; + continue; + } + type = property.Value.GetString(); + continue; + } + if (property.NameEquals("name")) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("properties")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("displayName")) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + displayName = null; + continue; + } + displayName = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("parent")) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + parent = null; + continue; + } + parent = DescendantParentGroupInfo.DeserializeDescendantParentGroupInfo(property0.Value); + continue; + } + } + continue; + } + } + return new DescendantInfo(id.Value, type.Value, name.Value, displayName.Value, parent.Value); + } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/DescendantInfo.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/DescendantInfo.cs new file mode 100644 index 0000000000000..75edd4175d3b7 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/DescendantInfo.cs @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + /// The descendant. + public partial class DescendantInfo + { + /// Initializes a new instance of DescendantInfo. + internal DescendantInfo() + { + } + + /// Initializes a new instance of DescendantInfo. + /// The fully qualified ID for the descendant. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000 or /subscriptions/0000000-0000-0000-0000-000000000000. + /// The type of the resource. For example, Microsoft.Management/managementGroups or /subscriptions. + /// The name of the descendant. For example, 00000000-0000-0000-0000-000000000000. + /// The friendly name of the management group. + /// The ID of the parent management group. + internal DescendantInfo(string id, string type, string name, string displayName, DescendantParentGroupInfo parent) + { + Id = id; + Type = type; + Name = name; + DisplayName = displayName; + Parent = parent; + } + + /// The fully qualified ID for the descendant. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000 or /subscriptions/0000000-0000-0000-0000-000000000000. + public string Id { get; } + /// The type of the resource. For example, Microsoft.Management/managementGroups or /subscriptions. + public string Type { get; } + /// The name of the descendant. For example, 00000000-0000-0000-0000-000000000000. + public string Name { get; } + /// The friendly name of the management group. + public string DisplayName { get; } + /// The ID of the parent management group. + public DescendantParentGroupInfo Parent { get; } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/DescendantListResult.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/DescendantListResult.Serialization.cs new file mode 100644 index 0000000000000..66ce6f28f2bf8 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/DescendantListResult.Serialization.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + internal partial class DescendantListResult + { + internal static DescendantListResult DeserializeDescendantListResult(JsonElement element) + { + Optional> value = default; + Optional nextLink = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(DescendantInfo.DeserializeDescendantInfo(item)); + } + value = array; + continue; + } + if (property.NameEquals("nextLink")) + { + nextLink = property.Value.GetString(); + continue; + } + } + return new DescendantListResult(Optional.ToList(value), nextLink.Value); + } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/DescendantListResult.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/DescendantListResult.cs new file mode 100644 index 0000000000000..a13e6b4567da3 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/DescendantListResult.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + /// Describes the result of the request to view descendants. + internal partial class DescendantListResult + { + /// Initializes a new instance of DescendantListResult. + internal DescendantListResult() + { + Value = new ChangeTrackingList(); + } + + /// Initializes a new instance of DescendantListResult. + /// The list of descendants. + /// The URL to use for getting the next set of results. + internal DescendantListResult(IReadOnlyList value, string nextLink) + { + Value = value; + NextLink = nextLink; + } + + /// The list of descendants. + public IReadOnlyList Value { get; } + /// The URL to use for getting the next set of results. + public string NextLink { get; } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/DescendantParentGroupInfo.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/DescendantParentGroupInfo.Serialization.cs new file mode 100644 index 0000000000000..c05e771531948 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/DescendantParentGroupInfo.Serialization.cs @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + public partial class DescendantParentGroupInfo + { + internal static DescendantParentGroupInfo DeserializeDescendantParentGroupInfo(JsonElement element) + { + Optional id = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id")) + { + id = property.Value.GetString(); + continue; + } + } + return new DescendantParentGroupInfo(id.Value); + } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/DescendantParentGroupInfo.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/DescendantParentGroupInfo.cs new file mode 100644 index 0000000000000..185683d1b299e --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/DescendantParentGroupInfo.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + /// The ID of the parent management group. + public partial class DescendantParentGroupInfo + { + /// Initializes a new instance of DescendantParentGroupInfo. + internal DescendantParentGroupInfo() + { + } + + /// Initializes a new instance of DescendantParentGroupInfo. + /// The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. + internal DescendantParentGroupInfo(string id) + { + Id = id; + } + + /// The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. + public string Id { get; } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/EntityHierarchyItem.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/EntityHierarchyItem.cs new file mode 100644 index 0000000000000..4c487e6b194a3 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/EntityHierarchyItem.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + /// The management group details for the hierarchy view. + internal partial class EntityHierarchyItem + { + /// Initializes a new instance of EntityHierarchyItem. + internal EntityHierarchyItem() + { + Children = new ChangeTrackingList(); + } + + /// The fully qualified ID for the management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. + public string Id { get; } + /// The type of the resource. For example, Microsoft.Management/managementGroups. + public string Type { get; } + /// The name of the management group. For example, 00000000-0000-0000-0000-000000000000. + public string Name { get; } + /// The friendly name of the management group. + public string DisplayName { get; } + /// The users specific permissions to this item. + public Permissions? Permissions { get; } + /// The list of children. + public IReadOnlyList Children { get; } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/EntityInfo.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/EntityInfo.Serialization.cs new file mode 100644 index 0000000000000..440b91a1586d1 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/EntityInfo.Serialization.cs @@ -0,0 +1,184 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + public partial class EntityInfo + { + internal static EntityInfo DeserializeEntityInfo(JsonElement element) + { + Optional id = default; + Optional type = default; + Optional name = default; + Optional tenantId = default; + Optional displayName = default; + Optional parent = default; + Optional permissions = default; + Optional inheritedPermissions = default; + Optional numberOfDescendants = default; + Optional numberOfChildren = default; + Optional numberOfChildGroups = default; + Optional> parentDisplayNameChain = default; + Optional> parentNameChain = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + id = null; + continue; + } + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("type")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + type = null; + continue; + } + type = property.Value.GetString(); + continue; + } + if (property.NameEquals("name")) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("properties")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("tenantId")) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + tenantId = null; + continue; + } + tenantId = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("displayName")) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + displayName = null; + continue; + } + displayName = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("parent")) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + parent = null; + continue; + } + parent = EntityParentGroupInfo.DeserializeEntityParentGroupInfo(property0.Value); + continue; + } + if (property0.NameEquals("permissions")) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + permissions = null; + continue; + } + permissions = new Permissions(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("inheritedPermissions")) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + inheritedPermissions = null; + continue; + } + inheritedPermissions = new Permissions(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("numberOfDescendants")) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + numberOfDescendants = null; + continue; + } + numberOfDescendants = property0.Value.GetInt32(); + continue; + } + if (property0.NameEquals("numberOfChildren")) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + numberOfChildren = null; + continue; + } + numberOfChildren = property0.Value.GetInt32(); + continue; + } + if (property0.NameEquals("numberOfChildGroups")) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + numberOfChildGroups = null; + continue; + } + numberOfChildGroups = property0.Value.GetInt32(); + continue; + } + if (property0.NameEquals("parentDisplayNameChain")) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + parentDisplayNameChain = null; + continue; + } + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + parentDisplayNameChain = array; + continue; + } + if (property0.NameEquals("parentNameChain")) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + parentNameChain = null; + continue; + } + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + parentNameChain = array; + continue; + } + } + continue; + } + } + return new EntityInfo(id.Value, type.Value, name.Value, tenantId.Value, displayName.Value, parent.Value, Optional.ToNullable(permissions), Optional.ToNullable(inheritedPermissions), Optional.ToNullable(numberOfDescendants), Optional.ToNullable(numberOfChildren), Optional.ToNullable(numberOfChildGroups), Optional.ToList(parentDisplayNameChain), Optional.ToList(parentNameChain)); + } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/EntityInfo.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/EntityInfo.cs new file mode 100644 index 0000000000000..c33ff0cb6f9d4 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/EntityInfo.cs @@ -0,0 +1,81 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + /// The entity. + public partial class EntityInfo + { + /// Initializes a new instance of EntityInfo. + internal EntityInfo() + { + ParentDisplayNameChain = new ChangeTrackingList(); + ParentNameChain = new ChangeTrackingList(); + } + + /// Initializes a new instance of EntityInfo. + /// The fully qualified ID for the entity. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. + /// The type of the resource. For example, Microsoft.Management/managementGroups. + /// The name of the entity. For example, 00000000-0000-0000-0000-000000000000. + /// The AAD Tenant ID associated with the entity. For example, 00000000-0000-0000-0000-000000000000. + /// The friendly name of the management group. + /// (Optional) The ID of the parent management group. + /// The users specific permissions to this item. + /// The users specific permissions to this item. + /// Number of Descendants. + /// Number of children is the number of Groups and Subscriptions that are exactly one level underneath the current Group. + /// Number of children is the number of Groups that are exactly one level underneath the current Group. + /// The parent display name chain from the root group to the immediate parent. + /// The parent name chain from the root group to the immediate parent. + internal EntityInfo(string id, string type, string name, string tenantId, string displayName, EntityParentGroupInfo parent, Permissions? permissions, Permissions? inheritedPermissions, int? numberOfDescendants, int? numberOfChildren, int? numberOfChildGroups, IReadOnlyList parentDisplayNameChain, IReadOnlyList parentNameChain) + { + Id = id; + Type = type; + Name = name; + TenantId = tenantId; + DisplayName = displayName; + Parent = parent; + Permissions = permissions; + InheritedPermissions = inheritedPermissions; + NumberOfDescendants = numberOfDescendants; + NumberOfChildren = numberOfChildren; + NumberOfChildGroups = numberOfChildGroups; + ParentDisplayNameChain = parentDisplayNameChain; + ParentNameChain = parentNameChain; + } + + /// The fully qualified ID for the entity. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. + public string Id { get; } + /// The type of the resource. For example, Microsoft.Management/managementGroups. + public string Type { get; } + /// The name of the entity. For example, 00000000-0000-0000-0000-000000000000. + public string Name { get; } + /// The AAD Tenant ID associated with the entity. For example, 00000000-0000-0000-0000-000000000000. + public string TenantId { get; } + /// The friendly name of the management group. + public string DisplayName { get; } + /// (Optional) The ID of the parent management group. + public EntityParentGroupInfo Parent { get; } + /// The users specific permissions to this item. + public Permissions? Permissions { get; } + /// The users specific permissions to this item. + public Permissions? InheritedPermissions { get; } + /// Number of Descendants. + public int? NumberOfDescendants { get; } + /// Number of children is the number of Groups and Subscriptions that are exactly one level underneath the current Group. + public int? NumberOfChildren { get; } + /// Number of children is the number of Groups that are exactly one level underneath the current Group. + public int? NumberOfChildGroups { get; } + /// The parent display name chain from the root group to the immediate parent. + public IReadOnlyList ParentDisplayNameChain { get; } + /// The parent name chain from the root group to the immediate parent. + public IReadOnlyList ParentNameChain { get; } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/EntityListResult.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/EntityListResult.Serialization.cs new file mode 100644 index 0000000000000..0d07552eacb3f --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/EntityListResult.Serialization.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + internal partial class EntityListResult + { + internal static EntityListResult DeserializeEntityListResult(JsonElement element) + { + Optional> value = default; + Optional count = default; + Optional nextLink = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(EntityInfo.DeserializeEntityInfo(item)); + } + value = array; + continue; + } + if (property.NameEquals("count")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + count = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("nextLink")) + { + nextLink = property.Value.GetString(); + continue; + } + } + return new EntityListResult(Optional.ToList(value), Optional.ToNullable(count), nextLink.Value); + } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/EntityListResult.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/EntityListResult.cs new file mode 100644 index 0000000000000..3af2764987ae8 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/EntityListResult.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + /// Describes the result of the request to view entities. + internal partial class EntityListResult + { + /// Initializes a new instance of EntityListResult. + internal EntityListResult() + { + Value = new ChangeTrackingList(); + } + + /// Initializes a new instance of EntityListResult. + /// The list of entities. + /// Total count of records that match the filter. + /// The URL to use for getting the next set of results. + internal EntityListResult(IReadOnlyList value, int? count, string nextLink) + { + Value = value; + Count = count; + NextLink = nextLink; + } + + /// The list of entities. + public IReadOnlyList Value { get; } + /// Total count of records that match the filter. + public int? Count { get; } + /// The URL to use for getting the next set of results. + public string NextLink { get; } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/EntityParentGroupInfo.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/EntityParentGroupInfo.Serialization.cs new file mode 100644 index 0000000000000..f4c0c7d6f9dd2 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/EntityParentGroupInfo.Serialization.cs @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + public partial class EntityParentGroupInfo + { + internal static EntityParentGroupInfo DeserializeEntityParentGroupInfo(JsonElement element) + { + Optional id = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id")) + { + id = property.Value.GetString(); + continue; + } + } + return new EntityParentGroupInfo(id.Value); + } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/EntityParentGroupInfo.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/EntityParentGroupInfo.cs new file mode 100644 index 0000000000000..8b25972a9f6d9 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/EntityParentGroupInfo.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + /// (Optional) The ID of the parent management group. + public partial class EntityParentGroupInfo + { + /// Initializes a new instance of EntityParentGroupInfo. + internal EntityParentGroupInfo() + { + } + + /// Initializes a new instance of EntityParentGroupInfo. + /// The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. + internal EntityParentGroupInfo(string id) + { + Id = id; + } + + /// The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. + public string Id { get; } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Enum0.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Enum0.cs new file mode 100644 index 0000000000000..20f0f12ac7676 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Enum0.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + /// The Enum0. + public readonly partial struct Enum0 : IEquatable + { + private readonly string _value; + + /// Determines if two values are the same. + /// is null. + public Enum0(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string ChildrenValue = "children"; + private const string PathValue = "path"; + private const string AncestorsValue = "ancestors"; + + /// children. + public static Enum0 Children { get; } = new Enum0(ChildrenValue); + /// path. + public static Enum0 Path { get; } = new Enum0(PathValue); + /// ancestors. + public static Enum0 Ancestors { get; } = new Enum0(AncestorsValue); + /// Determines if two values are the same. + public static bool operator ==(Enum0 left, Enum0 right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(Enum0 left, Enum0 right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator Enum0(string value) => new Enum0(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is Enum0 other && Equals(other); + /// + public bool Equals(Enum0 other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Enum2.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Enum2.cs new file mode 100644 index 0000000000000..83da0bfad72a0 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Enum2.cs @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + /// The Enum2. + public readonly partial struct Enum2 : IEquatable + { + private readonly string _value; + + /// Determines if two values are the same. + /// is null. + public Enum2(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string AllowedParentsValue = "AllowedParents"; + private const string AllowedChildrenValue = "AllowedChildren"; + private const string ParentAndFirstLevelChildrenValue = "ParentAndFirstLevelChildren"; + private const string ParentOnlyValue = "ParentOnly"; + private const string ChildrenOnlyValue = "ChildrenOnly"; + + /// AllowedParents. + public static Enum2 AllowedParents { get; } = new Enum2(AllowedParentsValue); + /// AllowedChildren. + public static Enum2 AllowedChildren { get; } = new Enum2(AllowedChildrenValue); + /// ParentAndFirstLevelChildren. + public static Enum2 ParentAndFirstLevelChildren { get; } = new Enum2(ParentAndFirstLevelChildrenValue); + /// ParentOnly. + public static Enum2 ParentOnly { get; } = new Enum2(ParentOnlyValue); + /// ChildrenOnly. + public static Enum2 ChildrenOnly { get; } = new Enum2(ChildrenOnlyValue); + /// Determines if two values are the same. + public static bool operator ==(Enum2 left, Enum2 right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(Enum2 left, Enum2 right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator Enum2(string value) => new Enum2(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is Enum2 other && Equals(other); + /// + public bool Equals(Enum2 other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Enum3.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Enum3.cs new file mode 100644 index 0000000000000..98c37aec6e45d --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Enum3.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + /// The Enum3. + public readonly partial struct Enum3 : IEquatable + { + private readonly string _value; + + /// Determines if two values are the same. + /// is null. + public Enum3(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string FullHierarchyValue = "FullHierarchy"; + private const string GroupsOnlyValue = "GroupsOnly"; + private const string SubscriptionsOnlyValue = "SubscriptionsOnly"; + private const string AuditValue = "Audit"; + + /// FullHierarchy. + public static Enum3 FullHierarchy { get; } = new Enum3(FullHierarchyValue); + /// GroupsOnly. + public static Enum3 GroupsOnly { get; } = new Enum3(GroupsOnlyValue); + /// SubscriptionsOnly. + public static Enum3 SubscriptionsOnly { get; } = new Enum3(SubscriptionsOnlyValue); + /// Audit. + public static Enum3 Audit { get; } = new Enum3(AuditValue); + /// Determines if two values are the same. + public static bool operator ==(Enum3 left, Enum3 right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(Enum3 left, Enum3 right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator Enum3(string value) => new Enum3(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is Enum3 other && Equals(other); + /// + public bool Equals(Enum3 other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ErrorDetails.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ErrorDetails.Serialization.cs new file mode 100644 index 0000000000000..0de44a8bc8eca --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ErrorDetails.Serialization.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + internal partial class ErrorDetails + { + internal static ErrorDetails DeserializeErrorDetails(JsonElement element) + { + Optional code = default; + Optional message = default; + Optional details = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("code")) + { + code = property.Value.GetString(); + continue; + } + if (property.NameEquals("message")) + { + message = property.Value.GetString(); + continue; + } + if (property.NameEquals("details")) + { + details = property.Value.GetString(); + continue; + } + } + return new ErrorDetails(code.Value, message.Value, details.Value); + } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ErrorDetails.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ErrorDetails.cs new file mode 100644 index 0000000000000..351b3933daa4d --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ErrorDetails.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + /// The details of the error. + internal partial class ErrorDetails + { + /// Initializes a new instance of ErrorDetails. + internal ErrorDetails() + { + } + + /// Initializes a new instance of ErrorDetails. + /// One of a server-defined set of error codes. + /// A human-readable representation of the error. + /// A human-readable representation of the error's details. + internal ErrorDetails(string code, string message, string details) + { + Code = code; + Message = message; + Details = details; + } + + /// One of a server-defined set of error codes. + public string Code { get; } + /// A human-readable representation of the error. + public string Message { get; } + /// A human-readable representation of the error's details. + public string Details { get; } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ErrorResponse.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ErrorResponse.Serialization.cs new file mode 100644 index 0000000000000..3c85e24887af2 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ErrorResponse.Serialization.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + internal partial class ErrorResponse + { + internal static ErrorResponse DeserializeErrorResponse(JsonElement element) + { + Optional error = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("error")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + error = ErrorDetails.DeserializeErrorDetails(property.Value); + continue; + } + } + return new ErrorResponse(error.Value); + } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ErrorResponse.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ErrorResponse.cs new file mode 100644 index 0000000000000..40a7838f8e31b --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ErrorResponse.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + /// The error object. + internal partial class ErrorResponse + { + /// Initializes a new instance of ErrorResponse. + internal ErrorResponse() + { + } + + /// Initializes a new instance of ErrorResponse. + /// The details of the error. + internal ErrorResponse(ErrorDetails error) + { + Error = error; + } + + /// The details of the error. + public ErrorDetails Error { get; } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/HierarchySettings.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/HierarchySettings.Serialization.cs new file mode 100644 index 0000000000000..4353b9ea34dc3 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/HierarchySettings.Serialization.cs @@ -0,0 +1,76 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + public partial class HierarchySettings + { + internal static HierarchySettings DeserializeHierarchySettings(JsonElement element) + { + Optional id = default; + Optional type = default; + Optional name = default; + Optional tenantId = default; + Optional requireAuthorizationForGroupCreation = default; + Optional defaultManagementGroup = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id")) + { + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("type")) + { + type = property.Value.GetString(); + continue; + } + if (property.NameEquals("name")) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("properties")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("tenantId")) + { + tenantId = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("requireAuthorizationForGroupCreation")) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + requireAuthorizationForGroupCreation = property0.Value.GetBoolean(); + continue; + } + if (property0.NameEquals("defaultManagementGroup")) + { + defaultManagementGroup = property0.Value.GetString(); + continue; + } + } + continue; + } + } + return new HierarchySettings(id.Value, type.Value, name.Value, tenantId.Value, Optional.ToNullable(requireAuthorizationForGroupCreation), defaultManagementGroup.Value); + } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/HierarchySettings.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/HierarchySettings.cs new file mode 100644 index 0000000000000..4d271963daf07 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/HierarchySettings.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + /// Settings defined at the Management Group scope. + public partial class HierarchySettings + { + /// Initializes a new instance of HierarchySettings. + internal HierarchySettings() + { + } + + /// Initializes a new instance of HierarchySettings. + /// The fully qualified ID for the settings object. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000/settings/default. + /// The type of the resource. For example, Microsoft.Management/managementGroups/settings. + /// The name of the object. In this case, default. + /// The AAD Tenant ID associated with the hierarchy settings. For example, 00000000-0000-0000-0000-000000000000. + /// Indicates whether RBAC access is required upon group creation under the root Management Group. If set to true, user will require Microsoft.Management/managementGroups/write action on the root Management Group scope in order to create new Groups directly under the root. This will prevent new users from creating new Management Groups, unless they are given access. + /// Settings that sets the default Management Group under which new subscriptions get added in this tenant. For example, /providers/Microsoft.Management/managementGroups/defaultGroup. + internal HierarchySettings(string id, string type, string name, string tenantId, bool? requireAuthorizationForGroupCreation, string defaultManagementGroup) + { + Id = id; + Type = type; + Name = name; + TenantId = tenantId; + RequireAuthorizationForGroupCreation = requireAuthorizationForGroupCreation; + DefaultManagementGroup = defaultManagementGroup; + } + + /// The fully qualified ID for the settings object. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000/settings/default. + public string Id { get; } + /// The type of the resource. For example, Microsoft.Management/managementGroups/settings. + public string Type { get; } + /// The name of the object. In this case, default. + public string Name { get; } + /// The AAD Tenant ID associated with the hierarchy settings. For example, 00000000-0000-0000-0000-000000000000. + public string TenantId { get; } + /// Indicates whether RBAC access is required upon group creation under the root Management Group. If set to true, user will require Microsoft.Management/managementGroups/write action on the root Management Group scope in order to create new Groups directly under the root. This will prevent new users from creating new Management Groups, unless they are given access. + public bool? RequireAuthorizationForGroupCreation { get; } + /// Settings that sets the default Management Group under which new subscriptions get added in this tenant. For example, /providers/Microsoft.Management/managementGroups/defaultGroup. + public string DefaultManagementGroup { get; } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/HierarchySettingsInfo.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/HierarchySettingsInfo.Serialization.cs new file mode 100644 index 0000000000000..ff1a77e2fc895 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/HierarchySettingsInfo.Serialization.cs @@ -0,0 +1,76 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + public partial class HierarchySettingsInfo + { + internal static HierarchySettingsInfo DeserializeHierarchySettingsInfo(JsonElement element) + { + Optional id = default; + Optional type = default; + Optional name = default; + Optional tenantId = default; + Optional requireAuthorizationForGroupCreation = default; + Optional defaultManagementGroup = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id")) + { + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("type")) + { + type = property.Value.GetString(); + continue; + } + if (property.NameEquals("name")) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("properties")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("tenantId")) + { + tenantId = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("requireAuthorizationForGroupCreation")) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + requireAuthorizationForGroupCreation = property0.Value.GetBoolean(); + continue; + } + if (property0.NameEquals("defaultManagementGroup")) + { + defaultManagementGroup = property0.Value.GetString(); + continue; + } + } + continue; + } + } + return new HierarchySettingsInfo(id.Value, type.Value, name.Value, tenantId.Value, Optional.ToNullable(requireAuthorizationForGroupCreation), defaultManagementGroup.Value); + } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/HierarchySettingsInfo.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/HierarchySettingsInfo.cs new file mode 100644 index 0000000000000..5e208f93341c5 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/HierarchySettingsInfo.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + /// The hierarchy settings resource. + public partial class HierarchySettingsInfo + { + /// Initializes a new instance of HierarchySettingsInfo. + internal HierarchySettingsInfo() + { + } + + /// Initializes a new instance of HierarchySettingsInfo. + /// The fully qualified ID for the settings object. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000/settings/default. + /// The type of the resource. For example, Microsoft.Management/managementGroups/settings. + /// The name of the object. In this case, default. + /// The AAD Tenant ID associated with the hierarchy settings. For example, 00000000-0000-0000-0000-000000000000. + /// Indicates whether RBAC access is required upon group creation under the root Management Group. If set to true, user will require Microsoft.Management/managementGroups/write action on the root Management Group scope in order to create new Groups directly under the root. This will prevent new users from creating new Management Groups, unless they are given access. + /// Settings that sets the default Management Group under which new subscriptions get added in this tenant. For example, /providers/Microsoft.Management/managementGroups/defaultGroup. + internal HierarchySettingsInfo(string id, string type, string name, string tenantId, bool? requireAuthorizationForGroupCreation, string defaultManagementGroup) + { + Id = id; + Type = type; + Name = name; + TenantId = tenantId; + RequireAuthorizationForGroupCreation = requireAuthorizationForGroupCreation; + DefaultManagementGroup = defaultManagementGroup; + } + + /// The fully qualified ID for the settings object. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000/settings/default. + public string Id { get; } + /// The type of the resource. For example, Microsoft.Management/managementGroups/settings. + public string Type { get; } + /// The name of the object. In this case, default. + public string Name { get; } + /// The AAD Tenant ID associated with the hierarchy settings. For example, 00000000-0000-0000-0000-000000000000. + public string TenantId { get; } + /// Indicates whether RBAC access is required upon group creation under the root Management Group. If set to true, user will require Microsoft.Management/managementGroups/write action on the root Management Group scope in order to create new Groups directly under the root. This will prevent new users from creating new Management Groups, unless they are given access. + public bool? RequireAuthorizationForGroupCreation { get; } + /// Settings that sets the default Management Group under which new subscriptions get added in this tenant. For example, /providers/Microsoft.Management/managementGroups/defaultGroup. + public string DefaultManagementGroup { get; } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/HierarchySettingsList.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/HierarchySettingsList.Serialization.cs new file mode 100644 index 0000000000000..b8365f1a57ce8 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/HierarchySettingsList.Serialization.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + public partial class HierarchySettingsList + { + internal static HierarchySettingsList DeserializeHierarchySettingsList(JsonElement element) + { + Optional> value = default; + Optional nextLink = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(HierarchySettingsInfo.DeserializeHierarchySettingsInfo(item)); + } + value = array; + continue; + } + if (property.NameEquals("nextLink")) + { + nextLink = property.Value.GetString(); + continue; + } + } + return new HierarchySettingsList(Optional.ToList(value), nextLink.Value); + } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/HierarchySettingsList.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/HierarchySettingsList.cs new file mode 100644 index 0000000000000..640c0b7ff773c --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/HierarchySettingsList.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + /// Lists all hierarchy settings. + public partial class HierarchySettingsList + { + /// Initializes a new instance of HierarchySettingsList. + internal HierarchySettingsList() + { + Value = new ChangeTrackingList(); + } + + /// Initializes a new instance of HierarchySettingsList. + /// The list of hierarchy settings. + /// The URL to use for getting the next set of results. + internal HierarchySettingsList(IReadOnlyList value, string nextLink) + { + Value = value; + NextLink = nextLink; + } + + /// The list of hierarchy settings. + public IReadOnlyList Value { get; } + /// The URL to use for getting the next set of results. + public string NextLink { get; } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ListSubscriptionUnderManagementGroup.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ListSubscriptionUnderManagementGroup.Serialization.cs new file mode 100644 index 0000000000000..99a9dee5449f7 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ListSubscriptionUnderManagementGroup.Serialization.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + internal partial class ListSubscriptionUnderManagementGroup + { + internal static ListSubscriptionUnderManagementGroup DeserializeListSubscriptionUnderManagementGroup(JsonElement element) + { + Optional> value = default; + Optional nextLink = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(SubscriptionUnderManagementGroup.DeserializeSubscriptionUnderManagementGroup(item)); + } + value = array; + continue; + } + if (property.NameEquals("nextLink")) + { + nextLink = property.Value.GetString(); + continue; + } + } + return new ListSubscriptionUnderManagementGroup(Optional.ToList(value), nextLink.Value); + } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ListSubscriptionUnderManagementGroup.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ListSubscriptionUnderManagementGroup.cs new file mode 100644 index 0000000000000..ac0fed60669c1 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ListSubscriptionUnderManagementGroup.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + /// The details of all subscriptions under management group. + internal partial class ListSubscriptionUnderManagementGroup + { + /// Initializes a new instance of ListSubscriptionUnderManagementGroup. + internal ListSubscriptionUnderManagementGroup() + { + Value = new ChangeTrackingList(); + } + + /// Initializes a new instance of ListSubscriptionUnderManagementGroup. + /// The list of subscriptions. + /// The URL to use for getting the next set of results. + internal ListSubscriptionUnderManagementGroup(IReadOnlyList value, string nextLink) + { + Value = value; + NextLink = nextLink; + } + + /// The list of subscriptions. + public IReadOnlyList Value { get; } + /// The URL to use for getting the next set of results. + public string NextLink { get; } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroup.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroup.Serialization.cs new file mode 100644 index 0000000000000..77f511b5af083 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroup.Serialization.cs @@ -0,0 +1,93 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + public partial class ManagementGroup + { + internal static ManagementGroup DeserializeManagementGroup(JsonElement element) + { + Optional id = default; + Optional type = default; + Optional name = default; + Optional tenantId = default; + Optional displayName = default; + Optional details = default; + Optional> children = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id")) + { + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("type")) + { + type = property.Value.GetString(); + continue; + } + if (property.NameEquals("name")) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("properties")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("tenantId")) + { + tenantId = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("displayName")) + { + displayName = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("details")) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + details = ManagementGroupDetails.DeserializeManagementGroupDetails(property0.Value); + continue; + } + if (property0.NameEquals("children")) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + children = null; + continue; + } + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(ManagementGroupChildInfo.DeserializeManagementGroupChildInfo(item)); + } + children = array; + continue; + } + } + continue; + } + } + return new ManagementGroup(id.Value, type.Value, name.Value, tenantId.Value, displayName.Value, details.Value, Optional.ToList(children)); + } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroup.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroup.cs new file mode 100644 index 0000000000000..76fb139e287ae --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroup.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + /// The management group details. + public partial class ManagementGroup + { + /// Initializes a new instance of ManagementGroup. + internal ManagementGroup() + { + Children = new ChangeTrackingList(); + } + + /// Initializes a new instance of ManagementGroup. + /// The fully qualified ID for the management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. + /// The type of the resource. For example, Microsoft.Management/managementGroups. + /// The name of the management group. For example, 00000000-0000-0000-0000-000000000000. + /// The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000. + /// The friendly name of the management group. + /// The details of a management group. + /// The list of children. + internal ManagementGroup(string id, string type, string name, string tenantId, string displayName, ManagementGroupDetails details, IReadOnlyList children) + { + Id = id; + Type = type; + Name = name; + TenantId = tenantId; + DisplayName = displayName; + Details = details; + Children = children; + } + + /// The fully qualified ID for the management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. + public string Id { get; } + /// The type of the resource. For example, Microsoft.Management/managementGroups. + public string Type { get; } + /// The name of the management group. For example, 00000000-0000-0000-0000-000000000000. + public string Name { get; } + /// The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000. + public string TenantId { get; } + /// The friendly name of the management group. + public string DisplayName { get; } + /// The details of a management group. + public ManagementGroupDetails Details { get; } + /// The list of children. + public IReadOnlyList Children { get; } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupChildInfo.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupChildInfo.Serialization.cs new file mode 100644 index 0000000000000..58fcaef43c599 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupChildInfo.Serialization.cs @@ -0,0 +1,69 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + public partial class ManagementGroupChildInfo + { + internal static ManagementGroupChildInfo DeserializeManagementGroupChildInfo(JsonElement element) + { + Optional type = default; + Optional id = default; + Optional name = default; + Optional displayName = default; + Optional> children = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("type")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + type = new ManagementGroupChildType(property.Value.GetString()); + continue; + } + if (property.NameEquals("id")) + { + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("name")) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("displayName")) + { + displayName = property.Value.GetString(); + continue; + } + if (property.NameEquals("children")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(DeserializeManagementGroupChildInfo(item)); + } + children = array; + continue; + } + } + return new ManagementGroupChildInfo(Optional.ToNullable(type), id.Value, name.Value, displayName.Value, Optional.ToList(children)); + } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupChildInfo.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupChildInfo.cs new file mode 100644 index 0000000000000..360eab72a5d6d --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupChildInfo.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + /// The child information of a management group. + public partial class ManagementGroupChildInfo + { + /// Initializes a new instance of ManagementGroupChildInfo. + internal ManagementGroupChildInfo() + { + Children = new ChangeTrackingList(); + } + + /// Initializes a new instance of ManagementGroupChildInfo. + /// The fully qualified resource type which includes provider namespace (e.g. Microsoft.Management/managementGroups). + /// The fully qualified ID for the child resource (management group or subscription). For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. + /// The name of the child entity. + /// The friendly name of the child resource. + /// The list of children. + internal ManagementGroupChildInfo(ManagementGroupChildType? type, string id, string name, string displayName, IReadOnlyList children) + { + Type = type; + Id = id; + Name = name; + DisplayName = displayName; + Children = children; + } + + /// The fully qualified resource type which includes provider namespace (e.g. Microsoft.Management/managementGroups). + public ManagementGroupChildType? Type { get; } + /// The fully qualified ID for the child resource (management group or subscription). For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. + public string Id { get; } + /// The name of the child entity. + public string Name { get; } + /// The friendly name of the child resource. + public string DisplayName { get; } + /// The list of children. + public IReadOnlyList Children { get; } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupChildType.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupChildType.cs new file mode 100644 index 0000000000000..e338697a7059a --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupChildType.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + /// The type of child resource. + public readonly partial struct ManagementGroupChildType : IEquatable + { + private readonly string _value; + + /// Determines if two values are the same. + /// is null. + public ManagementGroupChildType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string MicrosoftManagementManagementGroupsValue = "Microsoft.Management/managementGroups"; + private const string SubscriptionsValue = "/subscriptions"; + + /// Microsoft.Management/managementGroups. + public static ManagementGroupChildType MicrosoftManagementManagementGroups { get; } = new ManagementGroupChildType(MicrosoftManagementManagementGroupsValue); + /// /subscriptions. + public static ManagementGroupChildType Subscriptions { get; } = new ManagementGroupChildType(SubscriptionsValue); + /// Determines if two values are the same. + public static bool operator ==(ManagementGroupChildType left, ManagementGroupChildType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ManagementGroupChildType left, ManagementGroupChildType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator ManagementGroupChildType(string value) => new ManagementGroupChildType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ManagementGroupChildType other && Equals(other); + /// + public bool Equals(ManagementGroupChildType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupDetails.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupDetails.Serialization.cs new file mode 100644 index 0000000000000..a18e4f5ac6787 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupDetails.Serialization.cs @@ -0,0 +1,112 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + public partial class ManagementGroupDetails + { + internal static ManagementGroupDetails DeserializeManagementGroupDetails(JsonElement element) + { + Optional version = default; + Optional updatedTime = default; + Optional updatedBy = default; + Optional parent = default; + Optional> path = default; + Optional> managementGroupAncestors = default; + Optional> managementGroupAncestorsChain = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("version")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + version = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("updatedTime")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + updatedTime = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("updatedBy")) + { + updatedBy = property.Value.GetString(); + continue; + } + if (property.NameEquals("parent")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + parent = ParentGroupInfo.DeserializeParentGroupInfo(property.Value); + continue; + } + if (property.NameEquals("path")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + path = null; + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(ManagementGroupPathElement.DeserializeManagementGroupPathElement(item)); + } + path = array; + continue; + } + if (property.NameEquals("managementGroupAncestors")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + managementGroupAncestors = null; + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + managementGroupAncestors = array; + continue; + } + if (property.NameEquals("managementGroupAncestorsChain")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + managementGroupAncestorsChain = null; + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(ManagementGroupPathElement.DeserializeManagementGroupPathElement(item)); + } + managementGroupAncestorsChain = array; + continue; + } + } + return new ManagementGroupDetails(Optional.ToNullable(version), Optional.ToNullable(updatedTime), updatedBy.Value, parent.Value, Optional.ToList(path), Optional.ToList(managementGroupAncestors), Optional.ToList(managementGroupAncestorsChain)); + } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupDetails.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupDetails.cs new file mode 100644 index 0000000000000..15134ceee0bf6 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupDetails.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + /// The details of a management group. + public partial class ManagementGroupDetails + { + /// Initializes a new instance of ManagementGroupDetails. + internal ManagementGroupDetails() + { + Path = new ChangeTrackingList(); + ManagementGroupAncestors = new ChangeTrackingList(); + ManagementGroupAncestorsChain = new ChangeTrackingList(); + } + + /// Initializes a new instance of ManagementGroupDetails. + /// The version number of the object. + /// The date and time when this object was last updated. + /// The identity of the principal or process that updated the object. + /// (Optional) The ID of the parent management group. + /// The path from the root to the current group. + /// The ancestors of the management group. + /// The ancestors of the management group displayed in reversed order, from immediate parent to the root. + internal ManagementGroupDetails(int? version, DateTimeOffset? updatedTime, string updatedBy, ParentGroupInfo parent, IReadOnlyList path, IReadOnlyList managementGroupAncestors, IReadOnlyList managementGroupAncestorsChain) + { + Version = version; + UpdatedTime = updatedTime; + UpdatedBy = updatedBy; + Parent = parent; + Path = path; + ManagementGroupAncestors = managementGroupAncestors; + ManagementGroupAncestorsChain = managementGroupAncestorsChain; + } + + /// The version number of the object. + public int? Version { get; } + /// The date and time when this object was last updated. + public DateTimeOffset? UpdatedTime { get; } + /// The identity of the principal or process that updated the object. + public string UpdatedBy { get; } + /// (Optional) The ID of the parent management group. + public ParentGroupInfo Parent { get; } + /// The path from the root to the current group. + public IReadOnlyList Path { get; } + /// The ancestors of the management group. + public IReadOnlyList ManagementGroupAncestors { get; } + /// The ancestors of the management group displayed in reversed order, from immediate parent to the root. + public IReadOnlyList ManagementGroupAncestorsChain { get; } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupInfo.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupInfo.Serialization.cs new file mode 100644 index 0000000000000..1dd4f7d499eca --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupInfo.Serialization.cs @@ -0,0 +1,65 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + public partial class ManagementGroupInfo + { + internal static ManagementGroupInfo DeserializeManagementGroupInfo(JsonElement element) + { + Optional id = default; + Optional type = default; + Optional name = default; + Optional tenantId = default; + Optional displayName = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id")) + { + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("type")) + { + type = property.Value.GetString(); + continue; + } + if (property.NameEquals("name")) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("properties")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("tenantId")) + { + tenantId = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("displayName")) + { + displayName = property0.Value.GetString(); + continue; + } + } + continue; + } + } + return new ManagementGroupInfo(id.Value, type.Value, name.Value, tenantId.Value, displayName.Value); + } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupInfo.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupInfo.cs new file mode 100644 index 0000000000000..6cdb9b21422a8 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupInfo.cs @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + /// The management group resource. + public partial class ManagementGroupInfo + { + /// Initializes a new instance of ManagementGroupInfo. + internal ManagementGroupInfo() + { + } + + /// Initializes a new instance of ManagementGroupInfo. + /// The fully qualified ID for the management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. + /// The type of the resource. For example, Microsoft.Management/managementGroups. + /// The name of the management group. For example, 00000000-0000-0000-0000-000000000000. + /// The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000. + /// The friendly name of the management group. + internal ManagementGroupInfo(string id, string type, string name, string tenantId, string displayName) + { + Id = id; + Type = type; + Name = name; + TenantId = tenantId; + DisplayName = displayName; + } + + /// The fully qualified ID for the management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. + public string Id { get; } + /// The type of the resource. For example, Microsoft.Management/managementGroups. + public string Type { get; } + /// The name of the management group. For example, 00000000-0000-0000-0000-000000000000. + public string Name { get; } + /// The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000. + public string TenantId { get; } + /// The friendly name of the management group. + public string DisplayName { get; } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupListResult.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupListResult.Serialization.cs new file mode 100644 index 0000000000000..3290a553377e1 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupListResult.Serialization.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + internal partial class ManagementGroupListResult + { + internal static ManagementGroupListResult DeserializeManagementGroupListResult(JsonElement element) + { + Optional> value = default; + Optional nextLink = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(ManagementGroupInfo.DeserializeManagementGroupInfo(item)); + } + value = array; + continue; + } + if (property.NameEquals("nextLink")) + { + nextLink = property.Value.GetString(); + continue; + } + } + return new ManagementGroupListResult(Optional.ToList(value), nextLink.Value); + } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupListResult.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupListResult.cs new file mode 100644 index 0000000000000..e937ac5604648 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupListResult.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + /// Describes the result of the request to list management groups. + internal partial class ManagementGroupListResult + { + /// Initializes a new instance of ManagementGroupListResult. + internal ManagementGroupListResult() + { + Value = new ChangeTrackingList(); + } + + /// Initializes a new instance of ManagementGroupListResult. + /// The list of management groups. + /// The URL to use for getting the next set of results. + internal ManagementGroupListResult(IReadOnlyList value, string nextLink) + { + Value = value; + NextLink = nextLink; + } + + /// The list of management groups. + public IReadOnlyList Value { get; } + /// The URL to use for getting the next set of results. + public string NextLink { get; } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupPathElement.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupPathElement.Serialization.cs new file mode 100644 index 0000000000000..35e587863ee04 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupPathElement.Serialization.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + public partial class ManagementGroupPathElement + { + internal static ManagementGroupPathElement DeserializeManagementGroupPathElement(JsonElement element) + { + Optional name = default; + Optional displayName = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("name")) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("displayName")) + { + displayName = property.Value.GetString(); + continue; + } + } + return new ManagementGroupPathElement(name.Value, displayName.Value); + } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupPathElement.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupPathElement.cs new file mode 100644 index 0000000000000..3dc6815a10230 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupPathElement.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + /// A path element of a management group ancestors. + public partial class ManagementGroupPathElement + { + /// Initializes a new instance of ManagementGroupPathElement. + internal ManagementGroupPathElement() + { + } + + /// Initializes a new instance of ManagementGroupPathElement. + /// The name of the group. + /// The friendly name of the group. + internal ManagementGroupPathElement(string name, string displayName) + { + Name = name; + DisplayName = displayName; + } + + /// The name of the group. + public string Name { get; } + /// The friendly name of the group. + public string DisplayName { get; } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Operation.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Operation.Serialization.cs new file mode 100644 index 0000000000000..a9a931fa5f793 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Operation.Serialization.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + public partial class Operation + { + internal static Operation DeserializeOperation(JsonElement element) + { + Optional name = default; + Optional display = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("name")) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("display")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + display = OperationDisplayProperties.DeserializeOperationDisplayProperties(property.Value); + continue; + } + } + return new Operation(name.Value, display.Value); + } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Operation.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Operation.cs new file mode 100644 index 0000000000000..de9cb375509ed --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Operation.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + /// Operation supported by the Microsoft.Management resource provider. + public partial class Operation + { + /// Initializes a new instance of Operation. + internal Operation() + { + } + + /// Initializes a new instance of Operation. + /// Operation name: {provider}/{resource}/{operation}. + /// The object that represents the operation. + internal Operation(string name, OperationDisplayProperties display) + { + Name = name; + Display = display; + } + + /// Operation name: {provider}/{resource}/{operation}. + public string Name { get; } + /// The object that represents the operation. + public OperationDisplayProperties Display { get; } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/OperationDisplayProperties.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/OperationDisplayProperties.Serialization.cs new file mode 100644 index 0000000000000..5cacd1c503d54 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/OperationDisplayProperties.Serialization.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + public partial class OperationDisplayProperties + { + internal static OperationDisplayProperties DeserializeOperationDisplayProperties(JsonElement element) + { + Optional provider = default; + Optional resource = default; + Optional operation = default; + Optional description = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("provider")) + { + provider = property.Value.GetString(); + continue; + } + if (property.NameEquals("resource")) + { + resource = property.Value.GetString(); + continue; + } + if (property.NameEquals("operation")) + { + operation = property.Value.GetString(); + continue; + } + if (property.NameEquals("description")) + { + description = property.Value.GetString(); + continue; + } + } + return new OperationDisplayProperties(provider.Value, resource.Value, operation.Value, description.Value); + } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/OperationDisplayProperties.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/OperationDisplayProperties.cs new file mode 100644 index 0000000000000..582640518cc83 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/OperationDisplayProperties.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + /// The object that represents the operation. + public partial class OperationDisplayProperties + { + /// Initializes a new instance of OperationDisplayProperties. + internal OperationDisplayProperties() + { + } + + /// Initializes a new instance of OperationDisplayProperties. + /// The name of the provider. + /// The resource on which the operation is performed. + /// The operation that can be performed. + /// Operation description. + internal OperationDisplayProperties(string provider, string resource, string operation, string description) + { + Provider = provider; + Resource = resource; + Operation = operation; + Description = description; + } + + /// The name of the provider. + public string Provider { get; } + /// The resource on which the operation is performed. + public string Resource { get; } + /// The operation that can be performed. + public string Operation { get; } + /// Operation description. + public string Description { get; } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/OperationListResult.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/OperationListResult.Serialization.cs new file mode 100644 index 0000000000000..66adfcdb9b165 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/OperationListResult.Serialization.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + internal partial class OperationListResult + { + internal static OperationListResult DeserializeOperationListResult(JsonElement element) + { + Optional> value = default; + Optional nextLink = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(Operation.DeserializeOperation(item)); + } + value = array; + continue; + } + if (property.NameEquals("nextLink")) + { + nextLink = property.Value.GetString(); + continue; + } + } + return new OperationListResult(Optional.ToList(value), nextLink.Value); + } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/OperationListResult.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/OperationListResult.cs new file mode 100644 index 0000000000000..1327e98c2104e --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/OperationListResult.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + /// Describes the result of the request to list Microsoft.Management operations. + internal partial class OperationListResult + { + /// Initializes a new instance of OperationListResult. + internal OperationListResult() + { + Value = new ChangeTrackingList(); + } + + /// Initializes a new instance of OperationListResult. + /// List of operations supported by the Microsoft.Management resource provider. + /// URL to get the next set of operation list results if there are any. + internal OperationListResult(IReadOnlyList value, string nextLink) + { + Value = value; + NextLink = nextLink; + } + + /// List of operations supported by the Microsoft.Management resource provider. + public IReadOnlyList Value { get; } + /// URL to get the next set of operation list results if there are any. + public string NextLink { get; } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/OperationResults.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/OperationResults.cs new file mode 100644 index 0000000000000..abb36e0db53bb --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/OperationResults.cs @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + /// The results of an asynchronous operation. + internal partial class OperationResults + { + /// Initializes a new instance of OperationResults. + internal OperationResults() + { + } + + /// The fully qualified ID for the management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. + public string Id { get; } + /// The type of the resource. For example, Microsoft.Management/managementGroups. + public string Type { get; } + /// The name of the management group. For example, 00000000-0000-0000-0000-000000000000. + public string Name { get; } + /// The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000. + public string TenantId { get; } + /// The friendly name of the management group. + public string DisplayName { get; } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ParentGroupInfo.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ParentGroupInfo.Serialization.cs new file mode 100644 index 0000000000000..0331e7365e9a2 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ParentGroupInfo.Serialization.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + public partial class ParentGroupInfo + { + internal static ParentGroupInfo DeserializeParentGroupInfo(JsonElement element) + { + Optional id = default; + Optional name = default; + Optional displayName = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id")) + { + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("name")) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("displayName")) + { + displayName = property.Value.GetString(); + continue; + } + } + return new ParentGroupInfo(id.Value, name.Value, displayName.Value); + } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ParentGroupInfo.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ParentGroupInfo.cs new file mode 100644 index 0000000000000..ea3ebae39f11c --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ParentGroupInfo.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + /// (Optional) The ID of the parent management group. + public partial class ParentGroupInfo + { + /// Initializes a new instance of ParentGroupInfo. + internal ParentGroupInfo() + { + } + + /// Initializes a new instance of ParentGroupInfo. + /// The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. + /// The name of the parent management group. + /// The friendly name of the parent management group. + internal ParentGroupInfo(string id, string name, string displayName) + { + Id = id; + Name = name; + DisplayName = displayName; + } + + /// The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. + public string Id { get; } + /// The name of the parent management group. + public string Name { get; } + /// The friendly name of the parent management group. + public string DisplayName { get; } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/PatchManagementGroupRequest.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/PatchManagementGroupRequest.Serialization.cs new file mode 100644 index 0000000000000..fda117fe69a64 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/PatchManagementGroupRequest.Serialization.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + public partial class PatchManagementGroupRequest : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(DisplayName)) + { + if (DisplayName != null) + { + writer.WritePropertyName("displayName"); + writer.WriteStringValue(DisplayName); + } + else + { + writer.WriteNull("displayName"); + } + } + if (Optional.IsDefined(ParentGroupId)) + { + if (ParentGroupId != null) + { + writer.WritePropertyName("parentGroupId"); + writer.WriteStringValue(ParentGroupId); + } + else + { + writer.WriteNull("parentGroupId"); + } + } + writer.WriteEndObject(); + } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/PatchManagementGroupRequest.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/PatchManagementGroupRequest.cs new file mode 100644 index 0000000000000..22af956630bfb --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/PatchManagementGroupRequest.cs @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + /// Management group patch parameters. + public partial class PatchManagementGroupRequest + { + /// Initializes a new instance of PatchManagementGroupRequest. + public PatchManagementGroupRequest() + { + } + + /// The friendly name of the management group. + public string DisplayName { get; set; } + /// (Optional) The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. + public string ParentGroupId { get; set; } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Permissions.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Permissions.cs new file mode 100644 index 0000000000000..22579e3101845 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Permissions.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + /// The users specific permissions to this item. + public readonly partial struct Permissions : IEquatable + { + private readonly string _value; + + /// Determines if two values are the same. + /// is null. + public Permissions(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string NoaccessValue = "noaccess"; + private const string ViewValue = "view"; + private const string EditValue = "edit"; + private const string DeleteValue = "delete"; + + /// noaccess. + public static Permissions Noaccess { get; } = new Permissions(NoaccessValue); + /// view. + public static Permissions View { get; } = new Permissions(ViewValue); + /// edit. + public static Permissions Edit { get; } = new Permissions(EditValue); + /// delete. + public static Permissions Delete { get; } = new Permissions(DeleteValue); + /// Determines if two values are the same. + public static bool operator ==(Permissions left, Permissions right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(Permissions left, Permissions right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator Permissions(string value) => new Permissions(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is Permissions other && Equals(other); + /// + public bool Equals(Permissions other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Reason.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Reason.Serialization.cs new file mode 100644 index 0000000000000..bbbbd6dcc653b --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Reason.Serialization.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + internal static partial class ReasonExtensions + { + public static string ToSerialString(this Reason value) => value switch + { + Reason.Invalid => "Invalid", + Reason.AlreadyExists => "AlreadyExists", + _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown Reason value.") + }; + + public static Reason ToReason(this string value) + { + if (string.Equals(value, "Invalid", StringComparison.InvariantCultureIgnoreCase)) return Reason.Invalid; + if (string.Equals(value, "AlreadyExists", StringComparison.InvariantCultureIgnoreCase)) return Reason.AlreadyExists; + throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown Reason value."); + } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Reason.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Reason.cs new file mode 100644 index 0000000000000..9c0d112ae9da3 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Reason.cs @@ -0,0 +1,18 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + /// Required if nameAvailable == false. Invalid indicates the name provided does not match the resource provider's naming requirements (incorrect length, unsupported characters, etc.) AlreadyExists indicates that the name is already in use and is therefore unavailable. + public enum Reason + { + /// Invalid. + Invalid, + /// AlreadyExists. + AlreadyExists + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Status.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Status.Serialization.cs new file mode 100644 index 0000000000000..c79a8336fd5c7 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Status.Serialization.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + internal static partial class StatusExtensions + { + public static string ToSerialString(this Status value) => value switch + { + Status.NotStarted => "NotStarted", + Status.NotStartedButGroupsExist => "NotStartedButGroupsExist", + Status.Started => "Started", + Status.Failed => "Failed", + Status.Cancelled => "Cancelled", + Status.Completed => "Completed", + _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown Status value.") + }; + + public static Status ToStatus(this string value) + { + if (string.Equals(value, "NotStarted", StringComparison.InvariantCultureIgnoreCase)) return Status.NotStarted; + if (string.Equals(value, "NotStartedButGroupsExist", StringComparison.InvariantCultureIgnoreCase)) return Status.NotStartedButGroupsExist; + if (string.Equals(value, "Started", StringComparison.InvariantCultureIgnoreCase)) return Status.Started; + if (string.Equals(value, "Failed", StringComparison.InvariantCultureIgnoreCase)) return Status.Failed; + if (string.Equals(value, "Cancelled", StringComparison.InvariantCultureIgnoreCase)) return Status.Cancelled; + if (string.Equals(value, "Completed", StringComparison.InvariantCultureIgnoreCase)) return Status.Completed; + throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown Status value."); + } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Status.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Status.cs new file mode 100644 index 0000000000000..973a209f49fbd --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Status.cs @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + /// The status of the Tenant Backfill. + public enum Status + { + /// NotStarted. + NotStarted, + /// NotStartedButGroupsExist. + NotStartedButGroupsExist, + /// Started. + Started, + /// Failed. + Failed, + /// Cancelled. + Cancelled, + /// Completed. + Completed + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/SubscriptionUnderManagementGroup.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/SubscriptionUnderManagementGroup.Serialization.cs new file mode 100644 index 0000000000000..ff431556ea592 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/SubscriptionUnderManagementGroup.Serialization.cs @@ -0,0 +1,82 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + public partial class SubscriptionUnderManagementGroup + { + internal static SubscriptionUnderManagementGroup DeserializeSubscriptionUnderManagementGroup(JsonElement element) + { + Optional id = default; + Optional type = default; + Optional name = default; + Optional tenant = default; + Optional displayName = default; + Optional parent = default; + Optional state = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id")) + { + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("type")) + { + type = property.Value.GetString(); + continue; + } + if (property.NameEquals("name")) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("properties")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("tenant")) + { + tenant = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("displayName")) + { + displayName = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("parent")) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + parent = null; + continue; + } + parent = DescendantParentGroupInfo.DeserializeDescendantParentGroupInfo(property0.Value); + continue; + } + if (property0.NameEquals("state")) + { + state = property0.Value.GetString(); + continue; + } + } + continue; + } + } + return new SubscriptionUnderManagementGroup(id.Value, type.Value, name.Value, tenant.Value, displayName.Value, parent.Value, state.Value); + } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/SubscriptionUnderManagementGroup.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/SubscriptionUnderManagementGroup.cs new file mode 100644 index 0000000000000..dad19e2577b03 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/SubscriptionUnderManagementGroup.cs @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + /// The details of subscription under management group. + public partial class SubscriptionUnderManagementGroup + { + /// Initializes a new instance of SubscriptionUnderManagementGroup. + internal SubscriptionUnderManagementGroup() + { + } + + /// Initializes a new instance of SubscriptionUnderManagementGroup. + /// The fully qualified ID for the subscription. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000/subscriptions/0000000-0000-0000-0000-000000000001. + /// The type of the resource. For example, Microsoft.Management/managementGroups/subscriptions. + /// The stringified id of the subscription. For example, 00000000-0000-0000-0000-000000000000. + /// The AAD Tenant ID associated with the subscription. For example, 00000000-0000-0000-0000-000000000000. + /// The friendly name of the subscription. + /// The ID of the parent management group. + /// The state of the subscription. + internal SubscriptionUnderManagementGroup(string id, string type, string name, string tenant, string displayName, DescendantParentGroupInfo parent, string state) + { + Id = id; + Type = type; + Name = name; + Tenant = tenant; + DisplayName = displayName; + Parent = parent; + State = state; + } + + /// The fully qualified ID for the subscription. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000/subscriptions/0000000-0000-0000-0000-000000000001. + public string Id { get; } + /// The type of the resource. For example, Microsoft.Management/managementGroups/subscriptions. + public string Type { get; } + /// The stringified id of the subscription. For example, 00000000-0000-0000-0000-000000000000. + public string Name { get; } + /// The AAD Tenant ID associated with the subscription. For example, 00000000-0000-0000-0000-000000000000. + public string Tenant { get; } + /// The friendly name of the subscription. + public string DisplayName { get; } + /// The ID of the parent management group. + public DescendantParentGroupInfo Parent { get; } + /// The state of the subscription. + public string State { get; } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/TenantBackfillStatusResult.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/TenantBackfillStatusResult.Serialization.cs new file mode 100644 index 0000000000000..2072551dfb05f --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/TenantBackfillStatusResult.Serialization.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + public partial class TenantBackfillStatusResult + { + internal static TenantBackfillStatusResult DeserializeTenantBackfillStatusResult(JsonElement element) + { + Optional tenantId = default; + Optional status = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("tenantId")) + { + tenantId = property.Value.GetString(); + continue; + } + if (property.NameEquals("status")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + status = property.Value.GetString().ToStatus(); + continue; + } + } + return new TenantBackfillStatusResult(tenantId.Value, Optional.ToNullable(status)); + } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/TenantBackfillStatusResult.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/TenantBackfillStatusResult.cs new file mode 100644 index 0000000000000..355f2e1b48abf --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/TenantBackfillStatusResult.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.ManagementGroups.Models +{ + /// The tenant backfill status. + public partial class TenantBackfillStatusResult + { + /// Initializes a new instance of TenantBackfillStatusResult. + internal TenantBackfillStatusResult() + { + } + + /// Initializes a new instance of TenantBackfillStatusResult. + /// The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000. + /// The status of the Tenant Backfill. + internal TenantBackfillStatusResult(string tenantId, Status? status) + { + TenantId = tenantId; + Status = status; + } + + /// The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000. + public string TenantId { get; } + /// The status of the Tenant Backfill. + public Status? Status { get; } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Operations.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Operations.cs new file mode 100644 index 0000000000000..2ac0a29e6395f --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Operations.cs @@ -0,0 +1,116 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.ManagementGroups.Models; + +namespace Azure.ResourceManager.ManagementGroups +{ + /// The service client. + public partial class Operations + { + private readonly ClientDiagnostics _clientDiagnostics; + private readonly HttpPipeline _pipeline; + internal RestOperations RestClient { get; } + + /// Initializes a new instance of Operations for mocking. + protected Operations() + { + } + + /// Initializes a new instance of Operations. + /// The handler for diagnostic messaging in the client. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// server parameter. + /// Api Version. + internal Operations(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint = null, string apiVersion = "2021-04-01") + { + RestClient = new RestOperations(clientDiagnostics, pipeline, endpoint, apiVersion); + _clientDiagnostics = clientDiagnostics; + _pipeline = pipeline; + } + + /// Lists all of the available Management REST API operations. + /// The cancellation token to use. + public virtual AsyncPageable ListAsync(CancellationToken cancellationToken = default) + { + async Task> FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("Operations.List"); + scope.Start(); + try + { + var response = await RestClient.ListAsync(cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + async Task> NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("Operations.List"); + scope.Start(); + try + { + var response = await RestClient.ListNextPageAsync(nextLink, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, NextPageFunc); + } + + /// Lists all of the available Management REST API operations. + /// The cancellation token to use. + public virtual Pageable List(CancellationToken cancellationToken = default) + { + Page FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("Operations.List"); + scope.Start(); + try + { + var response = RestClient.List(cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + Page NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("Operations.List"); + scope.Start(); + try + { + var response = RestClient.ListNextPage(nextLink, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateEnumerable(FirstPageFunc, NextPageFunc); + } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/RestOperations.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/RestOperations.cs new file mode 100644 index 0000000000000..6b49e99d9e911 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/RestOperations.cs @@ -0,0 +1,167 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.ManagementGroups.Models; + +namespace Azure.ResourceManager.ManagementGroups +{ + internal partial class RestOperations + { + private Uri endpoint; + private string apiVersion; + private ClientDiagnostics _clientDiagnostics; + private HttpPipeline _pipeline; + + /// Initializes a new instance of RestOperations. + /// The handler for diagnostic messaging in the client. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// server parameter. + /// Api Version. + /// is null. + public RestOperations(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint = null, string apiVersion = "2021-04-01") + { + endpoint ??= new Uri("https://management.azure.com"); + if (apiVersion == null) + { + throw new ArgumentNullException(nameof(apiVersion)); + } + + this.endpoint = endpoint; + this.apiVersion = apiVersion; + _clientDiagnostics = clientDiagnostics; + _pipeline = pipeline; + } + + internal HttpMessage CreateListRequest() + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/providers/Microsoft.Management/operations", false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + return message; + } + + /// Lists all of the available Management REST API operations. + /// The cancellation token to use. + public async Task> ListAsync(CancellationToken cancellationToken = default) + { + using var message = CreateListRequest(); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + OperationListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = OperationListResult.DeserializeOperationListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Lists all of the available Management REST API operations. + /// The cancellation token to use. + public Response List(CancellationToken cancellationToken = default) + { + using var message = CreateListRequest(); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + OperationListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = OperationListResult.DeserializeOperationListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListNextPageRequest(string nextLink) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + return message; + } + + /// Lists all of the available Management REST API operations. + /// The URL to the next page of results. + /// The cancellation token to use. + /// is null. + public async Task> ListNextPageAsync(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateListNextPageRequest(nextLink); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + OperationListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = OperationListResult.DeserializeOperationListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Lists all of the available Management REST API operations. + /// The URL to the next page of results. + /// The cancellation token to use. + /// is null. + public Response ListNextPage(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateListNextPageRequest(nextLink); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + OperationListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = OperationListResult.DeserializeOperationListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Properties/AssemblyInfo.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Properties/AssemblyInfo.cs new file mode 100644 index 0000000000000..e42035fa7852f --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Properties/AssemblyInfo.cs @@ -0,0 +1,8 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System.Runtime.CompilerServices; + +[assembly: Azure.Core.AzureResourceProviderNamespace("Microsoft.Management")] + +[assembly: InternalsVisibleTo("Azure.ResourceManager.ManagementGroups.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100d15ddcb29688295338af4b7686603fe614abd555e09efba8fb88ee09e1f7b1ccaeed2e8f823fa9eef3fdd60217fc012ea67d2479751a0b8c087a4185541b851bd8b16f8d91b840e51b1cb0ba6fe647997e57429265e85ef62d565db50a69ae1647d54d7bd855e4db3d8a91510e5bcbd0edfbbecaa20a7bd9ae74593daa7b11b4")] diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/autorest.md b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/autorest.md new file mode 100644 index 0000000000000..62d8ee6b0f3c4 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/autorest.md @@ -0,0 +1,11 @@ +# Generated code configuration + +Run `dotnet build /t:GenerateCode` to generate code. + +``` yaml + +azure-arm: true +require: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/e5bdbb00cf31e34dfaffe74432b80a110f86e06a/specification/managementgroups/resource-manager/readme.md + + +``` \ No newline at end of file diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/tests/Azure.ResourceManager.ManagementGroups.Tests.csproj b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/tests/Azure.ResourceManager.ManagementGroups.Tests.csproj new file mode 100644 index 0000000000000..8c7e99b51dfb7 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/tests/Azure.ResourceManager.ManagementGroups.Tests.csproj @@ -0,0 +1,6 @@ + + + + + + diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/tests/ManagementManagementTestEnvironment.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/tests/ManagementManagementTestEnvironment.cs new file mode 100644 index 0000000000000..23db61359add4 --- /dev/null +++ b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/tests/ManagementManagementTestEnvironment.cs @@ -0,0 +1,11 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using Azure.Core.TestFramework; + +namespace Azure.ResourceManager.ManagementGroups.Tests +{ + public class ManagementManagementTestEnvironment : TestEnvironment + { + } +} \ No newline at end of file diff --git a/sdk/managementgroups/ci.yml b/sdk/managementgroups/ci.yml new file mode 100644 index 0000000000000..45893f4d58e1f --- /dev/null +++ b/sdk/managementgroups/ci.yml @@ -0,0 +1,31 @@ +# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. + +trigger: + branches: + include: + - main + - hotfix/* + - release/* + paths: + include: + - sdk/management/ + +pr: + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/management/ + +extends: + template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml + parameters: + ServiceDirectory: management + ArtifactName: packages + Artifacts: + - name: Azure.ResourceManager.ManagementGroups + safeName: AzureResourceManagerManagementGroups diff --git a/sdk/managementgroups/test-resources.json b/sdk/managementgroups/test-resources.json new file mode 100644 index 0000000000000..a837d5a0f2b84 --- /dev/null +++ b/sdk/managementgroups/test-resources.json @@ -0,0 +1,6 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [ + ] +} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroupsCreateOrUpdateHeaders.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroupsCreateOrUpdateHeaders.cs new file mode 100644 index 0000000000000..e98f4d29647b5 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroupsCreateOrUpdateHeaders.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using Azure; +using Azure.Core; + +namespace Azure.ResourceManager.Core +{ + internal partial class ManagementGroupsCreateOrUpdateHeaders + { + private readonly Response _response; + public ManagementGroupsCreateOrUpdateHeaders(Response response) + { + _response = response; + } + /// + /// URL for determining when an operation has completed. Send a GET request to the URL in Location header. + /// The URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state. + /// + /// For more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers. + /// + public string Location => _response.Headers.TryGetValue("Location", out string value) ? value : null; + /// + /// URL for checking the ongoing status of the operation. + /// To get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value. + /// + /// For more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations. + /// + public string AzureAsyncOperation => _response.Headers.TryGetValue("Azure-AsyncOperation", out string value) ? value : null; + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroupsDeleteHeaders.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroupsDeleteHeaders.cs new file mode 100644 index 0000000000000..d6812de061289 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroupsDeleteHeaders.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using Azure; +using Azure.Core; + +namespace Azure.ResourceManager.Core +{ + internal partial class ManagementGroupsDeleteHeaders + { + private readonly Response _response; + public ManagementGroupsDeleteHeaders(Response response) + { + _response = response; + } + /// + /// URL for determining when an operation has completed. Send a GET request to the URL in Location header. + /// The URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state. + /// + /// For more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers. + /// + public string Location => _response.Headers.TryGetValue("Location", out string value) ? value : null; + /// + /// URL for checking the ongoing status of the operation. + /// To get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value. + /// + /// For more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations. + /// + public string AzureAsyncOperation => _response.Headers.TryGetValue("Azure-AsyncOperation", out string value) ? value : null; + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroupsRestOperations.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroupsRestOperations.cs new file mode 100644 index 0000000000000..55254f644191c --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroupsRestOperations.cs @@ -0,0 +1,767 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.ResourceManager.Core +{ + internal partial class ManagementGroupsRestOperations + { + private Uri endpoint; + private string apiVersion; + private ClientDiagnostics _clientDiagnostics; + private HttpPipeline _pipeline; + + /// Initializes a new instance of ManagementGroupsRestOperations. + /// The handler for diagnostic messaging in the client. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// server parameter. + /// Api Version. + /// is null. + public ManagementGroupsRestOperations(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint = null, string apiVersion = "2021-04-01") + { + endpoint ??= new Uri("https://management.azure.com"); + if (apiVersion == null) + { + throw new ArgumentNullException(nameof(apiVersion)); + } + + this.endpoint = endpoint; + this.apiVersion = apiVersion; + _clientDiagnostics = clientDiagnostics; + _pipeline = pipeline; + } + + internal HttpMessage CreateListRequest(string cacheControl, string skiptoken) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/providers/Microsoft.Management/managementGroups", false); + uri.AppendQuery("api-version", apiVersion, true); + if (skiptoken != null) + { + uri.AppendQuery("$skiptoken", skiptoken, true); + } + request.Uri = uri; + if (cacheControl != null) + { + request.Headers.Add("Cache-Control", cacheControl); + } + request.Headers.Add("Accept", "application/json"); + return message; + } + + /// + /// List management groups for the authenticated user. + /// . + /// + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// + /// Page continuation token is only used if a previous operation returned a partial result. + /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. + /// . + /// + /// The cancellation token to use. + public async Task> ListAsync(string cacheControl = null, string skiptoken = null, CancellationToken cancellationToken = default) + { + using var message = CreateListRequest(cacheControl, skiptoken); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ManagementGroupListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = ManagementGroupListResult.DeserializeManagementGroupListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// + /// List management groups for the authenticated user. + /// . + /// + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// + /// Page continuation token is only used if a previous operation returned a partial result. + /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. + /// . + /// + /// The cancellation token to use. + public Response List(string cacheControl = null, string skiptoken = null, CancellationToken cancellationToken = default) + { + using var message = CreateListRequest(cacheControl, skiptoken); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ManagementGroupListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = ManagementGroupListResult.DeserializeManagementGroupListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetRequest(string groupId, Enum0? expand, bool? recurse, string filter, string cacheControl) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); + uri.AppendPath(groupId, true); + uri.AppendQuery("api-version", apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand.Value.ToString(), true); + } + if (recurse != null) + { + uri.AppendQuery("$recurse", recurse.Value, true); + } + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + request.Uri = uri; + if (cacheControl != null) + { + request.Headers.Add("Cache-Control", cacheControl); + } + request.Headers.Add("Accept", "application/json"); + return message; + } + + /// + /// Get the details of the management group. + /// . + /// + /// Management Group ID. + /// The $expand=children query string parameter allows clients to request inclusion of children in the response payload. $expand=path includes the path from the root group to the current group. $expand=ancestors includes the ancestor Ids of the current group. + /// The $recurse=true query string parameter allows clients to request inclusion of entire hierarchy in the response payload. Note that $expand=children must be passed up if $recurse is set to true. + /// A filter which allows the exclusion of subscriptions from results (i.e. '$filter=children.childType ne Subscription'). + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + /// is null. + public async Task> GetAsync(string groupId, Enum0? expand = null, bool? recurse = null, string filter = null, string cacheControl = null, CancellationToken cancellationToken = default) + { + if (groupId == null) + { + throw new ArgumentNullException(nameof(groupId)); + } + + using var message = CreateGetRequest(groupId, expand, recurse, filter, cacheControl); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ManagementGroup value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = ManagementGroup.DeserializeManagementGroup(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// + /// Get the details of the management group. + /// . + /// + /// Management Group ID. + /// The $expand=children query string parameter allows clients to request inclusion of children in the response payload. $expand=path includes the path from the root group to the current group. $expand=ancestors includes the ancestor Ids of the current group. + /// The $recurse=true query string parameter allows clients to request inclusion of entire hierarchy in the response payload. Note that $expand=children must be passed up if $recurse is set to true. + /// A filter which allows the exclusion of subscriptions from results (i.e. '$filter=children.childType ne Subscription'). + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + /// is null. + public Response Get(string groupId, Enum0? expand = null, bool? recurse = null, string filter = null, string cacheControl = null, CancellationToken cancellationToken = default) + { + if (groupId == null) + { + throw new ArgumentNullException(nameof(groupId)); + } + + using var message = CreateGetRequest(groupId, expand, recurse, filter, cacheControl); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ManagementGroup value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = ManagementGroup.DeserializeManagementGroup(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateCreateOrUpdateRequest(string groupId, CreateManagementGroupRequest createManagementGroupRequest, string cacheControl) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Put; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); + uri.AppendPath(groupId, true); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + if (cacheControl != null) + { + request.Headers.Add("Cache-Control", cacheControl); + } + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(createManagementGroupRequest); + request.Content = content; + return message; + } + + /// + /// Create or update a management group. + /// If a management group is already created and a subsequent create request is issued with different properties, the management group properties will be updated. + /// . + /// + /// Management Group ID. + /// Management group creation parameters. + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + /// or is null. + public async Task> CreateOrUpdateAsync(string groupId, CreateManagementGroupRequest createManagementGroupRequest, string cacheControl = null, CancellationToken cancellationToken = default) + { + if (groupId == null) + { + throw new ArgumentNullException(nameof(groupId)); + } + if (createManagementGroupRequest == null) + { + throw new ArgumentNullException(nameof(createManagementGroupRequest)); + } + + using var message = CreateCreateOrUpdateRequest(groupId, createManagementGroupRequest, cacheControl); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + var headers = new ManagementGroupsCreateOrUpdateHeaders(message.Response); + switch (message.Response.Status) + { + case 200: + case 202: + return ResponseWithHeaders.FromValue(headers, message.Response); + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// + /// Create or update a management group. + /// If a management group is already created and a subsequent create request is issued with different properties, the management group properties will be updated. + /// . + /// + /// Management Group ID. + /// Management group creation parameters. + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + /// or is null. + public ResponseWithHeaders CreateOrUpdate(string groupId, CreateManagementGroupRequest createManagementGroupRequest, string cacheControl = null, CancellationToken cancellationToken = default) + { + if (groupId == null) + { + throw new ArgumentNullException(nameof(groupId)); + } + if (createManagementGroupRequest == null) + { + throw new ArgumentNullException(nameof(createManagementGroupRequest)); + } + + using var message = CreateCreateOrUpdateRequest(groupId, createManagementGroupRequest, cacheControl); + _pipeline.Send(message, cancellationToken); + var headers = new ManagementGroupsCreateOrUpdateHeaders(message.Response); + switch (message.Response.Status) + { + case 200: + case 202: + return ResponseWithHeaders.FromValue(headers, message.Response); + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateUpdateRequest(string groupId, PatchManagementGroupRequest patchGroupRequest, string cacheControl) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Patch; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); + uri.AppendPath(groupId, true); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + if (cacheControl != null) + { + request.Headers.Add("Cache-Control", cacheControl); + } + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(patchGroupRequest); + request.Content = content; + return message; + } + + /// + /// Update a management group. + /// . + /// + /// Management Group ID. + /// Management group patch parameters. + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + /// or is null. + public async Task> UpdateAsync(string groupId, PatchManagementGroupRequest patchGroupRequest, string cacheControl = null, CancellationToken cancellationToken = default) + { + if (groupId == null) + { + throw new ArgumentNullException(nameof(groupId)); + } + if (patchGroupRequest == null) + { + throw new ArgumentNullException(nameof(patchGroupRequest)); + } + + using var message = CreateUpdateRequest(groupId, patchGroupRequest, cacheControl); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ManagementGroup value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = ManagementGroup.DeserializeManagementGroup(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// + /// Update a management group. + /// . + /// + /// Management Group ID. + /// Management group patch parameters. + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + /// or is null. + public Response Update(string groupId, PatchManagementGroupRequest patchGroupRequest, string cacheControl = null, CancellationToken cancellationToken = default) + { + if (groupId == null) + { + throw new ArgumentNullException(nameof(groupId)); + } + if (patchGroupRequest == null) + { + throw new ArgumentNullException(nameof(patchGroupRequest)); + } + + using var message = CreateUpdateRequest(groupId, patchGroupRequest, cacheControl); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ManagementGroup value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = ManagementGroup.DeserializeManagementGroup(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateDeleteRequest(string groupId, string cacheControl) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); + uri.AppendPath(groupId, true); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + if (cacheControl != null) + { + request.Headers.Add("Cache-Control", cacheControl); + } + request.Headers.Add("Accept", "application/json"); + return message; + } + + /// + /// Delete management group. + /// If a management group contains child resources, the request will fail. + /// . + /// + /// Management Group ID. + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + /// is null. + public async Task> DeleteAsync(string groupId, string cacheControl = null, CancellationToken cancellationToken = default) + { + if (groupId == null) + { + throw new ArgumentNullException(nameof(groupId)); + } + + using var message = CreateDeleteRequest(groupId, cacheControl); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + var headers = new ManagementGroupsDeleteHeaders(message.Response); + switch (message.Response.Status) + { + case 202: + case 204: + return ResponseWithHeaders.FromValue(headers, message.Response); + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// + /// Delete management group. + /// If a management group contains child resources, the request will fail. + /// . + /// + /// Management Group ID. + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + /// is null. + public ResponseWithHeaders Delete(string groupId, string cacheControl = null, CancellationToken cancellationToken = default) + { + if (groupId == null) + { + throw new ArgumentNullException(nameof(groupId)); + } + + using var message = CreateDeleteRequest(groupId, cacheControl); + _pipeline.Send(message, cancellationToken); + var headers = new ManagementGroupsDeleteHeaders(message.Response); + switch (message.Response.Status) + { + case 202: + case 204: + return ResponseWithHeaders.FromValue(headers, message.Response); + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetDescendantsRequest(string groupId, string skiptoken, int? top) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); + uri.AppendPath(groupId, true); + uri.AppendPath("/descendants", false); + uri.AppendQuery("api-version", apiVersion, true); + if (skiptoken != null) + { + uri.AppendQuery("$skiptoken", skiptoken, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + return message; + } + + /// + /// List all entities that descend from a management group. + /// . + /// + /// Management Group ID. + /// + /// Page continuation token is only used if a previous operation returned a partial result. + /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. + /// . + /// + /// Number of elements to return when retrieving results. Passing this in will override $skipToken. + /// The cancellation token to use. + /// is null. + public async Task> GetDescendantsAsync(string groupId, string skiptoken = null, int? top = null, CancellationToken cancellationToken = default) + { + if (groupId == null) + { + throw new ArgumentNullException(nameof(groupId)); + } + + using var message = CreateGetDescendantsRequest(groupId, skiptoken, top); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + DescendantListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = DescendantListResult.DeserializeDescendantListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// + /// List all entities that descend from a management group. + /// . + /// + /// Management Group ID. + /// + /// Page continuation token is only used if a previous operation returned a partial result. + /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. + /// . + /// + /// Number of elements to return when retrieving results. Passing this in will override $skipToken. + /// The cancellation token to use. + /// is null. + public Response GetDescendants(string groupId, string skiptoken = null, int? top = null, CancellationToken cancellationToken = default) + { + if (groupId == null) + { + throw new ArgumentNullException(nameof(groupId)); + } + + using var message = CreateGetDescendantsRequest(groupId, skiptoken, top); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + DescendantListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = DescendantListResult.DeserializeDescendantListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListNextPageRequest(string nextLink, string cacheControl, string skiptoken) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + if (cacheControl != null) + { + request.Headers.Add("Cache-Control", cacheControl); + } + request.Headers.Add("Accept", "application/json"); + return message; + } + + /// + /// List management groups for the authenticated user. + /// . + /// + /// The URL to the next page of results. + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// + /// Page continuation token is only used if a previous operation returned a partial result. + /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. + /// . + /// + /// The cancellation token to use. + /// is null. + public async Task> ListNextPageAsync(string nextLink, string cacheControl = null, string skiptoken = null, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateListNextPageRequest(nextLink, cacheControl, skiptoken); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ManagementGroupListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = ManagementGroupListResult.DeserializeManagementGroupListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// + /// List management groups for the authenticated user. + /// . + /// + /// The URL to the next page of results. + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// + /// Page continuation token is only used if a previous operation returned a partial result. + /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. + /// . + /// + /// The cancellation token to use. + /// is null. + public Response ListNextPage(string nextLink, string cacheControl = null, string skiptoken = null, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateListNextPageRequest(nextLink, cacheControl, skiptoken); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ManagementGroupListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = ManagementGroupListResult.DeserializeManagementGroupListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetDescendantsNextPageRequest(string nextLink, string groupId, string skiptoken, int? top) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + return message; + } + + /// + /// List all entities that descend from a management group. + /// . + /// + /// The URL to the next page of results. + /// Management Group ID. + /// + /// Page continuation token is only used if a previous operation returned a partial result. + /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. + /// . + /// + /// Number of elements to return when retrieving results. Passing this in will override $skipToken. + /// The cancellation token to use. + /// or is null. + public async Task> GetDescendantsNextPageAsync(string nextLink, string groupId, string skiptoken = null, int? top = null, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + if (groupId == null) + { + throw new ArgumentNullException(nameof(groupId)); + } + + using var message = CreateGetDescendantsNextPageRequest(nextLink, groupId, skiptoken, top); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + DescendantListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = DescendantListResult.DeserializeDescendantListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// + /// List all entities that descend from a management group. + /// . + /// + /// The URL to the next page of results. + /// Management Group ID. + /// + /// Page continuation token is only used if a previous operation returned a partial result. + /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. + /// . + /// + /// Number of elements to return when retrieving results. Passing this in will override $skipToken. + /// The cancellation token to use. + /// or is null. + public Response GetDescendantsNextPage(string nextLink, string groupId, string skiptoken = null, int? top = null, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + if (groupId == null) + { + throw new ArgumentNullException(nameof(groupId)); + } + + using var message = CreateGetDescendantsNextPageRequest(nextLink, groupId, skiptoken, top); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + DescendantListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = DescendantListResult.DeserializeDescendantListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/CreateManagementGroupChildInfo.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/CreateManagementGroupChildInfo.Serialization.cs new file mode 100644 index 0000000000000..9a32c0c90f7c6 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/CreateManagementGroupChildInfo.Serialization.cs @@ -0,0 +1,13 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.Core +{ + public partial class CreateManagementGroupChildInfo + { + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/CreateManagementGroupChildInfo.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/CreateManagementGroupChildInfo.cs new file mode 100644 index 0000000000000..9137ba746f321 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/CreateManagementGroupChildInfo.cs @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.Core +{ + /// The child information of a management group used during creation. + public partial class CreateManagementGroupChildInfo + { + /// Initializes a new instance of CreateManagementGroupChildInfo. + internal CreateManagementGroupChildInfo() + { + Children = new ChangeTrackingList(); + } + + /// The fully qualified resource type which includes provider namespace (e.g. Microsoft.Management/managementGroups). + public ManagementGroupChildType? Type { get; } + /// The fully qualified ID for the child resource (management group or subscription). For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. + public string Id { get; } + /// The name of the child entity. + public string Name { get; } + /// The friendly name of the child resource. + public string DisplayName { get; } + /// The list of children. + public IReadOnlyList Children { get; } + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/CreateManagementGroupDetails.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/CreateManagementGroupDetails.Serialization.cs new file mode 100644 index 0000000000000..6cca8f0db3a1b --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/CreateManagementGroupDetails.Serialization.cs @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Core +{ + public partial class CreateManagementGroupDetails : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Parent)) + { + writer.WritePropertyName("parent"); + writer.WriteObjectValue(Parent); + } + writer.WriteEndObject(); + } + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/CreateManagementGroupDetails.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/CreateManagementGroupDetails.cs new file mode 100644 index 0000000000000..65c9dcd645677 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/CreateManagementGroupDetails.cs @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.Core +{ + /// The details of a management group used during creation. + public partial class CreateManagementGroupDetails + { + /// Initializes a new instance of CreateManagementGroupDetails. + public CreateManagementGroupDetails() + { + } + + /// The version number of the object. + public int? Version { get; } + /// The date and time when this object was last updated. + public DateTimeOffset? UpdatedTime { get; } + /// The identity of the principal or process that updated the object. + public string UpdatedBy { get; } + /// (Optional) The ID of the parent management group used during creation. + public CreateParentGroupInfo Parent { get; set; } + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/CreateManagementGroupRequest.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/CreateManagementGroupRequest.Serialization.cs new file mode 100644 index 0000000000000..832bf7b9a7b21 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/CreateManagementGroupRequest.Serialization.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Core +{ + public partial class CreateManagementGroupRequest : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Name)) + { + writer.WritePropertyName("name"); + writer.WriteStringValue(Name); + } + writer.WritePropertyName("properties"); + writer.WriteStartObject(); + if (Optional.IsDefined(DisplayName)) + { + if (DisplayName != null) + { + writer.WritePropertyName("displayName"); + writer.WriteStringValue(DisplayName); + } + else + { + writer.WriteNull("displayName"); + } + } + if (Optional.IsDefined(Details)) + { + writer.WritePropertyName("details"); + writer.WriteObjectValue(Details); + } + writer.WriteEndObject(); + writer.WriteEndObject(); + } + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/CreateManagementGroupRequest.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/CreateManagementGroupRequest.cs new file mode 100644 index 0000000000000..857a46843b9a6 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/CreateManagementGroupRequest.cs @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.Core +{ + /// Management group creation parameters. + public partial class CreateManagementGroupRequest + { + /// Initializes a new instance of CreateManagementGroupRequest. + public CreateManagementGroupRequest() + { + Children = new ChangeTrackingList(); + } + + /// The fully qualified ID for the management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. + public string Id { get; } + /// The type of the resource. For example, Microsoft.Management/managementGroups. + public string Type { get; } + /// The name of the management group. For example, 00000000-0000-0000-0000-000000000000. + public string Name { get; set; } + /// The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000. + public string TenantId { get; } + /// The friendly name of the management group. If no value is passed then this field will be set to the groupId. + public string DisplayName { get; set; } + /// The details of a management group used during creation. + public CreateManagementGroupDetails Details { get; set; } + /// The list of children. + public IReadOnlyList Children { get; } + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/CreateParentGroupInfo.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/CreateParentGroupInfo.Serialization.cs new file mode 100644 index 0000000000000..36d23cd45dc78 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/CreateParentGroupInfo.Serialization.cs @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Core +{ + public partial class CreateParentGroupInfo : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"); + writer.WriteStringValue(Id); + } + writer.WriteEndObject(); + } + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/CreateParentGroupInfo.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/CreateParentGroupInfo.cs new file mode 100644 index 0000000000000..c7dcb0c579f23 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/CreateParentGroupInfo.cs @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.Core +{ + /// (Optional) The ID of the parent management group used during creation. + public partial class CreateParentGroupInfo + { + /// Initializes a new instance of CreateParentGroupInfo. + public CreateParentGroupInfo() + { + } + + /// The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. + public string Id { get; set; } + /// The name of the parent management group. + public string Name { get; } + /// The friendly name of the parent management group. + public string DisplayName { get; } + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/DescendantInfo.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/DescendantInfo.Serialization.cs new file mode 100644 index 0000000000000..000f610aaf0ce --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/DescendantInfo.Serialization.cs @@ -0,0 +1,85 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Core +{ + public partial class DescendantInfo + { + internal static DescendantInfo DeserializeDescendantInfo(JsonElement element) + { + Optional id = default; + Optional type = default; + Optional name = default; + Optional displayName = default; + Optional parent = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + id = null; + continue; + } + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("type")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + type = null; + continue; + } + type = property.Value.GetString(); + continue; + } + if (property.NameEquals("name")) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("properties")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("displayName")) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + displayName = null; + continue; + } + displayName = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("parent")) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + parent = null; + continue; + } + parent = DescendantParentGroupInfo.DeserializeDescendantParentGroupInfo(property0.Value); + continue; + } + } + continue; + } + } + return new DescendantInfo(id.Value, type.Value, name.Value, displayName.Value, parent.Value); + } + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/DescendantInfo.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/DescendantInfo.cs new file mode 100644 index 0000000000000..8ae823e742322 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/DescendantInfo.cs @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.Core +{ + /// The descendant. + public partial class DescendantInfo + { + /// Initializes a new instance of DescendantInfo. + internal DescendantInfo() + { + } + + /// Initializes a new instance of DescendantInfo. + /// The fully qualified ID for the descendant. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000 or /subscriptions/0000000-0000-0000-0000-000000000000. + /// The type of the resource. For example, Microsoft.Management/managementGroups or /subscriptions. + /// The name of the descendant. For example, 00000000-0000-0000-0000-000000000000. + /// The friendly name of the management group. + /// The ID of the parent management group. + internal DescendantInfo(string id, string type, string name, string displayName, DescendantParentGroupInfo parent) + { + Id = id; + Type = type; + Name = name; + DisplayName = displayName; + Parent = parent; + } + + /// The fully qualified ID for the descendant. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000 or /subscriptions/0000000-0000-0000-0000-000000000000. + public string Id { get; } + /// The type of the resource. For example, Microsoft.Management/managementGroups or /subscriptions. + public string Type { get; } + /// The name of the descendant. For example, 00000000-0000-0000-0000-000000000000. + public string Name { get; } + /// The friendly name of the management group. + public string DisplayName { get; } + /// The ID of the parent management group. + public DescendantParentGroupInfo Parent { get; } + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/DescendantListResult.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/DescendantListResult.Serialization.cs new file mode 100644 index 0000000000000..ffb7162ef82fe --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/DescendantListResult.Serialization.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Core +{ + internal partial class DescendantListResult + { + internal static DescendantListResult DeserializeDescendantListResult(JsonElement element) + { + Optional> value = default; + Optional nextLink = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(DescendantInfo.DeserializeDescendantInfo(item)); + } + value = array; + continue; + } + if (property.NameEquals("nextLink")) + { + nextLink = property.Value.GetString(); + continue; + } + } + return new DescendantListResult(Optional.ToList(value), nextLink.Value); + } + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/DescendantListResult.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/DescendantListResult.cs new file mode 100644 index 0000000000000..44c379a22d799 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/DescendantListResult.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.Core +{ + /// Describes the result of the request to view descendants. + internal partial class DescendantListResult + { + /// Initializes a new instance of DescendantListResult. + internal DescendantListResult() + { + Value = new ChangeTrackingList(); + } + + /// Initializes a new instance of DescendantListResult. + /// The list of descendants. + /// The URL to use for getting the next set of results. + internal DescendantListResult(IReadOnlyList value, string nextLink) + { + Value = value; + NextLink = nextLink; + } + + /// The list of descendants. + public IReadOnlyList Value { get; } + /// The URL to use for getting the next set of results. + public string NextLink { get; } + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/DescendantParentGroupInfo.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/DescendantParentGroupInfo.Serialization.cs new file mode 100644 index 0000000000000..6ae7017149a03 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/DescendantParentGroupInfo.Serialization.cs @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Core +{ + public partial class DescendantParentGroupInfo + { + internal static DescendantParentGroupInfo DeserializeDescendantParentGroupInfo(JsonElement element) + { + Optional id = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id")) + { + id = property.Value.GetString(); + continue; + } + } + return new DescendantParentGroupInfo(id.Value); + } + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/DescendantParentGroupInfo.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/DescendantParentGroupInfo.cs new file mode 100644 index 0000000000000..c8ce78a6edb84 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/DescendantParentGroupInfo.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.Core +{ + /// The ID of the parent management group. + public partial class DescendantParentGroupInfo + { + /// Initializes a new instance of DescendantParentGroupInfo. + internal DescendantParentGroupInfo() + { + } + + /// Initializes a new instance of DescendantParentGroupInfo. + /// The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. + internal DescendantParentGroupInfo(string id) + { + Id = id; + } + + /// The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. + public string Id { get; } + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/Enum0.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/Enum0.cs new file mode 100644 index 0000000000000..5c907cfd61b72 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/Enum0.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Core +{ + /// The Enum0. + public readonly partial struct Enum0 : IEquatable + { + private readonly string _value; + + /// Determines if two values are the same. + /// is null. + public Enum0(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string ChildrenValue = "children"; + private const string PathValue = "path"; + private const string AncestorsValue = "ancestors"; + + /// children. + public static Enum0 Children { get; } = new Enum0(ChildrenValue); + /// path. + public static Enum0 Path { get; } = new Enum0(PathValue); + /// ancestors. + public static Enum0 Ancestors { get; } = new Enum0(AncestorsValue); + /// Determines if two values are the same. + public static bool operator ==(Enum0 left, Enum0 right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(Enum0 left, Enum0 right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator Enum0(string value) => new Enum0(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is Enum0 other && Equals(other); + /// + public bool Equals(Enum0 other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroup.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroup.Serialization.cs new file mode 100644 index 0000000000000..10bf050ada11d --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroup.Serialization.cs @@ -0,0 +1,93 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Core +{ + public partial class ManagementGroup + { + internal static ManagementGroup DeserializeManagementGroup(JsonElement element) + { + Optional id = default; + Optional type = default; + Optional name = default; + Optional tenantId = default; + Optional displayName = default; + Optional details = default; + Optional> children = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id")) + { + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("type")) + { + type = property.Value.GetString(); + continue; + } + if (property.NameEquals("name")) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("properties")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("tenantId")) + { + tenantId = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("displayName")) + { + displayName = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("details")) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + details = ManagementGroupDetails.DeserializeManagementGroupDetails(property0.Value); + continue; + } + if (property0.NameEquals("children")) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + children = null; + continue; + } + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(ManagementGroupChildInfo.DeserializeManagementGroupChildInfo(item)); + } + children = array; + continue; + } + } + continue; + } + } + return new ManagementGroup(id.Value, type.Value, name.Value, tenantId.Value, displayName.Value, details.Value, Optional.ToList(children)); + } + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroup.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroup.cs new file mode 100644 index 0000000000000..1f342d180acc5 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroup.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.Core +{ + /// The management group details. + public partial class ManagementGroup + { + /// Initializes a new instance of ManagementGroup. + internal ManagementGroup() + { + Children = new ChangeTrackingList(); + } + + /// Initializes a new instance of ManagementGroup. + /// The fully qualified ID for the management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. + /// The type of the resource. For example, Microsoft.Management/managementGroups. + /// The name of the management group. For example, 00000000-0000-0000-0000-000000000000. + /// The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000. + /// The friendly name of the management group. + /// The details of a management group. + /// The list of children. + internal ManagementGroup(string id, string type, string name, string tenantId, string displayName, ManagementGroupDetails details, IReadOnlyList children) + { + Id = id; + Type = type; + Name = name; + TenantId = tenantId; + DisplayName = displayName; + Details = details; + Children = children; + } + + /// The fully qualified ID for the management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. + public string Id { get; } + /// The type of the resource. For example, Microsoft.Management/managementGroups. + public string Type { get; } + /// The name of the management group. For example, 00000000-0000-0000-0000-000000000000. + public string Name { get; } + /// The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000. + public string TenantId { get; } + /// The friendly name of the management group. + public string DisplayName { get; } + /// The details of a management group. + public ManagementGroupDetails Details { get; } + /// The list of children. + public IReadOnlyList Children { get; } + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupChildInfo.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupChildInfo.Serialization.cs new file mode 100644 index 0000000000000..024dbba18e947 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupChildInfo.Serialization.cs @@ -0,0 +1,69 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Core +{ + public partial class ManagementGroupChildInfo + { + internal static ManagementGroupChildInfo DeserializeManagementGroupChildInfo(JsonElement element) + { + Optional type = default; + Optional id = default; + Optional name = default; + Optional displayName = default; + Optional> children = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("type")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + type = new ManagementGroupChildType(property.Value.GetString()); + continue; + } + if (property.NameEquals("id")) + { + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("name")) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("displayName")) + { + displayName = property.Value.GetString(); + continue; + } + if (property.NameEquals("children")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(DeserializeManagementGroupChildInfo(item)); + } + children = array; + continue; + } + } + return new ManagementGroupChildInfo(Optional.ToNullable(type), id.Value, name.Value, displayName.Value, Optional.ToList(children)); + } + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupChildInfo.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupChildInfo.cs new file mode 100644 index 0000000000000..07c6db20ac175 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupChildInfo.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.Core +{ + /// The child information of a management group. + public partial class ManagementGroupChildInfo + { + /// Initializes a new instance of ManagementGroupChildInfo. + internal ManagementGroupChildInfo() + { + Children = new ChangeTrackingList(); + } + + /// Initializes a new instance of ManagementGroupChildInfo. + /// The fully qualified resource type which includes provider namespace (e.g. Microsoft.Management/managementGroups). + /// The fully qualified ID for the child resource (management group or subscription). For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. + /// The name of the child entity. + /// The friendly name of the child resource. + /// The list of children. + internal ManagementGroupChildInfo(ManagementGroupChildType? type, string id, string name, string displayName, IReadOnlyList children) + { + Type = type; + Id = id; + Name = name; + DisplayName = displayName; + Children = children; + } + + /// The fully qualified resource type which includes provider namespace (e.g. Microsoft.Management/managementGroups). + public ManagementGroupChildType? Type { get; } + /// The fully qualified ID for the child resource (management group or subscription). For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. + public string Id { get; } + /// The name of the child entity. + public string Name { get; } + /// The friendly name of the child resource. + public string DisplayName { get; } + /// The list of children. + public IReadOnlyList Children { get; } + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupChildType.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupChildType.cs new file mode 100644 index 0000000000000..61c7b3fc0660a --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupChildType.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Core +{ + /// The type of child resource. + public readonly partial struct ManagementGroupChildType : IEquatable + { + private readonly string _value; + + /// Determines if two values are the same. + /// is null. + public ManagementGroupChildType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string MicrosoftManagementManagementGroupsValue = "Microsoft.Management/managementGroups"; + private const string SubscriptionsValue = "/subscriptions"; + + /// Microsoft.Management/managementGroups. + public static ManagementGroupChildType MicrosoftManagementManagementGroups { get; } = new ManagementGroupChildType(MicrosoftManagementManagementGroupsValue); + /// /subscriptions. + public static ManagementGroupChildType Subscriptions { get; } = new ManagementGroupChildType(SubscriptionsValue); + /// Determines if two values are the same. + public static bool operator ==(ManagementGroupChildType left, ManagementGroupChildType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ManagementGroupChildType left, ManagementGroupChildType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator ManagementGroupChildType(string value) => new ManagementGroupChildType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ManagementGroupChildType other && Equals(other); + /// + public bool Equals(ManagementGroupChildType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupDetails.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupDetails.Serialization.cs new file mode 100644 index 0000000000000..024524a75fe54 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupDetails.Serialization.cs @@ -0,0 +1,112 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Core +{ + public partial class ManagementGroupDetails + { + internal static ManagementGroupDetails DeserializeManagementGroupDetails(JsonElement element) + { + Optional version = default; + Optional updatedTime = default; + Optional updatedBy = default; + Optional parent = default; + Optional> path = default; + Optional> managementGroupAncestors = default; + Optional> managementGroupAncestorsChain = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("version")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + version = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("updatedTime")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + updatedTime = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("updatedBy")) + { + updatedBy = property.Value.GetString(); + continue; + } + if (property.NameEquals("parent")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + parent = ParentGroupInfo.DeserializeParentGroupInfo(property.Value); + continue; + } + if (property.NameEquals("path")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + path = null; + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(ManagementGroupPathElement.DeserializeManagementGroupPathElement(item)); + } + path = array; + continue; + } + if (property.NameEquals("managementGroupAncestors")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + managementGroupAncestors = null; + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + managementGroupAncestors = array; + continue; + } + if (property.NameEquals("managementGroupAncestorsChain")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + managementGroupAncestorsChain = null; + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(ManagementGroupPathElement.DeserializeManagementGroupPathElement(item)); + } + managementGroupAncestorsChain = array; + continue; + } + } + return new ManagementGroupDetails(Optional.ToNullable(version), Optional.ToNullable(updatedTime), updatedBy.Value, parent.Value, Optional.ToList(path), Optional.ToList(managementGroupAncestors), Optional.ToList(managementGroupAncestorsChain)); + } + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupDetails.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupDetails.cs new file mode 100644 index 0000000000000..784ee71d967b4 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupDetails.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.Core +{ + /// The details of a management group. + public partial class ManagementGroupDetails + { + /// Initializes a new instance of ManagementGroupDetails. + internal ManagementGroupDetails() + { + Path = new ChangeTrackingList(); + ManagementGroupAncestors = new ChangeTrackingList(); + ManagementGroupAncestorsChain = new ChangeTrackingList(); + } + + /// Initializes a new instance of ManagementGroupDetails. + /// The version number of the object. + /// The date and time when this object was last updated. + /// The identity of the principal or process that updated the object. + /// (Optional) The ID of the parent management group. + /// The path from the root to the current group. + /// The ancestors of the management group. + /// The ancestors of the management group displayed in reversed order, from immediate parent to the root. + internal ManagementGroupDetails(int? version, DateTimeOffset? updatedTime, string updatedBy, ParentGroupInfo parent, IReadOnlyList path, IReadOnlyList managementGroupAncestors, IReadOnlyList managementGroupAncestorsChain) + { + Version = version; + UpdatedTime = updatedTime; + UpdatedBy = updatedBy; + Parent = parent; + Path = path; + ManagementGroupAncestors = managementGroupAncestors; + ManagementGroupAncestorsChain = managementGroupAncestorsChain; + } + + /// The version number of the object. + public int? Version { get; } + /// The date and time when this object was last updated. + public DateTimeOffset? UpdatedTime { get; } + /// The identity of the principal or process that updated the object. + public string UpdatedBy { get; } + /// (Optional) The ID of the parent management group. + public ParentGroupInfo Parent { get; } + /// The path from the root to the current group. + public IReadOnlyList Path { get; } + /// The ancestors of the management group. + public IReadOnlyList ManagementGroupAncestors { get; } + /// The ancestors of the management group displayed in reversed order, from immediate parent to the root. + public IReadOnlyList ManagementGroupAncestorsChain { get; } + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupInfo.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupInfo.Serialization.cs new file mode 100644 index 0000000000000..ef1003cd4489f --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupInfo.Serialization.cs @@ -0,0 +1,65 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Core +{ + public partial class ManagementGroupInfo + { + internal static ManagementGroupInfo DeserializeManagementGroupInfo(JsonElement element) + { + Optional id = default; + Optional type = default; + Optional name = default; + Optional tenantId = default; + Optional displayName = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id")) + { + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("type")) + { + type = property.Value.GetString(); + continue; + } + if (property.NameEquals("name")) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("properties")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("tenantId")) + { + tenantId = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("displayName")) + { + displayName = property0.Value.GetString(); + continue; + } + } + continue; + } + } + return new ManagementGroupInfo(id.Value, type.Value, name.Value, tenantId.Value, displayName.Value); + } + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupInfo.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupInfo.cs new file mode 100644 index 0000000000000..a6eb6cf168c06 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupInfo.cs @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.Core +{ + /// The management group resource. + public partial class ManagementGroupInfo + { + /// Initializes a new instance of ManagementGroupInfo. + internal ManagementGroupInfo() + { + } + + /// Initializes a new instance of ManagementGroupInfo. + /// The fully qualified ID for the management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. + /// The type of the resource. For example, Microsoft.Management/managementGroups. + /// The name of the management group. For example, 00000000-0000-0000-0000-000000000000. + /// The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000. + /// The friendly name of the management group. + internal ManagementGroupInfo(string id, string type, string name, string tenantId, string displayName) + { + Id = id; + Type = type; + Name = name; + TenantId = tenantId; + DisplayName = displayName; + } + + /// The fully qualified ID for the management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. + public string Id { get; } + /// The type of the resource. For example, Microsoft.Management/managementGroups. + public string Type { get; } + /// The name of the management group. For example, 00000000-0000-0000-0000-000000000000. + public string Name { get; } + /// The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000. + public string TenantId { get; } + /// The friendly name of the management group. + public string DisplayName { get; } + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupListResult.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupListResult.Serialization.cs new file mode 100644 index 0000000000000..aa6e87a31f7e8 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupListResult.Serialization.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Core +{ + internal partial class ManagementGroupListResult + { + internal static ManagementGroupListResult DeserializeManagementGroupListResult(JsonElement element) + { + Optional> value = default; + Optional nextLink = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(ManagementGroupInfo.DeserializeManagementGroupInfo(item)); + } + value = array; + continue; + } + if (property.NameEquals("nextLink")) + { + nextLink = property.Value.GetString(); + continue; + } + } + return new ManagementGroupListResult(Optional.ToList(value), nextLink.Value); + } + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupListResult.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupListResult.cs new file mode 100644 index 0000000000000..a56f8cf3a1b53 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupListResult.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.Core +{ + /// Describes the result of the request to list management groups. + internal partial class ManagementGroupListResult + { + /// Initializes a new instance of ManagementGroupListResult. + internal ManagementGroupListResult() + { + Value = new ChangeTrackingList(); + } + + /// Initializes a new instance of ManagementGroupListResult. + /// The list of management groups. + /// The URL to use for getting the next set of results. + internal ManagementGroupListResult(IReadOnlyList value, string nextLink) + { + Value = value; + NextLink = nextLink; + } + + /// The list of management groups. + public IReadOnlyList Value { get; } + /// The URL to use for getting the next set of results. + public string NextLink { get; } + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupPathElement.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupPathElement.Serialization.cs new file mode 100644 index 0000000000000..d716138cbf9f2 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupPathElement.Serialization.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Core +{ + public partial class ManagementGroupPathElement + { + internal static ManagementGroupPathElement DeserializeManagementGroupPathElement(JsonElement element) + { + Optional name = default; + Optional displayName = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("name")) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("displayName")) + { + displayName = property.Value.GetString(); + continue; + } + } + return new ManagementGroupPathElement(name.Value, displayName.Value); + } + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupPathElement.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupPathElement.cs new file mode 100644 index 0000000000000..2f84b5f19da6f --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupPathElement.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.Core +{ + /// A path element of a management group ancestors. + public partial class ManagementGroupPathElement + { + /// Initializes a new instance of ManagementGroupPathElement. + internal ManagementGroupPathElement() + { + } + + /// Initializes a new instance of ManagementGroupPathElement. + /// The name of the group. + /// The friendly name of the group. + internal ManagementGroupPathElement(string name, string displayName) + { + Name = name; + DisplayName = displayName; + } + + /// The name of the group. + public string Name { get; } + /// The friendly name of the group. + public string DisplayName { get; } + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ParentGroupInfo.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ParentGroupInfo.Serialization.cs new file mode 100644 index 0000000000000..a62d1a48eb1d9 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ParentGroupInfo.Serialization.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Core +{ + public partial class ParentGroupInfo + { + internal static ParentGroupInfo DeserializeParentGroupInfo(JsonElement element) + { + Optional id = default; + Optional name = default; + Optional displayName = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id")) + { + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("name")) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("displayName")) + { + displayName = property.Value.GetString(); + continue; + } + } + return new ParentGroupInfo(id.Value, name.Value, displayName.Value); + } + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ParentGroupInfo.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ParentGroupInfo.cs new file mode 100644 index 0000000000000..6f6d334010214 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ParentGroupInfo.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.Core +{ + /// (Optional) The ID of the parent management group. + public partial class ParentGroupInfo + { + /// Initializes a new instance of ParentGroupInfo. + internal ParentGroupInfo() + { + } + + /// Initializes a new instance of ParentGroupInfo. + /// The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. + /// The name of the parent management group. + /// The friendly name of the parent management group. + internal ParentGroupInfo(string id, string name, string displayName) + { + Id = id; + Name = name; + DisplayName = displayName; + } + + /// The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. + public string Id { get; } + /// The name of the parent management group. + public string Name { get; } + /// The friendly name of the parent management group. + public string DisplayName { get; } + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/PatchManagementGroupRequest.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/PatchManagementGroupRequest.Serialization.cs new file mode 100644 index 0000000000000..1f94133ed1b92 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/PatchManagementGroupRequest.Serialization.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Core +{ + public partial class PatchManagementGroupRequest : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(DisplayName)) + { + if (DisplayName != null) + { + writer.WritePropertyName("displayName"); + writer.WriteStringValue(DisplayName); + } + else + { + writer.WriteNull("displayName"); + } + } + if (Optional.IsDefined(ParentGroupId)) + { + if (ParentGroupId != null) + { + writer.WritePropertyName("parentGroupId"); + writer.WriteStringValue(ParentGroupId); + } + else + { + writer.WriteNull("parentGroupId"); + } + } + writer.WriteEndObject(); + } + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/PatchManagementGroupRequest.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/PatchManagementGroupRequest.cs new file mode 100644 index 0000000000000..e6e37aa03334d --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/PatchManagementGroupRequest.cs @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.Core +{ + /// Management group patch parameters. + public partial class PatchManagementGroupRequest + { + /// Initializes a new instance of PatchManagementGroupRequest. + public PatchManagementGroupRequest() + { + } + + /// The friendly name of the management group. + public string DisplayName { get; set; } + /// (Optional) The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. + public string ParentGroupId { get; set; } + } +} From 893c2bbb2608f2e7441313dcd43f13aaf684ec15 Mon Sep 17 00:00:00 2001 From: m-nash Date: Sun, 11 Jul 2021 20:41:10 -0700 Subject: [PATCH 2/5] Add mgmt group to core --- .../Redesign/ManagementGroupCleanupPolicy.cs | 37 + .../Redesign/ManagementRecordedTestBase.cs | 36 +- .../src/ArmClient.cs | 16 +- .../Models/ManagementGroupData.cs | 15 + .../ManagementGroup/ManagementGroup.cs | 34 + .../ManagementGroupContainer.cs | 434 +++ .../ManagementGroupOperations.cs | 339 ++ ...ManagementGroupsCreateOrUpdateOperation.cs | 77 + .../ManagementGroupsDeleteOperation.cs | 55 + .../ManagementGroupsRestOperations.cs | 97 +- ...ckNameAvailabilityRequest.Serialization.cs | 31 + .../Models/CheckNameAvailabilityRequest.cs | 24 + ...eckNameAvailabilityResult.Serialization.cs | 51 + .../Models/CheckNameAvailabilityResult.cs | 36 + ...s => ManagementGroupData.Serialization.cs} | 6 +- ...agementGroup.cs => ManagementGroupData.cs} | 16 +- .../Models/Reason.Serialization.cs | 28 + .../ManagementGroup/Models/Reason.cs | 18 + .../src/Generated/Models/FeatureData.cs | 12 +- .../src/Generated/TenantOperations.cs | 19 + .../Azure.ResourceManager.Core.Tests.csproj | 1 + .../Scenario/ManagementGroupContainerTests.cs | 89 + .../ManagementGroupOperationsTests.cs | 79 + .../tests/Scenario/ResourceManagerTestBase.cs | 10 + .../CreateOrUpdate.json | 1012 ++++++ .../CreateOrUpdateAsync.json | 1207 +++++++ .../DoesExist.json | 141 + .../DoesExistAsync.json | 141 + .../ManagementGroupContainerTests/Get.json | 105 + .../GetAsync.json | 105 + .../ManagementGroupContainerTests/List.json | 100 + .../ListAsync.json | 100 + .../ManagementGroupContainerTests(False).json | 2974 +++++++++++++++++ ...agementGroupContainerTests(True)Async.json | 1102 ++++++ .../StartCreateOrUpdate.json | 1103 ++++++ .../StartCreateOrUpdateAsync.json | 913 +++++ .../ManagementGroupContainerTests/TryGet.json | 105 + .../TryGetAsync.json | 105 + .../Delete.json | 2141 ++++++++++++ .../DeleteAsync.json | 1244 +++++++ .../ManagementGroupOperationsTests/Get.json | 104 + .../GetAsync.json | 104 + .../GetDescendants.json | 140 + .../GetDescendantsAsync.json | 140 + ...ManagementGroupOperationsTests(False).json | 1024 ++++++ ...gementGroupOperationsTests(True)Async.json | 1063 ++++++ .../StartDelete.json | 1545 +++++++++ .../StartDeleteAsync.json | 1354 ++++++++ .../Update.json | 1068 ++++++ .../UpdateAsync.json | 1029 ++++++ 50 files changed, 21682 insertions(+), 47 deletions(-) create mode 100644 common/ManagementTestShared/Redesign/ManagementGroupCleanupPolicy.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/src/Custom/ManagementGroup/Models/ManagementGroupData.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroup.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroupContainer.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroupOperations.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroupsCreateOrUpdateOperation.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroupsDeleteOperation.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/CheckNameAvailabilityRequest.Serialization.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/CheckNameAvailabilityRequest.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/CheckNameAvailabilityResult.Serialization.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/CheckNameAvailabilityResult.cs rename sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/{ManagementGroup.Serialization.cs => ManagementGroupData.Serialization.cs} (92%) rename sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/{ManagementGroup.cs => ManagementGroupData.cs} (70%) create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/Reason.Serialization.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/Reason.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/ManagementGroupContainerTests.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/ManagementGroupOperationsTests.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/CreateOrUpdate.json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/CreateOrUpdateAsync.json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/DoesExist.json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/DoesExistAsync.json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/Get.json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/GetAsync.json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/List.json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/ListAsync.json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/ManagementGroupContainerTests(False).json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/ManagementGroupContainerTests(True)Async.json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/StartCreateOrUpdate.json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/StartCreateOrUpdateAsync.json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/TryGet.json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/TryGetAsync.json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupOperationsTests/Delete.json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupOperationsTests/DeleteAsync.json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupOperationsTests/Get.json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupOperationsTests/GetAsync.json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupOperationsTests/GetDescendants.json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupOperationsTests/GetDescendantsAsync.json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupOperationsTests/ManagementGroupOperationsTests(False).json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupOperationsTests/ManagementGroupOperationsTests(True)Async.json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupOperationsTests/StartDelete.json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupOperationsTests/StartDeleteAsync.json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupOperationsTests/Update.json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupOperationsTests/UpdateAsync.json diff --git a/common/ManagementTestShared/Redesign/ManagementGroupCleanupPolicy.cs b/common/ManagementTestShared/Redesign/ManagementGroupCleanupPolicy.cs new file mode 100644 index 0000000000000..0b4d0524056c7 --- /dev/null +++ b/common/ManagementTestShared/Redesign/ManagementGroupCleanupPolicy.cs @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using Azure.Core; +using Azure.Core.Pipeline; +using System.Collections.Generic; +using System.Text.RegularExpressions; + +namespace Azure.ResourceManager.TestFramework +{ + public class ManagementGroupCleanupPolicy : HttpPipelineSynchronousPolicy + { + private readonly object _listLock = new object(); + private Regex _mgmtGroupPattern = new Regex(@"(/providers/Microsoft\.Management/managementGroups/[^?/]+)\?api-version"); + private readonly IList _mgmtGroupCreated = new List(); + + public IList ManagementGroupsCreated + { + get { return _mgmtGroupCreated; } + } + + public override void OnSendingRequest(HttpMessage message) + { + if (message.Request.Method == RequestMethod.Put) + { + var match = _mgmtGroupPattern.Match(message.Request.Uri.ToString()); + if (match.Success) + { + lock (_listLock) + { + _mgmtGroupCreated.Add(match.Groups[1].Value); + } + } + } + } + } +} diff --git a/common/ManagementTestShared/Redesign/ManagementRecordedTestBase.cs b/common/ManagementTestShared/Redesign/ManagementRecordedTestBase.cs index bb21aec950959..bf2af29c6e96b 100644 --- a/common/ManagementTestShared/Redesign/ManagementRecordedTestBase.cs +++ b/common/ManagementTestShared/Redesign/ManagementRecordedTestBase.cs @@ -17,9 +17,13 @@ namespace Azure.ResourceManager.TestFramework public abstract class ManagementRecordedTestBase : RecordedTestBase where TEnvironment: TestEnvironment, new() { - protected ResourceGroupCleanupPolicy CleanupPolicy = new ResourceGroupCleanupPolicy(); + protected ResourceGroupCleanupPolicy ResourceGroupCleanupPolicy = new ResourceGroupCleanupPolicy(); - protected ResourceGroupCleanupPolicy OneTimeCleanupPolicy = new ResourceGroupCleanupPolicy(); + protected ResourceGroupCleanupPolicy OneTimeResourceGroupCleanupPolicy = new ResourceGroupCleanupPolicy(); + + protected ManagementGroupCleanupPolicy ManagementGroupCleanupPolicy = new ManagementGroupCleanupPolicy(); + + protected ManagementGroupCleanupPolicy OneTimeManagementGroupCleanupPolicy = new ManagementGroupCleanupPolicy(); protected ArmClient GlobalClient { get; private set; } @@ -70,7 +74,8 @@ private ArmClient GetCleanupClient() protected ArmClient GetArmClient(ArmClientOptions clientOptions = default) { var options = InstrumentClientOptions(clientOptions ?? new ArmClientOptions()); - options.AddPolicy(CleanupPolicy, HttpPipelinePosition.PerCall); + options.AddPolicy(ResourceGroupCleanupPolicy, HttpPipelinePosition.PerCall); + options.AddPolicy(ManagementGroupCleanupPolicy, HttpPipelinePosition.PerCall); return CreateClient( TestEnvironment.SubscriptionId, @@ -89,7 +94,7 @@ protected void CleanupResourceGroups() { if (Mode != RecordedTestMode.Playback) { - Parallel.ForEach(CleanupPolicy.ResourceGroupsCreated, resourceGroup => + Parallel.ForEach(ResourceGroupCleanupPolicy.ResourceGroupsCreated, resourceGroup => { try { @@ -98,7 +103,19 @@ protected void CleanupResourceGroups() } catch (RequestFailedException e) when (e.Status == 404) { - //we assume the test case cleaned up it up if it no longer exists. + //we assume the test case cleaned it up if it no longer exists. + } + }); + + Parallel.ForEach(ManagementGroupCleanupPolicy.ManagementGroupsCreated, mgmtGroupId => + { + try + { + _cleanupClient.GetManagementGroupOperations(mgmtGroupId).StartDelete(); + } + catch (RequestFailedException e) when (e.Status == 404 || e.Status == 403) + { + //we assume the test case cleaned it up if it no longer exists. } }); } @@ -138,7 +155,8 @@ public void OneTimeSetUp() StartSessionRecording(); var options = InstrumentClientOptions(new ArmClientOptions(), SessionRecording); - options.AddPolicy(OneTimeCleanupPolicy, HttpPipelinePosition.PerCall); + options.AddPolicy(OneTimeResourceGroupCleanupPolicy, HttpPipelinePosition.PerCall); + options.AddPolicy(OneTimeManagementGroupCleanupPolicy, HttpPipelinePosition.PerCall); GlobalClient = CreateClient( SessionEnvironment.SubscriptionId, @@ -174,11 +192,15 @@ public void OneTimeCleanupResourceGroups() { if (Mode != RecordedTestMode.Playback) { - Parallel.ForEach(OneTimeCleanupPolicy.ResourceGroupsCreated, resourceGroup => + Parallel.ForEach(OneTimeResourceGroupCleanupPolicy.ResourceGroupsCreated, resourceGroup => { var sub = _cleanupClient.GetSubscriptions().TryGet(SessionEnvironment.SubscriptionId); sub?.GetResourceGroups().Get(resourceGroup).Value.StartDelete(); }); + Parallel.ForEach(OneTimeManagementGroupCleanupPolicy.ManagementGroupsCreated, mgmtGroupId => + { + _cleanupClient.GetManagementGroupOperations(mgmtGroupId).StartDelete(); + }); } if (!(GlobalClient is null)) diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/ArmClient.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/ArmClient.cs index 173720872fcd0..3c0c9c4098141 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/ArmClient.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/ArmClient.cs @@ -4,7 +4,6 @@ using System; using System.Collections.Generic; using System.ComponentModel; -using System.Globalization; using System.Linq; using System.Threading; using System.Threading.Tasks; @@ -243,5 +242,18 @@ public virtual RestApiContainer GetRestApis(string nameSpace) /// The cancellation token to use. /// is null. public virtual async Task> GetProviderAsync(string resourceProviderNamespace, string expand = null, CancellationToken cancellationToken = default) => await _tenant.GetProviderAsync(resourceProviderNamespace, expand, cancellationToken).ConfigureAwait(false); -} + + /// + /// Gets the management group container for this tenant. + /// + /// A container of the management groups. + public virtual ManagementGroupContainer GetManagementGroups() => _tenant.GetManagementGroups(); + + /// + /// Gets the managmeent group operations object associated with the id. + /// + /// The id of the management group operations. + /// A client to perform operations on the management group. + public virtual ManagementGroupOperations GetManagementGroupOperations(string id) => _tenant.GetManagementGroupOperations(id); + } } diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Custom/ManagementGroup/Models/ManagementGroupData.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Custom/ManagementGroup/Models/ManagementGroupData.cs new file mode 100644 index 0000000000000..af67d6ebe79b4 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Custom/ManagementGroup/Models/ManagementGroupData.cs @@ -0,0 +1,15 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System.Collections.Generic; + +namespace Azure.ResourceManager.Core +{ + public partial class ManagementGroupData + { + internal ManagementGroupData(ManagementGroupInfo managementGroupInfo) + : this(managementGroupInfo.Id, managementGroupInfo.Type, managementGroupInfo.Name, managementGroupInfo.TenantId, managementGroupInfo.DisplayName, null, new List()) + { + } + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroup.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroup.cs new file mode 100644 index 0000000000000..cf2afe2ae6ecc --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroup.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +namespace Azure.ResourceManager.Core +{ + /// + /// A class representing a ManagementGroup along with the instance operations that can be performed on it. + /// + public class ManagementGroup : ManagementGroupOperations + { + /// + /// Initializes a new instance of the class for mocking. + /// + protected ManagementGroup() + { + } + + /// + /// Initializes a new instance of the class. + /// + /// The operations to copy the client options from. + /// The ManagementGroupData to use in these operations. + internal ManagementGroup(OperationsBase operations, ManagementGroupData resource) + : base(operations, resource.Id) + { + Data = resource; + } + + /// + /// Gets the data representing this ManagementGroup. + /// + public virtual ManagementGroupData Data { get; } + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroupContainer.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroupContainer.cs new file mode 100644 index 0000000000000..f5ac55207c00a --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroupContainer.cs @@ -0,0 +1,434 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.ResourceManager.Core +{ + /// + /// A class representing collection of ManagementGroupContainer and their operations over a ManagementGroup. + /// + public class ManagementGroupContainer : ResourceContainerBase + { + private readonly ClientDiagnostics _clientDiagnostics; + private ManagementGroupsRestOperations _restClient; + + /// + /// Initializes a new instance of the class for mocking. + /// + protected ManagementGroupContainer() + { + } + + /// + /// Initializes a new instance of the class. + /// + /// The parent tenant. + internal ManagementGroupContainer(TenantOperations tenant) + : base(tenant) + { + _clientDiagnostics = new ClientDiagnostics(ClientOptions); + _restClient = new ManagementGroupsRestOperations(_clientDiagnostics, Pipeline, BaseUri); + } + + /// + protected override ResourceType ValidResourceType => TenantOperations.ResourceType; + + /// + /// List management groups for the authenticated user. + /// . + /// + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// + /// Page continuation token is only used if a previous operation returned a partial result. + /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. + /// . + /// + /// The cancellation token to use. + public virtual Pageable List(string cacheControl = null, string skiptoken = null, CancellationToken cancellationToken = default) + { + Page FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ManagementGroupContainer.List"); + scope.Start(); + try + { + var response = _restClient.List(cacheControl, skiptoken, cancellationToken); + return Page.FromValues(response.Value.Value.Select(d => new ManagementGroup(this, new ManagementGroupData(d))), response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + Page NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ManagementGroupContainer.List"); + scope.Start(); + try + { + var response = _restClient.ListNextPage(nextLink, cacheControl, skiptoken, cancellationToken); + return Page.FromValues(response.Value.Value.Select(d => new ManagementGroup(this, new ManagementGroupData(d))), response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateEnumerable(FirstPageFunc, NextPageFunc); + } + + /// + /// List management groups for the authenticated user. + /// . + /// + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// + /// Page continuation token is only used if a previous operation returned a partial result. + /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. + /// . + /// + /// The cancellation token to use. + public virtual AsyncPageable ListAsync(string cacheControl = null, string skiptoken = null, CancellationToken cancellationToken = default) + { + async Task> FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ManagementGroupContainer.List"); + scope.Start(); + try + { + var response = await _restClient.ListAsync(cacheControl, skiptoken, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value.Select(d => new ManagementGroup(this, new ManagementGroupData(d))), response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + async Task> NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ManagementGroupContainer.List"); + scope.Start(); + try + { + var response = await _restClient.ListNextPageAsync(nextLink, cacheControl, skiptoken, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value.Select(d => new ManagementGroup(this, new ManagementGroupData(d))), response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, NextPageFunc); + } + + /// + /// Get the details of the management group. + /// . + /// + /// Management Group ID. + /// The $expand=children query string parameter allows clients to request inclusion of children in the response payload. $expand=path includes the path from the root group to the current group. $expand=ancestors includes the ancestor Ids of the current group. + /// The $recurse=true query string parameter allows clients to request inclusion of entire hierarchy in the response payload. Note that $expand=children must be passed up if $recurse is set to true. + /// A filter which allows the exclusion of subscriptions from results (i.e. '$filter=children.childType ne Subscription'). + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + public virtual Response Get(string groupId, Enum0? expand = null, bool? recurse = null, string filter = null, string cacheControl = null, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ManagementGroupContainer.Get"); + scope.Start(); + try + { + var response = _restClient.Get(groupId, expand, recurse, filter, cacheControl, cancellationToken); + return Response.FromValue(new ManagementGroup(this, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get the details of the management group. + /// . + /// + /// Management Group ID. + /// The $expand=children query string parameter allows clients to request inclusion of children in the response payload. $expand=path includes the path from the root group to the current group. $expand=ancestors includes the ancestor Ids of the current group. + /// The $recurse=true query string parameter allows clients to request inclusion of entire hierarchy in the response payload. Note that $expand=children must be passed up if $recurse is set to true. + /// A filter which allows the exclusion of subscriptions from results (i.e. '$filter=children.childType ne Subscription'). + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + public async virtual Task> GetAsync(string groupId, Enum0? expand = null, bool? recurse = null, string filter = null, string cacheControl = null, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ManagementGroupContainer.Get"); + scope.Start(); + try + { + var response = await _restClient.GetAsync(groupId, expand, recurse, filter, cacheControl, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new ManagementGroup(this, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Tries to get the details of the management group. + /// . + /// + /// Management Group ID. + /// The $expand=children query string parameter allows clients to request inclusion of children in the response payload. $expand=path includes the path from the root group to the current group. $expand=ancestors includes the ancestor Ids of the current group. + /// The $recurse=true query string parameter allows clients to request inclusion of entire hierarchy in the response payload. Note that $expand=children must be passed up if $recurse is set to true. + /// A filter which allows the exclusion of subscriptions from results (i.e. '$filter=children.childType ne Subscription'). + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + public virtual ManagementGroup TryGet(string groupId, Enum0? expand = null, bool? recurse = null, string filter = null, string cacheControl = null, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ManagementGroupContainer.TryGet"); + scope.Start(); + try + { + return Get(groupId, expand, recurse, filter, cacheControl, cancellationToken).Value; + } + catch (RequestFailedException e) when (e.Status == 404) + { + return null; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Tries to get the details of the management group. + /// . + /// + /// Management Group ID. + /// The $expand=children query string parameter allows clients to request inclusion of children in the response payload. $expand=path includes the path from the root group to the current group. $expand=ancestors includes the ancestor Ids of the current group. + /// The $recurse=true query string parameter allows clients to request inclusion of entire hierarchy in the response payload. Note that $expand=children must be passed up if $recurse is set to true. + /// A filter which allows the exclusion of subscriptions from results (i.e. '$filter=children.childType ne Subscription'). + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + public async virtual Task TryGetAsync(string groupId, Enum0? expand = null, bool? recurse = null, string filter = null, string cacheControl = null, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ManagementGroupContainer.TryGet"); + scope.Start(); + try + { + return await GetAsync(groupId, expand, recurse, filter, cacheControl, cancellationToken).ConfigureAwait(false); + } + catch (RequestFailedException e) when (e.Status == 404) + { + return null; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Checks to see if the management group exists. + /// . + /// + /// Management Group ID. + /// The $expand=children query string parameter allows clients to request inclusion of children in the response payload. $expand=path includes the path from the root group to the current group. $expand=ancestors includes the ancestor Ids of the current group. + /// The $recurse=true query string parameter allows clients to request inclusion of entire hierarchy in the response payload. Note that $expand=children must be passed up if $recurse is set to true. + /// A filter which allows the exclusion of subscriptions from results (i.e. '$filter=children.childType ne Subscription'). + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + public virtual bool DoesExist(string groupId, Enum0? expand = null, bool? recurse = null, string filter = null, string cacheControl = null, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ManagementGroupContainer.DoesExist"); + scope.Start(); + try + { + return TryGet(groupId, expand, recurse, filter, cacheControl, cancellationToken) != null; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Checks to see if the management group exists. + /// . + /// + /// Management Group ID. + /// The $expand=children query string parameter allows clients to request inclusion of children in the response payload. $expand=path includes the path from the root group to the current group. $expand=ancestors includes the ancestor Ids of the current group. + /// The $recurse=true query string parameter allows clients to request inclusion of entire hierarchy in the response payload. Note that $expand=children must be passed up if $recurse is set to true. + /// A filter which allows the exclusion of subscriptions from results (i.e. '$filter=children.childType ne Subscription'). + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + public async virtual Task DoesExistAsync(string groupId, Enum0? expand = null, bool? recurse = null, string filter = null, string cacheControl = null, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ManagementGroupContainer.DoesExist"); + scope.Start(); + try + { + return await TryGetAsync(groupId, expand, recurse, filter, cacheControl, cancellationToken).ConfigureAwait(false) != null; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or update a management group. + /// If a management group is already created and a subsequent create request is issued with different properties, the management group properties will be updated. + /// . + /// + /// Management Group ID. + /// Management group creation parameters. + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + /// or is null. + public virtual Response CreateOrUpdate(string groupId, CreateManagementGroupRequest createManagementGroupRequest, string cacheControl = null, CancellationToken cancellationToken = default) + { + if (groupId == null) + { + throw new ArgumentNullException(nameof(groupId)); + } + if (createManagementGroupRequest == null) + { + throw new ArgumentNullException(nameof(createManagementGroupRequest)); + } + + using var scope = _clientDiagnostics.CreateScope("ManagementGroupContainer.CreateOrUpdate"); + scope.Start(); + try + { + var operation = StartCreateOrUpdate(groupId, createManagementGroupRequest, cacheControl, cancellationToken); + return operation.WaitForCompletion(cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or update a management group. + /// If a management group is already created and a subsequent create request is issued with different properties, the management group properties will be updated. + /// . + /// + /// Management Group ID. + /// Management group creation parameters. + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + /// or is null. + public async virtual Task> CreateOrUpdateAsync(string groupId, CreateManagementGroupRequest createManagementGroupRequest, string cacheControl = null, CancellationToken cancellationToken = default) + { + if (groupId == null) + { + throw new ArgumentNullException(nameof(groupId)); + } + if (createManagementGroupRequest == null) + { + throw new ArgumentNullException(nameof(createManagementGroupRequest)); + } + + using var scope = _clientDiagnostics.CreateScope("ManagementGroupContainer.CreateOrUpdate"); + scope.Start(); + try + { + var operation = await StartCreateOrUpdateAsync(groupId, createManagementGroupRequest, cacheControl, cancellationToken).ConfigureAwait(false); + return await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or update a management group. + /// If a management group is already created and a subsequent create request is issued with different properties, the management group properties will be updated. + /// . + /// + /// Management Group ID. + /// Management group creation parameters. + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + /// or is null. + public virtual ManagementGroupsCreateOrUpdateOperation StartCreateOrUpdate(string groupId, CreateManagementGroupRequest createManagementGroupRequest, string cacheControl = null, CancellationToken cancellationToken = default) + { + if (groupId == null) + { + throw new ArgumentNullException(nameof(groupId)); + } + if (createManagementGroupRequest == null) + { + throw new ArgumentNullException(nameof(createManagementGroupRequest)); + } + + using var scope = _clientDiagnostics.CreateScope("ManagementGroupContainer.StartCreateOrUpdate"); + scope.Start(); + try + { + var originalResponse = _restClient.CreateOrUpdate(groupId, createManagementGroupRequest, cacheControl, cancellationToken); + return new ManagementGroupsCreateOrUpdateOperation(this, _clientDiagnostics, Pipeline, _restClient.CreateCreateOrUpdateRequest(groupId, createManagementGroupRequest, cacheControl).Request, originalResponse); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or update a management group. + /// If a management group is already created and a subsequent create request is issued with different properties, the management group properties will be updated. + /// . + /// + /// Management Group ID. + /// Management group creation parameters. + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + /// or is null. + public async virtual Task StartCreateOrUpdateAsync(string groupId, CreateManagementGroupRequest createManagementGroupRequest, string cacheControl = null, CancellationToken cancellationToken = default) + { + if (groupId == null) + { + throw new ArgumentNullException(nameof(groupId)); + } + if (createManagementGroupRequest == null) + { + throw new ArgumentNullException(nameof(createManagementGroupRequest)); + } + + using var scope = _clientDiagnostics.CreateScope("ManagementGroupContainer.StartCreateOrUpdate"); + scope.Start(); + try + { + var originalResponse = await _restClient.CreateOrUpdateAsync(groupId, createManagementGroupRequest, cacheControl, cancellationToken).ConfigureAwait(false); + return new ManagementGroupsCreateOrUpdateOperation(this, _clientDiagnostics, Pipeline, _restClient.CreateCreateOrUpdateRequest(groupId, createManagementGroupRequest, cacheControl).Request, originalResponse); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroupOperations.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroupOperations.cs new file mode 100644 index 0000000000000..27aae73076717 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroupOperations.cs @@ -0,0 +1,339 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.ResourceManager.Core +{ + /// + /// A class representing the operations that can be performed over a specific ManagementGroup. + /// + public class ManagementGroupOperations : ResourceOperationsBase + { + private readonly ClientDiagnostics _clientDiagnostics; + private ManagementGroupsRestOperations _restClient; + + /// + /// Initializes a new instance of the class for mocking. + /// + protected ManagementGroupOperations() + { + } + + /// + /// Initializes a new instance of the class. + /// + /// The client parameters to use in these operations. + /// The identifier of the resource that is the target of operations. + protected internal ManagementGroupOperations(OperationsBase options, TenantResourceIdentifier id) + : base(options, id) + { + _clientDiagnostics = new ClientDiagnostics(ClientOptions); + _restClient = new ManagementGroupsRestOperations(_clientDiagnostics, Pipeline, BaseUri); + } + + /// + /// Gets the resource type definition for a ResourceType. + /// + public static readonly ResourceType ResourceType = "Microsoft.Management/managementGroups"; + + /// + protected override ResourceType ValidResourceType => ResourceType; + + /// + public override Response Get(CancellationToken cancellationToken = default) + { + return Get(null, null, null, null, cancellationToken); + } + + /// + public async override Task> GetAsync(CancellationToken cancellationToken = default) + { + return await GetAsync(null, null, null, null, cancellationToken).ConfigureAwait(false); + } + + /// + /// Get the details of the management group. + /// . + /// + /// The $expand=children query string parameter allows clients to request inclusion of children in the response payload. $expand=path includes the path from the root group to the current group. $expand=ancestors includes the ancestor Ids of the current group. + /// The $recurse=true query string parameter allows clients to request inclusion of entire hierarchy in the response payload. Note that $expand=children must be passed up if $recurse is set to true. + /// A filter which allows the exclusion of subscriptions from results (i.e. '$filter=children.childType ne Subscription'). + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + public virtual Response Get(Enum0? expand = null, bool? recurse = null, string filter = null, string cacheControl = null, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ManagementGroupOperations.Get"); + scope.Start(); + try + { + var response = _restClient.Get(Id.Name, expand, recurse, filter, cacheControl, cancellationToken); + return Response.FromValue(new ManagementGroup(this, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get the details of the management group. + /// . + /// + /// The $expand=children query string parameter allows clients to request inclusion of children in the response payload. $expand=path includes the path from the root group to the current group. $expand=ancestors includes the ancestor Ids of the current group. + /// The $recurse=true query string parameter allows clients to request inclusion of entire hierarchy in the response payload. Note that $expand=children must be passed up if $recurse is set to true. + /// A filter which allows the exclusion of subscriptions from results (i.e. '$filter=children.childType ne Subscription'). + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + public async virtual Task> GetAsync(Enum0? expand = null, bool? recurse = null, string filter = null, string cacheControl = null, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ManagementGroupOperations.Get"); + scope.Start(); + try + { + var response = await _restClient.GetAsync(Id.Name, expand, recurse, filter, cacheControl, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new ManagementGroup(this, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete management group. + /// If a management group contains child resources, the request will fail. + /// . + /// + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + public virtual Response Delete(string cacheControl = null, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ManagementGroupOperations.Delete"); + scope.Start(); + try + { + var operation = StartDelete(cacheControl, cancellationToken); + return operation.WaitForCompletion(cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete management group. + /// If a management group contains child resources, the request will fail. + /// . + /// + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + public async virtual Task DeleteAsync(string cacheControl = null, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ManagementGroupOperations.Delete"); + scope.Start(); + try + { + var operation = await StartDeleteAsync(cacheControl, cancellationToken).ConfigureAwait(false); + return await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete management group. + /// If a management group contains child resources, the request will fail. + /// . + /// + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + public virtual ManagementGroupsDeleteOperation StartDelete(string cacheControl = null, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ManagementGroupOperations.StartDelete"); + scope.Start(); + try + { + var originalResponse = _restClient.Delete(Id.Name, cacheControl, cancellationToken); + return new ManagementGroupsDeleteOperation(_clientDiagnostics, Pipeline, _restClient.CreateDeleteRequest(Id.Name, cacheControl).Request, originalResponse); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete management group. + /// If a management group contains child resources, the request will fail. + /// . + /// + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + public async virtual Task StartDeleteAsync(string cacheControl = null, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ManagementGroupOperations.StartDelete"); + scope.Start(); + try + { + var originalResponse = await _restClient.DeleteAsync(Id.Name, cacheControl, cancellationToken).ConfigureAwait(false); + return new ManagementGroupsDeleteOperation(_clientDiagnostics, Pipeline, _restClient.CreateDeleteRequest(Id.Name, cacheControl).Request, originalResponse); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// List all entities that descend from a management group. + /// . + /// + /// + /// Page continuation token is only used if a previous operation returned a partial result. + /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. + /// . + /// + /// Number of elements to return when retrieving results. Passing this in will override $skipToken. + /// The cancellation token to use. + public virtual Pageable GetDescendants(string skiptoken = null, int? top = null, CancellationToken cancellationToken = default) + { + Page FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ManagementGroupOperations.GetDescendants"); + scope.Start(); + try + { + var response = _restClient.GetDescendants(Id.Name, skiptoken, top, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + Page NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ManagementGroupOperations.GetDescendants"); + scope.Start(); + try + { + var response = _restClient.GetDescendantsNextPage(nextLink, Id.Name, skiptoken, top, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateEnumerable(FirstPageFunc, NextPageFunc); + } + + /// + /// List all entities that descend from a management group. + /// . + /// + /// + /// Page continuation token is only used if a previous operation returned a partial result. + /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. + /// . + /// + /// Number of elements to return when retrieving results. Passing this in will override $skipToken. + /// The cancellation token to use. + public virtual AsyncPageable GetDescendantsAsync(string skiptoken = null, int? top = null, CancellationToken cancellationToken = default) + { + async Task> FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ManagementGroupOperations.GetDescendants"); + scope.Start(); + try + { + var response = await _restClient.GetDescendantsAsync(Id.Name, skiptoken, top, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + async Task> NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ManagementGroupOperations.GetDescendants"); + scope.Start(); + try + { + var response = await _restClient.GetDescendantsNextPageAsync(nextLink, Id.Name, skiptoken, top, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, NextPageFunc); + } + + /// + /// Update a management group. + /// . + /// + /// Management group patch parameters. + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + public virtual Response Update(PatchManagementGroupRequest patchGroupRequest, string cacheControl = null, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ManagementGroupOperations.Update"); + scope.Start(); + try + { + var response = _restClient.Update(Id.Name, patchGroupRequest, cacheControl, cancellationToken); + return Response.FromValue(new ManagementGroup(this, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Update a management group. + /// . + /// + /// Management group patch parameters. + /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. + /// The cancellation token to use. + public async virtual Task> UpdateAsync(PatchManagementGroupRequest patchGroupRequest, string cacheControl = null, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ManagementGroupOperations.Update"); + scope.Start(); + try + { + var response = await _restClient.UpdateAsync(Id.Name, patchGroupRequest, cacheControl, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new ManagementGroup(this, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroupsCreateOrUpdateOperation.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroupsCreateOrUpdateOperation.cs new file mode 100644 index 0000000000000..81b538bd9ff05 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroupsCreateOrUpdateOperation.cs @@ -0,0 +1,77 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.ResourceManager.Core +{ + /// + /// Create or update a management group. + /// If a management group is already created and a subsequent create request is issued with different properties, the management group properties will be updated. + /// . + /// + public partial class ManagementGroupsCreateOrUpdateOperation : Operation, IOperationSource + { + private readonly OperationOrResponseInternals _operation; + + private readonly OperationsBase _operationBase; + + /// Initializes a new instance of ManagementGroupsCreateOrUpdateOperation for mocking. + protected ManagementGroupsCreateOrUpdateOperation() + { + } + + internal ManagementGroupsCreateOrUpdateOperation(OperationsBase operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) + { + _operation = new OperationOrResponseInternals(this, clientDiagnostics, pipeline, request, response, OperationFinalStateVia.AzureAsyncOperation, "ManagementGroupsCreateOrUpdateOperation"); + _operationBase = operationsBase; + } + /// + public override string Id => _operation.Id; + + /// + public override ManagementGroup Value => _operation.Value; + + /// + public override bool HasCompleted => _operation.HasCompleted; + + /// + public override bool HasValue => _operation.HasValue; + + /// + public override Response GetRawResponse() => _operation.GetRawResponse(); + + /// + public override Response UpdateStatus(CancellationToken cancellationToken = default) => _operation.UpdateStatus(cancellationToken); + + /// + public override ValueTask UpdateStatusAsync(CancellationToken cancellationToken = default) => _operation.UpdateStatusAsync(cancellationToken); + + /// + public override ValueTask> WaitForCompletionAsync(CancellationToken cancellationToken = default) => _operation.WaitForCompletionAsync(cancellationToken); + + /// + public override ValueTask> WaitForCompletionAsync(TimeSpan pollingInterval, CancellationToken cancellationToken = default) => _operation.WaitForCompletionAsync(pollingInterval, cancellationToken); + + ManagementGroup IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + return new ManagementGroup(_operationBase, ManagementGroupData.DeserializeManagementGroup(document.RootElement)); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + return new ManagementGroup(_operationBase, ManagementGroupData.DeserializeManagementGroup(document.RootElement)); + } + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroupsDeleteOperation.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroupsDeleteOperation.cs new file mode 100644 index 0000000000000..f92eb24dcd085 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroupsDeleteOperation.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.ResourceManager.Core +{ + /// + /// Delete management group. + /// If a management group contains child resources, the request will fail. + /// . + /// + public partial class ManagementGroupsDeleteOperation : Operation + { + private readonly OperationOrResponseInternals _operation; + + /// Initializes a new instance of ManagementGroupsDeleteOperation for mocking. + protected ManagementGroupsDeleteOperation() + { + } + + internal ManagementGroupsDeleteOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) + { + _operation = new OperationOrResponseInternals(clientDiagnostics, pipeline, request, response, OperationFinalStateVia.AzureAsyncOperation, "ManagementGroupsDeleteOperation"); + } + /// + public override string Id => _operation.Id; + + /// + public override bool HasCompleted => _operation.HasCompleted; + + /// + public override Response GetRawResponse() => _operation.GetRawResponse(); + + /// + public override Response UpdateStatus(CancellationToken cancellationToken = default) => _operation.UpdateStatus(cancellationToken); + + /// + public override ValueTask UpdateStatusAsync(CancellationToken cancellationToken = default) => _operation.UpdateStatusAsync(cancellationToken); + + /// + public override ValueTask WaitForCompletionResponseAsync(CancellationToken cancellationToken = default) => _operation.WaitForCompletionResponseAsync(cancellationToken); + + /// + public override ValueTask WaitForCompletionResponseAsync(TimeSpan pollingInterval, CancellationToken cancellationToken = default) => _operation.WaitForCompletionResponseAsync(pollingInterval, cancellationToken); + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroupsRestOperations.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroupsRestOperations.cs index 55254f644191c..b74b8285f8676 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroupsRestOperations.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroupsRestOperations.cs @@ -9,7 +9,6 @@ using System.Text.Json; using System.Threading; using System.Threading.Tasks; -using Azure; using Azure.Core; using Azure.Core.Pipeline; @@ -164,7 +163,7 @@ internal HttpMessage CreateGetRequest(string groupId, Enum0? expand, bool? recur /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. /// The cancellation token to use. /// is null. - public async Task> GetAsync(string groupId, Enum0? expand = null, bool? recurse = null, string filter = null, string cacheControl = null, CancellationToken cancellationToken = default) + public async Task> GetAsync(string groupId, Enum0? expand = null, bool? recurse = null, string filter = null, string cacheControl = null, CancellationToken cancellationToken = default) { if (groupId == null) { @@ -177,9 +176,9 @@ public async Task> GetAsync(string groupId, Enum0? exp { case 200: { - ManagementGroup value = default; + ManagementGroupData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ManagementGroup.DeserializeManagementGroup(document.RootElement); + value = ManagementGroupData.DeserializeManagementGroup(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -198,7 +197,7 @@ public async Task> GetAsync(string groupId, Enum0? exp /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. /// The cancellation token to use. /// is null. - public Response Get(string groupId, Enum0? expand = null, bool? recurse = null, string filter = null, string cacheControl = null, CancellationToken cancellationToken = default) + public Response Get(string groupId, Enum0? expand = null, bool? recurse = null, string filter = null, string cacheControl = null, CancellationToken cancellationToken = default) { if (groupId == null) { @@ -211,9 +210,9 @@ public Response Get(string groupId, Enum0? expand = null, bool? { case 200: { - ManagementGroup value = default; + ManagementGroupData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ManagementGroup.DeserializeManagementGroup(document.RootElement); + value = ManagementGroupData.DeserializeManagementGroup(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -344,7 +343,7 @@ internal HttpMessage CreateUpdateRequest(string groupId, PatchManagementGroupReq /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. /// The cancellation token to use. /// or is null. - public async Task> UpdateAsync(string groupId, PatchManagementGroupRequest patchGroupRequest, string cacheControl = null, CancellationToken cancellationToken = default) + public async Task> UpdateAsync(string groupId, PatchManagementGroupRequest patchGroupRequest, string cacheControl = null, CancellationToken cancellationToken = default) { if (groupId == null) { @@ -361,9 +360,9 @@ public async Task> UpdateAsync(string groupId, PatchMa { case 200: { - ManagementGroup value = default; + ManagementGroupData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ManagementGroup.DeserializeManagementGroup(document.RootElement); + value = ManagementGroupData.DeserializeManagementGroup(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -380,7 +379,7 @@ public async Task> UpdateAsync(string groupId, PatchMa /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. /// The cancellation token to use. /// or is null. - public Response Update(string groupId, PatchManagementGroupRequest patchGroupRequest, string cacheControl = null, CancellationToken cancellationToken = default) + public Response Update(string groupId, PatchManagementGroupRequest patchGroupRequest, string cacheControl = null, CancellationToken cancellationToken = default) { if (groupId == null) { @@ -397,9 +396,9 @@ public Response Update(string groupId, PatchManagementGroupRequ { case 200: { - ManagementGroup value = default; + ManagementGroupData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ManagementGroup.DeserializeManagementGroup(document.RootElement); + value = ManagementGroupData.DeserializeManagementGroup(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -763,5 +762,77 @@ public Response GetDescendantsNextPage(string nextLink, st throw _clientDiagnostics.CreateRequestFailedException(message.Response); } } + + internal HttpMessage CreateCheckNameAvailabilityRequest(CheckNameAvailabilityRequest checkNameAvailabilityRequest) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/providers/Microsoft.Management/checkNameAvailability", false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(checkNameAvailabilityRequest); + request.Content = content; + return message; + } + + /// Checks if the specified management group name is valid and unique. + /// Management group name availability check parameters. + /// The cancellation token to use. + /// is null. + public async Task> CheckNameAvailabilityAsync(CheckNameAvailabilityRequest checkNameAvailabilityRequest, CancellationToken cancellationToken = default) + { + if (checkNameAvailabilityRequest == null) + { + throw new ArgumentNullException(nameof(checkNameAvailabilityRequest)); + } + + using var message = CreateCheckNameAvailabilityRequest(checkNameAvailabilityRequest); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + CheckNameAvailabilityResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = CheckNameAvailabilityResult.DeserializeCheckNameAvailabilityResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Checks if the specified management group name is valid and unique. + /// Management group name availability check parameters. + /// The cancellation token to use. + /// is null. + public Response CheckNameAvailability(CheckNameAvailabilityRequest checkNameAvailabilityRequest, CancellationToken cancellationToken = default) + { + if (checkNameAvailabilityRequest == null) + { + throw new ArgumentNullException(nameof(checkNameAvailabilityRequest)); + } + + using var message = CreateCheckNameAvailabilityRequest(checkNameAvailabilityRequest); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + CheckNameAvailabilityResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = CheckNameAvailabilityResult.DeserializeCheckNameAvailabilityResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/CheckNameAvailabilityRequest.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/CheckNameAvailabilityRequest.Serialization.cs new file mode 100644 index 0000000000000..159b4659d945e --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/CheckNameAvailabilityRequest.Serialization.cs @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Core +{ + public partial class CheckNameAvailabilityRequest : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Name)) + { + writer.WritePropertyName("name"); + writer.WriteStringValue(Name); + } + if (Optional.IsDefined(Type)) + { + writer.WritePropertyName("type"); + writer.WriteStringValue(Type); + } + writer.WriteEndObject(); + } + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/CheckNameAvailabilityRequest.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/CheckNameAvailabilityRequest.cs new file mode 100644 index 0000000000000..9bf38079b0fe0 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/CheckNameAvailabilityRequest.cs @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.Core +{ + /// Management group name availability check parameters. + public partial class CheckNameAvailabilityRequest + { + /// Initializes a new instance of CheckNameAvailabilityRequest. + public CheckNameAvailabilityRequest() + { + Type = "Microsoft.Management/managementGroups"; + } + + /// the name to check for availability. + public string Name { get; set; } + /// fully qualified resource type which includes provider namespace. + public string Type { get; set; } + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/CheckNameAvailabilityResult.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/CheckNameAvailabilityResult.Serialization.cs new file mode 100644 index 0000000000000..7bef9b9393ecd --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/CheckNameAvailabilityResult.Serialization.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Core +{ + public partial class CheckNameAvailabilityResult + { + internal static CheckNameAvailabilityResult DeserializeCheckNameAvailabilityResult(JsonElement element) + { + Optional nameAvailable = default; + Optional reason = default; + Optional message = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("nameAvailable")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + nameAvailable = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("reason")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + reason = property.Value.GetString().ToReason(); + continue; + } + if (property.NameEquals("message")) + { + message = property.Value.GetString(); + continue; + } + } + return new CheckNameAvailabilityResult(Optional.ToNullable(nameAvailable), Optional.ToNullable(reason), message.Value); + } + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/CheckNameAvailabilityResult.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/CheckNameAvailabilityResult.cs new file mode 100644 index 0000000000000..3865f571e3efe --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/CheckNameAvailabilityResult.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.Core +{ + /// Describes the result of the request to check management group name availability. + public partial class CheckNameAvailabilityResult + { + /// Initializes a new instance of CheckNameAvailabilityResult. + internal CheckNameAvailabilityResult() + { + } + + /// Initializes a new instance of CheckNameAvailabilityResult. + /// Required. True indicates name is valid and available. False indicates the name is invalid, unavailable, or both. + /// Required if nameAvailable == false. Invalid indicates the name provided does not match the resource provider's naming requirements (incorrect length, unsupported characters, etc.) AlreadyExists indicates that the name is already in use and is therefore unavailable. + /// Required if nameAvailable == false. Localized. If reason == invalid, provide the user with the reason why the given name is invalid, and provide the resource naming requirements so that the user can select a valid name. If reason == AlreadyExists, explain that is already in use, and direct them to select a different name. + internal CheckNameAvailabilityResult(bool? nameAvailable, Reason? reason, string message) + { + NameAvailable = nameAvailable; + Reason = reason; + Message = message; + } + + /// Required. True indicates name is valid and available. False indicates the name is invalid, unavailable, or both. + public bool? NameAvailable { get; } + /// Required if nameAvailable == false. Invalid indicates the name provided does not match the resource provider's naming requirements (incorrect length, unsupported characters, etc.) AlreadyExists indicates that the name is already in use and is therefore unavailable. + public Reason? Reason { get; } + /// Required if nameAvailable == false. Localized. If reason == invalid, provide the user with the reason why the given name is invalid, and provide the resource naming requirements so that the user can select a valid name. If reason == AlreadyExists, explain that is already in use, and direct them to select a different name. + public string Message { get; } + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroup.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupData.Serialization.cs similarity index 92% rename from sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroup.Serialization.cs rename to sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupData.Serialization.cs index 10bf050ada11d..98c52a9995489 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroup.Serialization.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupData.Serialization.cs @@ -11,9 +11,9 @@ namespace Azure.ResourceManager.Core { - public partial class ManagementGroup + public partial class ManagementGroupData { - internal static ManagementGroup DeserializeManagementGroup(JsonElement element) + internal static ManagementGroupData DeserializeManagementGroup(JsonElement element) { Optional id = default; Optional type = default; @@ -87,7 +87,7 @@ internal static ManagementGroup DeserializeManagementGroup(JsonElement element) continue; } } - return new ManagementGroup(id.Value, type.Value, name.Value, tenantId.Value, displayName.Value, details.Value, Optional.ToList(children)); + return new ManagementGroupData(id.Value, type.Value, name.Value, tenantId.Value, displayName.Value, details.Value, Optional.ToList(children)); } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroup.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupData.cs similarity index 70% rename from sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroup.cs rename to sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupData.cs index 1f342d180acc5..0477e9c5288f7 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroup.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupData.cs @@ -11,10 +11,10 @@ namespace Azure.ResourceManager.Core { /// The management group details. - public partial class ManagementGroup + public partial class ManagementGroupData : Resource { /// Initializes a new instance of ManagementGroup. - internal ManagementGroup() + internal ManagementGroupData() { Children = new ChangeTrackingList(); } @@ -27,23 +27,15 @@ internal ManagementGroup() /// The friendly name of the management group. /// The details of a management group. /// The list of children. - internal ManagementGroup(string id, string type, string name, string tenantId, string displayName, ManagementGroupDetails details, IReadOnlyList children) + internal ManagementGroupData(string id, string type, string name, string tenantId, string displayName, ManagementGroupDetails details, IReadOnlyList children) + :base(id, name, type) { - Id = id; - Type = type; - Name = name; TenantId = tenantId; DisplayName = displayName; Details = details; Children = children; } - /// The fully qualified ID for the management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. - public string Id { get; } - /// The type of the resource. For example, Microsoft.Management/managementGroups. - public string Type { get; } - /// The name of the management group. For example, 00000000-0000-0000-0000-000000000000. - public string Name { get; } /// The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000. public string TenantId { get; } /// The friendly name of the management group. diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/Reason.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/Reason.Serialization.cs new file mode 100644 index 0000000000000..974d1b798f9fa --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/Reason.Serialization.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.Core +{ + internal static partial class ReasonExtensions + { + public static string ToSerialString(this Reason value) => value switch + { + Reason.Invalid => "Invalid", + Reason.AlreadyExists => "AlreadyExists", + _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown Reason value.") + }; + + public static Reason ToReason(this string value) + { + if (string.Equals(value, "Invalid", StringComparison.InvariantCultureIgnoreCase)) return Reason.Invalid; + if (string.Equals(value, "AlreadyExists", StringComparison.InvariantCultureIgnoreCase)) return Reason.AlreadyExists; + throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown Reason value."); + } + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/Reason.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/Reason.cs new file mode 100644 index 0000000000000..e23bb2c1e5309 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/Reason.cs @@ -0,0 +1,18 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.Core +{ + /// Required if nameAvailable == false. Invalid indicates the name provided does not match the resource provider's naming requirements (incorrect length, unsupported characters, etc.) AlreadyExists indicates that the name is already in use and is therefore unavailable. + public enum Reason + { + /// Invalid. + Invalid, + /// AlreadyExists. + AlreadyExists + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/Models/FeatureData.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/Models/FeatureData.cs index bc813e8c1d8e7..960ad31851730 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/Models/FeatureData.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/Models/FeatureData.cs @@ -8,7 +8,7 @@ namespace Azure.ResourceManager.Core { /// Previewed feature information. - public partial class FeatureData + public partial class FeatureData : Resource { /// Initializes a new instance of FeatureResult. internal FeatureData() @@ -21,20 +21,12 @@ internal FeatureData() /// The resource ID of the feature. /// The resource type of the feature. internal FeatureData(string name, FeatureProperties properties, string id, string type) + :base(id, name, type) { - Name = name; Properties = properties; - Id = id; - Type = type; } - /// The name of the feature. - public string Name { get; } /// Properties of the previewed feature. public FeatureProperties Properties { get; } - /// The resource ID of the feature. - public string Id { get; } - /// The resource type of the feature. - public string Type { get; } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/TenantOperations.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/TenantOperations.cs index c3812416168eb..52eedd63b4f29 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/TenantOperations.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/TenantOperations.cs @@ -194,5 +194,24 @@ public virtual async Task> GetProviderAsync(string resour throw; } } + + /// + /// Gets the management group container for this tenant. + /// + /// A container of the management groups. + public virtual ManagementGroupContainer GetManagementGroups() + { + return new ManagementGroupContainer(this); + } + + /// + /// Gets the managmeent group operations object associated with the id. + /// + /// The id of the management group operations. + /// A client to perform operations on the management group. + internal ManagementGroupOperations GetManagementGroupOperations(string id) + { + return new ManagementGroupOperations(this, id); + } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Azure.ResourceManager.Core.Tests.csproj b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Azure.ResourceManager.Core.Tests.csproj index 8bd3bba268720..1f2b533ef8ded 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Azure.ResourceManager.Core.Tests.csproj +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Azure.ResourceManager.Core.Tests.csproj @@ -29,6 +29,7 @@ + diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/ManagementGroupContainerTests.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/ManagementGroupContainerTests.cs new file mode 100644 index 0000000000000..1b2c77e4e621d --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/ManagementGroupContainerTests.cs @@ -0,0 +1,89 @@ +using System.Threading.Tasks; +using Azure.Core.TestFramework; +using NUnit.Framework; + +namespace Azure.ResourceManager.Core.Tests +{ + public class ManagementGroupContainerTests : ResourceManagerTestBase + { + private ManagementGroup _mgmtGroup; + private string _mgmtGroupName; + + public ManagementGroupContainerTests(bool isAsync) + : base(isAsync)//, RecordedTestMode.Record) + { + } + + [OneTimeSetUp] + public async Task GetGlobalManagementGroup() + { + _mgmtGroupName = SessionRecording.GenerateAssetName("mgmt-group-"); + _mgmtGroup = await GlobalClient.GetManagementGroups().CreateOrUpdateAsync(_mgmtGroupName, new CreateManagementGroupRequest()); + _mgmtGroup = await _mgmtGroup.GetAsync(); + StopSessionRecording(); + } + + [RecordedTest] + public async Task List() + { + var mgmtGroupContainer = Client.GetManagementGroups(); + ManagementGroup mgmtGroup = null; + await foreach(var item in mgmtGroupContainer.ListAsync("no-cache")) + { + mgmtGroup = item; + break; + } + Assert.IsNotNull(mgmtGroup, "No management groups found in list"); + Assert.IsNotNull(mgmtGroup.Data.DisplayName, "DisplayName was null"); + Assert.IsNotNull(mgmtGroup.Data.Id, "Id was null"); + Assert.IsNotNull(mgmtGroup.Data.Name, "Name was null"); + Assert.IsNotNull(mgmtGroup.Data.TenantId, "TenantId was null"); + Assert.IsNotNull(mgmtGroup.Data.Type, "Type was null"); + } + + [RecordedTest] + public async Task Get() + { + ManagementGroup mgmtGroup = await Client.GetManagementGroups().GetAsync(_mgmtGroupName, cacheControl: "no-cache"); + CompareMgmtGroups(_mgmtGroup, mgmtGroup); + } + + [RecordedTest] + public async Task TryGet() + { + ManagementGroup mgmtGroup = await Client.GetManagementGroups().TryGetAsync(_mgmtGroup.Data.Name, cacheControl: "no-cache"); + CompareMgmtGroups(_mgmtGroup, mgmtGroup); + } + + [RecordedTest] + public async Task DoesExist() + { + Assert.IsTrue(await Client.GetManagementGroups().DoesExistAsync(_mgmtGroup.Data.Name, cacheControl: "no-cache")); + var ex = Assert.ThrowsAsync(async () => await Client.GetManagementGroups().DoesExistAsync(_mgmtGroup.Data.Name + "x", cacheControl: "no-cache")); + Assert.AreEqual(403, ex.Status); //you get forbidden vs not found here for some reason by the service + } + + [RecordedTest] + public async Task CreateOrUpdate() + { + string mgmtGroupName = Recording.GenerateAssetName("mgmt-group-"); + ManagementGroup mgmtGroup = await Client.GetManagementGroups().CreateOrUpdateAsync(mgmtGroupName, new CreateManagementGroupRequest()); + Assert.AreEqual($"/providers/Microsoft.Management/managementGroups/{mgmtGroupName}", mgmtGroup.Data.Id.ToString()); + Assert.AreEqual(mgmtGroupName, mgmtGroup.Data.Name); + Assert.AreEqual(mgmtGroupName, mgmtGroup.Data.DisplayName); + Assert.AreEqual(ManagementGroupOperations.ResourceType, mgmtGroup.Data.Type); + } + + [RecordedTest] + public async Task StartCreateOrUpdate() + { + string mgmtGroupName = Recording.GenerateAssetName("mgmt-group-"); + var mgmtGroupOp = await Client.GetManagementGroups().StartCreateOrUpdateAsync(mgmtGroupName, new CreateManagementGroupRequest()); + ManagementGroup mgmtGroup = await mgmtGroupOp.WaitForCompletionAsync(); + Assert.AreEqual($"/providers/Microsoft.Management/managementGroups/{mgmtGroupName}", mgmtGroup.Data.Id.ToString()); + Assert.AreEqual(mgmtGroupName, mgmtGroup.Data.Name); + Assert.AreEqual(mgmtGroupName, mgmtGroup.Data.DisplayName); + Assert.AreEqual(ManagementGroupOperations.ResourceType, mgmtGroup.Data.Type); + } + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/ManagementGroupOperationsTests.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/ManagementGroupOperationsTests.cs new file mode 100644 index 0000000000000..e1e0a2383f34e --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/ManagementGroupOperationsTests.cs @@ -0,0 +1,79 @@ +using System.Threading.Tasks; +using Azure.Core.TestFramework; +using NUnit.Framework; + +namespace Azure.ResourceManager.Core.Tests +{ + public class ManagementGroupOperationsTests : ResourceManagerTestBase + { + private ManagementGroup _mgmtGroup; + private string _mgmtGroupName; + + public ManagementGroupOperationsTests(bool isAsync) + : base(isAsync)//, RecordedTestMode.Record) + { + } + + [OneTimeSetUp] + public async Task GetGlobalManagementGroup() + { + _mgmtGroupName = SessionRecording.GenerateAssetName("mgmt-group-"); + _mgmtGroup = await GlobalClient.GetManagementGroups().CreateOrUpdateAsync(_mgmtGroupName, new CreateManagementGroupRequest()); + _mgmtGroup = await _mgmtGroup.GetAsync(); + StopSessionRecording(); + } + + [RecordedTest] + public async Task Get() + { + var mgmtGroup = await Client.GetManagementGroupOperations(_mgmtGroup.Id).GetAsync(); + CompareMgmtGroups(_mgmtGroup, mgmtGroup.Value); + } + + [RecordedTest] + public async Task Delete() + { + ManagementGroup mgmtGroup = await Client.GetManagementGroups().CreateOrUpdateAsync(Recording.GenerateAssetName("mgmt-group-"), new CreateManagementGroupRequest()); + await mgmtGroup.DeleteAsync(); + var ex = Assert.ThrowsAsync(async () => await mgmtGroup.GetAsync()); + Assert.AreEqual(404, ex.Status); + } + + [RecordedTest] + public async Task StartDelete() + { + ManagementGroup mgmtGroup = await Client.GetManagementGroups().CreateOrUpdateAsync(Recording.GenerateAssetName("mgmt-group-"), new CreateManagementGroupRequest()); + var deleteOp = await mgmtGroup.StartDeleteAsync(); + await deleteOp.WaitForCompletionResponseAsync(); + var ex = Assert.ThrowsAsync(async () => await mgmtGroup.GetAsync()); + Assert.AreEqual(404, ex.Status); + } + + [RecordedTest] + public async Task GetDescendants() + { + ManagementGroup mgmtGroup = await Client.GetManagementGroupOperations(_mgmtGroup.Id).GetAsync(); + DescendantInfo descendant = null; + await foreach(var desc in mgmtGroup.GetDescendantsAsync()) + { + descendant = desc; + break; + } + Assert.IsNull(descendant); //should have no descendants + } + + [RecordedTest] + public async Task Update() + { + ManagementGroup mgmtGroup = await Client.GetManagementGroups().CreateOrUpdateAsync(Recording.GenerateAssetName("mgmt-group-"), new CreateManagementGroupRequest()); + PatchManagementGroupRequest patch = new PatchManagementGroupRequest(); + patch.DisplayName = "New Display Name"; + ManagementGroup patchedMgmtGroup = await mgmtGroup.UpdateAsync(patch); + Assert.AreEqual("New Display Name", patchedMgmtGroup.Data.DisplayName); + Assert.AreEqual(mgmtGroup.Data.Id, patchedMgmtGroup.Data.Id); + Assert.AreEqual(mgmtGroup.Data.Name, patchedMgmtGroup.Data.Name); + Assert.AreEqual(mgmtGroup.Data.TenantId, patchedMgmtGroup.Data.TenantId); + Assert.AreEqual(mgmtGroup.Data.Type, patchedMgmtGroup.Data.Type); + } + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/ResourceManagerTestBase.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/ResourceManagerTestBase.cs index 82d88f3884014..548767024170c 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/ResourceManagerTestBase.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/ResourceManagerTestBase.cs @@ -80,5 +80,15 @@ protected static async Task GetResourceCountAsync(GenericResourceContainer result++; return result; } + protected void CompareMgmtGroups(ManagementGroup expected, ManagementGroup actual) + { + Assert.AreEqual(expected.Data.DisplayName, actual.Data.DisplayName); + Assert.AreEqual(expected.Data.Id, actual.Data.Id); + Assert.AreEqual(expected.Data.Name, actual.Data.Name); + Assert.AreEqual(expected.Data.TenantId, actual.Data.TenantId); + Assert.AreEqual(expected.Data.Type, actual.Data.Type); + Assert.IsNotNull(actual.Data.Details, "Details were null"); + Assert.IsNotNull(actual.Data.Children, "Children were null"); + } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/CreateOrUpdate.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/CreateOrUpdate.json new file mode 100644 index 0000000000000..07a3253b23324 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/CreateOrUpdate.json @@ -0,0 +1,1012 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "ddd3c550b2fefd79802e64b1bc97f296", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "450", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 01:47:45 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c1f1ed7d-3729-4eb9-865e-66cb41dd156b", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-request-id": "c1f1ed7d-3729-4eb9-865e-66cb41dd156b", + "x-ms-routing-request-id": "WESTUS2:20210712T014745Z:c1f1ed7d-3729-4eb9-865e-66cb41dd156b" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "tagKey1": "tagValue1", + "tagKey2": "tagValue2" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "17", + "Content-Type": "application/json", + "traceparent": "00-19cac4b61644af4cb181806740c1219c-20490a9fefa21b44-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "0ff5b73d2885b0ec1513c32cf5be013f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": {} + }, + "StatusCode": 202, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "c4d257ba-8d82-4f8d-982b-8a64ddbe44d9", + "Content-Length": "167", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 01:47:45 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "c4d257ba-8d82-4f8d-982b-8a64ddbe44d9", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c4d257ba-8d82-4f8d-982b-8a64ddbe44d9", + "x-ms-ratelimit-remaining-managementgroups-requests": "58", + "x-ms-ratelimit-remaining-tenant-writes": "1198", + "x-ms-request-id": "westus2:c4d257ba-8d82-4f8d-982b-8a64ddbe44d9", + "x-ms-routing-request-id": "WESTUS2:20210712T014746Z:c4d257ba-8d82-4f8d-982b-8a64ddbe44d9" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/managementGroups/mgmt-group-6550", + "type": "Microsoft.Management/managementGroups", + "name": "mgmt-group-6550", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-19cac4b61644af4cb181806740c1219c-07d4b5271f65b141-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "33f8cfd99d9c9ccae62ce89eb5d18b70", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "de9676a0-f012-4005-ba9d-1fca4a98f55b", + "Content-Length": "166", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 01:47:45 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "de9676a0-f012-4005-ba9d-1fca4a98f55b", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "de9676a0-f012-4005-ba9d-1fca4a98f55b", + "x-ms-ratelimit-remaining-tenant-reads": "11974", + "x-ms-request-id": "westus2:de9676a0-f012-4005-ba9d-1fca4a98f55b", + "x-ms-routing-request-id": "WESTUS2:20210712T014746Z:de9676a0-f012-4005-ba9d-1fca4a98f55b" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550", + "name": "mgmt-group-6550", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-19cac4b61644af4cb181806740c1219c-bf2f810af014de45-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "e43571639343b7e97e4e2ce563d139de", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "cca655b3-d2f1-458e-a0ae-033dc779fa17", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 01:47:46 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "cca655b3-d2f1-458e-a0ae-033dc779fa17", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "cca655b3-d2f1-458e-a0ae-033dc779fa17", + "x-ms-ratelimit-remaining-tenant-reads": "11973", + "x-ms-request-id": "westus2:cca655b3-d2f1-458e-a0ae-033dc779fa17", + "x-ms-routing-request-id": "WESTUS2:20210712T014747Z:cca655b3-d2f1-458e-a0ae-033dc779fa17" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550", + "name": "mgmt-group-6550", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-19cac4b61644af4cb181806740c1219c-9109a42f5e45dd47-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "2552a00acec6e9a2e8121bcd9d9bf011", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "fd5a46d4-29da-45a1-bfab-7a97d07787b1", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 01:47:48 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "fd5a46d4-29da-45a1-bfab-7a97d07787b1", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "fd5a46d4-29da-45a1-bfab-7a97d07787b1", + "x-ms-ratelimit-remaining-tenant-reads": "11972", + "x-ms-request-id": "westus2:fd5a46d4-29da-45a1-bfab-7a97d07787b1", + "x-ms-routing-request-id": "WESTUS2:20210712T014748Z:fd5a46d4-29da-45a1-bfab-7a97d07787b1" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550", + "name": "mgmt-group-6550", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-19cac4b61644af4cb181806740c1219c-34415c643aa49947-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "05b85414250145dfe640b44d70e43815", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "33ccc5b5-befd-4450-92ff-e634743b1b22", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 01:47:49 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "33ccc5b5-befd-4450-92ff-e634743b1b22", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "33ccc5b5-befd-4450-92ff-e634743b1b22", + "x-ms-ratelimit-remaining-tenant-reads": "11971", + "x-ms-request-id": "westus2:33ccc5b5-befd-4450-92ff-e634743b1b22", + "x-ms-routing-request-id": "WESTUS2:20210712T014749Z:33ccc5b5-befd-4450-92ff-e634743b1b22" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550", + "name": "mgmt-group-6550", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-19cac4b61644af4cb181806740c1219c-323eebbe40624c4a-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "159309f3657e94aacf4bfb31781c1ae2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "8c737c8e-64d8-4ae9-bb82-0cf51ba47a1b", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 01:47:50 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "8c737c8e-64d8-4ae9-bb82-0cf51ba47a1b", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8c737c8e-64d8-4ae9-bb82-0cf51ba47a1b", + "x-ms-ratelimit-remaining-tenant-reads": "11970", + "x-ms-request-id": "westus2:8c737c8e-64d8-4ae9-bb82-0cf51ba47a1b", + "x-ms-routing-request-id": "WESTUS2:20210712T014750Z:8c737c8e-64d8-4ae9-bb82-0cf51ba47a1b" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550", + "name": "mgmt-group-6550", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-19cac4b61644af4cb181806740c1219c-372bd502a8a1ad49-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "0ed11b5d3319e4ddc10d3f8519547904", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "c027b87b-5702-4607-bed6-6f6431fde6e4", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 01:47:51 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "c027b87b-5702-4607-bed6-6f6431fde6e4", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c027b87b-5702-4607-bed6-6f6431fde6e4", + "x-ms-ratelimit-remaining-tenant-reads": "11969", + "x-ms-request-id": "westus2:c027b87b-5702-4607-bed6-6f6431fde6e4", + "x-ms-routing-request-id": "WESTUS2:20210712T014751Z:c027b87b-5702-4607-bed6-6f6431fde6e4" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550", + "name": "mgmt-group-6550", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-19cac4b61644af4cb181806740c1219c-e7612bac82512240-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "93d905d9db07ae93aa2336b529aeccc9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "0a01f58e-4fc5-43fc-a17f-5886b974738f", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 01:47:52 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "0a01f58e-4fc5-43fc-a17f-5886b974738f", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0a01f58e-4fc5-43fc-a17f-5886b974738f", + "x-ms-ratelimit-remaining-tenant-reads": "11968", + "x-ms-request-id": "westus2:0a01f58e-4fc5-43fc-a17f-5886b974738f", + "x-ms-routing-request-id": "WESTUS2:20210712T014753Z:0a01f58e-4fc5-43fc-a17f-5886b974738f" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550", + "name": "mgmt-group-6550", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-19cac4b61644af4cb181806740c1219c-09fd85333991464d-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "55f0d2262913c0fc2baf547026247a7a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "c2dacfb6-5953-47c7-8175-cd8481b51803", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 01:47:53 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "c2dacfb6-5953-47c7-8175-cd8481b51803", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c2dacfb6-5953-47c7-8175-cd8481b51803", + "x-ms-ratelimit-remaining-tenant-reads": "11967", + "x-ms-request-id": "westus2:c2dacfb6-5953-47c7-8175-cd8481b51803", + "x-ms-routing-request-id": "WESTUS2:20210712T014754Z:c2dacfb6-5953-47c7-8175-cd8481b51803" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550", + "name": "mgmt-group-6550", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-19cac4b61644af4cb181806740c1219c-098da549de5adb49-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "7257f7d2864282db872263f5fc28ba12", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "12692693-f44f-4346-89eb-67136a36d913", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 01:47:54 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "12692693-f44f-4346-89eb-67136a36d913", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "12692693-f44f-4346-89eb-67136a36d913", + "x-ms-ratelimit-remaining-tenant-reads": "11966", + "x-ms-request-id": "westus2:12692693-f44f-4346-89eb-67136a36d913", + "x-ms-routing-request-id": "WESTUS2:20210712T014755Z:12692693-f44f-4346-89eb-67136a36d913" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550", + "name": "mgmt-group-6550", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-19cac4b61644af4cb181806740c1219c-ffd6cb09066bae42-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "475f76402364b0f00919685887228886", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "553953ae-fbf5-41ce-a757-5f83d03f13a2", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 01:47:55 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "553953ae-fbf5-41ce-a757-5f83d03f13a2", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "553953ae-fbf5-41ce-a757-5f83d03f13a2", + "x-ms-ratelimit-remaining-tenant-reads": "11965", + "x-ms-request-id": "westus2:553953ae-fbf5-41ce-a757-5f83d03f13a2", + "x-ms-routing-request-id": "WESTUS2:20210712T014756Z:553953ae-fbf5-41ce-a757-5f83d03f13a2" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550", + "name": "mgmt-group-6550", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-19cac4b61644af4cb181806740c1219c-304bf1ffdaca0241-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "32e2bba959579f86f76ecdf0c606c303", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "e141027d-7ad9-4c33-86aa-840d1c75d3b0", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 01:47:57 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "e141027d-7ad9-4c33-86aa-840d1c75d3b0", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e141027d-7ad9-4c33-86aa-840d1c75d3b0", + "x-ms-ratelimit-remaining-tenant-reads": "11964", + "x-ms-request-id": "westus2:e141027d-7ad9-4c33-86aa-840d1c75d3b0", + "x-ms-routing-request-id": "WESTUS2:20210712T014757Z:e141027d-7ad9-4c33-86aa-840d1c75d3b0" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550", + "name": "mgmt-group-6550", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-19cac4b61644af4cb181806740c1219c-e0a4a5e2db3eba4d-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "b03041f433c5af1606a768281e82fa65", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "3d80b3d6-f5e8-4a43-a6a2-29722b8ce448", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 01:47:58 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "3d80b3d6-f5e8-4a43-a6a2-29722b8ce448", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3d80b3d6-f5e8-4a43-a6a2-29722b8ce448", + "x-ms-ratelimit-remaining-tenant-reads": "11963", + "x-ms-request-id": "westus2:3d80b3d6-f5e8-4a43-a6a2-29722b8ce448", + "x-ms-routing-request-id": "WESTUS2:20210712T014758Z:3d80b3d6-f5e8-4a43-a6a2-29722b8ce448" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550", + "name": "mgmt-group-6550", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-19cac4b61644af4cb181806740c1219c-5d8358baa4045c43-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "414bdd998846e6bbefbf50f655ffe902", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "ea3213ac-b3ed-4aef-b728-04c7edea5e98", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 01:47:59 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "ea3213ac-b3ed-4aef-b728-04c7edea5e98", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ea3213ac-b3ed-4aef-b728-04c7edea5e98", + "x-ms-ratelimit-remaining-tenant-reads": "11962", + "x-ms-request-id": "westus2:ea3213ac-b3ed-4aef-b728-04c7edea5e98", + "x-ms-routing-request-id": "WESTUS2:20210712T014800Z:ea3213ac-b3ed-4aef-b728-04c7edea5e98" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550", + "name": "mgmt-group-6550", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-19cac4b61644af4cb181806740c1219c-676c133813ca944f-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "46646456d8f176c1a5322bb0f05d8174", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "770f6aa8-a9e6-4573-bf74-50a279d9502d", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 01:48:00 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "770f6aa8-a9e6-4573-bf74-50a279d9502d", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "770f6aa8-a9e6-4573-bf74-50a279d9502d", + "x-ms-ratelimit-remaining-tenant-reads": "11961", + "x-ms-request-id": "westus2:770f6aa8-a9e6-4573-bf74-50a279d9502d", + "x-ms-routing-request-id": "WESTUS2:20210712T014801Z:770f6aa8-a9e6-4573-bf74-50a279d9502d" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550", + "name": "mgmt-group-6550", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-19cac4b61644af4cb181806740c1219c-fec0047e8653af40-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "e857677381bb6bbc8549c006e2205906", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "5dde736e-f154-49e7-8074-551fb1658a86", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 01:48:01 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "5dde736e-f154-49e7-8074-551fb1658a86", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5dde736e-f154-49e7-8074-551fb1658a86", + "x-ms-ratelimit-remaining-tenant-reads": "11960", + "x-ms-request-id": "westus2:5dde736e-f154-49e7-8074-551fb1658a86", + "x-ms-routing-request-id": "WESTUS2:20210712T014802Z:5dde736e-f154-49e7-8074-551fb1658a86" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550", + "name": "mgmt-group-6550", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-19cac4b61644af4cb181806740c1219c-e35b845e8cc6294a-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "b9d266bdb31ec1731cd59b135c0bf591", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "6ffd9112-b594-45ce-8785-a0de7d2a6923", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 01:48:02 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "6ffd9112-b594-45ce-8785-a0de7d2a6923", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6ffd9112-b594-45ce-8785-a0de7d2a6923", + "x-ms-ratelimit-remaining-tenant-reads": "11959", + "x-ms-request-id": "westus2:6ffd9112-b594-45ce-8785-a0de7d2a6923", + "x-ms-routing-request-id": "WESTUS2:20210712T014803Z:6ffd9112-b594-45ce-8785-a0de7d2a6923" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550", + "name": "mgmt-group-6550", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-19cac4b61644af4cb181806740c1219c-2c761b4bacc2ac4d-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "ee82db3d00a8d547a8f8c1a817bb9385", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "e8660539-c571-47a8-8288-2aef3688c534", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 01:48:03 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "e8660539-c571-47a8-8288-2aef3688c534", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e8660539-c571-47a8-8288-2aef3688c534", + "x-ms-ratelimit-remaining-tenant-reads": "11958", + "x-ms-request-id": "westus2:e8660539-c571-47a8-8288-2aef3688c534", + "x-ms-routing-request-id": "WESTUS2:20210712T014804Z:e8660539-c571-47a8-8288-2aef3688c534" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550", + "name": "mgmt-group-6550", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-19cac4b61644af4cb181806740c1219c-348815a41c81864e-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "8af224d9c88bbf56f395cce5e5a90e79", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "b9e97df5-0aed-40b1-8316-4d39e5f5dccb", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 01:48:04 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "b9e97df5-0aed-40b1-8316-4d39e5f5dccb", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b9e97df5-0aed-40b1-8316-4d39e5f5dccb", + "x-ms-ratelimit-remaining-tenant-reads": "11957", + "x-ms-request-id": "westus2:b9e97df5-0aed-40b1-8316-4d39e5f5dccb", + "x-ms-routing-request-id": "WESTUS2:20210712T014805Z:b9e97df5-0aed-40b1-8316-4d39e5f5dccb" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550", + "name": "mgmt-group-6550", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-19cac4b61644af4cb181806740c1219c-db23f43717e99a41-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "07c82f536b9dbc5e1efd1125f2cba961", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "8ae2f03a-eb00-42b6-a8e0-0089b23e5657", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 01:48:06 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "8ae2f03a-eb00-42b6-a8e0-0089b23e5657", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8ae2f03a-eb00-42b6-a8e0-0089b23e5657", + "x-ms-ratelimit-remaining-tenant-reads": "11956", + "x-ms-request-id": "westus2:8ae2f03a-eb00-42b6-a8e0-0089b23e5657", + "x-ms-routing-request-id": "WESTUS2:20210712T014806Z:8ae2f03a-eb00-42b6-a8e0-0089b23e5657" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550", + "name": "mgmt-group-6550", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-19cac4b61644af4cb181806740c1219c-847468c74ca06248-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "373a16416a18750585c2fa123462effe", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "8d866134-ab9f-41ef-8182-4b0721d2034c", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 01:48:07 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "8d866134-ab9f-41ef-8182-4b0721d2034c", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8d866134-ab9f-41ef-8182-4b0721d2034c", + "x-ms-ratelimit-remaining-tenant-reads": "11955", + "x-ms-request-id": "westus2:8d866134-ab9f-41ef-8182-4b0721d2034c", + "x-ms-routing-request-id": "WESTUS2:20210712T014807Z:8d866134-ab9f-41ef-8182-4b0721d2034c" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550", + "name": "mgmt-group-6550", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-19cac4b61644af4cb181806740c1219c-e06886bf566db54f-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "e85447e98cf26ee7c6366c8eb630cd28", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "0e2d5844-bcce-401c-afca-9856a6574585", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 01:48:08 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "0e2d5844-bcce-401c-afca-9856a6574585", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0e2d5844-bcce-401c-afca-9856a6574585", + "x-ms-ratelimit-remaining-tenant-reads": "11954", + "x-ms-request-id": "westus2:0e2d5844-bcce-401c-afca-9856a6574585", + "x-ms-routing-request-id": "WESTUS2:20210712T014809Z:0e2d5844-bcce-401c-afca-9856a6574585" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550", + "name": "mgmt-group-6550", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-19cac4b61644af4cb181806740c1219c-633f12b808ae6e40-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "cfa36becd76fe860295281db714b88bb", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "client-request-id": "fd6e6651-4363-465c-802e-1a3779d5d1e6", + "Content-Length": "382", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 01:48:09 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "request-id": "fd6e6651-4363-465c-802e-1a3779d5d1e6", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "fd6e6651-4363-465c-802e-1a3779d5d1e6", + "x-ms-ratelimit-remaining-tenant-reads": "11953", + "x-ms-request-id": "westus2:fd6e6651-4363-465c-802e-1a3779d5d1e6", + "x-ms-routing-request-id": "WESTUS2:20210712T014810Z:fd6e6651-4363-465c-802e-1a3779d5d1e6" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6550", + "name": "mgmt-group-6550", + "status": "Succeeded", + "properties": { + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "mgmt-group-6550", + "details": { + "version": 1, + "updatedTime": "2021-07-12T01:47:52.5659456Z", + "updatedBy": "3b10dae3-28cf-49a7-a8df-8fbae3e77f27" + } + } + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/mgmt-group-6550?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-19cac4b61644af4cb181806740c1219c-3c7dd924db1ec449-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "aa3b120ec076b56e2ecc70e2fe77bf54", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "client-request-id": "5c55205f-bc61-4b10-8e20-46d5223ed824", + "Content-Length": "565", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 01:48:09 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "request-id": "5c55205f-bc61-4b10-8e20-46d5223ed824", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5c55205f-bc61-4b10-8e20-46d5223ed824", + "x-ms-ratelimit-remaining-tenant-reads": "11952", + "x-ms-request-id": "westus2:5c55205f-bc61-4b10-8e20-46d5223ed824", + "x-ms-routing-request-id": "WESTUS2:20210712T014810Z:5c55205f-bc61-4b10-8e20-46d5223ed824" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/managementGroups/mgmt-group-6550", + "type": "Microsoft.Management/managementGroups", + "name": "mgmt-group-6550", + "properties": { + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "mgmt-group-6550", + "details": { + "version": 1, + "updatedTime": "2021-07-12T01:47:52.5659456Z", + "updatedBy": "3b10dae3-28cf-49a7-a8df-8fbae3e77f27", + "parent": { + "id": "/providers/Microsoft.Management/managementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47", + "name": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } + } + } + } + } + ], + "Variables": { + "RandomSeed": "326400329", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/CreateOrUpdateAsync.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/CreateOrUpdateAsync.json new file mode 100644 index 0000000000000..80d2c9fc9e0ac --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/CreateOrUpdateAsync.json @@ -0,0 +1,1207 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "6a767b63432a1f884cebf0889a6cc0f7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "450", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:25:06 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7e076c52-37d1-4c1d-bc97-190a9be382ca", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-request-id": "7e076c52-37d1-4c1d-bc97-190a9be382ca", + "x-ms-routing-request-id": "WESTUS2:20210712T022507Z:7e076c52-37d1-4c1d-bc97-190a9be382ca" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "tagKey1": "tagValue1", + "tagKey2": "tagValue2" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "17", + "Content-Type": "application/json", + "traceparent": "00-1c4bb49725b0454aae42c3b331fd4f17-78402e237bfa2743-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "6dfcfa1ebbb689f022ef489afafad6cc", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": {} + }, + "StatusCode": 202, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "81934931-4d51-49e4-bddc-b28457c4b783", + "Content-Length": "167", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:25:07 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "81934931-4d51-49e4-bddc-b28457c4b783", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "81934931-4d51-49e4-bddc-b28457c4b783", + "x-ms-ratelimit-remaining-managementgroups-requests": "58", + "x-ms-ratelimit-remaining-tenant-writes": "1198", + "x-ms-request-id": "westus2:81934931-4d51-49e4-bddc-b28457c4b783", + "x-ms-routing-request-id": "WESTUS2:20210712T022507Z:81934931-4d51-49e4-bddc-b28457c4b783" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/managementGroups/mgmt-group-2793", + "type": "Microsoft.Management/managementGroups", + "name": "mgmt-group-2793", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-1c4bb49725b0454aae42c3b331fd4f17-83d224a708d7d241-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "8592ba068bcbc0ad85e00853408452f0", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "102c6076-9e3c-4c27-955f-df10c32401e4", + "Content-Length": "166", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:25:07 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "102c6076-9e3c-4c27-955f-df10c32401e4", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "102c6076-9e3c-4c27-955f-df10c32401e4", + "x-ms-ratelimit-remaining-tenant-reads": "11973", + "x-ms-request-id": "westus2:102c6076-9e3c-4c27-955f-df10c32401e4", + "x-ms-routing-request-id": "WESTUS2:20210712T022508Z:102c6076-9e3c-4c27-955f-df10c32401e4" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793", + "name": "mgmt-group-2793", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-1c4bb49725b0454aae42c3b331fd4f17-3ae4df111d40b744-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "54ecbb1a50ef74517845f0216bdbb912", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "7d89aa1f-3b19-4f54-976f-92da84274a58", + "Content-Length": "166", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:25:08 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "7d89aa1f-3b19-4f54-976f-92da84274a58", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7d89aa1f-3b19-4f54-976f-92da84274a58", + "x-ms-ratelimit-remaining-tenant-reads": "11972", + "x-ms-request-id": "westus2:7d89aa1f-3b19-4f54-976f-92da84274a58", + "x-ms-routing-request-id": "WESTUS2:20210712T022509Z:7d89aa1f-3b19-4f54-976f-92da84274a58" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793", + "name": "mgmt-group-2793", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-1c4bb49725b0454aae42c3b331fd4f17-36ab4d9a32f93f46-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "3f940e4b50682200691021f7a02e76f8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "ea2b5209-8979-4afb-baf9-8de073e2abfc", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:25:09 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "ea2b5209-8979-4afb-baf9-8de073e2abfc", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ea2b5209-8979-4afb-baf9-8de073e2abfc", + "x-ms-ratelimit-remaining-tenant-reads": "11971", + "x-ms-request-id": "westus2:ea2b5209-8979-4afb-baf9-8de073e2abfc", + "x-ms-routing-request-id": "WESTUS2:20210712T022510Z:ea2b5209-8979-4afb-baf9-8de073e2abfc" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793", + "name": "mgmt-group-2793", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-1c4bb49725b0454aae42c3b331fd4f17-5f49ef931fbdae4d-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "14fa5f424e22b54a691e0d859a8c54aa", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "9f892abb-fc68-47f1-800c-0dd036afb225", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:25:10 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "9f892abb-fc68-47f1-800c-0dd036afb225", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9f892abb-fc68-47f1-800c-0dd036afb225", + "x-ms-ratelimit-remaining-tenant-reads": "11970", + "x-ms-request-id": "westus2:9f892abb-fc68-47f1-800c-0dd036afb225", + "x-ms-routing-request-id": "WESTUS2:20210712T022511Z:9f892abb-fc68-47f1-800c-0dd036afb225" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793", + "name": "mgmt-group-2793", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-1c4bb49725b0454aae42c3b331fd4f17-d9a9ca18da111842-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "3107f62612efc988bac9eadf2f59d34a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "fb54f061-3f8d-4f5a-b1dc-890c15ab1c4c", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:25:12 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "fb54f061-3f8d-4f5a-b1dc-890c15ab1c4c", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "fb54f061-3f8d-4f5a-b1dc-890c15ab1c4c", + "x-ms-ratelimit-remaining-tenant-reads": "11969", + "x-ms-request-id": "westus2:fb54f061-3f8d-4f5a-b1dc-890c15ab1c4c", + "x-ms-routing-request-id": "WESTUS2:20210712T022512Z:fb54f061-3f8d-4f5a-b1dc-890c15ab1c4c" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793", + "name": "mgmt-group-2793", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-1c4bb49725b0454aae42c3b331fd4f17-f6579972de922545-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "0cdff7cfa5e1fcefc3ded549437a88dd", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "cc9c5be8-ce8c-4ea5-a3ba-1703d865ebfc", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:25:13 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "cc9c5be8-ce8c-4ea5-a3ba-1703d865ebfc", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "cc9c5be8-ce8c-4ea5-a3ba-1703d865ebfc", + "x-ms-ratelimit-remaining-tenant-reads": "11968", + "x-ms-request-id": "westus2:cc9c5be8-ce8c-4ea5-a3ba-1703d865ebfc", + "x-ms-routing-request-id": "WESTUS2:20210712T022513Z:cc9c5be8-ce8c-4ea5-a3ba-1703d865ebfc" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793", + "name": "mgmt-group-2793", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-1c4bb49725b0454aae42c3b331fd4f17-ad6eb791bf996b40-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "aad076bb44262f08d6305959646b8610", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "14737d7c-a7b1-4d6a-afba-1197c0764283", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:25:14 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "14737d7c-a7b1-4d6a-afba-1197c0764283", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "14737d7c-a7b1-4d6a-afba-1197c0764283", + "x-ms-ratelimit-remaining-tenant-reads": "11967", + "x-ms-request-id": "westus2:14737d7c-a7b1-4d6a-afba-1197c0764283", + "x-ms-routing-request-id": "WESTUS2:20210712T022514Z:14737d7c-a7b1-4d6a-afba-1197c0764283" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793", + "name": "mgmt-group-2793", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-1c4bb49725b0454aae42c3b331fd4f17-7cc30bd374a2f348-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "a2b6c34a48ad81c8060a6d103c3e863f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "ff8f653d-382a-4e25-9e76-5b4abe3d16c0", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:25:15 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "ff8f653d-382a-4e25-9e76-5b4abe3d16c0", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ff8f653d-382a-4e25-9e76-5b4abe3d16c0", + "x-ms-ratelimit-remaining-tenant-reads": "11966", + "x-ms-request-id": "westus2:ff8f653d-382a-4e25-9e76-5b4abe3d16c0", + "x-ms-routing-request-id": "WESTUS2:20210712T022515Z:ff8f653d-382a-4e25-9e76-5b4abe3d16c0" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793", + "name": "mgmt-group-2793", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-1c4bb49725b0454aae42c3b331fd4f17-29804081d803b249-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "b8230d4128888a23efaf36b04b969858", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "cd61cd3d-1880-4a8e-85e9-2f64f25cdb5d", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:25:16 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "cd61cd3d-1880-4a8e-85e9-2f64f25cdb5d", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "cd61cd3d-1880-4a8e-85e9-2f64f25cdb5d", + "x-ms-ratelimit-remaining-tenant-reads": "11965", + "x-ms-request-id": "westus2:cd61cd3d-1880-4a8e-85e9-2f64f25cdb5d", + "x-ms-routing-request-id": "WESTUS2:20210712T022517Z:cd61cd3d-1880-4a8e-85e9-2f64f25cdb5d" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793", + "name": "mgmt-group-2793", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-1c4bb49725b0454aae42c3b331fd4f17-62b530bbaccf2b4b-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "80ffc558e5c47330ae4fa31bd7f7f398", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "a9c3a7e9-aa34-454b-98a6-be10c318e5d0", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:25:17 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "a9c3a7e9-aa34-454b-98a6-be10c318e5d0", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a9c3a7e9-aa34-454b-98a6-be10c318e5d0", + "x-ms-ratelimit-remaining-tenant-reads": "11964", + "x-ms-request-id": "westus2:a9c3a7e9-aa34-454b-98a6-be10c318e5d0", + "x-ms-routing-request-id": "WESTUS2:20210712T022518Z:a9c3a7e9-aa34-454b-98a6-be10c318e5d0" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793", + "name": "mgmt-group-2793", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-1c4bb49725b0454aae42c3b331fd4f17-d50a10002ad8704c-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "57171aa9cd4721879f2bb3fd12173670", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "38a7a852-080c-43e2-91ac-6deea30d4296", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:25:18 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "38a7a852-080c-43e2-91ac-6deea30d4296", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "38a7a852-080c-43e2-91ac-6deea30d4296", + "x-ms-ratelimit-remaining-tenant-reads": "11963", + "x-ms-request-id": "westus2:38a7a852-080c-43e2-91ac-6deea30d4296", + "x-ms-routing-request-id": "WESTUS2:20210712T022519Z:38a7a852-080c-43e2-91ac-6deea30d4296" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793", + "name": "mgmt-group-2793", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-1c4bb49725b0454aae42c3b331fd4f17-878b4d86fada8447-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "77b81472063f5b7bdcb00a398507b3f7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "8d132538-f79e-44dc-9a2a-fa867b6a2d75", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:25:19 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "8d132538-f79e-44dc-9a2a-fa867b6a2d75", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8d132538-f79e-44dc-9a2a-fa867b6a2d75", + "x-ms-ratelimit-remaining-tenant-reads": "11962", + "x-ms-request-id": "westus2:8d132538-f79e-44dc-9a2a-fa867b6a2d75", + "x-ms-routing-request-id": "WESTUS2:20210712T022520Z:8d132538-f79e-44dc-9a2a-fa867b6a2d75" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793", + "name": "mgmt-group-2793", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-1c4bb49725b0454aae42c3b331fd4f17-3100511ea8730a48-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "31079dbc417e8b113edde09832326196", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "18ab18a0-f9bc-4a54-bafb-00dffbfae8f0", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:25:21 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "18ab18a0-f9bc-4a54-bafb-00dffbfae8f0", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "18ab18a0-f9bc-4a54-bafb-00dffbfae8f0", + "x-ms-ratelimit-remaining-tenant-reads": "11961", + "x-ms-request-id": "westus2:18ab18a0-f9bc-4a54-bafb-00dffbfae8f0", + "x-ms-routing-request-id": "WESTUS2:20210712T022521Z:18ab18a0-f9bc-4a54-bafb-00dffbfae8f0" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793", + "name": "mgmt-group-2793", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-1c4bb49725b0454aae42c3b331fd4f17-9f7ff05578765346-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "c2a933187c3fa3589fbb7a96c34d9c97", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "bcad21c8-69ab-4d84-a12f-26f2356ceb30", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:25:22 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "bcad21c8-69ab-4d84-a12f-26f2356ceb30", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "bcad21c8-69ab-4d84-a12f-26f2356ceb30", + "x-ms-ratelimit-remaining-tenant-reads": "11960", + "x-ms-request-id": "westus2:bcad21c8-69ab-4d84-a12f-26f2356ceb30", + "x-ms-routing-request-id": "WESTUS2:20210712T022522Z:bcad21c8-69ab-4d84-a12f-26f2356ceb30" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793", + "name": "mgmt-group-2793", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-1c4bb49725b0454aae42c3b331fd4f17-6a63fef616313447-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "7441bc78051030f2032c396125e229a9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "ec691601-d45b-4b50-8aa5-444c3e4566bc", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:25:23 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "ec691601-d45b-4b50-8aa5-444c3e4566bc", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ec691601-d45b-4b50-8aa5-444c3e4566bc", + "x-ms-ratelimit-remaining-tenant-reads": "11959", + "x-ms-request-id": "westus2:ec691601-d45b-4b50-8aa5-444c3e4566bc", + "x-ms-routing-request-id": "WESTUS2:20210712T022523Z:ec691601-d45b-4b50-8aa5-444c3e4566bc" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793", + "name": "mgmt-group-2793", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-1c4bb49725b0454aae42c3b331fd4f17-c3f2accffd839142-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "5220734ff05d40b7446391c2c67ac8f0", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "a1889f6b-89d6-4c3c-b2b8-2ecaac4301fa", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:25:24 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "a1889f6b-89d6-4c3c-b2b8-2ecaac4301fa", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a1889f6b-89d6-4c3c-b2b8-2ecaac4301fa", + "x-ms-ratelimit-remaining-tenant-reads": "11958", + "x-ms-request-id": "westus2:a1889f6b-89d6-4c3c-b2b8-2ecaac4301fa", + "x-ms-routing-request-id": "WESTUS2:20210712T022525Z:a1889f6b-89d6-4c3c-b2b8-2ecaac4301fa" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793", + "name": "mgmt-group-2793", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-1c4bb49725b0454aae42c3b331fd4f17-667e25dc0d547c4c-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "751f4840edf113854079be1343f77dbc", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "94ec5071-9358-4e4b-ba5e-ce3cffcf5783", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:25:25 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "94ec5071-9358-4e4b-ba5e-ce3cffcf5783", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "94ec5071-9358-4e4b-ba5e-ce3cffcf5783", + "x-ms-ratelimit-remaining-tenant-reads": "11957", + "x-ms-request-id": "westus2:94ec5071-9358-4e4b-ba5e-ce3cffcf5783", + "x-ms-routing-request-id": "WESTUS2:20210712T022526Z:94ec5071-9358-4e4b-ba5e-ce3cffcf5783" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793", + "name": "mgmt-group-2793", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-1c4bb49725b0454aae42c3b331fd4f17-c499d3bf10ec7545-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "4f47d1924a2d883904012fac732f6989", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "34563f1f-b3f7-47f5-9938-52e21b8aa875", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:25:26 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "34563f1f-b3f7-47f5-9938-52e21b8aa875", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "34563f1f-b3f7-47f5-9938-52e21b8aa875", + "x-ms-ratelimit-remaining-tenant-reads": "11956", + "x-ms-request-id": "westus2:34563f1f-b3f7-47f5-9938-52e21b8aa875", + "x-ms-routing-request-id": "WESTUS2:20210712T022527Z:34563f1f-b3f7-47f5-9938-52e21b8aa875" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793", + "name": "mgmt-group-2793", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-1c4bb49725b0454aae42c3b331fd4f17-8a401c98b7631042-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "dc204864b3c262b8ee0d11e431a4fd4d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "bd5c657d-3eee-4073-9d9e-f6ceca7862d7", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:25:27 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "bd5c657d-3eee-4073-9d9e-f6ceca7862d7", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "bd5c657d-3eee-4073-9d9e-f6ceca7862d7", + "x-ms-ratelimit-remaining-tenant-reads": "11955", + "x-ms-request-id": "westus2:bd5c657d-3eee-4073-9d9e-f6ceca7862d7", + "x-ms-routing-request-id": "WESTUS2:20210712T022528Z:bd5c657d-3eee-4073-9d9e-f6ceca7862d7" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793", + "name": "mgmt-group-2793", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-1c4bb49725b0454aae42c3b331fd4f17-0e2c16e72312564c-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "f530d4e67932f6c30e9771efbdd8a011", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "504c7550-f4c7-4a3e-9d03-87846b1298f6", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:25:28 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "504c7550-f4c7-4a3e-9d03-87846b1298f6", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "504c7550-f4c7-4a3e-9d03-87846b1298f6", + "x-ms-ratelimit-remaining-tenant-reads": "11954", + "x-ms-request-id": "westus2:504c7550-f4c7-4a3e-9d03-87846b1298f6", + "x-ms-routing-request-id": "WESTUS2:20210712T022529Z:504c7550-f4c7-4a3e-9d03-87846b1298f6" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793", + "name": "mgmt-group-2793", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-1c4bb49725b0454aae42c3b331fd4f17-6920cbcec98cc940-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "faae350fa0d6defa18e5601f38555660", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "af96cecf-7b9b-41de-932f-6afb90075ae9", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:25:29 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "af96cecf-7b9b-41de-932f-6afb90075ae9", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "af96cecf-7b9b-41de-932f-6afb90075ae9", + "x-ms-ratelimit-remaining-tenant-reads": "11953", + "x-ms-request-id": "westus2:af96cecf-7b9b-41de-932f-6afb90075ae9", + "x-ms-routing-request-id": "WESTUS2:20210712T022530Z:af96cecf-7b9b-41de-932f-6afb90075ae9" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793", + "name": "mgmt-group-2793", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-1c4bb49725b0454aae42c3b331fd4f17-5e73014b6d345241-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "9ec6e10474feeb568529ce2a42c8a415", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "63ac1196-ba3f-41b6-b4d0-fb7d18c9a917", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:25:31 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "63ac1196-ba3f-41b6-b4d0-fb7d18c9a917", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "63ac1196-ba3f-41b6-b4d0-fb7d18c9a917", + "x-ms-ratelimit-remaining-tenant-reads": "11952", + "x-ms-request-id": "westus2:63ac1196-ba3f-41b6-b4d0-fb7d18c9a917", + "x-ms-routing-request-id": "WESTUS2:20210712T022531Z:63ac1196-ba3f-41b6-b4d0-fb7d18c9a917" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793", + "name": "mgmt-group-2793", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-1c4bb49725b0454aae42c3b331fd4f17-f658e1ab4cb1b543-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "fcd5ff6d02f54577da52dc4d18a3bdb9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "e55e6b46-4446-4efe-aa60-ee986428d71b", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:25:32 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "e55e6b46-4446-4efe-aa60-ee986428d71b", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e55e6b46-4446-4efe-aa60-ee986428d71b", + "x-ms-ratelimit-remaining-tenant-reads": "11951", + "x-ms-request-id": "westus2:e55e6b46-4446-4efe-aa60-ee986428d71b", + "x-ms-routing-request-id": "WESTUS2:20210712T022532Z:e55e6b46-4446-4efe-aa60-ee986428d71b" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793", + "name": "mgmt-group-2793", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-1c4bb49725b0454aae42c3b331fd4f17-45fe3c3a91957f4b-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "dceb114101129b12dec374acd2cf9b50", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "d0f5c803-1122-4d9c-814a-426c24d82c2d", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:25:33 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "d0f5c803-1122-4d9c-814a-426c24d82c2d", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d0f5c803-1122-4d9c-814a-426c24d82c2d", + "x-ms-ratelimit-remaining-tenant-reads": "11950", + "x-ms-request-id": "westus2:d0f5c803-1122-4d9c-814a-426c24d82c2d", + "x-ms-routing-request-id": "WESTUS2:20210712T022534Z:d0f5c803-1122-4d9c-814a-426c24d82c2d" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793", + "name": "mgmt-group-2793", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-1c4bb49725b0454aae42c3b331fd4f17-7800771dbc1b7040-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "39b24b40597f016a6a81c3ac9709d3e2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "90a0feed-9413-419c-aec7-13f0bf0a5bc6", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:25:34 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "90a0feed-9413-419c-aec7-13f0bf0a5bc6", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "90a0feed-9413-419c-aec7-13f0bf0a5bc6", + "x-ms-ratelimit-remaining-tenant-reads": "11949", + "x-ms-request-id": "westus2:90a0feed-9413-419c-aec7-13f0bf0a5bc6", + "x-ms-routing-request-id": "WESTUS2:20210712T022535Z:90a0feed-9413-419c-aec7-13f0bf0a5bc6" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793", + "name": "mgmt-group-2793", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-1c4bb49725b0454aae42c3b331fd4f17-4ddecca63a2d524e-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "31e9146cc8dc6b03ec3a1e328eca730b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "bb146d9c-796b-4b6c-9593-f09f40aac93c", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:25:35 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "bb146d9c-796b-4b6c-9593-f09f40aac93c", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "bb146d9c-796b-4b6c-9593-f09f40aac93c", + "x-ms-ratelimit-remaining-tenant-reads": "11948", + "x-ms-request-id": "westus2:bb146d9c-796b-4b6c-9593-f09f40aac93c", + "x-ms-routing-request-id": "WESTUS2:20210712T022536Z:bb146d9c-796b-4b6c-9593-f09f40aac93c" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793", + "name": "mgmt-group-2793", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-1c4bb49725b0454aae42c3b331fd4f17-7193227d04ee3845-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "cc0c8cb684f0e739a6e971913d6603d4", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "client-request-id": "2cb92b68-0a1a-4148-95e6-402741389694", + "Content-Length": "382", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:25:36 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "request-id": "2cb92b68-0a1a-4148-95e6-402741389694", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2cb92b68-0a1a-4148-95e6-402741389694", + "x-ms-ratelimit-remaining-tenant-reads": "11947", + "x-ms-request-id": "westus2:2cb92b68-0a1a-4148-95e6-402741389694", + "x-ms-routing-request-id": "WESTUS2:20210712T022537Z:2cb92b68-0a1a-4148-95e6-402741389694" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-2793", + "name": "mgmt-group-2793", + "status": "Succeeded", + "properties": { + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "mgmt-group-2793", + "details": { + "version": 1, + "updatedTime": "2021-07-12T02:25:16.6774128Z", + "updatedBy": "3b10dae3-28cf-49a7-a8df-8fbae3e77f27" + } + } + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/mgmt-group-2793?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-1c4bb49725b0454aae42c3b331fd4f17-9f3be4a46251d84a-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "be4092ef6ae5787348474c453a37739f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "client-request-id": "7ba3ddbd-3dd1-44fa-8f86-55edf91e0504", + "Content-Length": "565", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:25:36 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "request-id": "7ba3ddbd-3dd1-44fa-8f86-55edf91e0504", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7ba3ddbd-3dd1-44fa-8f86-55edf91e0504", + "x-ms-ratelimit-remaining-tenant-reads": "11946", + "x-ms-request-id": "westus2:7ba3ddbd-3dd1-44fa-8f86-55edf91e0504", + "x-ms-routing-request-id": "WESTUS2:20210712T022537Z:7ba3ddbd-3dd1-44fa-8f86-55edf91e0504" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/managementGroups/mgmt-group-2793", + "type": "Microsoft.Management/managementGroups", + "name": "mgmt-group-2793", + "properties": { + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "mgmt-group-2793", + "details": { + "version": 1, + "updatedTime": "2021-07-12T02:25:16.6774128Z", + "updatedBy": "3b10dae3-28cf-49a7-a8df-8fbae3e77f27", + "parent": { + "id": "/providers/Microsoft.Management/managementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47", + "name": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } + } + } + } + } + ], + "Variables": { + "RandomSeed": "1524082043", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/DoesExist.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/DoesExist.json new file mode 100644 index 0000000000000..2aa9038a2b6b2 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/DoesExist.json @@ -0,0 +1,141 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "8fd5419518aafaa02488caa8c8deda0c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "450", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:12:32 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "308085c2-c2e2-41e3-a2c3-6d1939877ed0", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-request-id": "308085c2-c2e2-41e3-a2c3-6d1939877ed0", + "x-ms-routing-request-id": "WESTUS2:20210712T021233Z:308085c2-c2e2-41e3-a2c3-6d1939877ed0" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "tagKey1": "tagValue1", + "tagKey2": "tagValue2" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Cache-Control": "no-cache", + "traceparent": "00-88dbb2b2b9896642ba10cbaa6f815b95-8f86abda11ca7440-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "8ec5b6fa05613f0330bdfc319ae0cf97", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "client-request-id": "e2b31e6a-9d42-4da1-b2d5-5f546a5e2197", + "Content-Length": "562", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:12:32 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "request-id": "e2b31e6a-9d42-4da1-b2d5-5f546a5e2197", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e2b31e6a-9d42-4da1-b2d5-5f546a5e2197", + "x-ms-ratelimit-remaining-tenant-reads": "11977", + "x-ms-request-id": "westus2:e2b31e6a-9d42-4da1-b2d5-5f546a5e2197", + "x-ms-routing-request-id": "WESTUS2:20210712T021233Z:e2b31e6a-9d42-4da1-b2d5-5f546a5e2197" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/managementGroups/mgmt-group-827", + "type": "Microsoft.Management/managementGroups", + "name": "mgmt-group-827", + "properties": { + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "mgmt-group-827", + "details": { + "version": 7, + "updatedTime": "2021-07-12T02:12:17.0110949Z", + "updatedBy": "3b10dae3-28cf-49a7-a8df-8fbae3e77f27", + "parent": { + "id": "/providers/Microsoft.Management/managementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47", + "name": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } + } + } + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/mgmt-group-827x?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Cache-Control": "no-cache", + "traceparent": "00-4fad87e88352464cb2c0eab5c3cc4961-4c37dc144f791548-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "edf908d30bb1bc452e47f81454108323", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 403, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Connection": "close", + "Content-Length": "415", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:12:32 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "615ff006-29e5-4c19-a733-7197f49af8ce", + "x-ms-failure-cause": "gateway", + "x-ms-request-id": "615ff006-29e5-4c19-a733-7197f49af8ce", + "x-ms-routing-request-id": "WESTUS2:20210712T021233Z:615ff006-29e5-4c19-a733-7197f49af8ce" + }, + "ResponseBody": { + "error": { + "code": "AuthorizationFailed", + "message": "The client \u00273b10dae3-28cf-49a7-a8df-8fbae3e77f27\u0027 with object id \u00273b10dae3-28cf-49a7-a8df-8fbae3e77f27\u0027 does not have authorization to perform action \u0027Microsoft.Management/managementGroups/read\u0027 over scope \u0027/providers/Microsoft.Management/managementGroups/mgmt-group-827x\u0027 or the scope is invalid. If access was recently granted, please refresh your credentials." + } + } + } + ], + "Variables": { + "RandomSeed": "999687268", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/DoesExistAsync.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/DoesExistAsync.json new file mode 100644 index 0000000000000..f3cba8adcdffe --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/DoesExistAsync.json @@ -0,0 +1,141 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "7e75a5d49435d430d8bcaeefd25cbf19", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "450", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:25:37 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "35488971-3065-4bba-93d4-ced2cb0b2248", + "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-request-id": "35488971-3065-4bba-93d4-ced2cb0b2248", + "x-ms-routing-request-id": "WESTUS2:20210712T022538Z:35488971-3065-4bba-93d4-ced2cb0b2248" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "tagKey1": "tagValue1", + "tagKey2": "tagValue2" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Cache-Control": "no-cache", + "traceparent": "00-38c11b7a3d5e784081fc2faa29e1ad15-ce5b0657509bfe42-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "e7b1785bcc493a9e327476b72e47dca9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "client-request-id": "60329435-3e36-48ff-80e5-202112023a0f", + "Content-Length": "565", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:25:38 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "request-id": "60329435-3e36-48ff-80e5-202112023a0f", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "60329435-3e36-48ff-80e5-202112023a0f", + "x-ms-ratelimit-remaining-tenant-reads": "11945", + "x-ms-request-id": "westus2:60329435-3e36-48ff-80e5-202112023a0f", + "x-ms-routing-request-id": "WESTUS2:20210712T022538Z:60329435-3e36-48ff-80e5-202112023a0f" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/managementGroups/mgmt-group-7077", + "type": "Microsoft.Management/managementGroups", + "name": "mgmt-group-7077", + "properties": { + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "mgmt-group-7077", + "details": { + "version": 1, + "updatedTime": "2021-07-12T02:24:46.5942156Z", + "updatedBy": "3b10dae3-28cf-49a7-a8df-8fbae3e77f27", + "parent": { + "id": "/providers/Microsoft.Management/managementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47", + "name": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } + } + } + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/mgmt-group-7077x?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Cache-Control": "no-cache", + "traceparent": "00-8b041741573dfa458c0a3ffa47edca93-8eb56573ef9df545-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "f8a719f22e2dd670c1d08257023acae1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 403, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Connection": "close", + "Content-Length": "416", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:25:38 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "86fef0a8-85d5-4e94-af7e-bdb31c8b351d", + "x-ms-failure-cause": "gateway", + "x-ms-request-id": "86fef0a8-85d5-4e94-af7e-bdb31c8b351d", + "x-ms-routing-request-id": "WESTUS2:20210712T022538Z:86fef0a8-85d5-4e94-af7e-bdb31c8b351d" + }, + "ResponseBody": { + "error": { + "code": "AuthorizationFailed", + "message": "The client \u00273b10dae3-28cf-49a7-a8df-8fbae3e77f27\u0027 with object id \u00273b10dae3-28cf-49a7-a8df-8fbae3e77f27\u0027 does not have authorization to perform action \u0027Microsoft.Management/managementGroups/read\u0027 over scope \u0027/providers/Microsoft.Management/managementGroups/mgmt-group-7077x\u0027 or the scope is invalid. If access was recently granted, please refresh your credentials." + } + } + } + ], + "Variables": { + "RandomSeed": "5208514", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/Get.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/Get.json new file mode 100644 index 0000000000000..8ac71f51cd4a0 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/Get.json @@ -0,0 +1,105 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "d6bc55a4dabeb6982d83d7e935e2c8ae", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "450", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:46:57 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7f981584-2b7a-494e-aa48-3995a0ed8ade", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-request-id": "7f981584-2b7a-494e-aa48-3995a0ed8ade", + "x-ms-routing-request-id": "WESTUS2:20210712T024658Z:7f981584-2b7a-494e-aa48-3995a0ed8ade" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "tagKey1": "tagValue1", + "tagKey2": "tagValue2" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Cache-Control": "no-cache", + "traceparent": "00-5d34b3caacb2804fb016cdb384bc4fcb-de671d1ebc18164c-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "2fab16eddac6287ac47895b039e1a825", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "client-request-id": "050fe02b-48f0-40ae-a7bd-660cc59a5932", + "Content-Length": "563", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:46:58 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "request-id": "050fe02b-48f0-40ae-a7bd-660cc59a5932", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "050fe02b-48f0-40ae-a7bd-660cc59a5932", + "x-ms-ratelimit-remaining-tenant-reads": "11926", + "x-ms-request-id": "westus2:050fe02b-48f0-40ae-a7bd-660cc59a5932", + "x-ms-routing-request-id": "WESTUS2:20210712T024658Z:050fe02b-48f0-40ae-a7bd-660cc59a5932" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/managementGroups/mgmt-group-827", + "type": "Microsoft.Management/managementGroups", + "name": "mgmt-group-827", + "properties": { + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "mgmt-group-827", + "details": { + "version": 11, + "updatedTime": "2021-07-12T02:46:41.3959907Z", + "updatedBy": "3b10dae3-28cf-49a7-a8df-8fbae3e77f27", + "parent": { + "id": "/providers/Microsoft.Management/managementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47", + "name": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } + } + } + } + } + ], + "Variables": { + "RandomSeed": "182079362", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/GetAsync.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/GetAsync.json new file mode 100644 index 0000000000000..c06747b598bde --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/GetAsync.json @@ -0,0 +1,105 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "a2bf914cbf7bd160ccb71a5ce159e542", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "450", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:25:38 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8d1e5e85-86db-4888-9aff-1652217906f5", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-request-id": "8d1e5e85-86db-4888-9aff-1652217906f5", + "x-ms-routing-request-id": "WESTUS2:20210712T022539Z:8d1e5e85-86db-4888-9aff-1652217906f5" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "tagKey1": "tagValue1", + "tagKey2": "tagValue2" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Cache-Control": "no-cache", + "traceparent": "00-c240d4afd0be5f4b84404601be9e3c2a-f2e23e01b3cf4f45-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "3bbcecca6bb46a46bbf7f5fb203f20af", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "client-request-id": "aa187cff-47f2-49b4-94ce-9f1e77218766", + "Content-Length": "565", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:25:38 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "request-id": "aa187cff-47f2-49b4-94ce-9f1e77218766", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "aa187cff-47f2-49b4-94ce-9f1e77218766", + "x-ms-ratelimit-remaining-tenant-reads": "11999", + "x-ms-request-id": "westus2:aa187cff-47f2-49b4-94ce-9f1e77218766", + "x-ms-routing-request-id": "WESTUS2:20210712T022539Z:aa187cff-47f2-49b4-94ce-9f1e77218766" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/managementGroups/mgmt-group-7077", + "type": "Microsoft.Management/managementGroups", + "name": "mgmt-group-7077", + "properties": { + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "mgmt-group-7077", + "details": { + "version": 1, + "updatedTime": "2021-07-12T02:24:46.5942156Z", + "updatedBy": "3b10dae3-28cf-49a7-a8df-8fbae3e77f27", + "parent": { + "id": "/providers/Microsoft.Management/managementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47", + "name": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } + } + } + } + } + ], + "Variables": { + "RandomSeed": "1838841866", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/List.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/List.json new file mode 100644 index 0000000000000..c6ecfe1172621 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/List.json @@ -0,0 +1,100 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "1ece228fdacf7377a1575a120fc772b3", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "450", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:16:21 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "fe9bef53-fc20-4dd8-b8df-680492ef0c0a", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-request-id": "fe9bef53-fc20-4dd8-b8df-680492ef0c0a", + "x-ms-routing-request-id": "WESTUS2:20210712T021622Z:fe9bef53-fc20-4dd8-b8df-680492ef0c0a" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "tagKey1": "tagValue1", + "tagKey2": "tagValue2" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Cache-Control": "no-cache", + "traceparent": "00-1cb3bb6efe74804cbc98e811892f362c-f18303985b2ea74e-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "3639dbd02a78ecc832f2cc6d6fa8908c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "client-request-id": "4713d300-3d9b-43c1-8a0d-f7861c1dc4ad", + "Content-Length": "268", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:16:23 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "request-id": "4713d300-3d9b-43c1-8a0d-f7861c1dc4ad", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4713d300-3d9b-43c1-8a0d-f7861c1dc4ad", + "x-ms-ratelimit-remaining-tenant-reads": "11974", + "x-ms-request-id": "westus2:4713d300-3d9b-43c1-8a0d-f7861c1dc4ad", + "x-ms-routing-request-id": "WESTUS2:20210712T021624Z:4713d300-3d9b-43c1-8a0d-f7861c1dc4ad" + }, + "ResponseBody": { + "value": [ + { + "id": "/providers/Microsoft.Management/managementGroups/mgmt-group-827", + "type": "Microsoft.Management/managementGroups", + "name": "mgmt-group-827", + "properties": { + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "mgmt-group-827" + } + } + ], + "@nextLink": null + } + } + ], + "Variables": { + "RandomSeed": "30018818", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/ListAsync.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/ListAsync.json new file mode 100644 index 0000000000000..b9d2419e63eb3 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/ListAsync.json @@ -0,0 +1,100 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "faae04ca7e1c7fae69e6a5bbe56fc77f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "450", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:25:38 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c1a33b63-793b-42b3-867e-d52f7b5fa6b2", + "x-ms-ratelimit-remaining-subscription-reads": "11998", + "x-ms-request-id": "c1a33b63-793b-42b3-867e-d52f7b5fa6b2", + "x-ms-routing-request-id": "WESTUS2:20210712T022539Z:c1a33b63-793b-42b3-867e-d52f7b5fa6b2" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "tagKey1": "tagValue1", + "tagKey2": "tagValue2" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Cache-Control": "no-cache", + "traceparent": "00-2b2815c5ac545246ba726c90e3eede55-074b45920fd43943-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "eb906a60ab29302bc4625a55d3575989", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "client-request-id": "b18b3195-6349-4b89-a942-687f70a29c9d", + "Content-Length": "268", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:25:38 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "request-id": "b18b3195-6349-4b89-a942-687f70a29c9d", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b18b3195-6349-4b89-a942-687f70a29c9d", + "x-ms-ratelimit-remaining-tenant-reads": "11998", + "x-ms-request-id": "westus2:b18b3195-6349-4b89-a942-687f70a29c9d", + "x-ms-routing-request-id": "WESTUS2:20210712T022539Z:b18b3195-6349-4b89-a942-687f70a29c9d" + }, + "ResponseBody": { + "value": [ + { + "id": "/providers/Microsoft.Management/managementGroups/mgmt-group-827", + "type": "Microsoft.Management/managementGroups", + "name": "mgmt-group-827", + "properties": { + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "mgmt-group-827" + } + } + ], + "@nextLink": null + } + } + ], + "Variables": { + "RandomSeed": "267523460", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/ManagementGroupContainerTests(False).json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/ManagementGroupContainerTests(False).json new file mode 100644 index 0000000000000..c814e59a5e947 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/ManagementGroupContainerTests(False).json @@ -0,0 +1,2974 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "c3e11f6b550c9e107ce92b426a2fec90", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "450", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:45:36 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d01e0058-b837-431f-b288-be76fe0638be", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-request-id": "d01e0058-b837-431f-b288-be76fe0638be", + "x-ms-routing-request-id": "WESTUS2:20210712T024536Z:d01e0058-b837-431f-b288-be76fe0638be" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "tagKey1": "tagValue1", + "tagKey2": "tagValue2" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "17", + "Content-Type": "application/json", + "traceparent": "00-ea58924b214abb428d696373e9846f16-b21ef88b7a9f6742-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "859b6229c1944506f0d4de51d82e796f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": {} + }, + "StatusCode": 202, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "10b77993-1902-4058-a109-bb08d464ac1e", + "Content-Length": "165", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:45:37 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "10b77993-1902-4058-a109-bb08d464ac1e", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "10b77993-1902-4058-a109-bb08d464ac1e", + "x-ms-ratelimit-remaining-managementgroups-requests": "59", + "x-ms-ratelimit-remaining-tenant-writes": "1199", + "x-ms-request-id": "westus2:10b77993-1902-4058-a109-bb08d464ac1e", + "x-ms-routing-request-id": "WESTUS2:20210712T024538Z:10b77993-1902-4058-a109-bb08d464ac1e" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/managementGroups/mgmt-group-827", + "type": "Microsoft.Management/managementGroups", + "name": "mgmt-group-827", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-083aecdda8dec049-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "80ab90b924185dd7da7d1b81314da3bb", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "e005a21a-6a3a-4d76-8b97-86f6da8e534e", + "Content-Length": "164", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:45:37 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "e005a21a-6a3a-4d76-8b97-86f6da8e534e", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e005a21a-6a3a-4d76-8b97-86f6da8e534e", + "x-ms-ratelimit-remaining-tenant-reads": "11999", + "x-ms-request-id": "westus2:e005a21a-6a3a-4d76-8b97-86f6da8e534e", + "x-ms-routing-request-id": "WESTUS2:20210712T024538Z:e005a21a-6a3a-4d76-8b97-86f6da8e534e" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-13e2d9848b869849-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "c1f0d3b1760a0b718ae1c6624cd73cc6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "307df8aa-aa36-46c4-98c5-113d48258967", + "Content-Length": "164", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:45:38 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "307df8aa-aa36-46c4-98c5-113d48258967", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "307df8aa-aa36-46c4-98c5-113d48258967", + "x-ms-ratelimit-remaining-tenant-reads": "11998", + "x-ms-request-id": "westus2:307df8aa-aa36-46c4-98c5-113d48258967", + "x-ms-routing-request-id": "WESTUS2:20210712T024539Z:307df8aa-aa36-46c4-98c5-113d48258967" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-9f6e08bd5365494b-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "48973c74f982545796843fe702568872", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "2cba214e-f8b2-4419-bbd2-fa6e02f7d88b", + "Content-Length": "164", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:45:40 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "2cba214e-f8b2-4419-bbd2-fa6e02f7d88b", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2cba214e-f8b2-4419-bbd2-fa6e02f7d88b", + "x-ms-ratelimit-remaining-tenant-reads": "11997", + "x-ms-request-id": "westus2:2cba214e-f8b2-4419-bbd2-fa6e02f7d88b", + "x-ms-routing-request-id": "WESTUS2:20210712T024540Z:2cba214e-f8b2-4419-bbd2-fa6e02f7d88b" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-2c71cf6cdc5a764b-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "357eb98e9e3843971e9ff6365e751003", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "717027ad-9db0-4602-af14-cd8ca3bde7c2", + "Content-Length": "164", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:45:41 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "717027ad-9db0-4602-af14-cd8ca3bde7c2", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "717027ad-9db0-4602-af14-cd8ca3bde7c2", + "x-ms-ratelimit-remaining-tenant-reads": "11996", + "x-ms-request-id": "westus2:717027ad-9db0-4602-af14-cd8ca3bde7c2", + "x-ms-routing-request-id": "WESTUS2:20210712T024541Z:717027ad-9db0-4602-af14-cd8ca3bde7c2" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-c52e767263239b43-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "f50c55405bb5b8387c9b2b8536890933", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "f3c11d5f-32e1-4606-acf6-2d1e55e588b0", + "Content-Length": "164", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:45:42 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "f3c11d5f-32e1-4606-acf6-2d1e55e588b0", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f3c11d5f-32e1-4606-acf6-2d1e55e588b0", + "x-ms-ratelimit-remaining-tenant-reads": "11995", + "x-ms-request-id": "westus2:f3c11d5f-32e1-4606-acf6-2d1e55e588b0", + "x-ms-routing-request-id": "WESTUS2:20210712T024542Z:f3c11d5f-32e1-4606-acf6-2d1e55e588b0" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-019068768fc82542-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "93d354590758d58da45429e30220f621", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "0b1d14a6-b55e-479e-95bc-496bbefc5b0e", + "Content-Length": "164", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:45:43 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "0b1d14a6-b55e-479e-95bc-496bbefc5b0e", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0b1d14a6-b55e-479e-95bc-496bbefc5b0e", + "x-ms-ratelimit-remaining-tenant-reads": "11994", + "x-ms-request-id": "westus2:0b1d14a6-b55e-479e-95bc-496bbefc5b0e", + "x-ms-routing-request-id": "WESTUS2:20210712T024544Z:0b1d14a6-b55e-479e-95bc-496bbefc5b0e" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-bef474894a5c0040-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "aca63b73934a32bc80c5b89c73120c94", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "62dd52dc-f995-4048-abc6-e945765c99c8", + "Content-Length": "164", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:45:44 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "62dd52dc-f995-4048-abc6-e945765c99c8", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "62dd52dc-f995-4048-abc6-e945765c99c8", + "x-ms-ratelimit-remaining-tenant-reads": "11993", + "x-ms-request-id": "westus2:62dd52dc-f995-4048-abc6-e945765c99c8", + "x-ms-routing-request-id": "WESTUS2:20210712T024545Z:62dd52dc-f995-4048-abc6-e945765c99c8" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-82bfa8563798d448-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "0adcc2967da139aac73650613255b55b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "78b11d49-8540-46d0-af37-08d984661924", + "Content-Length": "164", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:45:45 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "78b11d49-8540-46d0-af37-08d984661924", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "78b11d49-8540-46d0-af37-08d984661924", + "x-ms-ratelimit-remaining-tenant-reads": "11992", + "x-ms-request-id": "westus2:78b11d49-8540-46d0-af37-08d984661924", + "x-ms-routing-request-id": "WESTUS2:20210712T024546Z:78b11d49-8540-46d0-af37-08d984661924" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-b1a5709b0ef2e24e-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "fb110aa55ce3c6e997a113934ef06292", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "7dcdd6e2-7fa5-4be6-aa31-67ea0b7e24e0", + "Content-Length": "164", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:45:46 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "7dcdd6e2-7fa5-4be6-aa31-67ea0b7e24e0", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7dcdd6e2-7fa5-4be6-aa31-67ea0b7e24e0", + "x-ms-ratelimit-remaining-tenant-reads": "11991", + "x-ms-request-id": "westus2:7dcdd6e2-7fa5-4be6-aa31-67ea0b7e24e0", + "x-ms-routing-request-id": "WESTUS2:20210712T024547Z:7dcdd6e2-7fa5-4be6-aa31-67ea0b7e24e0" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-87106c8102b02242-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "3f4c9447ec43f67f906de513425b002b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "71532dce-7cd1-476e-b415-ee8e2f94da97", + "Content-Length": "164", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:45:48 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "71532dce-7cd1-476e-b415-ee8e2f94da97", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "71532dce-7cd1-476e-b415-ee8e2f94da97", + "x-ms-ratelimit-remaining-tenant-reads": "11990", + "x-ms-request-id": "westus2:71532dce-7cd1-476e-b415-ee8e2f94da97", + "x-ms-routing-request-id": "WESTUS2:20210712T024548Z:71532dce-7cd1-476e-b415-ee8e2f94da97" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-e85f98fe683ef14b-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "68f75c0f110039b1d91672006a17ead6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "ed831b7b-7345-44c1-9b0f-6f597a009f6a", + "Content-Length": "164", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:45:49 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "ed831b7b-7345-44c1-9b0f-6f597a009f6a", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ed831b7b-7345-44c1-9b0f-6f597a009f6a", + "x-ms-ratelimit-remaining-tenant-reads": "11989", + "x-ms-request-id": "westus2:ed831b7b-7345-44c1-9b0f-6f597a009f6a", + "x-ms-routing-request-id": "WESTUS2:20210712T024549Z:ed831b7b-7345-44c1-9b0f-6f597a009f6a" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-359bee5e4a9b5b49-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "9d1abed37608b8178a1b6a7577d6833c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "2cf8ce92-427e-40ff-91b0-4ef86cb876ee", + "Content-Length": "164", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:45:50 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "2cf8ce92-427e-40ff-91b0-4ef86cb876ee", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2cf8ce92-427e-40ff-91b0-4ef86cb876ee", + "x-ms-ratelimit-remaining-tenant-reads": "11988", + "x-ms-request-id": "westus2:2cf8ce92-427e-40ff-91b0-4ef86cb876ee", + "x-ms-routing-request-id": "WESTUS2:20210712T024550Z:2cf8ce92-427e-40ff-91b0-4ef86cb876ee" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-a4946f85377c1f43-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "f183e7a0f9f93592e313662d797f8c79", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "304ef265-fcd9-4bd7-b97a-dddae226aab9", + "Content-Length": "164", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:45:51 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "304ef265-fcd9-4bd7-b97a-dddae226aab9", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "304ef265-fcd9-4bd7-b97a-dddae226aab9", + "x-ms-ratelimit-remaining-tenant-reads": "11987", + "x-ms-request-id": "westus2:304ef265-fcd9-4bd7-b97a-dddae226aab9", + "x-ms-routing-request-id": "WESTUS2:20210712T024552Z:304ef265-fcd9-4bd7-b97a-dddae226aab9" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-66c9714625580540-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "843f0e8262419922443edee4a63bc202", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "2371d45a-483e-49d2-bda5-a6891811dc2b", + "Content-Length": "164", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:45:52 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "2371d45a-483e-49d2-bda5-a6891811dc2b", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2371d45a-483e-49d2-bda5-a6891811dc2b", + "x-ms-ratelimit-remaining-tenant-reads": "11986", + "x-ms-request-id": "westus2:2371d45a-483e-49d2-bda5-a6891811dc2b", + "x-ms-routing-request-id": "WESTUS2:20210712T024553Z:2371d45a-483e-49d2-bda5-a6891811dc2b" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-4b30cb30b185ce4d-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "825f3692f893dadd2ce4baf50fea3e0b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "7d5ccc3b-8cd0-4881-8ca6-0eafd2cafffd", + "Content-Length": "164", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:45:53 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "7d5ccc3b-8cd0-4881-8ca6-0eafd2cafffd", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7d5ccc3b-8cd0-4881-8ca6-0eafd2cafffd", + "x-ms-ratelimit-remaining-tenant-reads": "11985", + "x-ms-request-id": "westus2:7d5ccc3b-8cd0-4881-8ca6-0eafd2cafffd", + "x-ms-routing-request-id": "WESTUS2:20210712T024554Z:7d5ccc3b-8cd0-4881-8ca6-0eafd2cafffd" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-44ebcdec29ae0044-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "68f3f18eff973efbc5eaacba1bad8ea7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "92d5de88-b4a1-4ecb-bee2-0fc8ca6595d9", + "Content-Length": "164", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:45:54 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "92d5de88-b4a1-4ecb-bee2-0fc8ca6595d9", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "92d5de88-b4a1-4ecb-bee2-0fc8ca6595d9", + "x-ms-ratelimit-remaining-tenant-reads": "11984", + "x-ms-request-id": "westus2:92d5de88-b4a1-4ecb-bee2-0fc8ca6595d9", + "x-ms-routing-request-id": "WESTUS2:20210712T024555Z:92d5de88-b4a1-4ecb-bee2-0fc8ca6595d9" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-e74de201ecb0be47-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "439a63510a1f89e53165585ca82d895a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "4c56949d-893a-4eeb-a342-61feed782b47", + "Content-Length": "164", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:45:55 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "4c56949d-893a-4eeb-a342-61feed782b47", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4c56949d-893a-4eeb-a342-61feed782b47", + "x-ms-ratelimit-remaining-tenant-reads": "11983", + "x-ms-request-id": "westus2:4c56949d-893a-4eeb-a342-61feed782b47", + "x-ms-routing-request-id": "WESTUS2:20210712T024556Z:4c56949d-893a-4eeb-a342-61feed782b47" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-8d0304aa6ec7ee4b-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "b556d3ff5948936b3a20bda84c22be7f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "94ba5a89-48fe-4394-b329-420d22ef3047", + "Content-Length": "164", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:45:56 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "94ba5a89-48fe-4394-b329-420d22ef3047", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "94ba5a89-48fe-4394-b329-420d22ef3047", + "x-ms-ratelimit-remaining-tenant-reads": "11982", + "x-ms-request-id": "westus2:94ba5a89-48fe-4394-b329-420d22ef3047", + "x-ms-routing-request-id": "WESTUS2:20210712T024557Z:94ba5a89-48fe-4394-b329-420d22ef3047" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-69af7aea955dac45-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "aca31255fa4f84eb0b693731a79e9697", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "374796b4-ff76-46f9-8f6a-81017be7389e", + "Content-Length": "164", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:45:57 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "374796b4-ff76-46f9-8f6a-81017be7389e", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "374796b4-ff76-46f9-8f6a-81017be7389e", + "x-ms-ratelimit-remaining-tenant-reads": "11981", + "x-ms-request-id": "westus2:374796b4-ff76-46f9-8f6a-81017be7389e", + "x-ms-routing-request-id": "WESTUS2:20210712T024558Z:374796b4-ff76-46f9-8f6a-81017be7389e" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-cb69890e71272a4f-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "47ba5261d957f85ff70608ff4d3c3d0e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "ed1d8cad-6f07-4508-bc63-7163923fb91d", + "Content-Length": "164", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:45:59 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "ed1d8cad-6f07-4508-bc63-7163923fb91d", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ed1d8cad-6f07-4508-bc63-7163923fb91d", + "x-ms-ratelimit-remaining-tenant-reads": "11980", + "x-ms-request-id": "westus2:ed1d8cad-6f07-4508-bc63-7163923fb91d", + "x-ms-routing-request-id": "WESTUS2:20210712T024559Z:ed1d8cad-6f07-4508-bc63-7163923fb91d" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-221c7abf78ada14a-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "9507d9a6dd89040ae8d1a9df2139ec9c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "aef7937f-8f66-466c-b5d2-c394714aef2e", + "Content-Length": "164", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:46:00 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "aef7937f-8f66-466c-b5d2-c394714aef2e", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "aef7937f-8f66-466c-b5d2-c394714aef2e", + "x-ms-ratelimit-remaining-tenant-reads": "11979", + "x-ms-request-id": "westus2:aef7937f-8f66-466c-b5d2-c394714aef2e", + "x-ms-routing-request-id": "WESTUS2:20210712T024601Z:aef7937f-8f66-466c-b5d2-c394714aef2e" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-a70d7369ac080f40-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "f947258a76677b27b3abb448f2eb37cf", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "3436dbf3-c74c-49cf-b02e-7d06c61bdbce", + "Content-Length": "164", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:46:01 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "3436dbf3-c74c-49cf-b02e-7d06c61bdbce", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3436dbf3-c74c-49cf-b02e-7d06c61bdbce", + "x-ms-ratelimit-remaining-tenant-reads": "11978", + "x-ms-request-id": "westus2:3436dbf3-c74c-49cf-b02e-7d06c61bdbce", + "x-ms-routing-request-id": "WESTUS2:20210712T024602Z:3436dbf3-c74c-49cf-b02e-7d06c61bdbce" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-3fc00483145c1d4a-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "ce8b282b0196830d47b55f85307fd6bd", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "b2cc8f29-cf1e-43c3-914d-029fa89e4128", + "Content-Length": "164", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:46:02 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "b2cc8f29-cf1e-43c3-914d-029fa89e4128", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b2cc8f29-cf1e-43c3-914d-029fa89e4128", + "x-ms-ratelimit-remaining-tenant-reads": "11977", + "x-ms-request-id": "westus2:b2cc8f29-cf1e-43c3-914d-029fa89e4128", + "x-ms-routing-request-id": "WESTUS2:20210712T024603Z:b2cc8f29-cf1e-43c3-914d-029fa89e4128" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-05bd376829743441-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "27746c1a43f42fa7b18ce1de28c112fc", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "df117897-3013-4e4f-a59f-b01b1ec87f24", + "Content-Length": "164", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:46:03 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "df117897-3013-4e4f-a59f-b01b1ec87f24", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "df117897-3013-4e4f-a59f-b01b1ec87f24", + "x-ms-ratelimit-remaining-tenant-reads": "11976", + "x-ms-request-id": "westus2:df117897-3013-4e4f-a59f-b01b1ec87f24", + "x-ms-routing-request-id": "WESTUS2:20210712T024604Z:df117897-3013-4e4f-a59f-b01b1ec87f24" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-6c03b1d707a2e445-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "f9b4da9a1eae890618c4b2b117a24b34", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "f3d781a5-0c33-407b-9a2e-aecdf6470639", + "Content-Length": "164", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:46:04 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "f3d781a5-0c33-407b-9a2e-aecdf6470639", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f3d781a5-0c33-407b-9a2e-aecdf6470639", + "x-ms-ratelimit-remaining-tenant-reads": "11975", + "x-ms-request-id": "westus2:f3d781a5-0c33-407b-9a2e-aecdf6470639", + "x-ms-routing-request-id": "WESTUS2:20210712T024605Z:f3d781a5-0c33-407b-9a2e-aecdf6470639" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-369ad0f6b905804d-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "862ef7d51077e7da815c1d0a1f2f5b85", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "0473f828-a9d2-422c-b6b3-1e23ef3d9862", + "Content-Length": "164", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:46:05 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "0473f828-a9d2-422c-b6b3-1e23ef3d9862", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0473f828-a9d2-422c-b6b3-1e23ef3d9862", + "x-ms-ratelimit-remaining-tenant-reads": "11974", + "x-ms-request-id": "westus2:0473f828-a9d2-422c-b6b3-1e23ef3d9862", + "x-ms-routing-request-id": "WESTUS2:20210712T024606Z:0473f828-a9d2-422c-b6b3-1e23ef3d9862" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-47fdac9b7ce3a045-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "55eb62a2ddcbfc0f65eb0f3091f5170e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "903ea010-cf94-491f-bdef-f4bb9f445096", + "Content-Length": "164", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:46:06 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "903ea010-cf94-491f-bdef-f4bb9f445096", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "903ea010-cf94-491f-bdef-f4bb9f445096", + "x-ms-ratelimit-remaining-tenant-reads": "11973", + "x-ms-request-id": "westus2:903ea010-cf94-491f-bdef-f4bb9f445096", + "x-ms-routing-request-id": "WESTUS2:20210712T024607Z:903ea010-cf94-491f-bdef-f4bb9f445096" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-2432ab79d33b6349-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "3109ad408c938984ffcc775201fc69e8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "a03accd1-c2ff-4694-a49e-6e15ab64c545", + "Content-Length": "164", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:46:08 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "a03accd1-c2ff-4694-a49e-6e15ab64c545", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a03accd1-c2ff-4694-a49e-6e15ab64c545", + "x-ms-ratelimit-remaining-tenant-reads": "11972", + "x-ms-request-id": "westus2:a03accd1-c2ff-4694-a49e-6e15ab64c545", + "x-ms-routing-request-id": "WESTUS2:20210712T024608Z:a03accd1-c2ff-4694-a49e-6e15ab64c545" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-5405eedc977f3a48-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "b40f2c68f5b6f768e732208c01a9568c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "d9bf5bd3-cc22-4c99-b47e-4e8e9c431b86", + "Content-Length": "164", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:46:09 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "d9bf5bd3-cc22-4c99-b47e-4e8e9c431b86", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d9bf5bd3-cc22-4c99-b47e-4e8e9c431b86", + "x-ms-ratelimit-remaining-tenant-reads": "11971", + "x-ms-request-id": "westus2:d9bf5bd3-cc22-4c99-b47e-4e8e9c431b86", + "x-ms-routing-request-id": "WESTUS2:20210712T024610Z:d9bf5bd3-cc22-4c99-b47e-4e8e9c431b86" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-09203886e0aed045-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "72c90e44292616f2de6155ff65bdfa69", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "bb620ada-3af7-461f-b121-d44b51e425f3", + "Content-Length": "164", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:46:10 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "bb620ada-3af7-461f-b121-d44b51e425f3", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "bb620ada-3af7-461f-b121-d44b51e425f3", + "x-ms-ratelimit-remaining-tenant-reads": "11970", + "x-ms-request-id": "westus2:bb620ada-3af7-461f-b121-d44b51e425f3", + "x-ms-routing-request-id": "WESTUS2:20210712T024611Z:bb620ada-3af7-461f-b121-d44b51e425f3" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-74e0b65250c22b40-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "64c8268163e64b58451149606cf88856", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "8ef9bf0d-5896-4a41-8e33-16aa5cf5101e", + "Content-Length": "164", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:46:11 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "8ef9bf0d-5896-4a41-8e33-16aa5cf5101e", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8ef9bf0d-5896-4a41-8e33-16aa5cf5101e", + "x-ms-ratelimit-remaining-tenant-reads": "11969", + "x-ms-request-id": "westus2:8ef9bf0d-5896-4a41-8e33-16aa5cf5101e", + "x-ms-routing-request-id": "WESTUS2:20210712T024612Z:8ef9bf0d-5896-4a41-8e33-16aa5cf5101e" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-5a21ee7feb49704f-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "f30eeb75f7323ec23af8d6549f69922a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "3624495f-2552-4cc2-abc8-bf213e1a8973", + "Content-Length": "164", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:46:12 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "3624495f-2552-4cc2-abc8-bf213e1a8973", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3624495f-2552-4cc2-abc8-bf213e1a8973", + "x-ms-ratelimit-remaining-tenant-reads": "11968", + "x-ms-request-id": "westus2:3624495f-2552-4cc2-abc8-bf213e1a8973", + "x-ms-routing-request-id": "WESTUS2:20210712T024613Z:3624495f-2552-4cc2-abc8-bf213e1a8973" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-ba851ca0eca82540-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "da0bb637f2e1e0a6b57d2d15e091a9e5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "49e376db-ffae-437e-9924-043d0022522e", + "Content-Length": "164", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:46:13 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "49e376db-ffae-437e-9924-043d0022522e", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "49e376db-ffae-437e-9924-043d0022522e", + "x-ms-ratelimit-remaining-tenant-reads": "11967", + "x-ms-request-id": "westus2:49e376db-ffae-437e-9924-043d0022522e", + "x-ms-routing-request-id": "WESTUS2:20210712T024614Z:49e376db-ffae-437e-9924-043d0022522e" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-a6b7ca1db0139243-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "7a89ffd907ae8937638929ed8c03abdb", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "e43ce359-9da1-4952-bf4b-92ae5576d9a4", + "Content-Length": "164", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:46:14 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "e43ce359-9da1-4952-bf4b-92ae5576d9a4", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e43ce359-9da1-4952-bf4b-92ae5576d9a4", + "x-ms-ratelimit-remaining-tenant-reads": "11966", + "x-ms-request-id": "westus2:e43ce359-9da1-4952-bf4b-92ae5576d9a4", + "x-ms-routing-request-id": "WESTUS2:20210712T024615Z:e43ce359-9da1-4952-bf4b-92ae5576d9a4" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-698d92914d0ca245-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "b5281f7eaded8374442d3db4caad5ea9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "f185fdc6-45c2-4394-bfc2-0fccfa6d0372", + "Content-Length": "164", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:46:15 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "f185fdc6-45c2-4394-bfc2-0fccfa6d0372", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f185fdc6-45c2-4394-bfc2-0fccfa6d0372", + "x-ms-ratelimit-remaining-tenant-reads": "11965", + "x-ms-request-id": "westus2:f185fdc6-45c2-4394-bfc2-0fccfa6d0372", + "x-ms-routing-request-id": "WESTUS2:20210712T024616Z:f185fdc6-45c2-4394-bfc2-0fccfa6d0372" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-5533734708e82446-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "a07bf04f18df307b7f817758c8b953b2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "5a5e5c13-d75e-4fa7-be4b-f7e81954af24", + "Content-Length": "164", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:46:17 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "5a5e5c13-d75e-4fa7-be4b-f7e81954af24", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5a5e5c13-d75e-4fa7-be4b-f7e81954af24", + "x-ms-ratelimit-remaining-tenant-reads": "11964", + "x-ms-request-id": "westus2:5a5e5c13-d75e-4fa7-be4b-f7e81954af24", + "x-ms-routing-request-id": "WESTUS2:20210712T024617Z:5a5e5c13-d75e-4fa7-be4b-f7e81954af24" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-ceb2fc9b907a864f-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "c09651d2f3682bf88a053581ca82beb5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "14610893-164f-4c0f-8a78-606310e32670", + "Content-Length": "164", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:46:18 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "14610893-164f-4c0f-8a78-606310e32670", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "14610893-164f-4c0f-8a78-606310e32670", + "x-ms-ratelimit-remaining-tenant-reads": "11963", + "x-ms-request-id": "westus2:14610893-164f-4c0f-8a78-606310e32670", + "x-ms-routing-request-id": "WESTUS2:20210712T024619Z:14610893-164f-4c0f-8a78-606310e32670" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-0d81540b380c544d-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "9b9e802a0b8766fca3f8366b361cbb8b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "575b3dd9-c22d-4389-8f35-e27149074e38", + "Content-Length": "164", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:46:19 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "575b3dd9-c22d-4389-8f35-e27149074e38", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "575b3dd9-c22d-4389-8f35-e27149074e38", + "x-ms-ratelimit-remaining-tenant-reads": "11962", + "x-ms-request-id": "westus2:575b3dd9-c22d-4389-8f35-e27149074e38", + "x-ms-routing-request-id": "WESTUS2:20210712T024620Z:575b3dd9-c22d-4389-8f35-e27149074e38" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-a54ab5d1c7c57241-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "79e28ad99d175b40f85015d9e2fa66fc", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "6d7af22a-e8f4-4f70-ab8d-463d7041a844", + "Content-Length": "164", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:46:20 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "6d7af22a-e8f4-4f70-ab8d-463d7041a844", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6d7af22a-e8f4-4f70-ab8d-463d7041a844", + "x-ms-ratelimit-remaining-tenant-reads": "11961", + "x-ms-request-id": "westus2:6d7af22a-e8f4-4f70-ab8d-463d7041a844", + "x-ms-routing-request-id": "WESTUS2:20210712T024621Z:6d7af22a-e8f4-4f70-ab8d-463d7041a844" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-e2f7856a4742644c-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "472dc1c2b71bc62a552f1d6fbd8df46e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "5a290ab6-b4e3-4e84-975d-f568e668bb6d", + "Content-Length": "164", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:46:22 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "5a290ab6-b4e3-4e84-975d-f568e668bb6d", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5a290ab6-b4e3-4e84-975d-f568e668bb6d", + "x-ms-ratelimit-remaining-tenant-reads": "11960", + "x-ms-request-id": "westus2:5a290ab6-b4e3-4e84-975d-f568e668bb6d", + "x-ms-routing-request-id": "WESTUS2:20210712T024622Z:5a290ab6-b4e3-4e84-975d-f568e668bb6d" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-d9cbafc960038b44-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "3fa7a94a459f8d9e4042a337f62283a9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "0bba9dcf-5789-405a-868a-fabb45887ba6", + "Content-Length": "164", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:46:23 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "0bba9dcf-5789-405a-868a-fabb45887ba6", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0bba9dcf-5789-405a-868a-fabb45887ba6", + "x-ms-ratelimit-remaining-tenant-reads": "11959", + "x-ms-request-id": "westus2:0bba9dcf-5789-405a-868a-fabb45887ba6", + "x-ms-routing-request-id": "WESTUS2:20210712T024623Z:0bba9dcf-5789-405a-868a-fabb45887ba6" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-02519c36dafbdd41-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "74a8399273ef2170601c24e780d09d6b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "01bd0220-c4f9-4e3c-9d3a-4c0e9716391e", + "Content-Length": "164", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:46:24 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "01bd0220-c4f9-4e3c-9d3a-4c0e9716391e", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "01bd0220-c4f9-4e3c-9d3a-4c0e9716391e", + "x-ms-ratelimit-remaining-tenant-reads": "11958", + "x-ms-request-id": "westus2:01bd0220-c4f9-4e3c-9d3a-4c0e9716391e", + "x-ms-routing-request-id": "WESTUS2:20210712T024624Z:01bd0220-c4f9-4e3c-9d3a-4c0e9716391e" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-8d8993754ee5a843-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "398fa75b26527d5d22a007d814f3cf32", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "620e5937-6cc5-4312-b650-4e77fb2b35ed", + "Content-Length": "164", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:46:25 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "620e5937-6cc5-4312-b650-4e77fb2b35ed", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "620e5937-6cc5-4312-b650-4e77fb2b35ed", + "x-ms-ratelimit-remaining-tenant-reads": "11957", + "x-ms-request-id": "westus2:620e5937-6cc5-4312-b650-4e77fb2b35ed", + "x-ms-routing-request-id": "WESTUS2:20210712T024625Z:620e5937-6cc5-4312-b650-4e77fb2b35ed" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-1dfbff555d8ace4d-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "84dd74ac80e4d77e3886df8321b70c6f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "39561acc-db62-4960-924e-2fbff821bebb", + "Content-Length": "164", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:46:27 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "39561acc-db62-4960-924e-2fbff821bebb", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "39561acc-db62-4960-924e-2fbff821bebb", + "x-ms-ratelimit-remaining-tenant-reads": "11956", + "x-ms-request-id": "westus2:39561acc-db62-4960-924e-2fbff821bebb", + "x-ms-routing-request-id": "WESTUS2:20210712T024627Z:39561acc-db62-4960-924e-2fbff821bebb" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-3a28f583fe3d2d49-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "4fdb38a54a936b57dc2b514e6b980d6c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "eb2c92e7-b1b7-4387-97c0-1cf3ac2ab080", + "Content-Length": "164", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:46:28 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "eb2c92e7-b1b7-4387-97c0-1cf3ac2ab080", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "eb2c92e7-b1b7-4387-97c0-1cf3ac2ab080", + "x-ms-ratelimit-remaining-tenant-reads": "11955", + "x-ms-request-id": "westus2:eb2c92e7-b1b7-4387-97c0-1cf3ac2ab080", + "x-ms-routing-request-id": "WESTUS2:20210712T024628Z:eb2c92e7-b1b7-4387-97c0-1cf3ac2ab080" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-2166851a76574340-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "0c3bf14c19f3db8628b700cb47d95b6b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "5a4de4bf-ae62-4161-9a14-d6c245446d2b", + "Content-Length": "164", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:46:29 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "5a4de4bf-ae62-4161-9a14-d6c245446d2b", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5a4de4bf-ae62-4161-9a14-d6c245446d2b", + "x-ms-ratelimit-remaining-tenant-reads": "11954", + "x-ms-request-id": "westus2:5a4de4bf-ae62-4161-9a14-d6c245446d2b", + "x-ms-routing-request-id": "WESTUS2:20210712T024629Z:5a4de4bf-ae62-4161-9a14-d6c245446d2b" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-9ea5e75f1f4cbb42-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "dc3398938018619f1c72a7b92e306ca0", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "8879fb05-672e-4517-888c-1bbf0db1d540", + "Content-Length": "164", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:46:30 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "8879fb05-672e-4517-888c-1bbf0db1d540", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8879fb05-672e-4517-888c-1bbf0db1d540", + "x-ms-ratelimit-remaining-tenant-reads": "11953", + "x-ms-request-id": "westus2:8879fb05-672e-4517-888c-1bbf0db1d540", + "x-ms-routing-request-id": "WESTUS2:20210712T024630Z:8879fb05-672e-4517-888c-1bbf0db1d540" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-866d9aef217a1e4b-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "30377279007c8b7cb10026db4a8b2303", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "2f7d765a-eef0-4807-b1c3-799391690bde", + "Content-Length": "164", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:46:31 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "2f7d765a-eef0-4807-b1c3-799391690bde", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2f7d765a-eef0-4807-b1c3-799391690bde", + "x-ms-ratelimit-remaining-tenant-reads": "11952", + "x-ms-request-id": "westus2:2f7d765a-eef0-4807-b1c3-799391690bde", + "x-ms-routing-request-id": "WESTUS2:20210712T024631Z:2f7d765a-eef0-4807-b1c3-799391690bde" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-670d86ef8ade9948-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "d2bbe6cf3065cc5451d9ef8172cdacf8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "64f4c9c9-c20f-42a4-b20d-d0e8772819e7", + "Content-Length": "164", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:46:32 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "64f4c9c9-c20f-42a4-b20d-d0e8772819e7", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "64f4c9c9-c20f-42a4-b20d-d0e8772819e7", + "x-ms-ratelimit-remaining-tenant-reads": "11951", + "x-ms-request-id": "westus2:64f4c9c9-c20f-42a4-b20d-d0e8772819e7", + "x-ms-routing-request-id": "WESTUS2:20210712T024632Z:64f4c9c9-c20f-42a4-b20d-d0e8772819e7" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-a9e7eba631221a45-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "d552604a2ba292ee1ba72b1759c41691", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "563a0f24-307c-4bd7-8138-f3f92bdcef26", + "Content-Length": "164", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:46:33 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "563a0f24-307c-4bd7-8138-f3f92bdcef26", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "563a0f24-307c-4bd7-8138-f3f92bdcef26", + "x-ms-ratelimit-remaining-tenant-reads": "11950", + "x-ms-request-id": "westus2:563a0f24-307c-4bd7-8138-f3f92bdcef26", + "x-ms-routing-request-id": "WESTUS2:20210712T024633Z:563a0f24-307c-4bd7-8138-f3f92bdcef26" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-15f930ab55a50641-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "47e9a44e9974483a1e6bdfa211fb19e3", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "f8c6388c-d043-4c8b-9adc-b3190dbf945f", + "Content-Length": "161", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:46:34 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "f8c6388c-d043-4c8b-9adc-b3190dbf945f", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f8c6388c-d043-4c8b-9adc-b3190dbf945f", + "x-ms-ratelimit-remaining-tenant-reads": "11949", + "x-ms-request-id": "westus2:f8c6388c-d043-4c8b-9adc-b3190dbf945f", + "x-ms-routing-request-id": "WESTUS2:20210712T024634Z:f8c6388c-d043-4c8b-9adc-b3190dbf945f" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-91ecd11f03f09943-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "ea902e534e39a460f828b7bd053c728d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "14ec5e8f-673e-49cf-aa7f-b04b14e03038", + "Content-Length": "161", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:46:35 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "14ec5e8f-673e-49cf-aa7f-b04b14e03038", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "14ec5e8f-673e-49cf-aa7f-b04b14e03038", + "x-ms-ratelimit-remaining-tenant-reads": "11948", + "x-ms-request-id": "westus2:14ec5e8f-673e-49cf-aa7f-b04b14e03038", + "x-ms-routing-request-id": "WESTUS2:20210712T024636Z:14ec5e8f-673e-49cf-aa7f-b04b14e03038" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-e627d486cd839946-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "cd325ec264e3b1832509b6374c4b8020", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "44792337-3f7a-4bfc-8744-459c1e5f690f", + "Content-Length": "161", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:46:37 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "44792337-3f7a-4bfc-8744-459c1e5f690f", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "44792337-3f7a-4bfc-8744-459c1e5f690f", + "x-ms-ratelimit-remaining-tenant-reads": "11947", + "x-ms-request-id": "westus2:44792337-3f7a-4bfc-8744-459c1e5f690f", + "x-ms-routing-request-id": "WESTUS2:20210712T024637Z:44792337-3f7a-4bfc-8744-459c1e5f690f" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-3404ba74ed98f24f-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "2ac3478e2c33ff5843454f4be27c43e1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "c6017f85-c483-4720-a896-a342955fed23", + "Content-Length": "161", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:46:38 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "c6017f85-c483-4720-a896-a342955fed23", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c6017f85-c483-4720-a896-a342955fed23", + "x-ms-ratelimit-remaining-tenant-reads": "11946", + "x-ms-request-id": "westus2:c6017f85-c483-4720-a896-a342955fed23", + "x-ms-routing-request-id": "WESTUS2:20210712T024638Z:c6017f85-c483-4720-a896-a342955fed23" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-7e798efa7210124d-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "b3df52f84bc8efffabdfc42f972958ac", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "8bc0f87f-3f3c-4927-9afa-53cf5e2af456", + "Content-Length": "161", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:46:39 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "8bc0f87f-3f3c-4927-9afa-53cf5e2af456", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8bc0f87f-3f3c-4927-9afa-53cf5e2af456", + "x-ms-ratelimit-remaining-tenant-reads": "11945", + "x-ms-request-id": "westus2:8bc0f87f-3f3c-4927-9afa-53cf5e2af456", + "x-ms-routing-request-id": "WESTUS2:20210712T024639Z:8bc0f87f-3f3c-4927-9afa-53cf5e2af456" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-69f64d6afb53504b-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "bd2f96a84779965905328a9e1437cea8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "c545e2f7-238e-474a-b463-8336ca3fb92d", + "Content-Length": "161", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:46:40 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "c545e2f7-238e-474a-b463-8336ca3fb92d", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c545e2f7-238e-474a-b463-8336ca3fb92d", + "x-ms-ratelimit-remaining-tenant-reads": "11944", + "x-ms-request-id": "westus2:c545e2f7-238e-474a-b463-8336ca3fb92d", + "x-ms-routing-request-id": "WESTUS2:20210712T024640Z:c545e2f7-238e-474a-b463-8336ca3fb92d" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-d1978d762af55647-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "fa3ed5c6cd6c425747d47f5467296719", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "bcc6d4da-96ae-446e-91f0-97a3b354e647", + "Content-Length": "161", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:46:41 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "bcc6d4da-96ae-446e-91f0-97a3b354e647", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "bcc6d4da-96ae-446e-91f0-97a3b354e647", + "x-ms-ratelimit-remaining-tenant-reads": "11943", + "x-ms-request-id": "westus2:bcc6d4da-96ae-446e-91f0-97a3b354e647", + "x-ms-routing-request-id": "WESTUS2:20210712T024641Z:bcc6d4da-96ae-446e-91f0-97a3b354e647" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-d74c1605488d4c45-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "4ba3a3ed854db068f849ad95c161da74", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "6e5c5401-fb29-45ca-b94f-8b216f3026c1", + "Content-Length": "161", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:46:42 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "6e5c5401-fb29-45ca-b94f-8b216f3026c1", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6e5c5401-fb29-45ca-b94f-8b216f3026c1", + "x-ms-ratelimit-remaining-tenant-reads": "11942", + "x-ms-request-id": "westus2:6e5c5401-fb29-45ca-b94f-8b216f3026c1", + "x-ms-routing-request-id": "WESTUS2:20210712T024642Z:6e5c5401-fb29-45ca-b94f-8b216f3026c1" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-da54c303cb781740-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "c2681c105debda403eec76a4c8052edc", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "f7587c7f-763b-4ada-9f2e-a6e5962a8711", + "Content-Length": "161", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:46:43 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "f7587c7f-763b-4ada-9f2e-a6e5962a8711", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f7587c7f-763b-4ada-9f2e-a6e5962a8711", + "x-ms-ratelimit-remaining-tenant-reads": "11941", + "x-ms-request-id": "westus2:f7587c7f-763b-4ada-9f2e-a6e5962a8711", + "x-ms-routing-request-id": "WESTUS2:20210712T024643Z:f7587c7f-763b-4ada-9f2e-a6e5962a8711" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-237d29faa4409d40-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "71b170cb8293415a6c8d01221fc181e6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "7ed487e4-5f4c-40b3-b944-25a494cebc37", + "Content-Length": "161", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:46:44 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "7ed487e4-5f4c-40b3-b944-25a494cebc37", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7ed487e4-5f4c-40b3-b944-25a494cebc37", + "x-ms-ratelimit-remaining-tenant-reads": "11940", + "x-ms-request-id": "westus2:7ed487e4-5f4c-40b3-b944-25a494cebc37", + "x-ms-routing-request-id": "WESTUS2:20210712T024645Z:7ed487e4-5f4c-40b3-b944-25a494cebc37" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-10ea00b413b7a248-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "4b430afaa5c08f2e63c90c610fc3e7f3", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "6c257195-721b-476b-a1b0-5e7862c5e233", + "Content-Length": "161", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:46:45 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "6c257195-721b-476b-a1b0-5e7862c5e233", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6c257195-721b-476b-a1b0-5e7862c5e233", + "x-ms-ratelimit-remaining-tenant-reads": "11939", + "x-ms-request-id": "westus2:6c257195-721b-476b-a1b0-5e7862c5e233", + "x-ms-routing-request-id": "WESTUS2:20210712T024646Z:6c257195-721b-476b-a1b0-5e7862c5e233" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-13c1534f989af042-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "51cad01a69b08de0c126555d5c1dba7d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "71090a53-c289-4aaf-8148-bc487dc6e3cd", + "Content-Length": "161", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:46:47 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "71090a53-c289-4aaf-8148-bc487dc6e3cd", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "71090a53-c289-4aaf-8148-bc487dc6e3cd", + "x-ms-ratelimit-remaining-tenant-reads": "11938", + "x-ms-request-id": "westus2:71090a53-c289-4aaf-8148-bc487dc6e3cd", + "x-ms-routing-request-id": "WESTUS2:20210712T024647Z:71090a53-c289-4aaf-8148-bc487dc6e3cd" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-38d4e9396fd20b40-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "beaa8f6be3c1251c42210dc975f932a9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "8b4125ee-4394-4735-bd9b-26361bca70b6", + "Content-Length": "161", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:46:48 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "8b4125ee-4394-4735-bd9b-26361bca70b6", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8b4125ee-4394-4735-bd9b-26361bca70b6", + "x-ms-ratelimit-remaining-tenant-reads": "11937", + "x-ms-request-id": "westus2:8b4125ee-4394-4735-bd9b-26361bca70b6", + "x-ms-routing-request-id": "WESTUS2:20210712T024648Z:8b4125ee-4394-4735-bd9b-26361bca70b6" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-ef70737b7ef0ea4a-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "4f080ea530f7903629b6899a4fd03345", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "5c547230-9fd9-404f-929d-0223fbbcbd9b", + "Content-Length": "161", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:46:49 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "5c547230-9fd9-404f-929d-0223fbbcbd9b", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5c547230-9fd9-404f-929d-0223fbbcbd9b", + "x-ms-ratelimit-remaining-tenant-reads": "11936", + "x-ms-request-id": "westus2:5c547230-9fd9-404f-929d-0223fbbcbd9b", + "x-ms-routing-request-id": "WESTUS2:20210712T024649Z:5c547230-9fd9-404f-929d-0223fbbcbd9b" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-cf2fc9910901324d-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "7ff58f0e29193631b4a40e8e5b1717c7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "068203b3-0de1-4917-af85-36e90cfe001d", + "Content-Length": "161", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:46:50 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "068203b3-0de1-4917-af85-36e90cfe001d", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "068203b3-0de1-4917-af85-36e90cfe001d", + "x-ms-ratelimit-remaining-tenant-reads": "11935", + "x-ms-request-id": "westus2:068203b3-0de1-4917-af85-36e90cfe001d", + "x-ms-routing-request-id": "WESTUS2:20210712T024650Z:068203b3-0de1-4917-af85-36e90cfe001d" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-ca43fc30d90c0249-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "4db7acf36b153a855919940b5a81d671", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "da40fc70-d6a3-47f2-a16c-0ca5716a27cb", + "Content-Length": "161", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:46:51 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "da40fc70-d6a3-47f2-a16c-0ca5716a27cb", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "da40fc70-d6a3-47f2-a16c-0ca5716a27cb", + "x-ms-ratelimit-remaining-tenant-reads": "11934", + "x-ms-request-id": "westus2:da40fc70-d6a3-47f2-a16c-0ca5716a27cb", + "x-ms-routing-request-id": "WESTUS2:20210712T024651Z:da40fc70-d6a3-47f2-a16c-0ca5716a27cb" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-2b4b09829ac31944-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "e6bbc8eeb3037c8fdcd19b5221a73512", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "494b5c89-2cd5-4789-96c7-359912c0e88d", + "Content-Length": "161", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:46:52 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "494b5c89-2cd5-4789-96c7-359912c0e88d", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "494b5c89-2cd5-4789-96c7-359912c0e88d", + "x-ms-ratelimit-remaining-tenant-reads": "11933", + "x-ms-request-id": "westus2:494b5c89-2cd5-4789-96c7-359912c0e88d", + "x-ms-routing-request-id": "WESTUS2:20210712T024652Z:494b5c89-2cd5-4789-96c7-359912c0e88d" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-4945dd01c9ba504d-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "a3a6c19ee518a3300abb25ff9526dc32", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "0e0daeba-d37e-402a-abaa-3fbc9ad634de", + "Content-Length": "161", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:46:53 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "0e0daeba-d37e-402a-abaa-3fbc9ad634de", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0e0daeba-d37e-402a-abaa-3fbc9ad634de", + "x-ms-ratelimit-remaining-tenant-reads": "11932", + "x-ms-request-id": "westus2:0e0daeba-d37e-402a-abaa-3fbc9ad634de", + "x-ms-routing-request-id": "WESTUS2:20210712T024654Z:0e0daeba-d37e-402a-abaa-3fbc9ad634de" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-eb93ae18eb8aca4c-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "93a09dce315b40c31d3b7043d03319b1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "56b7d2a2-8f3b-4325-a064-88db594cfa8e", + "Content-Length": "161", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:46:54 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "56b7d2a2-8f3b-4325-a064-88db594cfa8e", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "56b7d2a2-8f3b-4325-a064-88db594cfa8e", + "x-ms-ratelimit-remaining-tenant-reads": "11931", + "x-ms-request-id": "westus2:56b7d2a2-8f3b-4325-a064-88db594cfa8e", + "x-ms-routing-request-id": "WESTUS2:20210712T024655Z:56b7d2a2-8f3b-4325-a064-88db594cfa8e" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-a2e1b83b99234541-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "986c81e432db09589717db488d8fe6b6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "73a4c8cb-9a0a-4b0e-ab26-79726268590e", + "Content-Length": "161", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:46:55 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "73a4c8cb-9a0a-4b0e-ab26-79726268590e", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "73a4c8cb-9a0a-4b0e-ab26-79726268590e", + "x-ms-ratelimit-remaining-tenant-reads": "11930", + "x-ms-request-id": "westus2:73a4c8cb-9a0a-4b0e-ab26-79726268590e", + "x-ms-routing-request-id": "WESTUS2:20210712T024656Z:73a4c8cb-9a0a-4b0e-ab26-79726268590e" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-b3d9f9c3bae73742-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "838368f5a2076db6fd6686dd74ecd3d6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "client-request-id": "85c6a91b-337a-4576-8e1c-5a16646eb3b9", + "Content-Length": "380", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:46:57 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "request-id": "85c6a91b-337a-4576-8e1c-5a16646eb3b9", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "85c6a91b-337a-4576-8e1c-5a16646eb3b9", + "x-ms-ratelimit-remaining-tenant-reads": "11929", + "x-ms-request-id": "westus2:85c6a91b-337a-4576-8e1c-5a16646eb3b9", + "x-ms-routing-request-id": "WESTUS2:20210712T024657Z:85c6a91b-337a-4576-8e1c-5a16646eb3b9" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", + "name": "mgmt-group-827", + "status": "Succeeded", + "properties": { + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "mgmt-group-827", + "details": { + "version": 11, + "updatedTime": "2021-07-12T02:46:41.3959907Z", + "updatedBy": "3b10dae3-28cf-49a7-a8df-8fbae3e77f27" + } + } + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea58924b214abb428d696373e9846f16-ce056853d9d12540-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "131b74a144b99b574496fb43557bb38d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "client-request-id": "a61b3a74-17fc-4eaa-a14f-35eed0c37662", + "Content-Length": "563", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:46:57 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "request-id": "a61b3a74-17fc-4eaa-a14f-35eed0c37662", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a61b3a74-17fc-4eaa-a14f-35eed0c37662", + "x-ms-ratelimit-remaining-tenant-reads": "11928", + "x-ms-request-id": "westus2:a61b3a74-17fc-4eaa-a14f-35eed0c37662", + "x-ms-routing-request-id": "WESTUS2:20210712T024657Z:a61b3a74-17fc-4eaa-a14f-35eed0c37662" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/managementGroups/mgmt-group-827", + "type": "Microsoft.Management/managementGroups", + "name": "mgmt-group-827", + "properties": { + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "mgmt-group-827", + "details": { + "version": 11, + "updatedTime": "2021-07-12T02:46:41.3959907Z", + "updatedBy": "3b10dae3-28cf-49a7-a8df-8fbae3e77f27", + "parent": { + "id": "/providers/Microsoft.Management/managementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47", + "name": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } + } + } + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-8ef3bcf5f46d484a97aa21b8a5399323-fd7e36cf5087414b-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "674eba5495af42aacaff9a75ac7b94ab", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "client-request-id": "992a5378-115e-42ef-842b-e25d501e94b9", + "Content-Length": "563", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:46:57 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "request-id": "992a5378-115e-42ef-842b-e25d501e94b9", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "992a5378-115e-42ef-842b-e25d501e94b9", + "x-ms-ratelimit-remaining-tenant-reads": "11927", + "x-ms-request-id": "westus2:992a5378-115e-42ef-842b-e25d501e94b9", + "x-ms-routing-request-id": "WESTUS2:20210712T024657Z:992a5378-115e-42ef-842b-e25d501e94b9" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/managementGroups/mgmt-group-827", + "type": "Microsoft.Management/managementGroups", + "name": "mgmt-group-827", + "properties": { + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "mgmt-group-827", + "details": { + "version": 11, + "updatedTime": "2021-07-12T02:46:41.3959907Z", + "updatedBy": "3b10dae3-28cf-49a7-a8df-8fbae3e77f27", + "parent": { + "id": "/providers/Microsoft.Management/managementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47", + "name": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } + } + } + } + } + ], + "Variables": { + "RandomSeed": "418237894", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/ManagementGroupContainerTests(True)Async.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/ManagementGroupContainerTests(True)Async.json new file mode 100644 index 0000000000000..8a88b22682cad --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/ManagementGroupContainerTests(True)Async.json @@ -0,0 +1,1102 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "b6d469f11bdaaf1dba903647d61c65db", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "450", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:43:05 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "bac0ae15-4450-4eae-adc5-2160598e4bbb", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-request-id": "bac0ae15-4450-4eae-adc5-2160598e4bbb", + "x-ms-routing-request-id": "WESTUS2:20210712T024305Z:bac0ae15-4450-4eae-adc5-2160598e4bbb" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "tagKey1": "tagValue1", + "tagKey2": "tagValue2" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "17", + "Content-Type": "application/json", + "traceparent": "00-156e72bd0a64d14ab6310bad014bc808-d4d8cea2ddbbbe47-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "cac2c81daf6ab1916efff6a25d5c1843", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": {} + }, + "StatusCode": 202, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "450970f6-9e7f-4ba0-a750-ca5806a055bf", + "Content-Length": "167", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:43:06 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "450970f6-9e7f-4ba0-a750-ca5806a055bf", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "450970f6-9e7f-4ba0-a750-ca5806a055bf", + "x-ms-ratelimit-remaining-managementgroups-requests": "59", + "x-ms-ratelimit-remaining-tenant-writes": "1199", + "x-ms-request-id": "westus2:450970f6-9e7f-4ba0-a750-ca5806a055bf", + "x-ms-routing-request-id": "WESTUS2:20210712T024307Z:450970f6-9e7f-4ba0-a750-ca5806a055bf" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/managementGroups/mgmt-group-7077", + "type": "Microsoft.Management/managementGroups", + "name": "mgmt-group-7077", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-156e72bd0a64d14ab6310bad014bc808-1e6a4265bbd74047-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "c84796b8b131b98642046b1c260c5c34", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "9bae9f38-1eb8-4b0a-9f82-c31ae8209f43", + "Content-Length": "166", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:43:06 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "9bae9f38-1eb8-4b0a-9f82-c31ae8209f43", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9bae9f38-1eb8-4b0a-9f82-c31ae8209f43", + "x-ms-ratelimit-remaining-tenant-reads": "11999", + "x-ms-request-id": "westus2:9bae9f38-1eb8-4b0a-9f82-c31ae8209f43", + "x-ms-routing-request-id": "WESTUS2:20210712T024307Z:9bae9f38-1eb8-4b0a-9f82-c31ae8209f43" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077", + "name": "mgmt-group-7077", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-156e72bd0a64d14ab6310bad014bc808-b5a73bd6df3c494c-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "6026041e5210512bbb14b468d7063aa9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "ef9ac5cb-43c3-4e6c-babd-43fc59d1abf7", + "Content-Length": "166", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:43:08 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "ef9ac5cb-43c3-4e6c-babd-43fc59d1abf7", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ef9ac5cb-43c3-4e6c-babd-43fc59d1abf7", + "x-ms-ratelimit-remaining-tenant-reads": "11998", + "x-ms-request-id": "westus2:ef9ac5cb-43c3-4e6c-babd-43fc59d1abf7", + "x-ms-routing-request-id": "WESTUS2:20210712T024308Z:ef9ac5cb-43c3-4e6c-babd-43fc59d1abf7" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077", + "name": "mgmt-group-7077", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-156e72bd0a64d14ab6310bad014bc808-7637c1635575314a-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "c7ea4e444f15fe12369b45c661f18808", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "8b65a99b-ce05-485e-800f-f8c5d5d5273a", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:43:09 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "8b65a99b-ce05-485e-800f-f8c5d5d5273a", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8b65a99b-ce05-485e-800f-f8c5d5d5273a", + "x-ms-ratelimit-remaining-tenant-reads": "11997", + "x-ms-request-id": "westus2:8b65a99b-ce05-485e-800f-f8c5d5d5273a", + "x-ms-routing-request-id": "WESTUS2:20210712T024309Z:8b65a99b-ce05-485e-800f-f8c5d5d5273a" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077", + "name": "mgmt-group-7077", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-156e72bd0a64d14ab6310bad014bc808-7bdf5cfda7fad642-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "736da3a5599f65986af60c1cfc1de23c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "210ad7a0-e162-4e1b-b3be-14e328d97dae", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:43:10 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "210ad7a0-e162-4e1b-b3be-14e328d97dae", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "210ad7a0-e162-4e1b-b3be-14e328d97dae", + "x-ms-ratelimit-remaining-tenant-reads": "11996", + "x-ms-request-id": "westus2:210ad7a0-e162-4e1b-b3be-14e328d97dae", + "x-ms-routing-request-id": "WESTUS2:20210712T024310Z:210ad7a0-e162-4e1b-b3be-14e328d97dae" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077", + "name": "mgmt-group-7077", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-156e72bd0a64d14ab6310bad014bc808-8b5e605b817b0745-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "d7d7c1ca9422ce1ff1272a740d65efca", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "3ee50d53-79fe-4ffd-95ad-3bf2bd68faba", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:43:11 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "3ee50d53-79fe-4ffd-95ad-3bf2bd68faba", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3ee50d53-79fe-4ffd-95ad-3bf2bd68faba", + "x-ms-ratelimit-remaining-tenant-reads": "11995", + "x-ms-request-id": "westus2:3ee50d53-79fe-4ffd-95ad-3bf2bd68faba", + "x-ms-routing-request-id": "WESTUS2:20210712T024311Z:3ee50d53-79fe-4ffd-95ad-3bf2bd68faba" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077", + "name": "mgmt-group-7077", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-156e72bd0a64d14ab6310bad014bc808-531fde91f925d445-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "34c3ab8cc798eb09b6855c1f42f50118", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "004376b5-692c-4267-bf61-9f0e9c1045fd", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:43:12 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "004376b5-692c-4267-bf61-9f0e9c1045fd", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "004376b5-692c-4267-bf61-9f0e9c1045fd", + "x-ms-ratelimit-remaining-tenant-reads": "11994", + "x-ms-request-id": "westus2:004376b5-692c-4267-bf61-9f0e9c1045fd", + "x-ms-routing-request-id": "WESTUS2:20210712T024313Z:004376b5-692c-4267-bf61-9f0e9c1045fd" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077", + "name": "mgmt-group-7077", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-156e72bd0a64d14ab6310bad014bc808-596981f0abfeb141-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "9ffb09b9b01910e6849e81772f235704", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "c3900b3f-2024-42b0-9705-0d991aa122ad", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:43:13 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "c3900b3f-2024-42b0-9705-0d991aa122ad", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c3900b3f-2024-42b0-9705-0d991aa122ad", + "x-ms-ratelimit-remaining-tenant-reads": "11993", + "x-ms-request-id": "westus2:c3900b3f-2024-42b0-9705-0d991aa122ad", + "x-ms-routing-request-id": "WESTUS2:20210712T024314Z:c3900b3f-2024-42b0-9705-0d991aa122ad" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077", + "name": "mgmt-group-7077", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-156e72bd0a64d14ab6310bad014bc808-1e300ad9d948b34f-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "50904206ae5a03a3b7ec219d37ff8bfc", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "2c96e800-7d97-4f66-9a36-7c5d6f9c62e2", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:43:14 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "2c96e800-7d97-4f66-9a36-7c5d6f9c62e2", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2c96e800-7d97-4f66-9a36-7c5d6f9c62e2", + "x-ms-ratelimit-remaining-tenant-reads": "11992", + "x-ms-request-id": "westus2:2c96e800-7d97-4f66-9a36-7c5d6f9c62e2", + "x-ms-routing-request-id": "WESTUS2:20210712T024315Z:2c96e800-7d97-4f66-9a36-7c5d6f9c62e2" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077", + "name": "mgmt-group-7077", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-156e72bd0a64d14ab6310bad014bc808-b3332fba39c59a43-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "04bb11264f6adbb0c5b2affa4692bb93", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "70d2cf0b-4abd-43a0-a76c-e7b8b46c8b40", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:43:15 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "70d2cf0b-4abd-43a0-a76c-e7b8b46c8b40", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "70d2cf0b-4abd-43a0-a76c-e7b8b46c8b40", + "x-ms-ratelimit-remaining-tenant-reads": "11991", + "x-ms-request-id": "westus2:70d2cf0b-4abd-43a0-a76c-e7b8b46c8b40", + "x-ms-routing-request-id": "WESTUS2:20210712T024316Z:70d2cf0b-4abd-43a0-a76c-e7b8b46c8b40" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077", + "name": "mgmt-group-7077", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-156e72bd0a64d14ab6310bad014bc808-8d7ad414c2f6ed4d-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "0018582db0640bbe65f8e72d8f48d884", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "3de2dee3-ff34-4d6a-ba8d-ae8ecf0c28db", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:43:17 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "3de2dee3-ff34-4d6a-ba8d-ae8ecf0c28db", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3de2dee3-ff34-4d6a-ba8d-ae8ecf0c28db", + "x-ms-ratelimit-remaining-tenant-reads": "11990", + "x-ms-request-id": "westus2:3de2dee3-ff34-4d6a-ba8d-ae8ecf0c28db", + "x-ms-routing-request-id": "WESTUS2:20210712T024317Z:3de2dee3-ff34-4d6a-ba8d-ae8ecf0c28db" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077", + "name": "mgmt-group-7077", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-156e72bd0a64d14ab6310bad014bc808-763fe9689dbfe74d-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "1e5085135367b69a91b48aa8fea9bc25", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "45ae4b50-e6d4-4c32-b987-882c90660d0c", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:43:18 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "45ae4b50-e6d4-4c32-b987-882c90660d0c", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "45ae4b50-e6d4-4c32-b987-882c90660d0c", + "x-ms-ratelimit-remaining-tenant-reads": "11989", + "x-ms-request-id": "westus2:45ae4b50-e6d4-4c32-b987-882c90660d0c", + "x-ms-routing-request-id": "WESTUS2:20210712T024318Z:45ae4b50-e6d4-4c32-b987-882c90660d0c" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077", + "name": "mgmt-group-7077", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-156e72bd0a64d14ab6310bad014bc808-2da6eb4a8769c745-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "df708d308ae7759752b09e7168834c7d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "e4897782-bc23-48af-827c-f1ea52187667", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:43:19 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "e4897782-bc23-48af-827c-f1ea52187667", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e4897782-bc23-48af-827c-f1ea52187667", + "x-ms-ratelimit-remaining-tenant-reads": "11988", + "x-ms-request-id": "westus2:e4897782-bc23-48af-827c-f1ea52187667", + "x-ms-routing-request-id": "WESTUS2:20210712T024319Z:e4897782-bc23-48af-827c-f1ea52187667" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077", + "name": "mgmt-group-7077", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-156e72bd0a64d14ab6310bad014bc808-df3df63c298d3b48-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "c1e72bd99d41d92bbd616fb025160cbb", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "6cebf9c8-5903-477e-b468-77dfe26e06ff", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:43:20 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "6cebf9c8-5903-477e-b468-77dfe26e06ff", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6cebf9c8-5903-477e-b468-77dfe26e06ff", + "x-ms-ratelimit-remaining-tenant-reads": "11987", + "x-ms-request-id": "westus2:6cebf9c8-5903-477e-b468-77dfe26e06ff", + "x-ms-routing-request-id": "WESTUS2:20210712T024320Z:6cebf9c8-5903-477e-b468-77dfe26e06ff" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077", + "name": "mgmt-group-7077", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-156e72bd0a64d14ab6310bad014bc808-6883dbda3ee94b46-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "01fdc23bf9d8889deddbcbb6b5284e0e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "f9db5676-e0c7-4eb2-80bc-bf04fa06e46b", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:43:21 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "f9db5676-e0c7-4eb2-80bc-bf04fa06e46b", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f9db5676-e0c7-4eb2-80bc-bf04fa06e46b", + "x-ms-ratelimit-remaining-tenant-reads": "11986", + "x-ms-request-id": "westus2:f9db5676-e0c7-4eb2-80bc-bf04fa06e46b", + "x-ms-routing-request-id": "WESTUS2:20210712T024322Z:f9db5676-e0c7-4eb2-80bc-bf04fa06e46b" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077", + "name": "mgmt-group-7077", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-156e72bd0a64d14ab6310bad014bc808-85c40418a172cf44-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "d3ce0d68fbc293e3629622851be74f3c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "3cede3da-4d40-4253-b44b-5df6d98916b2", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:43:22 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "3cede3da-4d40-4253-b44b-5df6d98916b2", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3cede3da-4d40-4253-b44b-5df6d98916b2", + "x-ms-ratelimit-remaining-tenant-reads": "11985", + "x-ms-request-id": "westus2:3cede3da-4d40-4253-b44b-5df6d98916b2", + "x-ms-routing-request-id": "WESTUS2:20210712T024323Z:3cede3da-4d40-4253-b44b-5df6d98916b2" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077", + "name": "mgmt-group-7077", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-156e72bd0a64d14ab6310bad014bc808-7dc273c429faa14f-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "a636e2a34a85e0a48e5fd366d2742494", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "c54f23b3-21fc-4922-884f-d87cbd8a1a91", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:43:23 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "c54f23b3-21fc-4922-884f-d87cbd8a1a91", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c54f23b3-21fc-4922-884f-d87cbd8a1a91", + "x-ms-ratelimit-remaining-tenant-reads": "11984", + "x-ms-request-id": "westus2:c54f23b3-21fc-4922-884f-d87cbd8a1a91", + "x-ms-routing-request-id": "WESTUS2:20210712T024324Z:c54f23b3-21fc-4922-884f-d87cbd8a1a91" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077", + "name": "mgmt-group-7077", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-156e72bd0a64d14ab6310bad014bc808-668feda69b70de40-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "1847601339473ff9de6a9f41d6176c06", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "db216db5-7e50-494b-abca-cc966a0a77c8", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:43:24 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "db216db5-7e50-494b-abca-cc966a0a77c8", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "db216db5-7e50-494b-abca-cc966a0a77c8", + "x-ms-ratelimit-remaining-tenant-reads": "11983", + "x-ms-request-id": "westus2:db216db5-7e50-494b-abca-cc966a0a77c8", + "x-ms-routing-request-id": "WESTUS2:20210712T024325Z:db216db5-7e50-494b-abca-cc966a0a77c8" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077", + "name": "mgmt-group-7077", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-156e72bd0a64d14ab6310bad014bc808-d853754aae36bc4b-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "d2138e8ba8f21e8868ee4563287dc0ed", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "90700064-6e1a-4318-9c16-15079e782b64", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:43:25 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "90700064-6e1a-4318-9c16-15079e782b64", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "90700064-6e1a-4318-9c16-15079e782b64", + "x-ms-ratelimit-remaining-tenant-reads": "11982", + "x-ms-request-id": "westus2:90700064-6e1a-4318-9c16-15079e782b64", + "x-ms-routing-request-id": "WESTUS2:20210712T024326Z:90700064-6e1a-4318-9c16-15079e782b64" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077", + "name": "mgmt-group-7077", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-156e72bd0a64d14ab6310bad014bc808-a6bec7a3908ae24f-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "ba728e72379f6af5e9f6c71baa630977", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "31dcc41e-aebd-4789-a48d-c6d89f95d808", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:43:27 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "31dcc41e-aebd-4789-a48d-c6d89f95d808", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "31dcc41e-aebd-4789-a48d-c6d89f95d808", + "x-ms-ratelimit-remaining-tenant-reads": "11981", + "x-ms-request-id": "westus2:31dcc41e-aebd-4789-a48d-c6d89f95d808", + "x-ms-routing-request-id": "WESTUS2:20210712T024327Z:31dcc41e-aebd-4789-a48d-c6d89f95d808" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077", + "name": "mgmt-group-7077", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-156e72bd0a64d14ab6310bad014bc808-bf8919ac43d3f14d-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "43daccf252616aa1d828af58f4961761", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "d20b5285-a315-4d58-a617-a1dd9edd0ba3", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:43:28 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "d20b5285-a315-4d58-a617-a1dd9edd0ba3", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d20b5285-a315-4d58-a617-a1dd9edd0ba3", + "x-ms-ratelimit-remaining-tenant-reads": "11980", + "x-ms-request-id": "westus2:d20b5285-a315-4d58-a617-a1dd9edd0ba3", + "x-ms-routing-request-id": "WESTUS2:20210712T024328Z:d20b5285-a315-4d58-a617-a1dd9edd0ba3" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077", + "name": "mgmt-group-7077", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-156e72bd0a64d14ab6310bad014bc808-9473d1e511140b42-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "48cfb2a9b1a4536699a8e8fbe16c7305", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "041daf8c-ba34-44cd-8c72-fe1dff84def0", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:43:29 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "041daf8c-ba34-44cd-8c72-fe1dff84def0", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "041daf8c-ba34-44cd-8c72-fe1dff84def0", + "x-ms-ratelimit-remaining-tenant-reads": "11979", + "x-ms-request-id": "westus2:041daf8c-ba34-44cd-8c72-fe1dff84def0", + "x-ms-routing-request-id": "WESTUS2:20210712T024329Z:041daf8c-ba34-44cd-8c72-fe1dff84def0" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077", + "name": "mgmt-group-7077", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-156e72bd0a64d14ab6310bad014bc808-95d9d934f116934d-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "5b70cee57da21f8bec08e277889c7552", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "1644065f-4f62-4eb5-9755-b95878c9e4b3", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:43:30 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "1644065f-4f62-4eb5-9755-b95878c9e4b3", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1644065f-4f62-4eb5-9755-b95878c9e4b3", + "x-ms-ratelimit-remaining-tenant-reads": "11978", + "x-ms-request-id": "westus2:1644065f-4f62-4eb5-9755-b95878c9e4b3", + "x-ms-routing-request-id": "WESTUS2:20210712T024331Z:1644065f-4f62-4eb5-9755-b95878c9e4b3" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077", + "name": "mgmt-group-7077", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-156e72bd0a64d14ab6310bad014bc808-0437e347af0a6442-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "f87266dfc09341d26687aab969a6896b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "client-request-id": "9b60e11f-a03b-4313-aa02-c6843a2a0111", + "Content-Length": "382", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:43:31 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "request-id": "9b60e11f-a03b-4313-aa02-c6843a2a0111", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9b60e11f-a03b-4313-aa02-c6843a2a0111", + "x-ms-ratelimit-remaining-tenant-reads": "11977", + "x-ms-request-id": "westus2:9b60e11f-a03b-4313-aa02-c6843a2a0111", + "x-ms-routing-request-id": "WESTUS2:20210712T024332Z:9b60e11f-a03b-4313-aa02-c6843a2a0111" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077", + "name": "mgmt-group-7077", + "status": "Succeeded", + "properties": { + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "mgmt-group-7077", + "details": { + "version": 2, + "updatedTime": "2021-07-12T02:43:14.2182916Z", + "updatedBy": "3b10dae3-28cf-49a7-a8df-8fbae3e77f27" + } + } + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-156e72bd0a64d14ab6310bad014bc808-90fa71ee6063dd4d-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "2673a9b5bb262bbe26af5c9ccfefcafd", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "client-request-id": "c8adfe12-3f69-46da-985d-cc7e1513e168", + "Content-Length": "565", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:43:32 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "request-id": "c8adfe12-3f69-46da-985d-cc7e1513e168", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c8adfe12-3f69-46da-985d-cc7e1513e168", + "x-ms-ratelimit-remaining-tenant-reads": "11976", + "x-ms-request-id": "westus2:c8adfe12-3f69-46da-985d-cc7e1513e168", + "x-ms-routing-request-id": "WESTUS2:20210712T024332Z:c8adfe12-3f69-46da-985d-cc7e1513e168" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/managementGroups/mgmt-group-7077", + "type": "Microsoft.Management/managementGroups", + "name": "mgmt-group-7077", + "properties": { + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "mgmt-group-7077", + "details": { + "version": 2, + "updatedTime": "2021-07-12T02:43:14.2182916Z", + "updatedBy": "3b10dae3-28cf-49a7-a8df-8fbae3e77f27", + "parent": { + "id": "/providers/Microsoft.Management/managementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47", + "name": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } + } + } + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-252bf25ec911bc498e57e0468bfd8500-ef23327e8f5e704f-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "7a1b95327afa2471fb2ff51bd3d2b645", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "client-request-id": "48cd24b7-e5fd-44c2-89bc-142c1fa0ef11", + "Content-Length": "565", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:43:32 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "request-id": "48cd24b7-e5fd-44c2-89bc-142c1fa0ef11", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "48cd24b7-e5fd-44c2-89bc-142c1fa0ef11", + "x-ms-ratelimit-remaining-tenant-reads": "11975", + "x-ms-request-id": "westus2:48cd24b7-e5fd-44c2-89bc-142c1fa0ef11", + "x-ms-routing-request-id": "WESTUS2:20210712T024332Z:48cd24b7-e5fd-44c2-89bc-142c1fa0ef11" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/managementGroups/mgmt-group-7077", + "type": "Microsoft.Management/managementGroups", + "name": "mgmt-group-7077", + "properties": { + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "mgmt-group-7077", + "details": { + "version": 2, + "updatedTime": "2021-07-12T02:43:14.2182916Z", + "updatedBy": "3b10dae3-28cf-49a7-a8df-8fbae3e77f27", + "parent": { + "id": "/providers/Microsoft.Management/managementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47", + "name": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } + } + } + } + } + ], + "Variables": { + "RandomSeed": "2078233070", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/StartCreateOrUpdate.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/StartCreateOrUpdate.json new file mode 100644 index 0000000000000..6094b3a09d11e --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/StartCreateOrUpdate.json @@ -0,0 +1,1103 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "2b7b2e324583457a7c44ec880d18a776", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "450", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:14:06 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2e721b71-9159-4703-93f6-9c822e96378d", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-request-id": "2e721b71-9159-4703-93f6-9c822e96378d", + "x-ms-routing-request-id": "WESTUS2:20210712T021406Z:2e721b71-9159-4703-93f6-9c822e96378d" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "tagKey1": "tagValue1", + "tagKey2": "tagValue2" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "17", + "Content-Type": "application/json", + "traceparent": "00-76eb4639c92b7a4db1edd4d4456cd7b2-e38e090e1bf9d74e-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "9920ab59f87cc2f2b5884c75725ceb4d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": {} + }, + "StatusCode": 202, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "a67cda73-5cc7-42ef-bbc7-3a5e5d466d8e", + "Content-Length": "167", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:14:06 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "a67cda73-5cc7-42ef-bbc7-3a5e5d466d8e", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a67cda73-5cc7-42ef-bbc7-3a5e5d466d8e", + "x-ms-ratelimit-remaining-managementgroups-requests": "58", + "x-ms-ratelimit-remaining-tenant-writes": "1198", + "x-ms-request-id": "westus2:a67cda73-5cc7-42ef-bbc7-3a5e5d466d8e", + "x-ms-routing-request-id": "WESTUS2:20210712T021406Z:a67cda73-5cc7-42ef-bbc7-3a5e5d466d8e" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/managementGroups/mgmt-group-9570", + "type": "Microsoft.Management/managementGroups", + "name": "mgmt-group-9570", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "8f533af82b6735b68969cdbc2ed009e7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "016fbcf5-faab-4b56-a4c4-e38eda0eb013", + "Content-Length": "166", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:14:06 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "016fbcf5-faab-4b56-a4c4-e38eda0eb013", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "016fbcf5-faab-4b56-a4c4-e38eda0eb013", + "x-ms-ratelimit-remaining-tenant-reads": "11973", + "x-ms-request-id": "westus2:016fbcf5-faab-4b56-a4c4-e38eda0eb013", + "x-ms-routing-request-id": "WESTUS2:20210712T021406Z:016fbcf5-faab-4b56-a4c4-e38eda0eb013" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570", + "name": "mgmt-group-9570", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "60cf3a00c9e0d5e127ad743f199306b2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "4c8b4b70-b038-4337-a636-9690a738074e", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:14:07 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "4c8b4b70-b038-4337-a636-9690a738074e", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4c8b4b70-b038-4337-a636-9690a738074e", + "x-ms-ratelimit-remaining-tenant-reads": "11972", + "x-ms-request-id": "westus2:4c8b4b70-b038-4337-a636-9690a738074e", + "x-ms-routing-request-id": "WESTUS2:20210712T021408Z:4c8b4b70-b038-4337-a636-9690a738074e" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570", + "name": "mgmt-group-9570", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "377db3f85c0812e50191238ab6c74454", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "08465da2-263b-431a-8317-e416e04ec04e", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:14:08 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "08465da2-263b-431a-8317-e416e04ec04e", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "08465da2-263b-431a-8317-e416e04ec04e", + "x-ms-ratelimit-remaining-tenant-reads": "11971", + "x-ms-request-id": "westus2:08465da2-263b-431a-8317-e416e04ec04e", + "x-ms-routing-request-id": "WESTUS2:20210712T021409Z:08465da2-263b-431a-8317-e416e04ec04e" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570", + "name": "mgmt-group-9570", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "805df7322f332fb8587e67b9b6761cf5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "82060df5-4a52-440f-876f-9cd25a10cf82", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:14:10 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "82060df5-4a52-440f-876f-9cd25a10cf82", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "82060df5-4a52-440f-876f-9cd25a10cf82", + "x-ms-ratelimit-remaining-tenant-reads": "11970", + "x-ms-request-id": "westus2:82060df5-4a52-440f-876f-9cd25a10cf82", + "x-ms-routing-request-id": "WESTUS2:20210712T021410Z:82060df5-4a52-440f-876f-9cd25a10cf82" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570", + "name": "mgmt-group-9570", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "7bc41b62d253a3df54bc5e4ea5571f60", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "23468b85-4fb4-4493-977b-903b37005910", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:14:11 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "23468b85-4fb4-4493-977b-903b37005910", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "23468b85-4fb4-4493-977b-903b37005910", + "x-ms-ratelimit-remaining-tenant-reads": "11969", + "x-ms-request-id": "westus2:23468b85-4fb4-4493-977b-903b37005910", + "x-ms-routing-request-id": "WESTUS2:20210712T021411Z:23468b85-4fb4-4493-977b-903b37005910" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570", + "name": "mgmt-group-9570", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "210d1f698636c87efa4ede8af52c5c8b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "2b9d5f92-5edd-4fa6-b5a7-c77475848490", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:14:12 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "2b9d5f92-5edd-4fa6-b5a7-c77475848490", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2b9d5f92-5edd-4fa6-b5a7-c77475848490", + "x-ms-ratelimit-remaining-tenant-reads": "11968", + "x-ms-request-id": "westus2:2b9d5f92-5edd-4fa6-b5a7-c77475848490", + "x-ms-routing-request-id": "WESTUS2:20210712T021412Z:2b9d5f92-5edd-4fa6-b5a7-c77475848490" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570", + "name": "mgmt-group-9570", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "9b272e75c902600118b92b77d16a8901", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "969eb582-362c-4c37-99fc-951b4ef99a32", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:14:13 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "969eb582-362c-4c37-99fc-951b4ef99a32", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "969eb582-362c-4c37-99fc-951b4ef99a32", + "x-ms-ratelimit-remaining-tenant-reads": "11967", + "x-ms-request-id": "westus2:969eb582-362c-4c37-99fc-951b4ef99a32", + "x-ms-routing-request-id": "WESTUS2:20210712T021413Z:969eb582-362c-4c37-99fc-951b4ef99a32" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570", + "name": "mgmt-group-9570", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "9750075ffa68dcbf9cfb8004f354ae28", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "f1d72caf-f8d5-4dc8-b73b-4a82faf5c70e", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:14:14 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "f1d72caf-f8d5-4dc8-b73b-4a82faf5c70e", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f1d72caf-f8d5-4dc8-b73b-4a82faf5c70e", + "x-ms-ratelimit-remaining-tenant-reads": "11966", + "x-ms-request-id": "westus2:f1d72caf-f8d5-4dc8-b73b-4a82faf5c70e", + "x-ms-routing-request-id": "WESTUS2:20210712T021414Z:f1d72caf-f8d5-4dc8-b73b-4a82faf5c70e" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570", + "name": "mgmt-group-9570", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "76d9d36084309f5d1dad097c5a07f790", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "3e810420-58bb-4d36-9304-e102158c5b40", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:14:15 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "3e810420-58bb-4d36-9304-e102158c5b40", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3e810420-58bb-4d36-9304-e102158c5b40", + "x-ms-ratelimit-remaining-tenant-reads": "11965", + "x-ms-request-id": "westus2:3e810420-58bb-4d36-9304-e102158c5b40", + "x-ms-routing-request-id": "WESTUS2:20210712T021415Z:3e810420-58bb-4d36-9304-e102158c5b40" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570", + "name": "mgmt-group-9570", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "ed2bddc4c4db7a226f4afe0748fc6cc3", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "938654e5-1bdd-4b15-8a56-526ea5702427", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:14:16 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "938654e5-1bdd-4b15-8a56-526ea5702427", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "938654e5-1bdd-4b15-8a56-526ea5702427", + "x-ms-ratelimit-remaining-tenant-reads": "11964", + "x-ms-request-id": "westus2:938654e5-1bdd-4b15-8a56-526ea5702427", + "x-ms-routing-request-id": "WESTUS2:20210712T021417Z:938654e5-1bdd-4b15-8a56-526ea5702427" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570", + "name": "mgmt-group-9570", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "fe16030b1390dbd1aab179bbf1438294", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "c2fd6122-a651-4f85-9c53-10f2a3f838ff", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:14:17 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "c2fd6122-a651-4f85-9c53-10f2a3f838ff", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c2fd6122-a651-4f85-9c53-10f2a3f838ff", + "x-ms-ratelimit-remaining-tenant-reads": "11963", + "x-ms-request-id": "westus2:c2fd6122-a651-4f85-9c53-10f2a3f838ff", + "x-ms-routing-request-id": "WESTUS2:20210712T021418Z:c2fd6122-a651-4f85-9c53-10f2a3f838ff" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570", + "name": "mgmt-group-9570", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "1540f004c1299b4cb05f07e585555620", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "03fdd275-609f-4b4b-902a-3e12c5eb3454", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:14:18 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "03fdd275-609f-4b4b-902a-3e12c5eb3454", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "03fdd275-609f-4b4b-902a-3e12c5eb3454", + "x-ms-ratelimit-remaining-tenant-reads": "11962", + "x-ms-request-id": "westus2:03fdd275-609f-4b4b-902a-3e12c5eb3454", + "x-ms-routing-request-id": "WESTUS2:20210712T021419Z:03fdd275-609f-4b4b-902a-3e12c5eb3454" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570", + "name": "mgmt-group-9570", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "57714540f8f1b0ff0c50432a4a67892c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "7185cbd7-d333-47b8-8dee-4865da9b4e5b", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:14:20 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "7185cbd7-d333-47b8-8dee-4865da9b4e5b", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7185cbd7-d333-47b8-8dee-4865da9b4e5b", + "x-ms-ratelimit-remaining-tenant-reads": "11961", + "x-ms-request-id": "westus2:7185cbd7-d333-47b8-8dee-4865da9b4e5b", + "x-ms-routing-request-id": "WESTUS2:20210712T021420Z:7185cbd7-d333-47b8-8dee-4865da9b4e5b" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570", + "name": "mgmt-group-9570", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "580369c857bc499ab67a4d310ceb5554", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "a6329e25-bed9-4043-93d8-2cb89255211e", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:14:21 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "a6329e25-bed9-4043-93d8-2cb89255211e", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a6329e25-bed9-4043-93d8-2cb89255211e", + "x-ms-ratelimit-remaining-tenant-reads": "11960", + "x-ms-request-id": "westus2:a6329e25-bed9-4043-93d8-2cb89255211e", + "x-ms-routing-request-id": "WESTUS2:20210712T021421Z:a6329e25-bed9-4043-93d8-2cb89255211e" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570", + "name": "mgmt-group-9570", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "ab7a595a2ad20ba3f08f08d97d225049", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "de9c07f1-4b7f-4352-8af7-a7deeece0626", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:14:22 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "de9c07f1-4b7f-4352-8af7-a7deeece0626", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "de9c07f1-4b7f-4352-8af7-a7deeece0626", + "x-ms-ratelimit-remaining-tenant-reads": "11959", + "x-ms-request-id": "westus2:de9c07f1-4b7f-4352-8af7-a7deeece0626", + "x-ms-routing-request-id": "WESTUS2:20210712T021422Z:de9c07f1-4b7f-4352-8af7-a7deeece0626" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570", + "name": "mgmt-group-9570", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "1b1ddad6fe52e964ab27a076aacea421", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "b730d2cc-feb8-4fac-b8e3-dfcecb56ae7a", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:14:23 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "b730d2cc-feb8-4fac-b8e3-dfcecb56ae7a", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b730d2cc-feb8-4fac-b8e3-dfcecb56ae7a", + "x-ms-ratelimit-remaining-tenant-reads": "11958", + "x-ms-request-id": "westus2:b730d2cc-feb8-4fac-b8e3-dfcecb56ae7a", + "x-ms-routing-request-id": "WESTUS2:20210712T021423Z:b730d2cc-feb8-4fac-b8e3-dfcecb56ae7a" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570", + "name": "mgmt-group-9570", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "f1d0effadded9d5ac6f7672c4ec0cc94", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "b1c38e1d-1913-4242-a119-9de896de3e2c", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:14:24 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "b1c38e1d-1913-4242-a119-9de896de3e2c", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b1c38e1d-1913-4242-a119-9de896de3e2c", + "x-ms-ratelimit-remaining-tenant-reads": "11957", + "x-ms-request-id": "westus2:b1c38e1d-1913-4242-a119-9de896de3e2c", + "x-ms-routing-request-id": "WESTUS2:20210712T021424Z:b1c38e1d-1913-4242-a119-9de896de3e2c" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570", + "name": "mgmt-group-9570", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "315a04293ace5b01f49000aa8a2c6021", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "fbe9130f-afbe-4edb-8493-44d8a52c6879", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:14:25 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "fbe9130f-afbe-4edb-8493-44d8a52c6879", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "fbe9130f-afbe-4edb-8493-44d8a52c6879", + "x-ms-ratelimit-remaining-tenant-reads": "11956", + "x-ms-request-id": "westus2:fbe9130f-afbe-4edb-8493-44d8a52c6879", + "x-ms-routing-request-id": "WESTUS2:20210712T021426Z:fbe9130f-afbe-4edb-8493-44d8a52c6879" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570", + "name": "mgmt-group-9570", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "8edfe7eb5f52f85c807f555a97379bea", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "d96d4907-d0fd-4ec9-99c6-b55811fedb67", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:14:26 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "d96d4907-d0fd-4ec9-99c6-b55811fedb67", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d96d4907-d0fd-4ec9-99c6-b55811fedb67", + "x-ms-ratelimit-remaining-tenant-reads": "11955", + "x-ms-request-id": "westus2:d96d4907-d0fd-4ec9-99c6-b55811fedb67", + "x-ms-routing-request-id": "WESTUS2:20210712T021427Z:d96d4907-d0fd-4ec9-99c6-b55811fedb67" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570", + "name": "mgmt-group-9570", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "a64c0c5a7373c052ed74fd5cdcaf1399", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "74e34c3c-cf0c-4bfe-9b0d-ef276daae41e", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:14:27 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "74e34c3c-cf0c-4bfe-9b0d-ef276daae41e", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "74e34c3c-cf0c-4bfe-9b0d-ef276daae41e", + "x-ms-ratelimit-remaining-tenant-reads": "11954", + "x-ms-request-id": "westus2:74e34c3c-cf0c-4bfe-9b0d-ef276daae41e", + "x-ms-routing-request-id": "WESTUS2:20210712T021428Z:74e34c3c-cf0c-4bfe-9b0d-ef276daae41e" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570", + "name": "mgmt-group-9570", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "664145963de1ca41a862b04ee5a7c4bd", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "ba716ba4-4fb9-485c-a0fa-fe66d139f841", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:14:29 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "ba716ba4-4fb9-485c-a0fa-fe66d139f841", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ba716ba4-4fb9-485c-a0fa-fe66d139f841", + "x-ms-ratelimit-remaining-tenant-reads": "11953", + "x-ms-request-id": "westus2:ba716ba4-4fb9-485c-a0fa-fe66d139f841", + "x-ms-routing-request-id": "WESTUS2:20210712T021429Z:ba716ba4-4fb9-485c-a0fa-fe66d139f841" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570", + "name": "mgmt-group-9570", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "7d5016f5badf78ad941ea1dd62ff1bd1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "bb4d6f6b-7cc7-48e6-9df3-5fdaa875a6a3", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:14:30 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "bb4d6f6b-7cc7-48e6-9df3-5fdaa875a6a3", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "bb4d6f6b-7cc7-48e6-9df3-5fdaa875a6a3", + "x-ms-ratelimit-remaining-tenant-reads": "11952", + "x-ms-request-id": "westus2:bb4d6f6b-7cc7-48e6-9df3-5fdaa875a6a3", + "x-ms-routing-request-id": "WESTUS2:20210712T021430Z:bb4d6f6b-7cc7-48e6-9df3-5fdaa875a6a3" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570", + "name": "mgmt-group-9570", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "51c3bb6c34f51d08ca82fd11c204db46", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "bf9f1b81-3f43-4164-85bb-d66043ba52d6", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:14:31 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "bf9f1b81-3f43-4164-85bb-d66043ba52d6", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "bf9f1b81-3f43-4164-85bb-d66043ba52d6", + "x-ms-ratelimit-remaining-tenant-reads": "11951", + "x-ms-request-id": "westus2:bf9f1b81-3f43-4164-85bb-d66043ba52d6", + "x-ms-routing-request-id": "WESTUS2:20210712T021431Z:bf9f1b81-3f43-4164-85bb-d66043ba52d6" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570", + "name": "mgmt-group-9570", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "c6673fb0955fdcb998c9d2c39c6468a9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "d6b1d797-72fc-481b-a70f-c2c31e213a25", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:14:32 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "d6b1d797-72fc-481b-a70f-c2c31e213a25", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d6b1d797-72fc-481b-a70f-c2c31e213a25", + "x-ms-ratelimit-remaining-tenant-reads": "11950", + "x-ms-request-id": "westus2:d6b1d797-72fc-481b-a70f-c2c31e213a25", + "x-ms-routing-request-id": "WESTUS2:20210712T021432Z:d6b1d797-72fc-481b-a70f-c2c31e213a25" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570", + "name": "mgmt-group-9570", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "29e2df4673e3c1c70d33b25dbd9cb590", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "client-request-id": "33e9f2fa-c912-44ba-a6a4-fdfc12ea6137", + "Content-Length": "381", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:14:33 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "request-id": "33e9f2fa-c912-44ba-a6a4-fdfc12ea6137", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "33e9f2fa-c912-44ba-a6a4-fdfc12ea6137", + "x-ms-ratelimit-remaining-tenant-reads": "11949", + "x-ms-request-id": "westus2:33e9f2fa-c912-44ba-a6a4-fdfc12ea6137", + "x-ms-routing-request-id": "WESTUS2:20210712T021434Z:33e9f2fa-c912-44ba-a6a4-fdfc12ea6137" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9570", + "name": "mgmt-group-9570", + "status": "Succeeded", + "properties": { + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "mgmt-group-9570", + "details": { + "version": 1, + "updatedTime": "2021-07-12T02:14:15.133631Z", + "updatedBy": "3b10dae3-28cf-49a7-a8df-8fbae3e77f27" + } + } + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/mgmt-group-9570?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "222d5a435497d67101e7b82c61458066", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "client-request-id": "0261b93d-2634-498b-b46f-7f6829823033", + "Content-Length": "564", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:14:33 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "request-id": "0261b93d-2634-498b-b46f-7f6829823033", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0261b93d-2634-498b-b46f-7f6829823033", + "x-ms-ratelimit-remaining-tenant-reads": "11948", + "x-ms-request-id": "westus2:0261b93d-2634-498b-b46f-7f6829823033", + "x-ms-routing-request-id": "WESTUS2:20210712T021434Z:0261b93d-2634-498b-b46f-7f6829823033" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/managementGroups/mgmt-group-9570", + "type": "Microsoft.Management/managementGroups", + "name": "mgmt-group-9570", + "properties": { + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "mgmt-group-9570", + "details": { + "version": 1, + "updatedTime": "2021-07-12T02:14:15.133631Z", + "updatedBy": "3b10dae3-28cf-49a7-a8df-8fbae3e77f27", + "parent": { + "id": "/providers/Microsoft.Management/managementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47", + "name": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } + } + } + } + } + ], + "Variables": { + "RandomSeed": "236743813", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/StartCreateOrUpdateAsync.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/StartCreateOrUpdateAsync.json new file mode 100644 index 0000000000000..75a52541c42e0 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/StartCreateOrUpdateAsync.json @@ -0,0 +1,913 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "203bacc8bd0b9d8d6d25b617b1e84d5f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "450", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:43:32 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c8af3e70-77e6-4f0c-9332-4051716346ed", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-request-id": "c8af3e70-77e6-4f0c-9332-4051716346ed", + "x-ms-routing-request-id": "WESTUS2:20210712T024333Z:c8af3e70-77e6-4f0c-9332-4051716346ed" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "tagKey1": "tagValue1", + "tagKey2": "tagValue2" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/mgmt-group-775?api-version=2021-04-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "17", + "Content-Type": "application/json", + "traceparent": "00-0c83bb9435f9614699b3b3530616785a-a5097d0c99424449-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "22541c62e434a7cf0ed6ea9373f5f86a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": {} + }, + "StatusCode": 202, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "60935eb6-cd02-4c10-9904-e7c575f885fe", + "Content-Length": "165", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:43:33 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-775?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "60935eb6-cd02-4c10-9904-e7c575f885fe", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "60935eb6-cd02-4c10-9904-e7c575f885fe", + "x-ms-ratelimit-remaining-managementgroups-requests": "58", + "x-ms-ratelimit-remaining-tenant-writes": "1198", + "x-ms-request-id": "westus2:60935eb6-cd02-4c10-9904-e7c575f885fe", + "x-ms-routing-request-id": "WESTUS2:20210712T024333Z:60935eb6-cd02-4c10-9904-e7c575f885fe" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/managementGroups/mgmt-group-775", + "type": "Microsoft.Management/managementGroups", + "name": "mgmt-group-775", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "8db5becf25f0c7946c79fde7a309fa30", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "7830fc21-88a0-4683-aa77-e2e1d1ee9ae5", + "Content-Length": "164", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:43:33 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-775?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "7830fc21-88a0-4683-aa77-e2e1d1ee9ae5", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7830fc21-88a0-4683-aa77-e2e1d1ee9ae5", + "x-ms-ratelimit-remaining-tenant-reads": "11974", + "x-ms-request-id": "westus2:7830fc21-88a0-4683-aa77-e2e1d1ee9ae5", + "x-ms-routing-request-id": "WESTUS2:20210712T024333Z:7830fc21-88a0-4683-aa77-e2e1d1ee9ae5" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775", + "name": "mgmt-group-775", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "7136adbdf879e3265d3434037f9d2839", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "5e6a988b-5b76-4b5f-9d82-cd23d65e3054", + "Content-Length": "161", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:43:34 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-775?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "5e6a988b-5b76-4b5f-9d82-cd23d65e3054", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5e6a988b-5b76-4b5f-9d82-cd23d65e3054", + "x-ms-ratelimit-remaining-tenant-reads": "11973", + "x-ms-request-id": "westus2:5e6a988b-5b76-4b5f-9d82-cd23d65e3054", + "x-ms-routing-request-id": "WESTUS2:20210712T024335Z:5e6a988b-5b76-4b5f-9d82-cd23d65e3054" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775", + "name": "mgmt-group-775", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "b5c44aa06b3f5679e20cfae782d77ce4", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "035be1c1-ea07-411d-99d9-feed3e33bf15", + "Content-Length": "161", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:43:35 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-775?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "035be1c1-ea07-411d-99d9-feed3e33bf15", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "035be1c1-ea07-411d-99d9-feed3e33bf15", + "x-ms-ratelimit-remaining-tenant-reads": "11972", + "x-ms-request-id": "westus2:035be1c1-ea07-411d-99d9-feed3e33bf15", + "x-ms-routing-request-id": "WESTUS2:20210712T024336Z:035be1c1-ea07-411d-99d9-feed3e33bf15" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775", + "name": "mgmt-group-775", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "d1743435c39ed62697d22fbcf09047cf", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "88d4d96c-f910-4006-bafe-a266fa862812", + "Content-Length": "161", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:43:36 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-775?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "88d4d96c-f910-4006-bafe-a266fa862812", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "88d4d96c-f910-4006-bafe-a266fa862812", + "x-ms-ratelimit-remaining-tenant-reads": "11971", + "x-ms-request-id": "westus2:88d4d96c-f910-4006-bafe-a266fa862812", + "x-ms-routing-request-id": "WESTUS2:20210712T024337Z:88d4d96c-f910-4006-bafe-a266fa862812" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775", + "name": "mgmt-group-775", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "5846c351454452f133e08f6dfd3f6186", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "18d9af47-4b89-4bc5-bf68-a84e11406d09", + "Content-Length": "161", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:43:37 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-775?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "18d9af47-4b89-4bc5-bf68-a84e11406d09", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "18d9af47-4b89-4bc5-bf68-a84e11406d09", + "x-ms-ratelimit-remaining-tenant-reads": "11970", + "x-ms-request-id": "westus2:18d9af47-4b89-4bc5-bf68-a84e11406d09", + "x-ms-routing-request-id": "WESTUS2:20210712T024338Z:18d9af47-4b89-4bc5-bf68-a84e11406d09" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775", + "name": "mgmt-group-775", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "4bce50b75629dd9a24ed1d6d3bbd6551", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "0d01b982-66c2-4de5-9c87-8854b59ea4a8", + "Content-Length": "161", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:43:38 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-775?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "0d01b982-66c2-4de5-9c87-8854b59ea4a8", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0d01b982-66c2-4de5-9c87-8854b59ea4a8", + "x-ms-ratelimit-remaining-tenant-reads": "11969", + "x-ms-request-id": "westus2:0d01b982-66c2-4de5-9c87-8854b59ea4a8", + "x-ms-routing-request-id": "WESTUS2:20210712T024339Z:0d01b982-66c2-4de5-9c87-8854b59ea4a8" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775", + "name": "mgmt-group-775", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "be952bc42490f09f43219ebe34b9d958", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "fb4d97b2-5ffc-4b33-a083-48acc351733e", + "Content-Length": "161", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:43:39 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-775?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "fb4d97b2-5ffc-4b33-a083-48acc351733e", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "fb4d97b2-5ffc-4b33-a083-48acc351733e", + "x-ms-ratelimit-remaining-tenant-reads": "11968", + "x-ms-request-id": "westus2:fb4d97b2-5ffc-4b33-a083-48acc351733e", + "x-ms-routing-request-id": "WESTUS2:20210712T024340Z:fb4d97b2-5ffc-4b33-a083-48acc351733e" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775", + "name": "mgmt-group-775", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "a005a870fcc2fba62969345627831675", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "6647a2bb-7d73-4203-ba3c-c01b11148f7e", + "Content-Length": "161", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:43:40 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-775?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "6647a2bb-7d73-4203-ba3c-c01b11148f7e", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6647a2bb-7d73-4203-ba3c-c01b11148f7e", + "x-ms-ratelimit-remaining-tenant-reads": "11967", + "x-ms-request-id": "westus2:6647a2bb-7d73-4203-ba3c-c01b11148f7e", + "x-ms-routing-request-id": "WESTUS2:20210712T024341Z:6647a2bb-7d73-4203-ba3c-c01b11148f7e" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775", + "name": "mgmt-group-775", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "d2a83d7aa3a993f6b1dd0707b8dba96a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "f864ad17-274a-4e07-a8c3-7f596f4a01ad", + "Content-Length": "161", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:43:42 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-775?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "f864ad17-274a-4e07-a8c3-7f596f4a01ad", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f864ad17-274a-4e07-a8c3-7f596f4a01ad", + "x-ms-ratelimit-remaining-tenant-reads": "11966", + "x-ms-request-id": "westus2:f864ad17-274a-4e07-a8c3-7f596f4a01ad", + "x-ms-routing-request-id": "WESTUS2:20210712T024342Z:f864ad17-274a-4e07-a8c3-7f596f4a01ad" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775", + "name": "mgmt-group-775", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "92fcc514c5b8c88f849a9527ef48c8c0", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "39ac4d5d-1912-4cb5-b643-f8a188f81e19", + "Content-Length": "161", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:43:43 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-775?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "39ac4d5d-1912-4cb5-b643-f8a188f81e19", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "39ac4d5d-1912-4cb5-b643-f8a188f81e19", + "x-ms-ratelimit-remaining-tenant-reads": "11965", + "x-ms-request-id": "westus2:39ac4d5d-1912-4cb5-b643-f8a188f81e19", + "x-ms-routing-request-id": "WESTUS2:20210712T024344Z:39ac4d5d-1912-4cb5-b643-f8a188f81e19" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775", + "name": "mgmt-group-775", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "f643280a0611cdafb271eee4f59e424d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "e028a418-1c20-46e3-b088-ac69873a5199", + "Content-Length": "161", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:43:44 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-775?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "e028a418-1c20-46e3-b088-ac69873a5199", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e028a418-1c20-46e3-b088-ac69873a5199", + "x-ms-ratelimit-remaining-tenant-reads": "11964", + "x-ms-request-id": "westus2:e028a418-1c20-46e3-b088-ac69873a5199", + "x-ms-routing-request-id": "WESTUS2:20210712T024345Z:e028a418-1c20-46e3-b088-ac69873a5199" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775", + "name": "mgmt-group-775", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "6242c9c08486b5bdaedf4d0e0ecfa468", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "c4abba12-f148-4bf2-bb73-f4beec2025ba", + "Content-Length": "161", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:43:45 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-775?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "c4abba12-f148-4bf2-bb73-f4beec2025ba", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c4abba12-f148-4bf2-bb73-f4beec2025ba", + "x-ms-ratelimit-remaining-tenant-reads": "11963", + "x-ms-request-id": "westus2:c4abba12-f148-4bf2-bb73-f4beec2025ba", + "x-ms-routing-request-id": "WESTUS2:20210712T024346Z:c4abba12-f148-4bf2-bb73-f4beec2025ba" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775", + "name": "mgmt-group-775", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "8ffc4715b2980e59162fe046d6aad3e6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "932cd32a-6051-422f-9029-a3ce58328212", + "Content-Length": "161", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:43:46 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-775?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "932cd32a-6051-422f-9029-a3ce58328212", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "932cd32a-6051-422f-9029-a3ce58328212", + "x-ms-ratelimit-remaining-tenant-reads": "11962", + "x-ms-request-id": "westus2:932cd32a-6051-422f-9029-a3ce58328212", + "x-ms-routing-request-id": "WESTUS2:20210712T024347Z:932cd32a-6051-422f-9029-a3ce58328212" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775", + "name": "mgmt-group-775", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "25664758650686396a8e4731b9a0bfe3", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "f61b9112-92a1-49de-a3d1-0bcab6bc6bde", + "Content-Length": "161", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:43:47 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-775?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "f61b9112-92a1-49de-a3d1-0bcab6bc6bde", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f61b9112-92a1-49de-a3d1-0bcab6bc6bde", + "x-ms-ratelimit-remaining-tenant-reads": "11961", + "x-ms-request-id": "westus2:f61b9112-92a1-49de-a3d1-0bcab6bc6bde", + "x-ms-routing-request-id": "WESTUS2:20210712T024348Z:f61b9112-92a1-49de-a3d1-0bcab6bc6bde" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775", + "name": "mgmt-group-775", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "adcf85cdb3a10db56f344c56a477de04", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "dc44f62b-28f6-4bcc-9c60-e255b8487710", + "Content-Length": "161", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:43:48 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-775?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "dc44f62b-28f6-4bcc-9c60-e255b8487710", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "dc44f62b-28f6-4bcc-9c60-e255b8487710", + "x-ms-ratelimit-remaining-tenant-reads": "11960", + "x-ms-request-id": "westus2:dc44f62b-28f6-4bcc-9c60-e255b8487710", + "x-ms-routing-request-id": "WESTUS2:20210712T024349Z:dc44f62b-28f6-4bcc-9c60-e255b8487710" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775", + "name": "mgmt-group-775", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "c6b6670c7e68af620e7624096a285475", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "1af14634-e389-4cbd-a70d-1520d3ab8d88", + "Content-Length": "161", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:43:49 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-775?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "1af14634-e389-4cbd-a70d-1520d3ab8d88", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1af14634-e389-4cbd-a70d-1520d3ab8d88", + "x-ms-ratelimit-remaining-tenant-reads": "11959", + "x-ms-request-id": "westus2:1af14634-e389-4cbd-a70d-1520d3ab8d88", + "x-ms-routing-request-id": "WESTUS2:20210712T024350Z:1af14634-e389-4cbd-a70d-1520d3ab8d88" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775", + "name": "mgmt-group-775", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "5078fc7025daa4449259b5d219e2e2f3", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "aba00f92-71aa-4756-8a4e-c60e2768fddd", + "Content-Length": "161", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:43:51 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-775?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "aba00f92-71aa-4756-8a4e-c60e2768fddd", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "aba00f92-71aa-4756-8a4e-c60e2768fddd", + "x-ms-ratelimit-remaining-tenant-reads": "11958", + "x-ms-request-id": "westus2:aba00f92-71aa-4756-8a4e-c60e2768fddd", + "x-ms-routing-request-id": "WESTUS2:20210712T024351Z:aba00f92-71aa-4756-8a4e-c60e2768fddd" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775", + "name": "mgmt-group-775", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "522443b0f8ea4f7a231f9f2b8eaba347", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "ceeea91d-975a-469c-be43-b4f60195569e", + "Content-Length": "161", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:43:52 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-775?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "ceeea91d-975a-469c-be43-b4f60195569e", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ceeea91d-975a-469c-be43-b4f60195569e", + "x-ms-ratelimit-remaining-tenant-reads": "11957", + "x-ms-request-id": "westus2:ceeea91d-975a-469c-be43-b4f60195569e", + "x-ms-routing-request-id": "WESTUS2:20210712T024353Z:ceeea91d-975a-469c-be43-b4f60195569e" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775", + "name": "mgmt-group-775", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "a7e6d6df8dfee7292211330fc990962b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "b8d1d29a-e7ef-41e0-8b9a-d752d7660c6b", + "Content-Length": "161", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:43:53 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-775?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "b8d1d29a-e7ef-41e0-8b9a-d752d7660c6b", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b8d1d29a-e7ef-41e0-8b9a-d752d7660c6b", + "x-ms-ratelimit-remaining-tenant-reads": "11956", + "x-ms-request-id": "westus2:b8d1d29a-e7ef-41e0-8b9a-d752d7660c6b", + "x-ms-routing-request-id": "WESTUS2:20210712T024354Z:b8d1d29a-e7ef-41e0-8b9a-d752d7660c6b" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775", + "name": "mgmt-group-775", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "275931940203778a82292dba861916e7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "client-request-id": "19f63554-d08c-465f-b851-f73438e5a765", + "Content-Length": "379", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:43:54 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "request-id": "19f63554-d08c-465f-b851-f73438e5a765", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "19f63554-d08c-465f-b851-f73438e5a765", + "x-ms-ratelimit-remaining-tenant-reads": "11955", + "x-ms-request-id": "westus2:19f63554-d08c-465f-b851-f73438e5a765", + "x-ms-routing-request-id": "WESTUS2:20210712T024355Z:19f63554-d08c-465f-b851-f73438e5a765" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-775", + "name": "mgmt-group-775", + "status": "Succeeded", + "properties": { + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "mgmt-group-775", + "details": { + "version": 1, + "updatedTime": "2021-07-12T02:43:39.5346693Z", + "updatedBy": "3b10dae3-28cf-49a7-a8df-8fbae3e77f27" + } + } + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/mgmt-group-775?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "42f26eb53afc22f4193d2fd9c56b8592", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "client-request-id": "0873484f-1738-4438-9c52-aeecdeb00d2a", + "Content-Length": "562", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:43:54 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "request-id": "0873484f-1738-4438-9c52-aeecdeb00d2a", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0873484f-1738-4438-9c52-aeecdeb00d2a", + "x-ms-ratelimit-remaining-tenant-reads": "11954", + "x-ms-request-id": "westus2:0873484f-1738-4438-9c52-aeecdeb00d2a", + "x-ms-routing-request-id": "WESTUS2:20210712T024355Z:0873484f-1738-4438-9c52-aeecdeb00d2a" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/managementGroups/mgmt-group-775", + "type": "Microsoft.Management/managementGroups", + "name": "mgmt-group-775", + "properties": { + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "mgmt-group-775", + "details": { + "version": 1, + "updatedTime": "2021-07-12T02:43:39.5346693Z", + "updatedBy": "3b10dae3-28cf-49a7-a8df-8fbae3e77f27", + "parent": { + "id": "/providers/Microsoft.Management/managementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47", + "name": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } + } + } + } + } + ], + "Variables": { + "RandomSeed": "417480256", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/TryGet.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/TryGet.json new file mode 100644 index 0000000000000..60dc0e1a67e04 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/TryGet.json @@ -0,0 +1,105 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "e64ce7b6ef0be13b573b5f2b57537f36", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "450", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:15:43 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "71bb4bcf-f086-4aa2-bc2c-39f134e9b504", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-request-id": "71bb4bcf-f086-4aa2-bc2c-39f134e9b504", + "x-ms-routing-request-id": "WESTUS:20210712T021543Z:71bb4bcf-f086-4aa2-bc2c-39f134e9b504" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "tagKey1": "tagValue1", + "tagKey2": "tagValue2" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/mgmt-group-827?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Cache-Control": "no-cache", + "traceparent": "00-f8c5b31b964b554ab96148e3af390f71-ca63e327d8370041-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "5690c13e5c329039af4eb8add7939f18", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "client-request-id": "b0fe58d7-e3ee-4691-8cce-8f0a2ff95403", + "Content-Length": "562", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:15:43 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "request-id": "b0fe58d7-e3ee-4691-8cce-8f0a2ff95403", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b0fe58d7-e3ee-4691-8cce-8f0a2ff95403", + "x-ms-ratelimit-remaining-tenant-reads": "11949", + "x-ms-request-id": "westus:b0fe58d7-e3ee-4691-8cce-8f0a2ff95403", + "x-ms-routing-request-id": "WESTUS:20210712T021543Z:b0fe58d7-e3ee-4691-8cce-8f0a2ff95403" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/managementGroups/mgmt-group-827", + "type": "Microsoft.Management/managementGroups", + "name": "mgmt-group-827", + "properties": { + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "mgmt-group-827", + "details": { + "version": 9, + "updatedTime": "2021-07-12T02:15:00.0191642Z", + "updatedBy": "3b10dae3-28cf-49a7-a8df-8fbae3e77f27", + "parent": { + "id": "/providers/Microsoft.Management/managementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47", + "name": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } + } + } + } + } + ], + "Variables": { + "RandomSeed": "284253039", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/TryGetAsync.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/TryGetAsync.json new file mode 100644 index 0000000000000..5bdcdfed5bd2f --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/TryGetAsync.json @@ -0,0 +1,105 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "b0fdc5193a5158d5b66d07707d8b5def", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "450", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:26:03 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4c25b6fd-5cdf-429d-b76d-ee00ceae132b", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-request-id": "4c25b6fd-5cdf-429d-b76d-ee00ceae132b", + "x-ms-routing-request-id": "WESTUS2:20210712T022604Z:4c25b6fd-5cdf-429d-b76d-ee00ceae132b" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "tagKey1": "tagValue1", + "tagKey2": "tagValue2" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/mgmt-group-7077?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Cache-Control": "no-cache", + "traceparent": "00-8bf1f9106a845640975c36800465289a-5eaea812ebf63048-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "c6588176474d9f59c776b5a74ff53a62", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "client-request-id": "385409c1-2f78-4047-9266-e407e94e65f3", + "Content-Length": "565", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 02:26:03 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "request-id": "385409c1-2f78-4047-9266-e407e94e65f3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "385409c1-2f78-4047-9266-e407e94e65f3", + "x-ms-ratelimit-remaining-tenant-reads": "11999", + "x-ms-request-id": "westus2:385409c1-2f78-4047-9266-e407e94e65f3", + "x-ms-routing-request-id": "WESTUS2:20210712T022604Z:385409c1-2f78-4047-9266-e407e94e65f3" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/managementGroups/mgmt-group-7077", + "type": "Microsoft.Management/managementGroups", + "name": "mgmt-group-7077", + "properties": { + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "mgmt-group-7077", + "details": { + "version": 1, + "updatedTime": "2021-07-12T02:24:46.5942156Z", + "updatedBy": "3b10dae3-28cf-49a7-a8df-8fbae3e77f27", + "parent": { + "id": "/providers/Microsoft.Management/managementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47", + "name": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } + } + } + } + } + ], + "Variables": { + "RandomSeed": "167478796", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupOperationsTests/Delete.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupOperationsTests/Delete.json new file mode 100644 index 0000000000000..44d811c18713b --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupOperationsTests/Delete.json @@ -0,0 +1,2141 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "ccb002e2806015ee3332903397c46945", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "450", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:16:09 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "047e81d6-45f4-4db2-b94a-7bd3fe200b79", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-request-id": "047e81d6-45f4-4db2-b94a-7bd3fe200b79", + "x-ms-routing-request-id": "WESTUS2:20210712T031609Z:047e81d6-45f4-4db2-b94a-7bd3fe200b79" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "tagKey1": "tagValue1", + "tagKey2": "tagValue2" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "17", + "Content-Type": "application/json", + "traceparent": "00-a0c69de90921d54aaab538f43f9811eb-887e1b6ff6afa044-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "ce1be1b8d33b6684291b982596b875fe", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": {} + }, + "StatusCode": 202, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "83b1b45d-bb5d-442e-9b6a-5e1eabf2bf7d", + "Content-Length": "167", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:16:09 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "83b1b45d-bb5d-442e-9b6a-5e1eabf2bf7d", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "83b1b45d-bb5d-442e-9b6a-5e1eabf2bf7d", + "x-ms-ratelimit-remaining-managementgroups-requests": "59", + "x-ms-ratelimit-remaining-tenant-writes": "1198", + "x-ms-request-id": "westus2:83b1b45d-bb5d-442e-9b6a-5e1eabf2bf7d", + "x-ms-routing-request-id": "WESTUS2:20210712T031610Z:83b1b45d-bb5d-442e-9b6a-5e1eabf2bf7d" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/managementGroups/mgmt-group-8286", + "type": "Microsoft.Management/managementGroups", + "name": "mgmt-group-8286", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a0c69de90921d54aaab538f43f9811eb-c5079c4e19888a4e-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "e5120dd34f962fa72b66376556ef9c7a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "27f4cb2d-f0ec-4bc3-aa23-983f85d18594", + "Content-Length": "166", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:16:09 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "27f4cb2d-f0ec-4bc3-aa23-983f85d18594", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "27f4cb2d-f0ec-4bc3-aa23-983f85d18594", + "x-ms-ratelimit-remaining-tenant-reads": "11922", + "x-ms-request-id": "westus2:27f4cb2d-f0ec-4bc3-aa23-983f85d18594", + "x-ms-routing-request-id": "WESTUS2:20210712T031610Z:27f4cb2d-f0ec-4bc3-aa23-983f85d18594" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286", + "name": "mgmt-group-8286", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a0c69de90921d54aaab538f43f9811eb-1722393e0185a944-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "b799341b7414cb5357c033c4566b5aab", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "b20e9a52-8122-4571-ae71-03afb74056fd", + "Content-Length": "166", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:16:10 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "b20e9a52-8122-4571-ae71-03afb74056fd", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b20e9a52-8122-4571-ae71-03afb74056fd", + "x-ms-ratelimit-remaining-tenant-reads": "11921", + "x-ms-request-id": "westus2:b20e9a52-8122-4571-ae71-03afb74056fd", + "x-ms-routing-request-id": "WESTUS2:20210712T031611Z:b20e9a52-8122-4571-ae71-03afb74056fd" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286", + "name": "mgmt-group-8286", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a0c69de90921d54aaab538f43f9811eb-6b1807c982d4b24a-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "895121898fa6ae686525a67cb52405ac", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "49dc4f9c-01f4-4d64-b3c8-53862787d0e9", + "Content-Length": "166", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:16:11 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "49dc4f9c-01f4-4d64-b3c8-53862787d0e9", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "49dc4f9c-01f4-4d64-b3c8-53862787d0e9", + "x-ms-ratelimit-remaining-tenant-reads": "11920", + "x-ms-request-id": "westus2:49dc4f9c-01f4-4d64-b3c8-53862787d0e9", + "x-ms-routing-request-id": "WESTUS2:20210712T031612Z:49dc4f9c-01f4-4d64-b3c8-53862787d0e9" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286", + "name": "mgmt-group-8286", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a0c69de90921d54aaab538f43f9811eb-df070f5b4e9b3c40-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "d7fe02dadae45f61b9468ed61be2d8bf", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "7fda1599-899a-4fb6-a788-2555c9db35ea", + "Content-Length": "166", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:16:13 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "7fda1599-899a-4fb6-a788-2555c9db35ea", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7fda1599-899a-4fb6-a788-2555c9db35ea", + "x-ms-ratelimit-remaining-tenant-reads": "11919", + "x-ms-request-id": "westus2:7fda1599-899a-4fb6-a788-2555c9db35ea", + "x-ms-routing-request-id": "WESTUS2:20210712T031613Z:7fda1599-899a-4fb6-a788-2555c9db35ea" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286", + "name": "mgmt-group-8286", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a0c69de90921d54aaab538f43f9811eb-ec7bdbda07adac43-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "34dc8b0b129d8bd4cceb52efced71632", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "612be926-9491-4fb3-8754-fb03e9488802", + "Content-Length": "166", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:16:14 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "612be926-9491-4fb3-8754-fb03e9488802", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "612be926-9491-4fb3-8754-fb03e9488802", + "x-ms-ratelimit-remaining-tenant-reads": "11918", + "x-ms-request-id": "westus2:612be926-9491-4fb3-8754-fb03e9488802", + "x-ms-routing-request-id": "WESTUS2:20210712T031614Z:612be926-9491-4fb3-8754-fb03e9488802" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286", + "name": "mgmt-group-8286", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a0c69de90921d54aaab538f43f9811eb-52a6772294c43f4d-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "54ea87bb826daec7bff2d05f01929282", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "fae3059e-75c7-451d-9356-a8b299b288e6", + "Content-Length": "166", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:16:15 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "fae3059e-75c7-451d-9356-a8b299b288e6", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "fae3059e-75c7-451d-9356-a8b299b288e6", + "x-ms-ratelimit-remaining-tenant-reads": "11917", + "x-ms-request-id": "westus2:fae3059e-75c7-451d-9356-a8b299b288e6", + "x-ms-routing-request-id": "WESTUS2:20210712T031615Z:fae3059e-75c7-451d-9356-a8b299b288e6" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286", + "name": "mgmt-group-8286", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a0c69de90921d54aaab538f43f9811eb-7cc620c054cbb747-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "2970e64cd047c70e2e720bf9887291e2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "0e58e1cc-2c53-4bc5-8318-42f83da9e44b", + "Content-Length": "166", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:16:16 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "0e58e1cc-2c53-4bc5-8318-42f83da9e44b", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0e58e1cc-2c53-4bc5-8318-42f83da9e44b", + "x-ms-ratelimit-remaining-tenant-reads": "11916", + "x-ms-request-id": "westus2:0e58e1cc-2c53-4bc5-8318-42f83da9e44b", + "x-ms-routing-request-id": "WESTUS2:20210712T031617Z:0e58e1cc-2c53-4bc5-8318-42f83da9e44b" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286", + "name": "mgmt-group-8286", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a0c69de90921d54aaab538f43f9811eb-d24c38ff4daf934c-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "941a5b3084f88952c42d74ab42748a39", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "502da218-0cec-4dfe-9255-9cea03a2cf96", + "Content-Length": "166", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:16:17 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "502da218-0cec-4dfe-9255-9cea03a2cf96", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "502da218-0cec-4dfe-9255-9cea03a2cf96", + "x-ms-ratelimit-remaining-tenant-reads": "11915", + "x-ms-request-id": "westus2:502da218-0cec-4dfe-9255-9cea03a2cf96", + "x-ms-routing-request-id": "WESTUS2:20210712T031618Z:502da218-0cec-4dfe-9255-9cea03a2cf96" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286", + "name": "mgmt-group-8286", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a0c69de90921d54aaab538f43f9811eb-1af3456fc77d1c49-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "e7a2cf58ec66eaea782326fb76cd264c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "2c449b2a-d739-4152-bcae-d07ebbdc611f", + "Content-Length": "166", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:16:18 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "2c449b2a-d739-4152-bcae-d07ebbdc611f", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2c449b2a-d739-4152-bcae-d07ebbdc611f", + "x-ms-ratelimit-remaining-tenant-reads": "11914", + "x-ms-request-id": "westus2:2c449b2a-d739-4152-bcae-d07ebbdc611f", + "x-ms-routing-request-id": "WESTUS2:20210712T031619Z:2c449b2a-d739-4152-bcae-d07ebbdc611f" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286", + "name": "mgmt-group-8286", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a0c69de90921d54aaab538f43f9811eb-d00da239fb59bc49-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "a52fed60fd77c88a94e6651a5c6284b9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "1a5d8408-3f4f-447a-ae45-82d7abaa08ac", + "Content-Length": "166", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:16:19 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "1a5d8408-3f4f-447a-ae45-82d7abaa08ac", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1a5d8408-3f4f-447a-ae45-82d7abaa08ac", + "x-ms-ratelimit-remaining-tenant-reads": "11913", + "x-ms-request-id": "westus2:1a5d8408-3f4f-447a-ae45-82d7abaa08ac", + "x-ms-routing-request-id": "WESTUS2:20210712T031620Z:1a5d8408-3f4f-447a-ae45-82d7abaa08ac" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286", + "name": "mgmt-group-8286", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a0c69de90921d54aaab538f43f9811eb-09069d25f1ef6e40-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "b8a1d1e7a9d0447b70301cd45e5612f6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "d7d44ef0-f4f4-4689-9f19-f9d026900511", + "Content-Length": "166", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:16:20 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "d7d44ef0-f4f4-4689-9f19-f9d026900511", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d7d44ef0-f4f4-4689-9f19-f9d026900511", + "x-ms-ratelimit-remaining-tenant-reads": "11912", + "x-ms-request-id": "westus2:d7d44ef0-f4f4-4689-9f19-f9d026900511", + "x-ms-routing-request-id": "WESTUS2:20210712T031621Z:d7d44ef0-f4f4-4689-9f19-f9d026900511" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286", + "name": "mgmt-group-8286", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a0c69de90921d54aaab538f43f9811eb-1f6662c6ab0d5b43-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "554a2707e5455ac245da538087d08e16", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "9cfaded3-f38e-4c4f-bb7a-1caf05a0b745", + "Content-Length": "166", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:16:22 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "9cfaded3-f38e-4c4f-bb7a-1caf05a0b745", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9cfaded3-f38e-4c4f-bb7a-1caf05a0b745", + "x-ms-ratelimit-remaining-tenant-reads": "11911", + "x-ms-request-id": "westus2:9cfaded3-f38e-4c4f-bb7a-1caf05a0b745", + "x-ms-routing-request-id": "WESTUS2:20210712T031622Z:9cfaded3-f38e-4c4f-bb7a-1caf05a0b745" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286", + "name": "mgmt-group-8286", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a0c69de90921d54aaab538f43f9811eb-d83e4680534f6d4d-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "a5146c9f6e2cb77c71eb3447e1b5693d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "d1d060fa-70b8-4a16-8640-a6ceda4734d2", + "Content-Length": "166", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:16:23 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "d1d060fa-70b8-4a16-8640-a6ceda4734d2", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d1d060fa-70b8-4a16-8640-a6ceda4734d2", + "x-ms-ratelimit-remaining-tenant-reads": "11910", + "x-ms-request-id": "westus2:d1d060fa-70b8-4a16-8640-a6ceda4734d2", + "x-ms-routing-request-id": "WESTUS2:20210712T031623Z:d1d060fa-70b8-4a16-8640-a6ceda4734d2" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286", + "name": "mgmt-group-8286", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a0c69de90921d54aaab538f43f9811eb-cc96c32ca8e3aa44-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "34136ed42e1801730f4672f656fbbca0", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "3932c5d7-59ed-4fb4-9497-3cdf30c26b62", + "Content-Length": "166", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:16:24 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "3932c5d7-59ed-4fb4-9497-3cdf30c26b62", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3932c5d7-59ed-4fb4-9497-3cdf30c26b62", + "x-ms-ratelimit-remaining-tenant-reads": "11909", + "x-ms-request-id": "westus2:3932c5d7-59ed-4fb4-9497-3cdf30c26b62", + "x-ms-routing-request-id": "WESTUS2:20210712T031624Z:3932c5d7-59ed-4fb4-9497-3cdf30c26b62" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286", + "name": "mgmt-group-8286", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a0c69de90921d54aaab538f43f9811eb-3e5b2a2f8658a34c-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "f13506a26d4299caab93e35ab07a7890", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "3defd958-8625-4dab-9246-43423100cedb", + "Content-Length": "166", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:16:25 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "3defd958-8625-4dab-9246-43423100cedb", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3defd958-8625-4dab-9246-43423100cedb", + "x-ms-ratelimit-remaining-tenant-reads": "11908", + "x-ms-request-id": "westus2:3defd958-8625-4dab-9246-43423100cedb", + "x-ms-routing-request-id": "WESTUS2:20210712T031626Z:3defd958-8625-4dab-9246-43423100cedb" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286", + "name": "mgmt-group-8286", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a0c69de90921d54aaab538f43f9811eb-68ae80afb2945740-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "18ab167059bd70fdf81295e6fb866176", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "ffe06dcb-8b34-49dc-a6fd-c2bc7577ef92", + "Content-Length": "166", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:16:26 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "ffe06dcb-8b34-49dc-a6fd-c2bc7577ef92", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ffe06dcb-8b34-49dc-a6fd-c2bc7577ef92", + "x-ms-ratelimit-remaining-tenant-reads": "11907", + "x-ms-request-id": "westus2:ffe06dcb-8b34-49dc-a6fd-c2bc7577ef92", + "x-ms-routing-request-id": "WESTUS2:20210712T031627Z:ffe06dcb-8b34-49dc-a6fd-c2bc7577ef92" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286", + "name": "mgmt-group-8286", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a0c69de90921d54aaab538f43f9811eb-79cf2b98746c7e4f-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "dba5942e777f67faa47a89854b195194", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "b5d764bb-0064-4d43-82bc-fa7d97fac9e4", + "Content-Length": "166", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:16:27 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "b5d764bb-0064-4d43-82bc-fa7d97fac9e4", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b5d764bb-0064-4d43-82bc-fa7d97fac9e4", + "x-ms-ratelimit-remaining-tenant-reads": "11906", + "x-ms-request-id": "westus2:b5d764bb-0064-4d43-82bc-fa7d97fac9e4", + "x-ms-routing-request-id": "WESTUS2:20210712T031628Z:b5d764bb-0064-4d43-82bc-fa7d97fac9e4" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286", + "name": "mgmt-group-8286", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a0c69de90921d54aaab538f43f9811eb-1ef7adbc0ee1c146-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "3f85e1cda44f49e208c5f830d7e49d25", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "98ad5887-a72d-42a2-930c-79193e7230ea", + "Content-Length": "166", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:16:28 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "98ad5887-a72d-42a2-930c-79193e7230ea", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "98ad5887-a72d-42a2-930c-79193e7230ea", + "x-ms-ratelimit-remaining-tenant-reads": "11905", + "x-ms-request-id": "westus2:98ad5887-a72d-42a2-930c-79193e7230ea", + "x-ms-routing-request-id": "WESTUS2:20210712T031629Z:98ad5887-a72d-42a2-930c-79193e7230ea" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286", + "name": "mgmt-group-8286", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a0c69de90921d54aaab538f43f9811eb-6e847c3ff8acdb45-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "1c2c6c319dd5f9111c447443cf7824df", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "4ca81359-c02f-4251-aa5f-3d7819a3076c", + "Content-Length": "166", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:16:29 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "4ca81359-c02f-4251-aa5f-3d7819a3076c", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4ca81359-c02f-4251-aa5f-3d7819a3076c", + "x-ms-ratelimit-remaining-tenant-reads": "11904", + "x-ms-request-id": "westus2:4ca81359-c02f-4251-aa5f-3d7819a3076c", + "x-ms-routing-request-id": "WESTUS2:20210712T031630Z:4ca81359-c02f-4251-aa5f-3d7819a3076c" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286", + "name": "mgmt-group-8286", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a0c69de90921d54aaab538f43f9811eb-d0edb6e5f3a8c543-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "191801c121008926b15cd3ba7eca8fc0", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "956fc3a8-3368-456a-a2ab-bc4a88acf2be", + "Content-Length": "166", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:16:30 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "956fc3a8-3368-456a-a2ab-bc4a88acf2be", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "956fc3a8-3368-456a-a2ab-bc4a88acf2be", + "x-ms-ratelimit-remaining-tenant-reads": "11903", + "x-ms-request-id": "westus2:956fc3a8-3368-456a-a2ab-bc4a88acf2be", + "x-ms-routing-request-id": "WESTUS2:20210712T031631Z:956fc3a8-3368-456a-a2ab-bc4a88acf2be" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286", + "name": "mgmt-group-8286", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a0c69de90921d54aaab538f43f9811eb-ecd1d1ffdb9d4542-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "de5364dc34ec30bed08c230b309f798f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "0d37a379-b5d5-406c-92cc-fdd3063df3c6", + "Content-Length": "166", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:16:31 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "0d37a379-b5d5-406c-92cc-fdd3063df3c6", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0d37a379-b5d5-406c-92cc-fdd3063df3c6", + "x-ms-ratelimit-remaining-tenant-reads": "11902", + "x-ms-request-id": "westus2:0d37a379-b5d5-406c-92cc-fdd3063df3c6", + "x-ms-routing-request-id": "WESTUS2:20210712T031632Z:0d37a379-b5d5-406c-92cc-fdd3063df3c6" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286", + "name": "mgmt-group-8286", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a0c69de90921d54aaab538f43f9811eb-e838e6f8b6029546-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "d66e19a083cb0f2446a26a79c9577a51", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "f4b19ce3-dabf-4606-a43c-4eb4554c000d", + "Content-Length": "166", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:16:33 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "f4b19ce3-dabf-4606-a43c-4eb4554c000d", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f4b19ce3-dabf-4606-a43c-4eb4554c000d", + "x-ms-ratelimit-remaining-tenant-reads": "11901", + "x-ms-request-id": "westus2:f4b19ce3-dabf-4606-a43c-4eb4554c000d", + "x-ms-routing-request-id": "WESTUS2:20210712T031633Z:f4b19ce3-dabf-4606-a43c-4eb4554c000d" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286", + "name": "mgmt-group-8286", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a0c69de90921d54aaab538f43f9811eb-5c269c2071e5a942-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "6a66b3b446258cf242e74974fe1a5912", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "53db52c1-4d90-4a95-844f-dacfc4a625ef", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:16:34 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "53db52c1-4d90-4a95-844f-dacfc4a625ef", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "53db52c1-4d90-4a95-844f-dacfc4a625ef", + "x-ms-ratelimit-remaining-tenant-reads": "11900", + "x-ms-request-id": "westus2:53db52c1-4d90-4a95-844f-dacfc4a625ef", + "x-ms-routing-request-id": "WESTUS2:20210712T031635Z:53db52c1-4d90-4a95-844f-dacfc4a625ef" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286", + "name": "mgmt-group-8286", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a0c69de90921d54aaab538f43f9811eb-dd14c8c89116644c-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "651943e2b95b59f43f43984aca456679", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "a8e9ad11-411c-4a0c-8dbc-b3952646f95b", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:16:35 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "a8e9ad11-411c-4a0c-8dbc-b3952646f95b", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a8e9ad11-411c-4a0c-8dbc-b3952646f95b", + "x-ms-ratelimit-remaining-tenant-reads": "11899", + "x-ms-request-id": "westus2:a8e9ad11-411c-4a0c-8dbc-b3952646f95b", + "x-ms-routing-request-id": "WESTUS2:20210712T031636Z:a8e9ad11-411c-4a0c-8dbc-b3952646f95b" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286", + "name": "mgmt-group-8286", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a0c69de90921d54aaab538f43f9811eb-46034bb40d6afc4e-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "7c57d1110e38596a26e294e33ab0112b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "43ae243a-fa59-4d9f-8ff8-c11f12769901", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:16:36 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "43ae243a-fa59-4d9f-8ff8-c11f12769901", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "43ae243a-fa59-4d9f-8ff8-c11f12769901", + "x-ms-ratelimit-remaining-tenant-reads": "11898", + "x-ms-request-id": "westus2:43ae243a-fa59-4d9f-8ff8-c11f12769901", + "x-ms-routing-request-id": "WESTUS2:20210712T031637Z:43ae243a-fa59-4d9f-8ff8-c11f12769901" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286", + "name": "mgmt-group-8286", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a0c69de90921d54aaab538f43f9811eb-6a0163637007fd47-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "86965849153dfaf6bf0d2ae1aea8c2fc", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "d1c419db-e8ed-409b-a366-614e5e4b846d", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:16:37 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "d1c419db-e8ed-409b-a366-614e5e4b846d", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d1c419db-e8ed-409b-a366-614e5e4b846d", + "x-ms-ratelimit-remaining-tenant-reads": "11897", + "x-ms-request-id": "westus2:d1c419db-e8ed-409b-a366-614e5e4b846d", + "x-ms-routing-request-id": "WESTUS2:20210712T031638Z:d1c419db-e8ed-409b-a366-614e5e4b846d" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286", + "name": "mgmt-group-8286", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a0c69de90921d54aaab538f43f9811eb-7530882f31190643-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "2c62cf81dcc3d3d9d9bf3e7825101f8f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "b53b47ce-19cc-4b31-b318-4103bc2cd65d", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:16:38 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "b53b47ce-19cc-4b31-b318-4103bc2cd65d", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b53b47ce-19cc-4b31-b318-4103bc2cd65d", + "x-ms-ratelimit-remaining-tenant-reads": "11896", + "x-ms-request-id": "westus2:b53b47ce-19cc-4b31-b318-4103bc2cd65d", + "x-ms-routing-request-id": "WESTUS2:20210712T031639Z:b53b47ce-19cc-4b31-b318-4103bc2cd65d" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286", + "name": "mgmt-group-8286", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a0c69de90921d54aaab538f43f9811eb-6ef6bc973b22384b-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "71006c31e0affc3cda5cbd2be388ab7e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "996c0f8f-65e7-4387-9225-acc0b0d047fd", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:16:39 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "996c0f8f-65e7-4387-9225-acc0b0d047fd", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "996c0f8f-65e7-4387-9225-acc0b0d047fd", + "x-ms-ratelimit-remaining-tenant-reads": "11895", + "x-ms-request-id": "westus2:996c0f8f-65e7-4387-9225-acc0b0d047fd", + "x-ms-routing-request-id": "WESTUS2:20210712T031640Z:996c0f8f-65e7-4387-9225-acc0b0d047fd" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286", + "name": "mgmt-group-8286", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a0c69de90921d54aaab538f43f9811eb-a9a44aee06113943-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "6a629720e54d6d677fc2ac7dd67ed5ae", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "c5b87d57-2ae0-4a13-a43e-4bd8e7e895ac", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:16:40 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "c5b87d57-2ae0-4a13-a43e-4bd8e7e895ac", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c5b87d57-2ae0-4a13-a43e-4bd8e7e895ac", + "x-ms-ratelimit-remaining-tenant-reads": "11894", + "x-ms-request-id": "westus2:c5b87d57-2ae0-4a13-a43e-4bd8e7e895ac", + "x-ms-routing-request-id": "WESTUS2:20210712T031641Z:c5b87d57-2ae0-4a13-a43e-4bd8e7e895ac" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286", + "name": "mgmt-group-8286", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a0c69de90921d54aaab538f43f9811eb-1603e126be63c745-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "41b09bed50a8a04c936651671fadf051", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "d850f708-0389-4ab0-b742-8ef278341e36", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:16:42 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "d850f708-0389-4ab0-b742-8ef278341e36", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d850f708-0389-4ab0-b742-8ef278341e36", + "x-ms-ratelimit-remaining-tenant-reads": "11893", + "x-ms-request-id": "westus2:d850f708-0389-4ab0-b742-8ef278341e36", + "x-ms-routing-request-id": "WESTUS2:20210712T031643Z:d850f708-0389-4ab0-b742-8ef278341e36" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286", + "name": "mgmt-group-8286", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a0c69de90921d54aaab538f43f9811eb-3774c2f4dde86f40-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "8d58c014b5ad4c420493f2ec34be265c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "3385783e-de5b-48d9-b0bb-62fd39e7d926", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:16:43 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "3385783e-de5b-48d9-b0bb-62fd39e7d926", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3385783e-de5b-48d9-b0bb-62fd39e7d926", + "x-ms-ratelimit-remaining-tenant-reads": "11892", + "x-ms-request-id": "westus2:3385783e-de5b-48d9-b0bb-62fd39e7d926", + "x-ms-routing-request-id": "WESTUS2:20210712T031644Z:3385783e-de5b-48d9-b0bb-62fd39e7d926" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286", + "name": "mgmt-group-8286", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a0c69de90921d54aaab538f43f9811eb-8eacd1bfeaceac4b-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "483d0e8669d8cfd54ac1d6e793004ed1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "9830c7e6-39b9-42cd-8469-2cd0d87d0b5a", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:16:45 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "9830c7e6-39b9-42cd-8469-2cd0d87d0b5a", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9830c7e6-39b9-42cd-8469-2cd0d87d0b5a", + "x-ms-ratelimit-remaining-tenant-reads": "11891", + "x-ms-request-id": "westus2:9830c7e6-39b9-42cd-8469-2cd0d87d0b5a", + "x-ms-routing-request-id": "WESTUS2:20210712T031645Z:9830c7e6-39b9-42cd-8469-2cd0d87d0b5a" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286", + "name": "mgmt-group-8286", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a0c69de90921d54aaab538f43f9811eb-cfda9881c2995442-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "15695ad24725380158633d155d606cd4", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "3f8d2fd7-dc41-41bf-bafb-3fee4d65cec2", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:16:46 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "3f8d2fd7-dc41-41bf-bafb-3fee4d65cec2", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3f8d2fd7-dc41-41bf-bafb-3fee4d65cec2", + "x-ms-ratelimit-remaining-tenant-reads": "11890", + "x-ms-request-id": "westus2:3f8d2fd7-dc41-41bf-bafb-3fee4d65cec2", + "x-ms-routing-request-id": "WESTUS2:20210712T031646Z:3f8d2fd7-dc41-41bf-bafb-3fee4d65cec2" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286", + "name": "mgmt-group-8286", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a0c69de90921d54aaab538f43f9811eb-38463c74a3c54646-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "10e0f53fa76faa79ea8843ebde5bb904", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "fc0dcff8-7f05-4df4-88b6-42928bb53139", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:16:47 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "fc0dcff8-7f05-4df4-88b6-42928bb53139", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "fc0dcff8-7f05-4df4-88b6-42928bb53139", + "x-ms-ratelimit-remaining-tenant-reads": "11889", + "x-ms-request-id": "westus2:fc0dcff8-7f05-4df4-88b6-42928bb53139", + "x-ms-routing-request-id": "WESTUS2:20210712T031647Z:fc0dcff8-7f05-4df4-88b6-42928bb53139" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286", + "name": "mgmt-group-8286", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a0c69de90921d54aaab538f43f9811eb-1c37a991d6d7fb4d-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "d91a214510553f360d05f0742cc072ea", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "51fc4953-a32c-4346-a554-f27b614ca266", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:16:48 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "51fc4953-a32c-4346-a554-f27b614ca266", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "51fc4953-a32c-4346-a554-f27b614ca266", + "x-ms-ratelimit-remaining-tenant-reads": "11888", + "x-ms-request-id": "westus2:51fc4953-a32c-4346-a554-f27b614ca266", + "x-ms-routing-request-id": "WESTUS2:20210712T031648Z:51fc4953-a32c-4346-a554-f27b614ca266" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286", + "name": "mgmt-group-8286", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a0c69de90921d54aaab538f43f9811eb-ce89c00be608b246-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "9da701553d202b62e1be2a9d04155afd", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "ad015913-856d-4206-b796-aaadd4b2e7f9", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:16:49 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "ad015913-856d-4206-b796-aaadd4b2e7f9", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ad015913-856d-4206-b796-aaadd4b2e7f9", + "x-ms-ratelimit-remaining-tenant-reads": "11887", + "x-ms-request-id": "westus2:ad015913-856d-4206-b796-aaadd4b2e7f9", + "x-ms-routing-request-id": "WESTUS2:20210712T031649Z:ad015913-856d-4206-b796-aaadd4b2e7f9" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286", + "name": "mgmt-group-8286", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a0c69de90921d54aaab538f43f9811eb-cf12028de5a0f54a-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "3cd038aa93452f7fbea1036ab6047e2a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "2297f2a9-fb32-450d-aa53-24317def3e8d", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:16:50 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "2297f2a9-fb32-450d-aa53-24317def3e8d", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2297f2a9-fb32-450d-aa53-24317def3e8d", + "x-ms-ratelimit-remaining-tenant-reads": "11886", + "x-ms-request-id": "westus2:2297f2a9-fb32-450d-aa53-24317def3e8d", + "x-ms-routing-request-id": "WESTUS2:20210712T031650Z:2297f2a9-fb32-450d-aa53-24317def3e8d" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286", + "name": "mgmt-group-8286", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a0c69de90921d54aaab538f43f9811eb-1bfa5f695147b549-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "dc9658161bb308e4beeff797e5993af8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "5ac361d3-60d9-4c6a-9271-ed75be0e39e1", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:16:51 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "5ac361d3-60d9-4c6a-9271-ed75be0e39e1", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5ac361d3-60d9-4c6a-9271-ed75be0e39e1", + "x-ms-ratelimit-remaining-tenant-reads": "11885", + "x-ms-request-id": "westus2:5ac361d3-60d9-4c6a-9271-ed75be0e39e1", + "x-ms-routing-request-id": "WESTUS2:20210712T031652Z:5ac361d3-60d9-4c6a-9271-ed75be0e39e1" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286", + "name": "mgmt-group-8286", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a0c69de90921d54aaab538f43f9811eb-94fe62f004a1d74d-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "f3caf2aa36f0c1a48278de7e39f774dc", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "1e9c4f02-64e7-4333-869a-9349ba11f555", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:16:53 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "1e9c4f02-64e7-4333-869a-9349ba11f555", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1e9c4f02-64e7-4333-869a-9349ba11f555", + "x-ms-ratelimit-remaining-tenant-reads": "11884", + "x-ms-request-id": "westus2:1e9c4f02-64e7-4333-869a-9349ba11f555", + "x-ms-routing-request-id": "WESTUS2:20210712T031653Z:1e9c4f02-64e7-4333-869a-9349ba11f555" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286", + "name": "mgmt-group-8286", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a0c69de90921d54aaab538f43f9811eb-7dff89de84dc5546-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "ac87003f7d7e8e4954c87d569ce74925", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "dc6a3d59-3ff6-4cf4-b0a2-612a4bae71fb", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:16:54 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "dc6a3d59-3ff6-4cf4-b0a2-612a4bae71fb", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "dc6a3d59-3ff6-4cf4-b0a2-612a4bae71fb", + "x-ms-ratelimit-remaining-tenant-reads": "11883", + "x-ms-request-id": "westus2:dc6a3d59-3ff6-4cf4-b0a2-612a4bae71fb", + "x-ms-routing-request-id": "WESTUS2:20210712T031654Z:dc6a3d59-3ff6-4cf4-b0a2-612a4bae71fb" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286", + "name": "mgmt-group-8286", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a0c69de90921d54aaab538f43f9811eb-7a648a2d2b82c642-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "c3bf0b668a3adf39b3d55a3b3c65cec6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "93aa4039-f296-4d61-bfb9-a9136e7f2246", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:16:55 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "93aa4039-f296-4d61-bfb9-a9136e7f2246", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "93aa4039-f296-4d61-bfb9-a9136e7f2246", + "x-ms-ratelimit-remaining-tenant-reads": "11882", + "x-ms-request-id": "westus2:93aa4039-f296-4d61-bfb9-a9136e7f2246", + "x-ms-routing-request-id": "WESTUS2:20210712T031655Z:93aa4039-f296-4d61-bfb9-a9136e7f2246" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286", + "name": "mgmt-group-8286", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a0c69de90921d54aaab538f43f9811eb-edc1972a374f8b45-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "e4571b7a8e122d79a83c9f28b84e259a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "1f2c62f9-03b2-4a20-823a-07afde3e0ba2", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:16:56 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "1f2c62f9-03b2-4a20-823a-07afde3e0ba2", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1f2c62f9-03b2-4a20-823a-07afde3e0ba2", + "x-ms-ratelimit-remaining-tenant-reads": "11881", + "x-ms-request-id": "westus2:1f2c62f9-03b2-4a20-823a-07afde3e0ba2", + "x-ms-routing-request-id": "WESTUS2:20210712T031656Z:1f2c62f9-03b2-4a20-823a-07afde3e0ba2" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286", + "name": "mgmt-group-8286", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a0c69de90921d54aaab538f43f9811eb-fb4ea5c070aaa247-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "2d18b92eb038b5a1c7a7f8a9230e51ee", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "client-request-id": "60dc2e67-4460-480b-a296-f70f8f6719dc", + "Content-Length": "382", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:16:57 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "request-id": "60dc2e67-4460-480b-a296-f70f8f6719dc", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "60dc2e67-4460-480b-a296-f70f8f6719dc", + "x-ms-ratelimit-remaining-tenant-reads": "11880", + "x-ms-request-id": "westus2:60dc2e67-4460-480b-a296-f70f8f6719dc", + "x-ms-routing-request-id": "WESTUS2:20210712T031657Z:60dc2e67-4460-480b-a296-f70f8f6719dc" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8286", + "name": "mgmt-group-8286", + "status": "Succeeded", + "properties": { + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "mgmt-group-8286", + "details": { + "version": 1, + "updatedTime": "2021-07-12T03:16:40.0124641Z", + "updatedBy": "3b10dae3-28cf-49a7-a8df-8fbae3e77f27" + } + } + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a0c69de90921d54aaab538f43f9811eb-f255837f31ea0f4e-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "81dcb6f96490d71291921afeea112665", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "client-request-id": "81ad05af-1ff8-4fce-ba69-679c909086c2", + "Content-Length": "565", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:16:57 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "request-id": "81ad05af-1ff8-4fce-ba69-679c909086c2", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "81ad05af-1ff8-4fce-ba69-679c909086c2", + "x-ms-ratelimit-remaining-tenant-reads": "11879", + "x-ms-request-id": "westus2:81ad05af-1ff8-4fce-ba69-679c909086c2", + "x-ms-routing-request-id": "WESTUS2:20210712T031658Z:81ad05af-1ff8-4fce-ba69-679c909086c2" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/managementGroups/mgmt-group-8286", + "type": "Microsoft.Management/managementGroups", + "name": "mgmt-group-8286", + "properties": { + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "mgmt-group-8286", + "details": { + "version": 1, + "updatedTime": "2021-07-12T03:16:40.0124641Z", + "updatedBy": "3b10dae3-28cf-49a7-a8df-8fbae3e77f27", + "parent": { + "id": "/providers/Microsoft.Management/managementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47", + "name": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } + } + } + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-b933840c82e891438da9c688f066f596-df11cb5dd1913946-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "830cbfafa04cc98e79a11d6b96d0099a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "1428c98c-884a-4125-a650-61bad55de655", + "Content-Length": "167", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:16:58 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "1428c98c-884a-4125-a650-61bad55de655", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1428c98c-884a-4125-a650-61bad55de655", + "x-ms-ratelimit-remaining-managementgroups-requests": "59", + "x-ms-ratelimit-remaining-tenant-deletes": "14999", + "x-ms-request-id": "westus2:1428c98c-884a-4125-a650-61bad55de655", + "x-ms-routing-request-id": "WESTUS2:20210712T031658Z:1428c98c-884a-4125-a650-61bad55de655" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/managementGroups/mgmt-group-8286", + "type": "Microsoft.Management/managementGroups", + "name": "mgmt-group-8286", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-b933840c82e891438da9c688f066f596-89fd64fd7349b84f-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "64f99280cd0158a1281207ee46a741c0", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "fda3743b-8b6d-41e7-99e9-f6ea70bb6519", + "Content-Length": "166", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:16:58 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "fda3743b-8b6d-41e7-99e9-f6ea70bb6519", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "fda3743b-8b6d-41e7-99e9-f6ea70bb6519", + "x-ms-ratelimit-remaining-tenant-reads": "11878", + "x-ms-request-id": "westus2:fda3743b-8b6d-41e7-99e9-f6ea70bb6519", + "x-ms-routing-request-id": "WESTUS2:20210712T031658Z:fda3743b-8b6d-41e7-99e9-f6ea70bb6519" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-8286", + "name": "mgmt-group-8286", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-b933840c82e891438da9c688f066f596-432fa97e7209ad42-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "3913808824e10bf3b443dc0b04e734d5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "550e8365-a651-4b78-b8df-08ad1a1ccd5e", + "Content-Length": "166", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:16:59 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "550e8365-a651-4b78-b8df-08ad1a1ccd5e", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "550e8365-a651-4b78-b8df-08ad1a1ccd5e", + "x-ms-ratelimit-remaining-tenant-reads": "11877", + "x-ms-request-id": "westus2:550e8365-a651-4b78-b8df-08ad1a1ccd5e", + "x-ms-routing-request-id": "WESTUS2:20210712T031659Z:550e8365-a651-4b78-b8df-08ad1a1ccd5e" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-8286", + "name": "mgmt-group-8286", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-b933840c82e891438da9c688f066f596-5d63f6505344514f-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "03ea67d7a5d71c980fd6da5f9c1c82fe", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "81fdca73-da1b-43f4-bf16-a0f466dd8a33", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:17:00 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "81fdca73-da1b-43f4-bf16-a0f466dd8a33", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "81fdca73-da1b-43f4-bf16-a0f466dd8a33", + "x-ms-ratelimit-remaining-tenant-reads": "11876", + "x-ms-request-id": "westus2:81fdca73-da1b-43f4-bf16-a0f466dd8a33", + "x-ms-routing-request-id": "WESTUS2:20210712T031701Z:81fdca73-da1b-43f4-bf16-a0f466dd8a33" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-8286", + "name": "mgmt-group-8286", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-b933840c82e891438da9c688f066f596-4854bf9fbb0bc84d-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "141edbff918f5bd49feeafbef1965440", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "ed774c2d-aa19-45ec-8216-f0e345b4a6b2", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:17:01 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "ed774c2d-aa19-45ec-8216-f0e345b4a6b2", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ed774c2d-aa19-45ec-8216-f0e345b4a6b2", + "x-ms-ratelimit-remaining-tenant-reads": "11875", + "x-ms-request-id": "westus2:ed774c2d-aa19-45ec-8216-f0e345b4a6b2", + "x-ms-routing-request-id": "WESTUS2:20210712T031702Z:ed774c2d-aa19-45ec-8216-f0e345b4a6b2" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-8286", + "name": "mgmt-group-8286", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-b933840c82e891438da9c688f066f596-9c675b2413371e43-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "df1732de3ebde3e9e8f62a0b4a946e98", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "ccd06bf9-c79c-41ee-9cbd-29586a56bed4", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:17:03 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "ccd06bf9-c79c-41ee-9cbd-29586a56bed4", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ccd06bf9-c79c-41ee-9cbd-29586a56bed4", + "x-ms-ratelimit-remaining-tenant-reads": "11874", + "x-ms-request-id": "westus2:ccd06bf9-c79c-41ee-9cbd-29586a56bed4", + "x-ms-routing-request-id": "WESTUS2:20210712T031703Z:ccd06bf9-c79c-41ee-9cbd-29586a56bed4" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-8286", + "name": "mgmt-group-8286", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-b933840c82e891438da9c688f066f596-1c46baa27c6a1c49-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "290bdec01fc94545938f63e8f5da2b78", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "client-request-id": "13ccbfe6-9dbd-4759-b44c-60ece7b2874f", + "Content-Length": "165", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:17:04 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "request-id": "13ccbfe6-9dbd-4759-b44c-60ece7b2874f", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "13ccbfe6-9dbd-4759-b44c-60ece7b2874f", + "x-ms-ratelimit-remaining-tenant-reads": "11873", + "x-ms-request-id": "westus2:13ccbfe6-9dbd-4759-b44c-60ece7b2874f", + "x-ms-routing-request-id": "WESTUS2:20210712T031704Z:13ccbfe6-9dbd-4759-b44c-60ece7b2874f" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-8286", + "name": "mgmt-group-8286", + "status": "Succeeded" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/mgmt-group-8286?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-0defa5673bc54f47b99b804e34d09db4-069a43591102a849-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "6a819a82a304c141f13a2c9966c8110b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "client-request-id": "cf029868-fdb5-44dc-b8d3-d77c195ccba2", + "Content-Length": "133", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:17:04 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "request-id": "cf029868-fdb5-44dc-b8d3-d77c195ccba2", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "cf029868-fdb5-44dc-b8d3-d77c195ccba2", + "x-ms-ratelimit-remaining-tenant-reads": "11872", + "x-ms-request-id": "westus2:cf029868-fdb5-44dc-b8d3-d77c195ccba2", + "x-ms-routing-request-id": "WESTUS2:20210712T031704Z:cf029868-fdb5-44dc-b8d3-d77c195ccba2" + }, + "ResponseBody": { + "error": { + "code": "NotFound", + "message": "\u0027/providers/Microsoft.Management/managementGroups/mgmt-group-8286\u0027 not found", + "details": null + } + } + } + ], + "Variables": { + "RandomSeed": "997423243", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupOperationsTests/DeleteAsync.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupOperationsTests/DeleteAsync.json new file mode 100644 index 0000000000000..7b93e1e7d60cb --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupOperationsTests/DeleteAsync.json @@ -0,0 +1,1244 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "48cb8f120d6139fb618c02cd9c3f5ace", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "450", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:24:22 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "41ac57a0-9470-4bda-aaf1-b39c5783d714", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-request-id": "41ac57a0-9470-4bda-aaf1-b39c5783d714", + "x-ms-routing-request-id": "WESTUS2:20210712T032422Z:41ac57a0-9470-4bda-aaf1-b39c5783d714" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "tagKey1": "tagValue1", + "tagKey2": "tagValue2" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "17", + "Content-Type": "application/json", + "traceparent": "00-a09965dd2298d84ca08920eebff445bf-dcf129ced697a84b-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "907f28ec14b63f8e0606254ec76bc8de", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": {} + }, + "StatusCode": 202, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "ea8a5776-7337-4287-bbcf-17306fe89e1a", + "Content-Length": "167", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:24:22 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "ea8a5776-7337-4287-bbcf-17306fe89e1a", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ea8a5776-7337-4287-bbcf-17306fe89e1a", + "x-ms-ratelimit-remaining-managementgroups-requests": "58", + "x-ms-ratelimit-remaining-tenant-writes": "1198", + "x-ms-request-id": "westus2:ea8a5776-7337-4287-bbcf-17306fe89e1a", + "x-ms-routing-request-id": "WESTUS2:20210712T032422Z:ea8a5776-7337-4287-bbcf-17306fe89e1a" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/managementGroups/mgmt-group-8650", + "type": "Microsoft.Management/managementGroups", + "name": "mgmt-group-8650", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a09965dd2298d84ca08920eebff445bf-f4cd4d7a71b52c4c-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "9a0dab2df6757a5b3c095b06d6eb9921", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "1f8965de-4215-4c9b-80b4-298299097836", + "Content-Length": "166", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:24:22 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "1f8965de-4215-4c9b-80b4-298299097836", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1f8965de-4215-4c9b-80b4-298299097836", + "x-ms-ratelimit-remaining-tenant-reads": "11975", + "x-ms-request-id": "westus2:1f8965de-4215-4c9b-80b4-298299097836", + "x-ms-routing-request-id": "WESTUS2:20210712T032422Z:1f8965de-4215-4c9b-80b4-298299097836" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650", + "name": "mgmt-group-8650", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a09965dd2298d84ca08920eebff445bf-789d5a8573b15f42-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "1f08ef390282a90d04f760eb30cabebd", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "5da0bc0e-c6cb-4c34-a235-b9e0ae8dad3d", + "Content-Length": "166", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:24:23 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "5da0bc0e-c6cb-4c34-a235-b9e0ae8dad3d", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5da0bc0e-c6cb-4c34-a235-b9e0ae8dad3d", + "x-ms-ratelimit-remaining-tenant-reads": "11974", + "x-ms-request-id": "westus2:5da0bc0e-c6cb-4c34-a235-b9e0ae8dad3d", + "x-ms-routing-request-id": "WESTUS2:20210712T032424Z:5da0bc0e-c6cb-4c34-a235-b9e0ae8dad3d" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650", + "name": "mgmt-group-8650", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a09965dd2298d84ca08920eebff445bf-69156b97a09ee145-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "1c2001192e5d9d68c45d8e3ce71db144", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "1cd02650-f65d-48c2-b519-1e173328a255", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:24:24 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "1cd02650-f65d-48c2-b519-1e173328a255", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1cd02650-f65d-48c2-b519-1e173328a255", + "x-ms-ratelimit-remaining-tenant-reads": "11973", + "x-ms-request-id": "westus2:1cd02650-f65d-48c2-b519-1e173328a255", + "x-ms-routing-request-id": "WESTUS2:20210712T032425Z:1cd02650-f65d-48c2-b519-1e173328a255" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650", + "name": "mgmt-group-8650", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a09965dd2298d84ca08920eebff445bf-b41a243751f12940-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "918ac231ce3f2aa19e63957d95704a72", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "0f62eedd-faf9-4a58-ba9a-6394765ba2fb", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:24:26 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "0f62eedd-faf9-4a58-ba9a-6394765ba2fb", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0f62eedd-faf9-4a58-ba9a-6394765ba2fb", + "x-ms-ratelimit-remaining-tenant-reads": "11972", + "x-ms-request-id": "westus2:0f62eedd-faf9-4a58-ba9a-6394765ba2fb", + "x-ms-routing-request-id": "WESTUS2:20210712T032426Z:0f62eedd-faf9-4a58-ba9a-6394765ba2fb" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650", + "name": "mgmt-group-8650", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a09965dd2298d84ca08920eebff445bf-dacfbcc706653a41-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "d4ed9d4a7dca0bc3866a5a2474d0c2e7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "b9ada306-e5db-4981-b95e-c4250b9759da", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:24:27 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "b9ada306-e5db-4981-b95e-c4250b9759da", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b9ada306-e5db-4981-b95e-c4250b9759da", + "x-ms-ratelimit-remaining-tenant-reads": "11971", + "x-ms-request-id": "westus2:b9ada306-e5db-4981-b95e-c4250b9759da", + "x-ms-routing-request-id": "WESTUS2:20210712T032427Z:b9ada306-e5db-4981-b95e-c4250b9759da" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650", + "name": "mgmt-group-8650", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a09965dd2298d84ca08920eebff445bf-476fd8dbdabaa44e-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "6db91c462c3f4b7e60f67dfa99eb0853", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "a90dbf6d-a3e6-45a3-923b-bfdf5e799d16", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:24:28 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "a90dbf6d-a3e6-45a3-923b-bfdf5e799d16", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a90dbf6d-a3e6-45a3-923b-bfdf5e799d16", + "x-ms-ratelimit-remaining-tenant-reads": "11970", + "x-ms-request-id": "westus2:a90dbf6d-a3e6-45a3-923b-bfdf5e799d16", + "x-ms-routing-request-id": "WESTUS2:20210712T032428Z:a90dbf6d-a3e6-45a3-923b-bfdf5e799d16" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650", + "name": "mgmt-group-8650", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a09965dd2298d84ca08920eebff445bf-966ce064d2ede94e-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "4af21b13dc2fb379ff7f0bd5737db5cd", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "eadfe6c9-50b2-496a-ab19-8d5088fd3315", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:24:29 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "eadfe6c9-50b2-496a-ab19-8d5088fd3315", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "eadfe6c9-50b2-496a-ab19-8d5088fd3315", + "x-ms-ratelimit-remaining-tenant-reads": "11969", + "x-ms-request-id": "westus2:eadfe6c9-50b2-496a-ab19-8d5088fd3315", + "x-ms-routing-request-id": "WESTUS2:20210712T032429Z:eadfe6c9-50b2-496a-ab19-8d5088fd3315" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650", + "name": "mgmt-group-8650", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a09965dd2298d84ca08920eebff445bf-b5c4d0e4193ef94c-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "7937aea1dcb71d321fa174d400c8729b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "f9aee6a4-4d7d-4745-b9e9-7e429d39e5e1", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:24:30 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "f9aee6a4-4d7d-4745-b9e9-7e429d39e5e1", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f9aee6a4-4d7d-4745-b9e9-7e429d39e5e1", + "x-ms-ratelimit-remaining-tenant-reads": "11968", + "x-ms-request-id": "westus2:f9aee6a4-4d7d-4745-b9e9-7e429d39e5e1", + "x-ms-routing-request-id": "WESTUS2:20210712T032430Z:f9aee6a4-4d7d-4745-b9e9-7e429d39e5e1" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650", + "name": "mgmt-group-8650", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a09965dd2298d84ca08920eebff445bf-a5e291326db7d145-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "5811076178de69b7a2066ec021a8d8e2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "406453f4-0b83-40af-becf-f7441e9577bf", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:24:31 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "406453f4-0b83-40af-becf-f7441e9577bf", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "406453f4-0b83-40af-becf-f7441e9577bf", + "x-ms-ratelimit-remaining-tenant-reads": "11967", + "x-ms-request-id": "westus2:406453f4-0b83-40af-becf-f7441e9577bf", + "x-ms-routing-request-id": "WESTUS2:20210712T032431Z:406453f4-0b83-40af-becf-f7441e9577bf" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650", + "name": "mgmt-group-8650", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a09965dd2298d84ca08920eebff445bf-0053359d73874b4b-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "eb59b0408fb4369ce9d42b8e68a5b336", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "a523dd96-2638-4621-8ae7-22df40fed30f", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:24:32 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "a523dd96-2638-4621-8ae7-22df40fed30f", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a523dd96-2638-4621-8ae7-22df40fed30f", + "x-ms-ratelimit-remaining-tenant-reads": "11966", + "x-ms-request-id": "westus2:a523dd96-2638-4621-8ae7-22df40fed30f", + "x-ms-routing-request-id": "WESTUS2:20210712T032433Z:a523dd96-2638-4621-8ae7-22df40fed30f" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650", + "name": "mgmt-group-8650", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a09965dd2298d84ca08920eebff445bf-b182a469dfc9004e-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "6c736f0d5d6b29eef6cdd6b06e71fc76", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "9f162310-fbd1-4e04-882b-903f1cb0f48d", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:24:33 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "9f162310-fbd1-4e04-882b-903f1cb0f48d", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9f162310-fbd1-4e04-882b-903f1cb0f48d", + "x-ms-ratelimit-remaining-tenant-reads": "11965", + "x-ms-request-id": "westus2:9f162310-fbd1-4e04-882b-903f1cb0f48d", + "x-ms-routing-request-id": "WESTUS2:20210712T032434Z:9f162310-fbd1-4e04-882b-903f1cb0f48d" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650", + "name": "mgmt-group-8650", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a09965dd2298d84ca08920eebff445bf-f17def5c5f6a6242-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "4f9391c9876fd2e76adb6f094c2901fc", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "df51aa88-52be-4605-bea0-1c3f87c4e6bb", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:24:34 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "df51aa88-52be-4605-bea0-1c3f87c4e6bb", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "df51aa88-52be-4605-bea0-1c3f87c4e6bb", + "x-ms-ratelimit-remaining-tenant-reads": "11964", + "x-ms-request-id": "westus2:df51aa88-52be-4605-bea0-1c3f87c4e6bb", + "x-ms-routing-request-id": "WESTUS2:20210712T032435Z:df51aa88-52be-4605-bea0-1c3f87c4e6bb" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650", + "name": "mgmt-group-8650", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a09965dd2298d84ca08920eebff445bf-841e506966b30f47-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "b2b337536b35e377c130f4e6b8ebc777", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "5e855b60-3160-4e51-b911-2ccba8c219f7", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:24:36 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "5e855b60-3160-4e51-b911-2ccba8c219f7", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5e855b60-3160-4e51-b911-2ccba8c219f7", + "x-ms-ratelimit-remaining-tenant-reads": "11963", + "x-ms-request-id": "westus2:5e855b60-3160-4e51-b911-2ccba8c219f7", + "x-ms-routing-request-id": "WESTUS2:20210712T032436Z:5e855b60-3160-4e51-b911-2ccba8c219f7" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650", + "name": "mgmt-group-8650", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a09965dd2298d84ca08920eebff445bf-3645c6f8d3a74f41-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "d6c4b4d8631286c688a00190ede5dccc", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "416a0c68-34c0-4b80-ad88-78981e14da61", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:24:37 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "416a0c68-34c0-4b80-ad88-78981e14da61", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "416a0c68-34c0-4b80-ad88-78981e14da61", + "x-ms-ratelimit-remaining-tenant-reads": "11962", + "x-ms-request-id": "westus2:416a0c68-34c0-4b80-ad88-78981e14da61", + "x-ms-routing-request-id": "WESTUS2:20210712T032437Z:416a0c68-34c0-4b80-ad88-78981e14da61" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650", + "name": "mgmt-group-8650", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a09965dd2298d84ca08920eebff445bf-821c1e43a8302f45-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "365ddacb49be5d411ab08d3f9200197f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "674cb43e-5ea7-416d-966d-1e0803ab1d7a", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:24:38 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "674cb43e-5ea7-416d-966d-1e0803ab1d7a", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "674cb43e-5ea7-416d-966d-1e0803ab1d7a", + "x-ms-ratelimit-remaining-tenant-reads": "11961", + "x-ms-request-id": "westus2:674cb43e-5ea7-416d-966d-1e0803ab1d7a", + "x-ms-routing-request-id": "WESTUS2:20210712T032438Z:674cb43e-5ea7-416d-966d-1e0803ab1d7a" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650", + "name": "mgmt-group-8650", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a09965dd2298d84ca08920eebff445bf-1698b385e4063e4e-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "9831f7132b65efea702c2a946ae7f5dc", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "661ed0ed-191f-4839-ae2c-62915ddb4aa7", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:24:39 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "661ed0ed-191f-4839-ae2c-62915ddb4aa7", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "661ed0ed-191f-4839-ae2c-62915ddb4aa7", + "x-ms-ratelimit-remaining-tenant-reads": "11960", + "x-ms-request-id": "westus2:661ed0ed-191f-4839-ae2c-62915ddb4aa7", + "x-ms-routing-request-id": "WESTUS2:20210712T032439Z:661ed0ed-191f-4839-ae2c-62915ddb4aa7" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650", + "name": "mgmt-group-8650", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a09965dd2298d84ca08920eebff445bf-91341c4ab7f0df4e-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "de1a2854908d8eb87366bc61d587f487", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "aabb1837-ae5f-49cf-a8a7-d5f379331264", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:24:40 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "aabb1837-ae5f-49cf-a8a7-d5f379331264", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "aabb1837-ae5f-49cf-a8a7-d5f379331264", + "x-ms-ratelimit-remaining-tenant-reads": "11959", + "x-ms-request-id": "westus2:aabb1837-ae5f-49cf-a8a7-d5f379331264", + "x-ms-routing-request-id": "WESTUS2:20210712T032441Z:aabb1837-ae5f-49cf-a8a7-d5f379331264" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650", + "name": "mgmt-group-8650", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a09965dd2298d84ca08920eebff445bf-e30ffdc9f0c90c49-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "f57c818644b3a067f06ec6921facf333", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "4d49f6d9-23ff-428e-bb45-8b5b5f4c3a82", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:24:41 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "4d49f6d9-23ff-428e-bb45-8b5b5f4c3a82", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4d49f6d9-23ff-428e-bb45-8b5b5f4c3a82", + "x-ms-ratelimit-remaining-tenant-reads": "11958", + "x-ms-request-id": "westus2:4d49f6d9-23ff-428e-bb45-8b5b5f4c3a82", + "x-ms-routing-request-id": "WESTUS2:20210712T032442Z:4d49f6d9-23ff-428e-bb45-8b5b5f4c3a82" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650", + "name": "mgmt-group-8650", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a09965dd2298d84ca08920eebff445bf-bbe4d20244d8e44e-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "6aebb1ba3be582f13fa224fe6e8819e9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "d70f543c-dbd9-48f2-8f9c-a60dca248367", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:24:42 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "d70f543c-dbd9-48f2-8f9c-a60dca248367", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d70f543c-dbd9-48f2-8f9c-a60dca248367", + "x-ms-ratelimit-remaining-tenant-reads": "11957", + "x-ms-request-id": "westus2:d70f543c-dbd9-48f2-8f9c-a60dca248367", + "x-ms-routing-request-id": "WESTUS2:20210712T032443Z:d70f543c-dbd9-48f2-8f9c-a60dca248367" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650", + "name": "mgmt-group-8650", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a09965dd2298d84ca08920eebff445bf-a9e095a524859e44-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "e80da238006a1028c07aee1eca266ec7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "client-request-id": "4b7630bd-d087-4423-9f82-a649fe4e7177", + "Content-Length": "382", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:24:44 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "request-id": "4b7630bd-d087-4423-9f82-a649fe4e7177", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4b7630bd-d087-4423-9f82-a649fe4e7177", + "x-ms-ratelimit-remaining-tenant-reads": "11956", + "x-ms-request-id": "westus2:4b7630bd-d087-4423-9f82-a649fe4e7177", + "x-ms-routing-request-id": "WESTUS2:20210712T032444Z:4b7630bd-d087-4423-9f82-a649fe4e7177" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-8650", + "name": "mgmt-group-8650", + "status": "Succeeded", + "properties": { + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "mgmt-group-8650", + "details": { + "version": 1, + "updatedTime": "2021-07-12T03:24:28.7981831Z", + "updatedBy": "3b10dae3-28cf-49a7-a8df-8fbae3e77f27" + } + } + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a09965dd2298d84ca08920eebff445bf-36401089eeee7545-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "24a78973899c4ba190fab6111f693167", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "client-request-id": "645d2b9b-5bb8-4166-b4ab-32ba2fbeca0b", + "Content-Length": "565", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:24:44 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "request-id": "645d2b9b-5bb8-4166-b4ab-32ba2fbeca0b", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "645d2b9b-5bb8-4166-b4ab-32ba2fbeca0b", + "x-ms-ratelimit-remaining-tenant-reads": "11955", + "x-ms-request-id": "westus2:645d2b9b-5bb8-4166-b4ab-32ba2fbeca0b", + "x-ms-routing-request-id": "WESTUS2:20210712T032444Z:645d2b9b-5bb8-4166-b4ab-32ba2fbeca0b" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/managementGroups/mgmt-group-8650", + "type": "Microsoft.Management/managementGroups", + "name": "mgmt-group-8650", + "properties": { + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "mgmt-group-8650", + "details": { + "version": 1, + "updatedTime": "2021-07-12T03:24:28.7981831Z", + "updatedBy": "3b10dae3-28cf-49a7-a8df-8fbae3e77f27", + "parent": { + "id": "/providers/Microsoft.Management/managementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47", + "name": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } + } + } + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-b936915daf2fe046ae16626c4ef7202b-e9881e8369fae741-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "7d59dc550a9ebac888dba96b4dd2b819", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "30e26069-cd51-4be9-9869-9b2cadcba9ce", + "Content-Length": "167", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:24:44 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "30e26069-cd51-4be9-9869-9b2cadcba9ce", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "30e26069-cd51-4be9-9869-9b2cadcba9ce", + "x-ms-ratelimit-remaining-managementgroups-requests": "59", + "x-ms-ratelimit-remaining-tenant-deletes": "14999", + "x-ms-request-id": "westus2:30e26069-cd51-4be9-9869-9b2cadcba9ce", + "x-ms-routing-request-id": "WESTUS2:20210712T032445Z:30e26069-cd51-4be9-9869-9b2cadcba9ce" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/managementGroups/mgmt-group-8650", + "type": "Microsoft.Management/managementGroups", + "name": "mgmt-group-8650", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-b936915daf2fe046ae16626c4ef7202b-ea34e7a5bdb29744-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "edc98648f1cc6828c0ed9bc1e036fdbd", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "4e5aff8b-c7fe-4aae-8e37-a311fec63aab", + "Content-Length": "166", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:24:44 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "4e5aff8b-c7fe-4aae-8e37-a311fec63aab", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4e5aff8b-c7fe-4aae-8e37-a311fec63aab", + "x-ms-ratelimit-remaining-tenant-reads": "11954", + "x-ms-request-id": "westus2:4e5aff8b-c7fe-4aae-8e37-a311fec63aab", + "x-ms-routing-request-id": "WESTUS2:20210712T032445Z:4e5aff8b-c7fe-4aae-8e37-a311fec63aab" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-8650", + "name": "mgmt-group-8650", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-b936915daf2fe046ae16626c4ef7202b-e8f99ff7e52ed243-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "c2dd9c424cde618690ab7cdcb2586f71", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "a13fa70c-4c0b-4ac3-b223-f31fd3e38226", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:24:46 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "a13fa70c-4c0b-4ac3-b223-f31fd3e38226", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a13fa70c-4c0b-4ac3-b223-f31fd3e38226", + "x-ms-ratelimit-remaining-tenant-reads": "11953", + "x-ms-request-id": "westus2:a13fa70c-4c0b-4ac3-b223-f31fd3e38226", + "x-ms-routing-request-id": "WESTUS2:20210712T032446Z:a13fa70c-4c0b-4ac3-b223-f31fd3e38226" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-8650", + "name": "mgmt-group-8650", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-b936915daf2fe046ae16626c4ef7202b-4e3d9ef45b6e414f-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "c72352eaca09424c342125f3588bceca", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "135f5948-ce65-4049-9114-67191648272e", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:24:47 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "135f5948-ce65-4049-9114-67191648272e", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "135f5948-ce65-4049-9114-67191648272e", + "x-ms-ratelimit-remaining-tenant-reads": "11952", + "x-ms-request-id": "westus2:135f5948-ce65-4049-9114-67191648272e", + "x-ms-routing-request-id": "WESTUS2:20210712T032447Z:135f5948-ce65-4049-9114-67191648272e" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-8650", + "name": "mgmt-group-8650", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-b936915daf2fe046ae16626c4ef7202b-9411360c809a154d-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "ad2e9bc52e3afb79ff685d21754cb667", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "25336ccd-9466-4e6e-80fd-ecbce12db0bb", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:24:48 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "25336ccd-9466-4e6e-80fd-ecbce12db0bb", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25336ccd-9466-4e6e-80fd-ecbce12db0bb", + "x-ms-ratelimit-remaining-tenant-reads": "11951", + "x-ms-request-id": "westus2:25336ccd-9466-4e6e-80fd-ecbce12db0bb", + "x-ms-routing-request-id": "WESTUS2:20210712T032448Z:25336ccd-9466-4e6e-80fd-ecbce12db0bb" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-8650", + "name": "mgmt-group-8650", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-b936915daf2fe046ae16626c4ef7202b-f36025cca38adf44-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "8dd62a7d361277b3509b8dbc27920804", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "bbedb6fe-078a-4995-a9d8-f042b50d4cf1", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:24:49 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "bbedb6fe-078a-4995-a9d8-f042b50d4cf1", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "bbedb6fe-078a-4995-a9d8-f042b50d4cf1", + "x-ms-ratelimit-remaining-tenant-reads": "11950", + "x-ms-request-id": "westus2:bbedb6fe-078a-4995-a9d8-f042b50d4cf1", + "x-ms-routing-request-id": "WESTUS2:20210712T032450Z:bbedb6fe-078a-4995-a9d8-f042b50d4cf1" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-8650", + "name": "mgmt-group-8650", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-b936915daf2fe046ae16626c4ef7202b-f467c5160231de43-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "1717b1dcc22abc36d927c7a16c2bcce8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "client-request-id": "b1875222-c6e1-444d-8f72-52e3c5b6430d", + "Content-Length": "165", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:24:50 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "request-id": "b1875222-c6e1-444d-8f72-52e3c5b6430d", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b1875222-c6e1-444d-8f72-52e3c5b6430d", + "x-ms-ratelimit-remaining-tenant-reads": "11949", + "x-ms-request-id": "westus2:b1875222-c6e1-444d-8f72-52e3c5b6430d", + "x-ms-routing-request-id": "WESTUS2:20210712T032451Z:b1875222-c6e1-444d-8f72-52e3c5b6430d" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-8650", + "name": "mgmt-group-8650", + "status": "Succeeded" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/mgmt-group-8650?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-10b9d545bc26904e80ab7a8670d9aef5-b56b8d0273ef4d41-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "2d76bd6b40b58eb8e7b65c9ea0bdd46c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "client-request-id": "24203f4d-bb95-4c1a-8f39-e89eaa8596aa", + "Content-Length": "133", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:24:50 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "request-id": "24203f4d-bb95-4c1a-8f39-e89eaa8596aa", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "24203f4d-bb95-4c1a-8f39-e89eaa8596aa", + "x-ms-ratelimit-remaining-tenant-reads": "11948", + "x-ms-request-id": "westus2:24203f4d-bb95-4c1a-8f39-e89eaa8596aa", + "x-ms-routing-request-id": "WESTUS2:20210712T032451Z:24203f4d-bb95-4c1a-8f39-e89eaa8596aa" + }, + "ResponseBody": { + "error": { + "code": "NotFound", + "message": "\u0027/providers/Microsoft.Management/managementGroups/mgmt-group-8650\u0027 not found", + "details": null + } + } + } + ], + "Variables": { + "RandomSeed": "504366198", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupOperationsTests/Get.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupOperationsTests/Get.json new file mode 100644 index 0000000000000..4ea61746d755a --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupOperationsTests/Get.json @@ -0,0 +1,104 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "71cc022a5f59a68b177345e336d3d7b0", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "450", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:17:04 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8223183f-7b89-4bf3-97a8-ebf277091dec", + "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-request-id": "8223183f-7b89-4bf3-97a8-ebf277091dec", + "x-ms-routing-request-id": "WESTUS2:20210712T031704Z:8223183f-7b89-4bf3-97a8-ebf277091dec" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "tagKey1": "tagValue1", + "tagKey2": "tagValue2" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-cd9b1b81d4d19d4ba22aadb1b6d6d1b9-d224f468fd936942-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "3d55b5d74f64f23d890c4314438e371b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "client-request-id": "c95d541a-00db-4b93-a07d-fbbad0d776f7", + "Content-Length": "565", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:17:04 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "request-id": "c95d541a-00db-4b93-a07d-fbbad0d776f7", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c95d541a-00db-4b93-a07d-fbbad0d776f7", + "x-ms-ratelimit-remaining-tenant-reads": "11871", + "x-ms-request-id": "westus2:c95d541a-00db-4b93-a07d-fbbad0d776f7", + "x-ms-routing-request-id": "WESTUS2:20210712T031705Z:c95d541a-00db-4b93-a07d-fbbad0d776f7" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/managementGroups/mgmt-group-4740", + "type": "Microsoft.Management/managementGroups", + "name": "mgmt-group-4740", + "properties": { + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "mgmt-group-4740", + "details": { + "version": 2, + "updatedTime": "2021-07-12T03:14:51.4974337Z", + "updatedBy": "3b10dae3-28cf-49a7-a8df-8fbae3e77f27", + "parent": { + "id": "/providers/Microsoft.Management/managementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47", + "name": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } + } + } + } + } + ], + "Variables": { + "RandomSeed": "1839838992", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupOperationsTests/GetAsync.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupOperationsTests/GetAsync.json new file mode 100644 index 0000000000000..58199a6c3425d --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupOperationsTests/GetAsync.json @@ -0,0 +1,104 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "eaa50d54ba6732b7f06c5007cb26223d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "450", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:24:51 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4678cbd3-5c70-4ab6-815e-953a27027ebe", + "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-request-id": "4678cbd3-5c70-4ab6-815e-953a27027ebe", + "x-ms-routing-request-id": "WESTUS2:20210712T032451Z:4678cbd3-5c70-4ab6-815e-953a27027ebe" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "tagKey1": "tagValue1", + "tagKey2": "tagValue2" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-1efe3570c23bc04684957701cf56946e-7fe6a40ce948674c-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "4fb7085f14561b8c360e2db7da4e200e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "client-request-id": "71afcaa1-a895-44a2-9a37-8e4621e79507", + "Content-Length": "565", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:24:51 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "request-id": "71afcaa1-a895-44a2-9a37-8e4621e79507", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "71afcaa1-a895-44a2-9a37-8e4621e79507", + "x-ms-ratelimit-remaining-tenant-reads": "11947", + "x-ms-request-id": "westus2:71afcaa1-a895-44a2-9a37-8e4621e79507", + "x-ms-routing-request-id": "WESTUS2:20210712T032451Z:71afcaa1-a895-44a2-9a37-8e4621e79507" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/managementGroups/mgmt-group-3600", + "type": "Microsoft.Management/managementGroups", + "name": "mgmt-group-3600", + "properties": { + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "mgmt-group-3600", + "details": { + "version": 1, + "updatedTime": "2021-07-12T03:24:02.7641993Z", + "updatedBy": "3b10dae3-28cf-49a7-a8df-8fbae3e77f27", + "parent": { + "id": "/providers/Microsoft.Management/managementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47", + "name": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } + } + } + } + } + ], + "Variables": { + "RandomSeed": "915105786", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupOperationsTests/GetDescendants.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupOperationsTests/GetDescendants.json new file mode 100644 index 0000000000000..f32ac981e4593 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupOperationsTests/GetDescendants.json @@ -0,0 +1,140 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "9869a49c586a15b88899d9a3c386e0c5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "450", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:36:31 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "10f546ff-9004-48c9-b230-68e6611f5039", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-request-id": "10f546ff-9004-48c9-b230-68e6611f5039", + "x-ms-routing-request-id": "WESTUS2:20210712T033632Z:10f546ff-9004-48c9-b230-68e6611f5039" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "tagKey1": "tagValue1", + "tagKey2": "tagValue2" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-196130152d86f34b96994494fb4e37ba-9921b0f9a09d1147-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "7629c78a206c54a0639dc7a5673a1d74", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "client-request-id": "8e684a98-ef60-41d8-ab24-7d3e6746d059", + "Content-Length": "565", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:36:31 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "request-id": "8e684a98-ef60-41d8-ab24-7d3e6746d059", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8e684a98-ef60-41d8-ab24-7d3e6746d059", + "x-ms-ratelimit-remaining-tenant-reads": "11976", + "x-ms-request-id": "westus2:8e684a98-ef60-41d8-ab24-7d3e6746d059", + "x-ms-routing-request-id": "WESTUS2:20210712T033632Z:8e684a98-ef60-41d8-ab24-7d3e6746d059" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/managementGroups/mgmt-group-4740", + "type": "Microsoft.Management/managementGroups", + "name": "mgmt-group-4740", + "properties": { + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "mgmt-group-4740", + "details": { + "version": 8, + "updatedTime": "2021-07-12T03:36:16.4435272Z", + "updatedBy": "3b10dae3-28cf-49a7-a8df-8fbae3e77f27", + "parent": { + "id": "/providers/Microsoft.Management/managementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47", + "name": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } + } + } + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/mgmt-group-4740/descendants?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-f83d88b5850e394ba4fbe2a52145a1db-fa1619f59fb09e42-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "badd213b4e24ab4f8023fe6d69b2d152", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "client-request-id": "c9a5d487-05a2-4415-821e-24c6814575e4", + "Content-Length": "12", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:36:31 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "request-id": "c9a5d487-05a2-4415-821e-24c6814575e4", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c9a5d487-05a2-4415-821e-24c6814575e4", + "x-ms-ratelimit-remaining-managementgroups-requests": "599", + "x-ms-ratelimit-remaining-tenant-reads": "11975", + "x-ms-request-id": "westus2:c9a5d487-05a2-4415-821e-24c6814575e4", + "x-ms-routing-request-id": "WESTUS2:20210712T033632Z:c9a5d487-05a2-4415-821e-24c6814575e4" + }, + "ResponseBody": { + "value": [] + } + } + ], + "Variables": { + "RandomSeed": "500404869", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupOperationsTests/GetDescendantsAsync.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupOperationsTests/GetDescendantsAsync.json new file mode 100644 index 0000000000000..f557a4b17a2b1 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupOperationsTests/GetDescendantsAsync.json @@ -0,0 +1,140 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "8655a825f295a5a6aa34d06ad134701e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "450", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:37:13 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3f166df7-3bd0-404e-9f30-72e1ccd8ade0", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-request-id": "3f166df7-3bd0-404e-9f30-72e1ccd8ade0", + "x-ms-routing-request-id": "WESTUS2:20210712T033713Z:3f166df7-3bd0-404e-9f30-72e1ccd8ade0" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "tagKey1": "tagValue1", + "tagKey2": "tagValue2" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-e206b79593ef0b4495d7f4bb3e396394-6d924e9005e0bd47-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "91f3834473c8b607142c545fa2b108f7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "client-request-id": "64f1b5d5-201b-4e79-a7ec-dacef606f593", + "Content-Length": "565", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:37:13 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "request-id": "64f1b5d5-201b-4e79-a7ec-dacef606f593", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "64f1b5d5-201b-4e79-a7ec-dacef606f593", + "x-ms-ratelimit-remaining-tenant-reads": "11975", + "x-ms-request-id": "westus2:64f1b5d5-201b-4e79-a7ec-dacef606f593", + "x-ms-routing-request-id": "WESTUS2:20210712T033714Z:64f1b5d5-201b-4e79-a7ec-dacef606f593" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/managementGroups/mgmt-group-3600", + "type": "Microsoft.Management/managementGroups", + "name": "mgmt-group-3600", + "properties": { + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "mgmt-group-3600", + "details": { + "version": 3, + "updatedTime": "2021-07-12T03:36:54.9243033Z", + "updatedBy": "3b10dae3-28cf-49a7-a8df-8fbae3e77f27", + "parent": { + "id": "/providers/Microsoft.Management/managementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47", + "name": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } + } + } + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/mgmt-group-3600/descendants?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-80011f1eb1bee2489a05b8a532d287ee-21ce986c92c81841-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "6dceded636eb8055136143d6d7745808", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "client-request-id": "7934c449-920b-4a02-a997-7d3d58973e32", + "Content-Length": "12", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:37:13 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "request-id": "7934c449-920b-4a02-a997-7d3d58973e32", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7934c449-920b-4a02-a997-7d3d58973e32", + "x-ms-ratelimit-remaining-managementgroups-requests": "599", + "x-ms-ratelimit-remaining-tenant-reads": "11974", + "x-ms-request-id": "westus2:7934c449-920b-4a02-a997-7d3d58973e32", + "x-ms-routing-request-id": "WESTUS2:20210712T033714Z:7934c449-920b-4a02-a997-7d3d58973e32" + }, + "ResponseBody": { + "value": [] + } + } + ], + "Variables": { + "RandomSeed": "1910427064", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupOperationsTests/ManagementGroupOperationsTests(False).json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupOperationsTests/ManagementGroupOperationsTests(False).json new file mode 100644 index 0000000000000..5131c70499f28 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupOperationsTests/ManagementGroupOperationsTests(False).json @@ -0,0 +1,1024 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "8909a4b24b6642f33d8b067ec711c5fb", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "450", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:36:07 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7bf1bef2-3c9d-4fff-950f-5e1a147d6532", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-request-id": "7bf1bef2-3c9d-4fff-950f-5e1a147d6532", + "x-ms-routing-request-id": "WESTUS2:20210712T033608Z:7bf1bef2-3c9d-4fff-950f-5e1a147d6532" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "tagKey1": "tagValue1", + "tagKey2": "tagValue2" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "17", + "Content-Type": "application/json", + "traceparent": "00-de1c2bfec1d40745b6678aa21f904f53-f8b1e47b31e4e643-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "fe513e610b91eed9620d697197f107a8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": {} + }, + "StatusCode": 202, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "30761af1-fcd0-49c2-83ed-faf361ece540", + "Content-Length": "167", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:36:08 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "30761af1-fcd0-49c2-83ed-faf361ece540", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "30761af1-fcd0-49c2-83ed-faf361ece540", + "x-ms-ratelimit-remaining-managementgroups-requests": "59", + "x-ms-ratelimit-remaining-tenant-writes": "1199", + "x-ms-request-id": "westus2:30761af1-fcd0-49c2-83ed-faf361ece540", + "x-ms-routing-request-id": "WESTUS2:20210712T033608Z:30761af1-fcd0-49c2-83ed-faf361ece540" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/managementGroups/mgmt-group-4740", + "type": "Microsoft.Management/managementGroups", + "name": "mgmt-group-4740", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-de1c2bfec1d40745b6678aa21f904f53-8108c417c230b142-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "de5548df10799920309b033d8ad0a59a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "92af688f-793c-42c0-8c45-3c7b254ef76b", + "Content-Length": "166", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:36:08 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "92af688f-793c-42c0-8c45-3c7b254ef76b", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "92af688f-793c-42c0-8c45-3c7b254ef76b", + "x-ms-ratelimit-remaining-tenant-reads": "11999", + "x-ms-request-id": "westus2:92af688f-793c-42c0-8c45-3c7b254ef76b", + "x-ms-routing-request-id": "WESTUS2:20210712T033609Z:92af688f-793c-42c0-8c45-3c7b254ef76b" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740", + "name": "mgmt-group-4740", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-de1c2bfec1d40745b6678aa21f904f53-a80ebab3492a874a-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "6f16d5ff9ec1d3e2161b07acec57e2a3", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "e126b7d0-8566-49cf-891f-5c58772e3553", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:36:09 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "e126b7d0-8566-49cf-891f-5c58772e3553", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e126b7d0-8566-49cf-891f-5c58772e3553", + "x-ms-ratelimit-remaining-tenant-reads": "11998", + "x-ms-request-id": "westus2:e126b7d0-8566-49cf-891f-5c58772e3553", + "x-ms-routing-request-id": "WESTUS2:20210712T033610Z:e126b7d0-8566-49cf-891f-5c58772e3553" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740", + "name": "mgmt-group-4740", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-de1c2bfec1d40745b6678aa21f904f53-2f993b9db878f347-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "4f9222a1289ba12f81692df58aeaab26", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "64c8de01-4807-4fe5-acb7-514e0a6474bf", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:36:10 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "64c8de01-4807-4fe5-acb7-514e0a6474bf", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "64c8de01-4807-4fe5-acb7-514e0a6474bf", + "x-ms-ratelimit-remaining-tenant-reads": "11997", + "x-ms-request-id": "westus2:64c8de01-4807-4fe5-acb7-514e0a6474bf", + "x-ms-routing-request-id": "WESTUS2:20210712T033611Z:64c8de01-4807-4fe5-acb7-514e0a6474bf" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740", + "name": "mgmt-group-4740", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-de1c2bfec1d40745b6678aa21f904f53-f524b80d05585742-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "3782843ffca941846681c75e0873acd8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "e76e4584-f14c-4c86-9352-09a567ad9f0a", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:36:11 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "e76e4584-f14c-4c86-9352-09a567ad9f0a", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e76e4584-f14c-4c86-9352-09a567ad9f0a", + "x-ms-ratelimit-remaining-tenant-reads": "11996", + "x-ms-request-id": "westus2:e76e4584-f14c-4c86-9352-09a567ad9f0a", + "x-ms-routing-request-id": "WESTUS2:20210712T033612Z:e76e4584-f14c-4c86-9352-09a567ad9f0a" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740", + "name": "mgmt-group-4740", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-de1c2bfec1d40745b6678aa21f904f53-e74fd6e1a54ecf40-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "679c60b8563dd6ffa674ee5770ed482b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "b5b19877-f557-4557-812b-6737f8b8f07f", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:36:12 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "b5b19877-f557-4557-812b-6737f8b8f07f", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b5b19877-f557-4557-812b-6737f8b8f07f", + "x-ms-ratelimit-remaining-tenant-reads": "11995", + "x-ms-request-id": "westus2:b5b19877-f557-4557-812b-6737f8b8f07f", + "x-ms-routing-request-id": "WESTUS2:20210712T033613Z:b5b19877-f557-4557-812b-6737f8b8f07f" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740", + "name": "mgmt-group-4740", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-de1c2bfec1d40745b6678aa21f904f53-298754822a9be448-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "686de070abd5a4f99e51e91961d0980d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "95411855-0510-4d35-bd86-1d82b4d0cb3c", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:36:14 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "95411855-0510-4d35-bd86-1d82b4d0cb3c", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "95411855-0510-4d35-bd86-1d82b4d0cb3c", + "x-ms-ratelimit-remaining-tenant-reads": "11994", + "x-ms-request-id": "westus2:95411855-0510-4d35-bd86-1d82b4d0cb3c", + "x-ms-routing-request-id": "WESTUS2:20210712T033614Z:95411855-0510-4d35-bd86-1d82b4d0cb3c" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740", + "name": "mgmt-group-4740", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-de1c2bfec1d40745b6678aa21f904f53-20f12f12e17a084d-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "2a3d54bd434ee9e885ab90340e2cd078", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "e5724986-a8ea-412e-8280-0f8ce692073b", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:36:15 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "e5724986-a8ea-412e-8280-0f8ce692073b", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e5724986-a8ea-412e-8280-0f8ce692073b", + "x-ms-ratelimit-remaining-tenant-reads": "11993", + "x-ms-request-id": "westus2:e5724986-a8ea-412e-8280-0f8ce692073b", + "x-ms-routing-request-id": "WESTUS2:20210712T033615Z:e5724986-a8ea-412e-8280-0f8ce692073b" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740", + "name": "mgmt-group-4740", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-de1c2bfec1d40745b6678aa21f904f53-4a7dbe2c450bbd4b-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "28ee9c3944060c0366f8c8ec6de575d5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "2e108b74-17f7-4cab-9973-461d1434da0b", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:36:16 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "2e108b74-17f7-4cab-9973-461d1434da0b", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2e108b74-17f7-4cab-9973-461d1434da0b", + "x-ms-ratelimit-remaining-tenant-reads": "11992", + "x-ms-request-id": "westus2:2e108b74-17f7-4cab-9973-461d1434da0b", + "x-ms-routing-request-id": "WESTUS2:20210712T033617Z:2e108b74-17f7-4cab-9973-461d1434da0b" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740", + "name": "mgmt-group-4740", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-de1c2bfec1d40745b6678aa21f904f53-c5e2af9474c2944b-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "1b9ae0dc1eaf2cddf783e3291ac49572", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "0ffd9a02-a2e1-4dc0-b37f-2d3b0dca561f", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:36:17 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "0ffd9a02-a2e1-4dc0-b37f-2d3b0dca561f", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0ffd9a02-a2e1-4dc0-b37f-2d3b0dca561f", + "x-ms-ratelimit-remaining-tenant-reads": "11991", + "x-ms-request-id": "westus2:0ffd9a02-a2e1-4dc0-b37f-2d3b0dca561f", + "x-ms-routing-request-id": "WESTUS2:20210712T033618Z:0ffd9a02-a2e1-4dc0-b37f-2d3b0dca561f" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740", + "name": "mgmt-group-4740", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-de1c2bfec1d40745b6678aa21f904f53-3fee344b4a97bf47-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "c5e0708070e278065130c3557afc7c9f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "140e6b37-d5ff-4493-b444-a4d4fb22b40f", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:36:18 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "140e6b37-d5ff-4493-b444-a4d4fb22b40f", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "140e6b37-d5ff-4493-b444-a4d4fb22b40f", + "x-ms-ratelimit-remaining-tenant-reads": "11990", + "x-ms-request-id": "westus2:140e6b37-d5ff-4493-b444-a4d4fb22b40f", + "x-ms-routing-request-id": "WESTUS2:20210712T033619Z:140e6b37-d5ff-4493-b444-a4d4fb22b40f" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740", + "name": "mgmt-group-4740", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-de1c2bfec1d40745b6678aa21f904f53-8f5849b645bd7f43-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "2e58bb36b5911ac9bec1308361d9f2a2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "be05a61c-3510-49f2-aeb2-1df2d5c8dcd8", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:36:19 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "be05a61c-3510-49f2-aeb2-1df2d5c8dcd8", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "be05a61c-3510-49f2-aeb2-1df2d5c8dcd8", + "x-ms-ratelimit-remaining-tenant-reads": "11989", + "x-ms-request-id": "westus2:be05a61c-3510-49f2-aeb2-1df2d5c8dcd8", + "x-ms-routing-request-id": "WESTUS2:20210712T033620Z:be05a61c-3510-49f2-aeb2-1df2d5c8dcd8" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740", + "name": "mgmt-group-4740", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-de1c2bfec1d40745b6678aa21f904f53-97e2c1c8669c454b-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "fc6b5662b0056bf2d922ca7f5a88b1fb", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "660a38ed-87b8-48b1-a4dc-15ae4701f065", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:36:20 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "660a38ed-87b8-48b1-a4dc-15ae4701f065", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "660a38ed-87b8-48b1-a4dc-15ae4701f065", + "x-ms-ratelimit-remaining-tenant-reads": "11988", + "x-ms-request-id": "westus2:660a38ed-87b8-48b1-a4dc-15ae4701f065", + "x-ms-routing-request-id": "WESTUS2:20210712T033621Z:660a38ed-87b8-48b1-a4dc-15ae4701f065" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740", + "name": "mgmt-group-4740", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-de1c2bfec1d40745b6678aa21f904f53-e561ec13c98f8f4b-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "5ef34307676bcbe0a7c5062040831777", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "6edc38b8-9313-4db6-8616-e1403eada561", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:36:21 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "6edc38b8-9313-4db6-8616-e1403eada561", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6edc38b8-9313-4db6-8616-e1403eada561", + "x-ms-ratelimit-remaining-tenant-reads": "11987", + "x-ms-request-id": "westus2:6edc38b8-9313-4db6-8616-e1403eada561", + "x-ms-routing-request-id": "WESTUS2:20210712T033622Z:6edc38b8-9313-4db6-8616-e1403eada561" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740", + "name": "mgmt-group-4740", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-de1c2bfec1d40745b6678aa21f904f53-36a3bfad38661840-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "24f2213e7f91859ac9ed546fea49bf36", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "f416ab10-0a64-4de1-8e27-a398f2cacafc", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:36:23 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "f416ab10-0a64-4de1-8e27-a398f2cacafc", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f416ab10-0a64-4de1-8e27-a398f2cacafc", + "x-ms-ratelimit-remaining-tenant-reads": "11986", + "x-ms-request-id": "westus2:f416ab10-0a64-4de1-8e27-a398f2cacafc", + "x-ms-routing-request-id": "WESTUS2:20210712T033623Z:f416ab10-0a64-4de1-8e27-a398f2cacafc" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740", + "name": "mgmt-group-4740", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-de1c2bfec1d40745b6678aa21f904f53-ffbbd164daf20745-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "1d7b341093e6fb36769f553fa9d12b55", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "6fc0149d-4cf5-4490-bdf7-8e16bd6cd597", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:36:24 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "6fc0149d-4cf5-4490-bdf7-8e16bd6cd597", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6fc0149d-4cf5-4490-bdf7-8e16bd6cd597", + "x-ms-ratelimit-remaining-tenant-reads": "11985", + "x-ms-request-id": "westus2:6fc0149d-4cf5-4490-bdf7-8e16bd6cd597", + "x-ms-routing-request-id": "WESTUS2:20210712T033624Z:6fc0149d-4cf5-4490-bdf7-8e16bd6cd597" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740", + "name": "mgmt-group-4740", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-de1c2bfec1d40745b6678aa21f904f53-14832ac4285ce24c-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "3941520b8d95876aa96d957e1371e05d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "97319b09-eb51-4c1d-a597-1c5d9d53c560", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:36:25 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "97319b09-eb51-4c1d-a597-1c5d9d53c560", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "97319b09-eb51-4c1d-a597-1c5d9d53c560", + "x-ms-ratelimit-remaining-tenant-reads": "11984", + "x-ms-request-id": "westus2:97319b09-eb51-4c1d-a597-1c5d9d53c560", + "x-ms-routing-request-id": "WESTUS2:20210712T033626Z:97319b09-eb51-4c1d-a597-1c5d9d53c560" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740", + "name": "mgmt-group-4740", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-de1c2bfec1d40745b6678aa21f904f53-69a5aca2f8ba9440-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "0b10d005f907aa91eaf7aef1295adcf8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "a2f375eb-54e9-462d-a277-368e505d2463", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:36:26 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "a2f375eb-54e9-462d-a277-368e505d2463", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a2f375eb-54e9-462d-a277-368e505d2463", + "x-ms-ratelimit-remaining-tenant-reads": "11983", + "x-ms-request-id": "westus2:a2f375eb-54e9-462d-a277-368e505d2463", + "x-ms-routing-request-id": "WESTUS2:20210712T033627Z:a2f375eb-54e9-462d-a277-368e505d2463" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740", + "name": "mgmt-group-4740", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-de1c2bfec1d40745b6678aa21f904f53-e10b8469a3ebe64c-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "9864fec1860783a0caf47478feb8e805", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "1e6fcb3b-0a3c-49b8-9ccb-cdca3d4106cc", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:36:27 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "1e6fcb3b-0a3c-49b8-9ccb-cdca3d4106cc", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1e6fcb3b-0a3c-49b8-9ccb-cdca3d4106cc", + "x-ms-ratelimit-remaining-tenant-reads": "11982", + "x-ms-request-id": "westus2:1e6fcb3b-0a3c-49b8-9ccb-cdca3d4106cc", + "x-ms-routing-request-id": "WESTUS2:20210712T033628Z:1e6fcb3b-0a3c-49b8-9ccb-cdca3d4106cc" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740", + "name": "mgmt-group-4740", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-de1c2bfec1d40745b6678aa21f904f53-e56d925870f65b48-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "d839f8be20c0114dc1964f9edf785d4e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "c9533973-7488-4d1a-be2d-7e8436fd6951", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:36:28 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "c9533973-7488-4d1a-be2d-7e8436fd6951", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c9533973-7488-4d1a-be2d-7e8436fd6951", + "x-ms-ratelimit-remaining-tenant-reads": "11981", + "x-ms-request-id": "westus2:c9533973-7488-4d1a-be2d-7e8436fd6951", + "x-ms-routing-request-id": "WESTUS2:20210712T033629Z:c9533973-7488-4d1a-be2d-7e8436fd6951" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740", + "name": "mgmt-group-4740", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-de1c2bfec1d40745b6678aa21f904f53-fda5575dd8aeaa4b-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "14bc9d91480c7f55308d40138419ac31", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "413bbd12-793c-46f8-b57e-8ffeb21a2b7d", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:36:29 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "413bbd12-793c-46f8-b57e-8ffeb21a2b7d", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "413bbd12-793c-46f8-b57e-8ffeb21a2b7d", + "x-ms-ratelimit-remaining-tenant-reads": "11980", + "x-ms-request-id": "westus2:413bbd12-793c-46f8-b57e-8ffeb21a2b7d", + "x-ms-routing-request-id": "WESTUS2:20210712T033630Z:413bbd12-793c-46f8-b57e-8ffeb21a2b7d" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740", + "name": "mgmt-group-4740", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-de1c2bfec1d40745b6678aa21f904f53-11ac4599ae05594f-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "3132a90f0321a137b052d6703602a452", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "client-request-id": "9be1ed96-17a9-40e5-b913-13ca8ba4b8b6", + "Content-Length": "382", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:36:31 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "request-id": "9be1ed96-17a9-40e5-b913-13ca8ba4b8b6", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9be1ed96-17a9-40e5-b913-13ca8ba4b8b6", + "x-ms-ratelimit-remaining-tenant-reads": "11979", + "x-ms-request-id": "westus2:9be1ed96-17a9-40e5-b913-13ca8ba4b8b6", + "x-ms-routing-request-id": "WESTUS2:20210712T033631Z:9be1ed96-17a9-40e5-b913-13ca8ba4b8b6" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-4740", + "name": "mgmt-group-4740", + "status": "Succeeded", + "properties": { + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "mgmt-group-4740", + "details": { + "version": 8, + "updatedTime": "2021-07-12T03:36:16.4435272Z", + "updatedBy": "3b10dae3-28cf-49a7-a8df-8fbae3e77f27" + } + } + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-de1c2bfec1d40745b6678aa21f904f53-24bfc96549ed0540-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "60e62696d3fc75f8a2b9a833df3a8ca8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "client-request-id": "cf0c222f-5140-4ae9-a7e3-776a7a6aa3b3", + "Content-Length": "565", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:36:31 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "request-id": "cf0c222f-5140-4ae9-a7e3-776a7a6aa3b3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "cf0c222f-5140-4ae9-a7e3-776a7a6aa3b3", + "x-ms-ratelimit-remaining-tenant-reads": "11978", + "x-ms-request-id": "westus2:cf0c222f-5140-4ae9-a7e3-776a7a6aa3b3", + "x-ms-routing-request-id": "WESTUS2:20210712T033631Z:cf0c222f-5140-4ae9-a7e3-776a7a6aa3b3" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/managementGroups/mgmt-group-4740", + "type": "Microsoft.Management/managementGroups", + "name": "mgmt-group-4740", + "properties": { + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "mgmt-group-4740", + "details": { + "version": 8, + "updatedTime": "2021-07-12T03:36:16.4435272Z", + "updatedBy": "3b10dae3-28cf-49a7-a8df-8fbae3e77f27", + "parent": { + "id": "/providers/Microsoft.Management/managementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47", + "name": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } + } + } + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/mgmt-group-4740?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-20dc9375eee749428e981adbec4adc3f-1b06b2bac2ab8b40-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "368f1dea2c458e2c661a64b972e4492e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "client-request-id": "bea5c815-5e8d-42a6-ae1c-7a465d5dc9e5", + "Content-Length": "565", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:36:31 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "request-id": "bea5c815-5e8d-42a6-ae1c-7a465d5dc9e5", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "bea5c815-5e8d-42a6-ae1c-7a465d5dc9e5", + "x-ms-ratelimit-remaining-tenant-reads": "11977", + "x-ms-request-id": "westus2:bea5c815-5e8d-42a6-ae1c-7a465d5dc9e5", + "x-ms-routing-request-id": "WESTUS2:20210712T033632Z:bea5c815-5e8d-42a6-ae1c-7a465d5dc9e5" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/managementGroups/mgmt-group-4740", + "type": "Microsoft.Management/managementGroups", + "name": "mgmt-group-4740", + "properties": { + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "mgmt-group-4740", + "details": { + "version": 8, + "updatedTime": "2021-07-12T03:36:16.4435272Z", + "updatedBy": "3b10dae3-28cf-49a7-a8df-8fbae3e77f27", + "parent": { + "id": "/providers/Microsoft.Management/managementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47", + "name": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } + } + } + } + } + ], + "Variables": { + "RandomSeed": "1031477050", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupOperationsTests/ManagementGroupOperationsTests(True)Async.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupOperationsTests/ManagementGroupOperationsTests(True)Async.json new file mode 100644 index 0000000000000..0a2a56054a8c6 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupOperationsTests/ManagementGroupOperationsTests(True)Async.json @@ -0,0 +1,1063 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "f9f304512a7d535a8048bfe98fc08535", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "450", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:36:47 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ecd7b664-8c13-4dff-94cb-5ec6cde3d058", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-request-id": "ecd7b664-8c13-4dff-94cb-5ec6cde3d058", + "x-ms-routing-request-id": "WESTUS2:20210712T033648Z:ecd7b664-8c13-4dff-94cb-5ec6cde3d058" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "tagKey1": "tagValue1", + "tagKey2": "tagValue2" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "17", + "Content-Type": "application/json", + "traceparent": "00-95c6cbf556acd947930522ce1f31b092-5a57d875f5c3dc40-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "b023f1de19193a57742fefd8415c334c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": {} + }, + "StatusCode": 202, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "e29162fe-361a-4063-beec-466e0c0d89de", + "Content-Length": "167", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:36:48 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "e29162fe-361a-4063-beec-466e0c0d89de", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e29162fe-361a-4063-beec-466e0c0d89de", + "x-ms-ratelimit-remaining-managementgroups-requests": "59", + "x-ms-ratelimit-remaining-tenant-writes": "1199", + "x-ms-request-id": "westus2:e29162fe-361a-4063-beec-466e0c0d89de", + "x-ms-routing-request-id": "WESTUS2:20210712T033649Z:e29162fe-361a-4063-beec-466e0c0d89de" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/managementGroups/mgmt-group-3600", + "type": "Microsoft.Management/managementGroups", + "name": "mgmt-group-3600", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-95c6cbf556acd947930522ce1f31b092-e43ae2c330926647-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "85bf66ac755aeb379cbf08fb6b7a3eeb", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "8ec86c4d-93b7-4422-80f9-2ae6f87298d4", + "Content-Length": "166", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:36:48 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "8ec86c4d-93b7-4422-80f9-2ae6f87298d4", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8ec86c4d-93b7-4422-80f9-2ae6f87298d4", + "x-ms-ratelimit-remaining-tenant-reads": "11999", + "x-ms-request-id": "westus2:8ec86c4d-93b7-4422-80f9-2ae6f87298d4", + "x-ms-routing-request-id": "WESTUS2:20210712T033649Z:8ec86c4d-93b7-4422-80f9-2ae6f87298d4" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600", + "name": "mgmt-group-3600", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-95c6cbf556acd947930522ce1f31b092-bec810899b495f4d-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "ff689c8cfddc3009bcc063065b97ae9a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "583ebff9-b767-4517-bc3a-24e2bac424b4", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:36:49 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "583ebff9-b767-4517-bc3a-24e2bac424b4", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "583ebff9-b767-4517-bc3a-24e2bac424b4", + "x-ms-ratelimit-remaining-tenant-reads": "11998", + "x-ms-request-id": "westus2:583ebff9-b767-4517-bc3a-24e2bac424b4", + "x-ms-routing-request-id": "WESTUS2:20210712T033650Z:583ebff9-b767-4517-bc3a-24e2bac424b4" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600", + "name": "mgmt-group-3600", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-95c6cbf556acd947930522ce1f31b092-5ad751d15a582a48-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "da2cc7acae9db0f289bd9b6ba438f7d1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "2adc0939-5f27-4fb5-bc49-f1ed3ea468bb", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:36:50 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "2adc0939-5f27-4fb5-bc49-f1ed3ea468bb", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2adc0939-5f27-4fb5-bc49-f1ed3ea468bb", + "x-ms-ratelimit-remaining-tenant-reads": "11997", + "x-ms-request-id": "westus2:2adc0939-5f27-4fb5-bc49-f1ed3ea468bb", + "x-ms-routing-request-id": "WESTUS2:20210712T033651Z:2adc0939-5f27-4fb5-bc49-f1ed3ea468bb" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600", + "name": "mgmt-group-3600", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-95c6cbf556acd947930522ce1f31b092-8b8151bc494cc247-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "ef34d1d48370ae4c5c8ec89911308f05", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "f4f5b122-572b-487c-a231-6f74af9b6498", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:36:51 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "f4f5b122-572b-487c-a231-6f74af9b6498", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f4f5b122-572b-487c-a231-6f74af9b6498", + "x-ms-ratelimit-remaining-tenant-reads": "11996", + "x-ms-request-id": "westus2:f4f5b122-572b-487c-a231-6f74af9b6498", + "x-ms-routing-request-id": "WESTUS2:20210712T033652Z:f4f5b122-572b-487c-a231-6f74af9b6498" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600", + "name": "mgmt-group-3600", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-95c6cbf556acd947930522ce1f31b092-e84a4fa556a57b46-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "a44f6d11634ede4eaab7751e619e8c84", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "4b1547f1-5f48-4115-a57c-c280ba82b115", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:36:52 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "4b1547f1-5f48-4115-a57c-c280ba82b115", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4b1547f1-5f48-4115-a57c-c280ba82b115", + "x-ms-ratelimit-remaining-tenant-reads": "11995", + "x-ms-request-id": "westus2:4b1547f1-5f48-4115-a57c-c280ba82b115", + "x-ms-routing-request-id": "WESTUS2:20210712T033653Z:4b1547f1-5f48-4115-a57c-c280ba82b115" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600", + "name": "mgmt-group-3600", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-95c6cbf556acd947930522ce1f31b092-e2abbdaad6da1340-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "893292c8be62282a7a7d7e0ee5589f59", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "3dfb8202-f80b-4607-8f16-ea81585b78fa", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:36:54 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "3dfb8202-f80b-4607-8f16-ea81585b78fa", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3dfb8202-f80b-4607-8f16-ea81585b78fa", + "x-ms-ratelimit-remaining-tenant-reads": "11994", + "x-ms-request-id": "westus2:3dfb8202-f80b-4607-8f16-ea81585b78fa", + "x-ms-routing-request-id": "WESTUS2:20210712T033655Z:3dfb8202-f80b-4607-8f16-ea81585b78fa" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600", + "name": "mgmt-group-3600", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-95c6cbf556acd947930522ce1f31b092-dbdfdd728572244d-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "365a962e53e97083825644b80e2d4dbe", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "efdcf2d2-d0c8-4ef6-a639-9a43efd96e65", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:36:56 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "efdcf2d2-d0c8-4ef6-a639-9a43efd96e65", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "efdcf2d2-d0c8-4ef6-a639-9a43efd96e65", + "x-ms-ratelimit-remaining-tenant-reads": "11993", + "x-ms-request-id": "westus2:efdcf2d2-d0c8-4ef6-a639-9a43efd96e65", + "x-ms-routing-request-id": "WESTUS2:20210712T033656Z:efdcf2d2-d0c8-4ef6-a639-9a43efd96e65" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600", + "name": "mgmt-group-3600", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-95c6cbf556acd947930522ce1f31b092-be25571d22e9c247-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "7fd1440205fd52a2432629d0e540f852", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "184470b0-ff66-4038-bbe7-922daeda8635", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:36:57 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "184470b0-ff66-4038-bbe7-922daeda8635", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "184470b0-ff66-4038-bbe7-922daeda8635", + "x-ms-ratelimit-remaining-tenant-reads": "11992", + "x-ms-request-id": "westus2:184470b0-ff66-4038-bbe7-922daeda8635", + "x-ms-routing-request-id": "WESTUS2:20210712T033657Z:184470b0-ff66-4038-bbe7-922daeda8635" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600", + "name": "mgmt-group-3600", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-95c6cbf556acd947930522ce1f31b092-44e424dc92202242-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "caf01c185544759a0ec2070c7a711a4d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "087d6197-6472-48c4-aaea-7188850ac842", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:36:58 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "087d6197-6472-48c4-aaea-7188850ac842", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "087d6197-6472-48c4-aaea-7188850ac842", + "x-ms-ratelimit-remaining-tenant-reads": "11991", + "x-ms-request-id": "westus2:087d6197-6472-48c4-aaea-7188850ac842", + "x-ms-routing-request-id": "WESTUS2:20210712T033658Z:087d6197-6472-48c4-aaea-7188850ac842" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600", + "name": "mgmt-group-3600", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-95c6cbf556acd947930522ce1f31b092-8dd0101b36f5ad42-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "a10cc0301f87285bf408f3c32ab28a42", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "36341e99-1d17-4197-9166-63d5f24e4f2d", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:36:59 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "36341e99-1d17-4197-9166-63d5f24e4f2d", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "36341e99-1d17-4197-9166-63d5f24e4f2d", + "x-ms-ratelimit-remaining-tenant-reads": "11990", + "x-ms-request-id": "westus2:36341e99-1d17-4197-9166-63d5f24e4f2d", + "x-ms-routing-request-id": "WESTUS2:20210712T033659Z:36341e99-1d17-4197-9166-63d5f24e4f2d" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600", + "name": "mgmt-group-3600", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-95c6cbf556acd947930522ce1f31b092-9000e812083ffe4c-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "f29ff15d823cac79aa5b713bfe96d7d2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "ba1db084-a666-4115-ba58-dc584ad79e8e", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:37:00 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "ba1db084-a666-4115-ba58-dc584ad79e8e", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ba1db084-a666-4115-ba58-dc584ad79e8e", + "x-ms-ratelimit-remaining-tenant-reads": "11989", + "x-ms-request-id": "westus2:ba1db084-a666-4115-ba58-dc584ad79e8e", + "x-ms-routing-request-id": "WESTUS2:20210712T033700Z:ba1db084-a666-4115-ba58-dc584ad79e8e" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600", + "name": "mgmt-group-3600", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-95c6cbf556acd947930522ce1f31b092-973b3f68e3485341-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "25a0db0c5733f9cbc0c7d63c61d64b5b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "69fe0b8a-ebf7-4059-a4de-51c311f67573", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:37:01 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "69fe0b8a-ebf7-4059-a4de-51c311f67573", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "69fe0b8a-ebf7-4059-a4de-51c311f67573", + "x-ms-ratelimit-remaining-tenant-reads": "11988", + "x-ms-request-id": "westus2:69fe0b8a-ebf7-4059-a4de-51c311f67573", + "x-ms-routing-request-id": "WESTUS2:20210712T033701Z:69fe0b8a-ebf7-4059-a4de-51c311f67573" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600", + "name": "mgmt-group-3600", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-95c6cbf556acd947930522ce1f31b092-d610c3a6bebba64d-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "89aec43727d1ae104660f72bae1f2a5e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "66852090-bd8f-4da0-89d8-e5dc928a901a", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:37:02 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "66852090-bd8f-4da0-89d8-e5dc928a901a", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "66852090-bd8f-4da0-89d8-e5dc928a901a", + "x-ms-ratelimit-remaining-tenant-reads": "11987", + "x-ms-request-id": "westus2:66852090-bd8f-4da0-89d8-e5dc928a901a", + "x-ms-routing-request-id": "WESTUS2:20210712T033702Z:66852090-bd8f-4da0-89d8-e5dc928a901a" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600", + "name": "mgmt-group-3600", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-95c6cbf556acd947930522ce1f31b092-6e209564d8ec9a46-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "4eb621306512060f25a63175ab3d4ad3", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "b59b3145-e6cb-4bb1-a4e3-8274836c9541", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:37:03 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "b59b3145-e6cb-4bb1-a4e3-8274836c9541", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b59b3145-e6cb-4bb1-a4e3-8274836c9541", + "x-ms-ratelimit-remaining-tenant-reads": "11986", + "x-ms-request-id": "westus2:b59b3145-e6cb-4bb1-a4e3-8274836c9541", + "x-ms-routing-request-id": "WESTUS2:20210712T033704Z:b59b3145-e6cb-4bb1-a4e3-8274836c9541" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600", + "name": "mgmt-group-3600", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-95c6cbf556acd947930522ce1f31b092-025d2b89eadfbf42-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "3a0315104de7e400caf1dfd3609f4ba1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "5e193f1f-e78b-474b-917b-95429d29f94f", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:37:04 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "5e193f1f-e78b-474b-917b-95429d29f94f", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5e193f1f-e78b-474b-917b-95429d29f94f", + "x-ms-ratelimit-remaining-tenant-reads": "11985", + "x-ms-request-id": "westus2:5e193f1f-e78b-474b-917b-95429d29f94f", + "x-ms-routing-request-id": "WESTUS2:20210712T033705Z:5e193f1f-e78b-474b-917b-95429d29f94f" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600", + "name": "mgmt-group-3600", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-95c6cbf556acd947930522ce1f31b092-7443dac21b591440-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "400b789dfc20d249b5a7632bf69b0308", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "2ebb0fca-5465-4863-964d-875a9a1e88f5", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:37:06 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "2ebb0fca-5465-4863-964d-875a9a1e88f5", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2ebb0fca-5465-4863-964d-875a9a1e88f5", + "x-ms-ratelimit-remaining-tenant-reads": "11984", + "x-ms-request-id": "westus2:2ebb0fca-5465-4863-964d-875a9a1e88f5", + "x-ms-routing-request-id": "WESTUS2:20210712T033706Z:2ebb0fca-5465-4863-964d-875a9a1e88f5" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600", + "name": "mgmt-group-3600", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-95c6cbf556acd947930522ce1f31b092-23dc74509557f547-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "981b2315f01ce37621d28321863ca686", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "b2bde131-86b2-4e9a-b5a7-c422a04ba55b", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:37:07 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "b2bde131-86b2-4e9a-b5a7-c422a04ba55b", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b2bde131-86b2-4e9a-b5a7-c422a04ba55b", + "x-ms-ratelimit-remaining-tenant-reads": "11983", + "x-ms-request-id": "westus2:b2bde131-86b2-4e9a-b5a7-c422a04ba55b", + "x-ms-routing-request-id": "WESTUS2:20210712T033707Z:b2bde131-86b2-4e9a-b5a7-c422a04ba55b" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600", + "name": "mgmt-group-3600", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-95c6cbf556acd947930522ce1f31b092-403ba456c6c15a4c-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "32d7905a0a3213b3cb318440ead4ed2f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "fcc44bec-affc-4814-af14-5b8958b4ed1c", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:37:08 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "fcc44bec-affc-4814-af14-5b8958b4ed1c", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "fcc44bec-affc-4814-af14-5b8958b4ed1c", + "x-ms-ratelimit-remaining-tenant-reads": "11982", + "x-ms-request-id": "westus2:fcc44bec-affc-4814-af14-5b8958b4ed1c", + "x-ms-routing-request-id": "WESTUS2:20210712T033708Z:fcc44bec-affc-4814-af14-5b8958b4ed1c" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600", + "name": "mgmt-group-3600", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-95c6cbf556acd947930522ce1f31b092-2f2ca16b8d45ac45-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "3cbed6eeb284ad8402281f4d79274b79", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "8b30f352-df7b-4df3-a4fa-4f161b6c1628", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:37:09 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "8b30f352-df7b-4df3-a4fa-4f161b6c1628", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8b30f352-df7b-4df3-a4fa-4f161b6c1628", + "x-ms-ratelimit-remaining-tenant-reads": "11981", + "x-ms-request-id": "westus2:8b30f352-df7b-4df3-a4fa-4f161b6c1628", + "x-ms-routing-request-id": "WESTUS2:20210712T033709Z:8b30f352-df7b-4df3-a4fa-4f161b6c1628" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600", + "name": "mgmt-group-3600", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-95c6cbf556acd947930522ce1f31b092-87d9453805973e4c-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "66d0dd01d0c30bd57007cdea6b36f84c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "e32debca-7696-4139-b6ab-8d7a7ff9d608", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:37:10 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "e32debca-7696-4139-b6ab-8d7a7ff9d608", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e32debca-7696-4139-b6ab-8d7a7ff9d608", + "x-ms-ratelimit-remaining-tenant-reads": "11980", + "x-ms-request-id": "westus2:e32debca-7696-4139-b6ab-8d7a7ff9d608", + "x-ms-routing-request-id": "WESTUS2:20210712T033710Z:e32debca-7696-4139-b6ab-8d7a7ff9d608" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600", + "name": "mgmt-group-3600", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-95c6cbf556acd947930522ce1f31b092-225205891d176a49-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "af3354e46a7da8010b2a300aea6599a3", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "5ebd7c57-b564-4e5a-ac79-218f666900bd", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:37:11 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "5ebd7c57-b564-4e5a-ac79-218f666900bd", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5ebd7c57-b564-4e5a-ac79-218f666900bd", + "x-ms-ratelimit-remaining-tenant-reads": "11979", + "x-ms-request-id": "westus2:5ebd7c57-b564-4e5a-ac79-218f666900bd", + "x-ms-routing-request-id": "WESTUS2:20210712T033711Z:5ebd7c57-b564-4e5a-ac79-218f666900bd" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600", + "name": "mgmt-group-3600", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-95c6cbf556acd947930522ce1f31b092-f7ccd7f10fe56e4d-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "0c3f0be587031d6b01b3cb7de59a42cc", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "client-request-id": "6627bd10-ef95-4a7d-aa3e-2375573d3513", + "Content-Length": "382", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:37:13 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "request-id": "6627bd10-ef95-4a7d-aa3e-2375573d3513", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6627bd10-ef95-4a7d-aa3e-2375573d3513", + "x-ms-ratelimit-remaining-tenant-reads": "11978", + "x-ms-request-id": "westus2:6627bd10-ef95-4a7d-aa3e-2375573d3513", + "x-ms-routing-request-id": "WESTUS2:20210712T033713Z:6627bd10-ef95-4a7d-aa3e-2375573d3513" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-3600", + "name": "mgmt-group-3600", + "status": "Succeeded", + "properties": { + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "mgmt-group-3600", + "details": { + "version": 3, + "updatedTime": "2021-07-12T03:36:54.9243033Z", + "updatedBy": "3b10dae3-28cf-49a7-a8df-8fbae3e77f27" + } + } + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-95c6cbf556acd947930522ce1f31b092-72a88d5b723bc34f-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "2569d32f9cf496fbdc285b99a0ca200a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "client-request-id": "96ad3ff8-4d8d-4f95-9e6e-1bbfa078a0ee", + "Content-Length": "565", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:37:13 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "request-id": "96ad3ff8-4d8d-4f95-9e6e-1bbfa078a0ee", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "96ad3ff8-4d8d-4f95-9e6e-1bbfa078a0ee", + "x-ms-ratelimit-remaining-tenant-reads": "11977", + "x-ms-request-id": "westus2:96ad3ff8-4d8d-4f95-9e6e-1bbfa078a0ee", + "x-ms-routing-request-id": "WESTUS2:20210712T033713Z:96ad3ff8-4d8d-4f95-9e6e-1bbfa078a0ee" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/managementGroups/mgmt-group-3600", + "type": "Microsoft.Management/managementGroups", + "name": "mgmt-group-3600", + "properties": { + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "mgmt-group-3600", + "details": { + "version": 3, + "updatedTime": "2021-07-12T03:36:54.9243033Z", + "updatedBy": "3b10dae3-28cf-49a7-a8df-8fbae3e77f27", + "parent": { + "id": "/providers/Microsoft.Management/managementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47", + "name": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } + } + } + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/mgmt-group-3600?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-3b3cd25f1dbc5a40a01accb65478d6ef-c3263933cde5674e-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "5f04296debf75d48e815aeca9e84c271", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "client-request-id": "1969ccd9-bd8b-469d-abb8-07ac62f88163", + "Content-Length": "565", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:37:13 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "request-id": "1969ccd9-bd8b-469d-abb8-07ac62f88163", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1969ccd9-bd8b-469d-abb8-07ac62f88163", + "x-ms-ratelimit-remaining-tenant-reads": "11976", + "x-ms-request-id": "westus2:1969ccd9-bd8b-469d-abb8-07ac62f88163", + "x-ms-routing-request-id": "WESTUS2:20210712T033713Z:1969ccd9-bd8b-469d-abb8-07ac62f88163" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/managementGroups/mgmt-group-3600", + "type": "Microsoft.Management/managementGroups", + "name": "mgmt-group-3600", + "properties": { + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "mgmt-group-3600", + "details": { + "version": 3, + "updatedTime": "2021-07-12T03:36:54.9243033Z", + "updatedBy": "3b10dae3-28cf-49a7-a8df-8fbae3e77f27", + "parent": { + "id": "/providers/Microsoft.Management/managementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47", + "name": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } + } + } + } + } + ], + "Variables": { + "RandomSeed": "662869031", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupOperationsTests/StartDelete.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupOperationsTests/StartDelete.json new file mode 100644 index 0000000000000..cc35566f5204b --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupOperationsTests/StartDelete.json @@ -0,0 +1,1545 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "81b141862435409c915a1d937c980ec0", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "450", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:19:34 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c103c59a-7718-4243-99cc-648b7ef78c6a", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-request-id": "c103c59a-7718-4243-99cc-648b7ef78c6a", + "x-ms-routing-request-id": "WESTUS2:20210712T031935Z:c103c59a-7718-4243-99cc-648b7ef78c6a" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "tagKey1": "tagValue1", + "tagKey2": "tagValue2" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "17", + "Content-Type": "application/json", + "traceparent": "00-033959163dde344a8dfc9523ae7c787d-e1f69b467462c54b-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "facde556a779c07b4d6ca7f72267a63a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": {} + }, + "StatusCode": 202, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "b5d8dcae-8df1-441f-a15a-38c8c2203a33", + "Content-Length": "167", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:19:34 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "b5d8dcae-8df1-441f-a15a-38c8c2203a33", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b5d8dcae-8df1-441f-a15a-38c8c2203a33", + "x-ms-ratelimit-remaining-managementgroups-requests": "58", + "x-ms-ratelimit-remaining-tenant-writes": "1198", + "x-ms-request-id": "westus2:b5d8dcae-8df1-441f-a15a-38c8c2203a33", + "x-ms-routing-request-id": "WESTUS2:20210712T031935Z:b5d8dcae-8df1-441f-a15a-38c8c2203a33" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/managementGroups/mgmt-group-9226", + "type": "Microsoft.Management/managementGroups", + "name": "mgmt-group-9226", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-033959163dde344a8dfc9523ae7c787d-18174df991402443-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "a2c222aac4d1990c36c0e7b8f4496ff3", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "2e9c5cdd-db63-4db1-9900-6157c3dfb898", + "Content-Length": "166", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:19:34 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "2e9c5cdd-db63-4db1-9900-6157c3dfb898", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2e9c5cdd-db63-4db1-9900-6157c3dfb898", + "x-ms-ratelimit-remaining-tenant-reads": "11975", + "x-ms-request-id": "westus2:2e9c5cdd-db63-4db1-9900-6157c3dfb898", + "x-ms-routing-request-id": "WESTUS2:20210712T031935Z:2e9c5cdd-db63-4db1-9900-6157c3dfb898" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226", + "name": "mgmt-group-9226", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-033959163dde344a8dfc9523ae7c787d-f67bbc50dc38b642-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "a45959768cf7bc8b01fcd1021671c24d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "b2b5c44c-e9ee-4523-85cb-530e31a85c89", + "Content-Length": "166", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:19:35 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "b2b5c44c-e9ee-4523-85cb-530e31a85c89", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b2b5c44c-e9ee-4523-85cb-530e31a85c89", + "x-ms-ratelimit-remaining-tenant-reads": "11974", + "x-ms-request-id": "westus2:b2b5c44c-e9ee-4523-85cb-530e31a85c89", + "x-ms-routing-request-id": "WESTUS2:20210712T031936Z:b2b5c44c-e9ee-4523-85cb-530e31a85c89" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226", + "name": "mgmt-group-9226", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-033959163dde344a8dfc9523ae7c787d-11766bc678f54749-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "004c703504a45e68e77dfe3db22bdcdf", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "49d05355-c24d-49fd-b638-60891e44aa5e", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:19:36 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "49d05355-c24d-49fd-b638-60891e44aa5e", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "49d05355-c24d-49fd-b638-60891e44aa5e", + "x-ms-ratelimit-remaining-tenant-reads": "11973", + "x-ms-request-id": "westus2:49d05355-c24d-49fd-b638-60891e44aa5e", + "x-ms-routing-request-id": "WESTUS2:20210712T031937Z:49d05355-c24d-49fd-b638-60891e44aa5e" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226", + "name": "mgmt-group-9226", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-033959163dde344a8dfc9523ae7c787d-7239738305d2db42-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "a4939d0792a51e3f9706a0d5f20a83c4", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "e8516a21-aeb6-4cea-8715-f336d3eff288", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:19:38 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "e8516a21-aeb6-4cea-8715-f336d3eff288", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e8516a21-aeb6-4cea-8715-f336d3eff288", + "x-ms-ratelimit-remaining-tenant-reads": "11972", + "x-ms-request-id": "westus2:e8516a21-aeb6-4cea-8715-f336d3eff288", + "x-ms-routing-request-id": "WESTUS2:20210712T031939Z:e8516a21-aeb6-4cea-8715-f336d3eff288" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226", + "name": "mgmt-group-9226", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-033959163dde344a8dfc9523ae7c787d-6259f20248a66842-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "848299fe6ffc724ff0fabd798e4d09d6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "10bedef9-8c81-4814-b90f-90951338ddf1", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:19:39 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "10bedef9-8c81-4814-b90f-90951338ddf1", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "10bedef9-8c81-4814-b90f-90951338ddf1", + "x-ms-ratelimit-remaining-tenant-reads": "11971", + "x-ms-request-id": "westus2:10bedef9-8c81-4814-b90f-90951338ddf1", + "x-ms-routing-request-id": "WESTUS2:20210712T031940Z:10bedef9-8c81-4814-b90f-90951338ddf1" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226", + "name": "mgmt-group-9226", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-033959163dde344a8dfc9523ae7c787d-42fe385fa34ad74b-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "79faf2201edda2a8312e699d63936bdc", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "c3de4d9e-7bd5-44b0-84dd-79ce056853ab", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:19:40 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "c3de4d9e-7bd5-44b0-84dd-79ce056853ab", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c3de4d9e-7bd5-44b0-84dd-79ce056853ab", + "x-ms-ratelimit-remaining-tenant-reads": "11970", + "x-ms-request-id": "westus2:c3de4d9e-7bd5-44b0-84dd-79ce056853ab", + "x-ms-routing-request-id": "WESTUS2:20210712T031941Z:c3de4d9e-7bd5-44b0-84dd-79ce056853ab" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226", + "name": "mgmt-group-9226", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-033959163dde344a8dfc9523ae7c787d-3b85eab9ac8c394d-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "183f39f958a898e34d20b3aad5c58f49", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "e6952e5c-7121-414c-99e7-7d4c1f7cd74e", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:19:41 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "e6952e5c-7121-414c-99e7-7d4c1f7cd74e", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e6952e5c-7121-414c-99e7-7d4c1f7cd74e", + "x-ms-ratelimit-remaining-tenant-reads": "11969", + "x-ms-request-id": "westus2:e6952e5c-7121-414c-99e7-7d4c1f7cd74e", + "x-ms-routing-request-id": "WESTUS2:20210712T031942Z:e6952e5c-7121-414c-99e7-7d4c1f7cd74e" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226", + "name": "mgmt-group-9226", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-033959163dde344a8dfc9523ae7c787d-c50fe64e9a40ba41-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "00b5cafd090fdfe7f1e052cd05b20f5d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "76b7efcd-d15f-4df6-9a62-fb286e57b08c", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:19:43 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "76b7efcd-d15f-4df6-9a62-fb286e57b08c", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "76b7efcd-d15f-4df6-9a62-fb286e57b08c", + "x-ms-ratelimit-remaining-tenant-reads": "11968", + "x-ms-request-id": "westus2:76b7efcd-d15f-4df6-9a62-fb286e57b08c", + "x-ms-routing-request-id": "WESTUS2:20210712T031943Z:76b7efcd-d15f-4df6-9a62-fb286e57b08c" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226", + "name": "mgmt-group-9226", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-033959163dde344a8dfc9523ae7c787d-3d3935ba4879f941-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "5580e08ff00dc72d0e612bbd6afdcd6c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "bb558626-b857-45f7-a455-eb4d6013c6e3", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:19:44 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "bb558626-b857-45f7-a455-eb4d6013c6e3", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "bb558626-b857-45f7-a455-eb4d6013c6e3", + "x-ms-ratelimit-remaining-tenant-reads": "11967", + "x-ms-request-id": "westus2:bb558626-b857-45f7-a455-eb4d6013c6e3", + "x-ms-routing-request-id": "WESTUS2:20210712T031944Z:bb558626-b857-45f7-a455-eb4d6013c6e3" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226", + "name": "mgmt-group-9226", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-033959163dde344a8dfc9523ae7c787d-7d1d9a893a899541-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "99a01f9e6adef0cc515f27c80515929b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "5168be3c-24f2-4dec-8e85-e800f3fbad63", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:19:45 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "5168be3c-24f2-4dec-8e85-e800f3fbad63", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5168be3c-24f2-4dec-8e85-e800f3fbad63", + "x-ms-ratelimit-remaining-tenant-reads": "11966", + "x-ms-request-id": "westus2:5168be3c-24f2-4dec-8e85-e800f3fbad63", + "x-ms-routing-request-id": "WESTUS2:20210712T031945Z:5168be3c-24f2-4dec-8e85-e800f3fbad63" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226", + "name": "mgmt-group-9226", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-033959163dde344a8dfc9523ae7c787d-db44d7ee4386334b-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "f41b56113a450c3c9dedf2aedd2a75f4", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "ed32dd5b-5a4d-4d52-a54b-1b01df2ee7c5", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:19:46 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "ed32dd5b-5a4d-4d52-a54b-1b01df2ee7c5", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ed32dd5b-5a4d-4d52-a54b-1b01df2ee7c5", + "x-ms-ratelimit-remaining-tenant-reads": "11965", + "x-ms-request-id": "westus2:ed32dd5b-5a4d-4d52-a54b-1b01df2ee7c5", + "x-ms-routing-request-id": "WESTUS2:20210712T031946Z:ed32dd5b-5a4d-4d52-a54b-1b01df2ee7c5" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226", + "name": "mgmt-group-9226", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-033959163dde344a8dfc9523ae7c787d-39ebd5411d43da4a-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "e62ee6137511247e138f03adc964c2f9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "3bbbb2c9-0eb9-41d9-a7cd-3dc062f4bc98", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:19:47 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "3bbbb2c9-0eb9-41d9-a7cd-3dc062f4bc98", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3bbbb2c9-0eb9-41d9-a7cd-3dc062f4bc98", + "x-ms-ratelimit-remaining-tenant-reads": "11964", + "x-ms-request-id": "westus2:3bbbb2c9-0eb9-41d9-a7cd-3dc062f4bc98", + "x-ms-routing-request-id": "WESTUS2:20210712T031948Z:3bbbb2c9-0eb9-41d9-a7cd-3dc062f4bc98" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226", + "name": "mgmt-group-9226", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-033959163dde344a8dfc9523ae7c787d-87f6e8385e5ba746-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "13ab90ced9e26426e294fcf1781e1227", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "66d2ad6c-f60e-437e-8d3d-b366f41eec2d", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:19:49 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "66d2ad6c-f60e-437e-8d3d-b366f41eec2d", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "66d2ad6c-f60e-437e-8d3d-b366f41eec2d", + "x-ms-ratelimit-remaining-tenant-reads": "11963", + "x-ms-request-id": "westus2:66d2ad6c-f60e-437e-8d3d-b366f41eec2d", + "x-ms-routing-request-id": "WESTUS2:20210712T031949Z:66d2ad6c-f60e-437e-8d3d-b366f41eec2d" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226", + "name": "mgmt-group-9226", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-033959163dde344a8dfc9523ae7c787d-13b9d0e9f285b64f-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "1eb532eaace69b89d7f7e0b5368e4238", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "b97fe747-9b83-4cd1-90bd-57d364a67155", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:19:50 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "b97fe747-9b83-4cd1-90bd-57d364a67155", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b97fe747-9b83-4cd1-90bd-57d364a67155", + "x-ms-ratelimit-remaining-tenant-reads": "11962", + "x-ms-request-id": "westus2:b97fe747-9b83-4cd1-90bd-57d364a67155", + "x-ms-routing-request-id": "WESTUS2:20210712T031950Z:b97fe747-9b83-4cd1-90bd-57d364a67155" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226", + "name": "mgmt-group-9226", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-033959163dde344a8dfc9523ae7c787d-49c8d1d115b26148-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "4ddff92a617e3912bfc9037d798dabf5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "1a0e6855-da04-4020-b68b-8aa3b5b6a64d", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:19:51 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "1a0e6855-da04-4020-b68b-8aa3b5b6a64d", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1a0e6855-da04-4020-b68b-8aa3b5b6a64d", + "x-ms-ratelimit-remaining-tenant-reads": "11961", + "x-ms-request-id": "westus2:1a0e6855-da04-4020-b68b-8aa3b5b6a64d", + "x-ms-routing-request-id": "WESTUS2:20210712T031951Z:1a0e6855-da04-4020-b68b-8aa3b5b6a64d" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226", + "name": "mgmt-group-9226", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-033959163dde344a8dfc9523ae7c787d-e338b24cd55f0540-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "97c3dc7da4af221206103beaf8712e54", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "7e49bda6-9776-440a-bae2-ee82b95e1b12", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:19:52 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "7e49bda6-9776-440a-bae2-ee82b95e1b12", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7e49bda6-9776-440a-bae2-ee82b95e1b12", + "x-ms-ratelimit-remaining-tenant-reads": "11960", + "x-ms-request-id": "westus2:7e49bda6-9776-440a-bae2-ee82b95e1b12", + "x-ms-routing-request-id": "WESTUS2:20210712T031952Z:7e49bda6-9776-440a-bae2-ee82b95e1b12" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226", + "name": "mgmt-group-9226", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-033959163dde344a8dfc9523ae7c787d-29f1ceb2a2bab94d-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "7fc6c351c53f88a8207b5e1ca80b214a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "b3bf19b3-dabc-424e-b2cb-aa013711f5e5", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:19:53 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "b3bf19b3-dabc-424e-b2cb-aa013711f5e5", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b3bf19b3-dabc-424e-b2cb-aa013711f5e5", + "x-ms-ratelimit-remaining-tenant-reads": "11959", + "x-ms-request-id": "westus2:b3bf19b3-dabc-424e-b2cb-aa013711f5e5", + "x-ms-routing-request-id": "WESTUS2:20210712T031953Z:b3bf19b3-dabc-424e-b2cb-aa013711f5e5" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226", + "name": "mgmt-group-9226", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-033959163dde344a8dfc9523ae7c787d-305c6263f197b446-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "5937eb4babcb8689e6bc466e2527414e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "1c037d75-d774-4614-b42a-501c932d77a1", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:19:54 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "1c037d75-d774-4614-b42a-501c932d77a1", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1c037d75-d774-4614-b42a-501c932d77a1", + "x-ms-ratelimit-remaining-tenant-reads": "11958", + "x-ms-request-id": "westus2:1c037d75-d774-4614-b42a-501c932d77a1", + "x-ms-routing-request-id": "WESTUS2:20210712T031954Z:1c037d75-d774-4614-b42a-501c932d77a1" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226", + "name": "mgmt-group-9226", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-033959163dde344a8dfc9523ae7c787d-8a64598096fdaf41-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "b52caf9b2bc6b8b5333a763345f579fa", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "42a23d42-e655-4783-bf94-ccaa8d78f941", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:19:55 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "42a23d42-e655-4783-bf94-ccaa8d78f941", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "42a23d42-e655-4783-bf94-ccaa8d78f941", + "x-ms-ratelimit-remaining-tenant-reads": "11957", + "x-ms-request-id": "westus2:42a23d42-e655-4783-bf94-ccaa8d78f941", + "x-ms-routing-request-id": "WESTUS2:20210712T031955Z:42a23d42-e655-4783-bf94-ccaa8d78f941" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226", + "name": "mgmt-group-9226", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-033959163dde344a8dfc9523ae7c787d-5728f2a1c5211946-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "0d9ef1eed439a6883a4098837e3a62f9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "202a193e-7278-43fc-b4fc-9f8eab231dcf", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:19:56 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "202a193e-7278-43fc-b4fc-9f8eab231dcf", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "202a193e-7278-43fc-b4fc-9f8eab231dcf", + "x-ms-ratelimit-remaining-tenant-reads": "11956", + "x-ms-request-id": "westus2:202a193e-7278-43fc-b4fc-9f8eab231dcf", + "x-ms-routing-request-id": "WESTUS2:20210712T031957Z:202a193e-7278-43fc-b4fc-9f8eab231dcf" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226", + "name": "mgmt-group-9226", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-033959163dde344a8dfc9523ae7c787d-97bd4f557bacad44-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "f981103a6bdf2083357f2690355541f1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "9a283203-9172-4421-9da6-dc81fd94bb29", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:19:57 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "9a283203-9172-4421-9da6-dc81fd94bb29", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9a283203-9172-4421-9da6-dc81fd94bb29", + "x-ms-ratelimit-remaining-tenant-reads": "11955", + "x-ms-request-id": "westus2:9a283203-9172-4421-9da6-dc81fd94bb29", + "x-ms-routing-request-id": "WESTUS2:20210712T031958Z:9a283203-9172-4421-9da6-dc81fd94bb29" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226", + "name": "mgmt-group-9226", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-033959163dde344a8dfc9523ae7c787d-1e92b303e98d3d49-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "347f4b423388c61427857b86923239f9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "c586f293-3152-42cb-9195-0d072d5da195", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:19:59 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "c586f293-3152-42cb-9195-0d072d5da195", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c586f293-3152-42cb-9195-0d072d5da195", + "x-ms-ratelimit-remaining-tenant-reads": "11954", + "x-ms-request-id": "westus2:c586f293-3152-42cb-9195-0d072d5da195", + "x-ms-routing-request-id": "WESTUS2:20210712T031959Z:c586f293-3152-42cb-9195-0d072d5da195" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226", + "name": "mgmt-group-9226", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-033959163dde344a8dfc9523ae7c787d-0e48d3e7e2dee647-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "34f97cd88073821b6e7ed7baaef771e4", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "client-request-id": "6a43b9dc-5115-4f5f-b4a8-8fb4a81c01fc", + "Content-Length": "382", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:20:00 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "request-id": "6a43b9dc-5115-4f5f-b4a8-8fb4a81c01fc", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6a43b9dc-5115-4f5f-b4a8-8fb4a81c01fc", + "x-ms-ratelimit-remaining-tenant-reads": "11953", + "x-ms-request-id": "westus2:6a43b9dc-5115-4f5f-b4a8-8fb4a81c01fc", + "x-ms-routing-request-id": "WESTUS2:20210712T032000Z:6a43b9dc-5115-4f5f-b4a8-8fb4a81c01fc" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-9226", + "name": "mgmt-group-9226", + "status": "Succeeded", + "properties": { + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "mgmt-group-9226", + "details": { + "version": 1, + "updatedTime": "2021-07-12T03:19:41.9164048Z", + "updatedBy": "3b10dae3-28cf-49a7-a8df-8fbae3e77f27" + } + } + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-033959163dde344a8dfc9523ae7c787d-b406459d6582c041-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "3240a7fe2eba0671fcbad25af0fc8d03", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "client-request-id": "d170d9f7-07af-4916-8669-74da3113aea7", + "Content-Length": "565", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:20:00 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "request-id": "d170d9f7-07af-4916-8669-74da3113aea7", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d170d9f7-07af-4916-8669-74da3113aea7", + "x-ms-ratelimit-remaining-tenant-reads": "11952", + "x-ms-request-id": "westus2:d170d9f7-07af-4916-8669-74da3113aea7", + "x-ms-routing-request-id": "WESTUS2:20210712T032000Z:d170d9f7-07af-4916-8669-74da3113aea7" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/managementGroups/mgmt-group-9226", + "type": "Microsoft.Management/managementGroups", + "name": "mgmt-group-9226", + "properties": { + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "mgmt-group-9226", + "details": { + "version": 1, + "updatedTime": "2021-07-12T03:19:41.9164048Z", + "updatedBy": "3b10dae3-28cf-49a7-a8df-8fbae3e77f27", + "parent": { + "id": "/providers/Microsoft.Management/managementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47", + "name": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } + } + } + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-931edae62420f841b354a51d12c51dd5-a3b04b3ed83caf4e-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "b8b82d450c5cc27d30fcc5095c59172f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "57e47c0b-27bd-4766-b94e-6aed40105fac", + "Content-Length": "167", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:20:01 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "57e47c0b-27bd-4766-b94e-6aed40105fac", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "57e47c0b-27bd-4766-b94e-6aed40105fac", + "x-ms-ratelimit-remaining-managementgroups-requests": "59", + "x-ms-ratelimit-remaining-tenant-deletes": "14999", + "x-ms-request-id": "westus2:57e47c0b-27bd-4766-b94e-6aed40105fac", + "x-ms-routing-request-id": "WESTUS2:20210712T032001Z:57e47c0b-27bd-4766-b94e-6aed40105fac" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/managementGroups/mgmt-group-9226", + "type": "Microsoft.Management/managementGroups", + "name": "mgmt-group-9226", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "8174d4f1b93ef288297e02be6867aaa2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "27f2716e-ed26-4fe9-bf81-de8940413122", + "Content-Length": "166", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:20:01 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "27f2716e-ed26-4fe9-bf81-de8940413122", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "27f2716e-ed26-4fe9-bf81-de8940413122", + "x-ms-ratelimit-remaining-tenant-reads": "11951", + "x-ms-request-id": "westus2:27f2716e-ed26-4fe9-bf81-de8940413122", + "x-ms-routing-request-id": "WESTUS2:20210712T032001Z:27f2716e-ed26-4fe9-bf81-de8940413122" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-9226", + "name": "mgmt-group-9226", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "5945a2a3a2743e11ef0eac69d4c4136f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "b5fb1537-f3d0-46df-a3d5-8cbbde609f1f", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:20:02 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "b5fb1537-f3d0-46df-a3d5-8cbbde609f1f", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b5fb1537-f3d0-46df-a3d5-8cbbde609f1f", + "x-ms-ratelimit-remaining-tenant-reads": "11950", + "x-ms-request-id": "westus2:b5fb1537-f3d0-46df-a3d5-8cbbde609f1f", + "x-ms-routing-request-id": "WESTUS2:20210712T032002Z:b5fb1537-f3d0-46df-a3d5-8cbbde609f1f" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-9226", + "name": "mgmt-group-9226", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "8817546a96e55bf00d95c173047f40a3", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "50cba311-6e08-44a0-b626-3342f5112550", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:20:03 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "50cba311-6e08-44a0-b626-3342f5112550", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "50cba311-6e08-44a0-b626-3342f5112550", + "x-ms-ratelimit-remaining-tenant-reads": "11949", + "x-ms-request-id": "westus2:50cba311-6e08-44a0-b626-3342f5112550", + "x-ms-routing-request-id": "WESTUS2:20210712T032003Z:50cba311-6e08-44a0-b626-3342f5112550" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-9226", + "name": "mgmt-group-9226", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "0c159648387b4ffcc235922f0c1f1e65", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "9f40eb0b-2879-4cf6-bbd6-d62a94c50283", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:20:04 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "9f40eb0b-2879-4cf6-bbd6-d62a94c50283", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9f40eb0b-2879-4cf6-bbd6-d62a94c50283", + "x-ms-ratelimit-remaining-tenant-reads": "11948", + "x-ms-request-id": "westus2:9f40eb0b-2879-4cf6-bbd6-d62a94c50283", + "x-ms-routing-request-id": "WESTUS2:20210712T032004Z:9f40eb0b-2879-4cf6-bbd6-d62a94c50283" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-9226", + "name": "mgmt-group-9226", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "1454936a214f0cbdb1ea4cdfe09d3a6f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "f0667d8f-2c7b-4d4c-922e-a27060fc601c", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:20:05 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "f0667d8f-2c7b-4d4c-922e-a27060fc601c", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f0667d8f-2c7b-4d4c-922e-a27060fc601c", + "x-ms-ratelimit-remaining-tenant-reads": "11947", + "x-ms-request-id": "westus2:f0667d8f-2c7b-4d4c-922e-a27060fc601c", + "x-ms-routing-request-id": "WESTUS2:20210712T032005Z:f0667d8f-2c7b-4d4c-922e-a27060fc601c" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-9226", + "name": "mgmt-group-9226", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "3d2008cd07ae31f457c8c5af04c04eee", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "94c9f2e9-3ef8-43fc-99c8-0df889764cbc", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:20:06 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "94c9f2e9-3ef8-43fc-99c8-0df889764cbc", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "94c9f2e9-3ef8-43fc-99c8-0df889764cbc", + "x-ms-ratelimit-remaining-tenant-reads": "11946", + "x-ms-request-id": "westus2:94c9f2e9-3ef8-43fc-99c8-0df889764cbc", + "x-ms-routing-request-id": "WESTUS2:20210712T032007Z:94c9f2e9-3ef8-43fc-99c8-0df889764cbc" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-9226", + "name": "mgmt-group-9226", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "71095b772c2b2654d9095a90ec1d6e25", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "ae1e58f8-8da2-48df-8538-3441b126070b", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:20:07 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "ae1e58f8-8da2-48df-8538-3441b126070b", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ae1e58f8-8da2-48df-8538-3441b126070b", + "x-ms-ratelimit-remaining-tenant-reads": "11945", + "x-ms-request-id": "westus2:ae1e58f8-8da2-48df-8538-3441b126070b", + "x-ms-routing-request-id": "WESTUS2:20210712T032008Z:ae1e58f8-8da2-48df-8538-3441b126070b" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-9226", + "name": "mgmt-group-9226", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "036123fbe0ff63b69f22bc875c0d08f1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "81c95841-7320-49f7-a4a3-d4c7c5555b87", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:20:08 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "81c95841-7320-49f7-a4a3-d4c7c5555b87", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "81c95841-7320-49f7-a4a3-d4c7c5555b87", + "x-ms-ratelimit-remaining-tenant-reads": "11944", + "x-ms-request-id": "westus2:81c95841-7320-49f7-a4a3-d4c7c5555b87", + "x-ms-routing-request-id": "WESTUS2:20210712T032009Z:81c95841-7320-49f7-a4a3-d4c7c5555b87" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-9226", + "name": "mgmt-group-9226", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "84685d9bc994a143b4f964a5ad63443a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "65ff8d58-23ac-45c8-8a7b-e631805d06bc", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:20:10 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "65ff8d58-23ac-45c8-8a7b-e631805d06bc", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "65ff8d58-23ac-45c8-8a7b-e631805d06bc", + "x-ms-ratelimit-remaining-tenant-reads": "11943", + "x-ms-request-id": "westus2:65ff8d58-23ac-45c8-8a7b-e631805d06bc", + "x-ms-routing-request-id": "WESTUS2:20210712T032010Z:65ff8d58-23ac-45c8-8a7b-e631805d06bc" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-9226", + "name": "mgmt-group-9226", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "e0b3a05a4b5e97efa5a5d2096fcccacb", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "62349efb-c75d-474e-a0a8-8b0ab1ea22b0", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:20:11 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "62349efb-c75d-474e-a0a8-8b0ab1ea22b0", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "62349efb-c75d-474e-a0a8-8b0ab1ea22b0", + "x-ms-ratelimit-remaining-tenant-reads": "11942", + "x-ms-request-id": "westus2:62349efb-c75d-474e-a0a8-8b0ab1ea22b0", + "x-ms-routing-request-id": "WESTUS2:20210712T032011Z:62349efb-c75d-474e-a0a8-8b0ab1ea22b0" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-9226", + "name": "mgmt-group-9226", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "8ef46900e9b43290dfc04e057b11b63b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "client-request-id": "18a3a08f-0ec1-4203-86ef-3ef08502de8a", + "Content-Length": "165", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:20:12 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "request-id": "18a3a08f-0ec1-4203-86ef-3ef08502de8a", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "18a3a08f-0ec1-4203-86ef-3ef08502de8a", + "x-ms-ratelimit-remaining-tenant-reads": "11941", + "x-ms-request-id": "westus2:18a3a08f-0ec1-4203-86ef-3ef08502de8a", + "x-ms-routing-request-id": "WESTUS2:20210712T032012Z:18a3a08f-0ec1-4203-86ef-3ef08502de8a" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-9226", + "name": "mgmt-group-9226", + "status": "Succeeded" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/mgmt-group-9226?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-2620d383932afc40a144f37cb53eb0ce-b034fd7c8bc4f943-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "bb2d82dd275a50926ed1dfeef73a31e7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "client-request-id": "cf36a220-c25c-42b1-80cd-77d617ca971c", + "Content-Length": "133", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:20:12 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "request-id": "cf36a220-c25c-42b1-80cd-77d617ca971c", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "cf36a220-c25c-42b1-80cd-77d617ca971c", + "x-ms-ratelimit-remaining-tenant-reads": "11940", + "x-ms-request-id": "westus2:cf36a220-c25c-42b1-80cd-77d617ca971c", + "x-ms-routing-request-id": "WESTUS2:20210712T032012Z:cf36a220-c25c-42b1-80cd-77d617ca971c" + }, + "ResponseBody": { + "error": { + "code": "NotFound", + "message": "\u0027/providers/Microsoft.Management/managementGroups/mgmt-group-9226\u0027 not found", + "details": null + } + } + } + ], + "Variables": { + "RandomSeed": "603385006", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupOperationsTests/StartDeleteAsync.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupOperationsTests/StartDeleteAsync.json new file mode 100644 index 0000000000000..3509784ea3510 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupOperationsTests/StartDeleteAsync.json @@ -0,0 +1,1354 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "7b35adf085f2db049510b210c3190951", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "450", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:28:07 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "96bcbf71-092f-4ee4-a598-11426b1c0ffa", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-request-id": "96bcbf71-092f-4ee4-a598-11426b1c0ffa", + "x-ms-routing-request-id": "WESTUS2:20210712T032808Z:96bcbf71-092f-4ee4-a598-11426b1c0ffa" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "tagKey1": "tagValue1", + "tagKey2": "tagValue2" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "17", + "Content-Type": "application/json", + "traceparent": "00-c5b5e6e28bce5c4b86461e74a51d08dd-9d30051776568a43-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "1309d889d0bb47d1fe4e830b2fc9580b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": {} + }, + "StatusCode": 202, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "cef715c4-c38d-4743-8103-bb4b4cb88a03", + "Content-Length": "167", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:28:08 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "cef715c4-c38d-4743-8103-bb4b4cb88a03", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "cef715c4-c38d-4743-8103-bb4b4cb88a03", + "x-ms-ratelimit-remaining-managementgroups-requests": "58", + "x-ms-ratelimit-remaining-tenant-writes": "1198", + "x-ms-request-id": "westus2:cef715c4-c38d-4743-8103-bb4b4cb88a03", + "x-ms-routing-request-id": "WESTUS2:20210712T032808Z:cef715c4-c38d-4743-8103-bb4b4cb88a03" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/managementGroups/mgmt-group-1803", + "type": "Microsoft.Management/managementGroups", + "name": "mgmt-group-1803", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-c5b5e6e28bce5c4b86461e74a51d08dd-3b9a0661dc454e4c-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "d135c345a938dd346434f33781cf6547", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "464e6a30-993b-4a20-b5b2-eb63473b6aa7", + "Content-Length": "166", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:28:08 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "464e6a30-993b-4a20-b5b2-eb63473b6aa7", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "464e6a30-993b-4a20-b5b2-eb63473b6aa7", + "x-ms-ratelimit-remaining-tenant-reads": "11977", + "x-ms-request-id": "westus2:464e6a30-993b-4a20-b5b2-eb63473b6aa7", + "x-ms-routing-request-id": "WESTUS2:20210712T032808Z:464e6a30-993b-4a20-b5b2-eb63473b6aa7" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803", + "name": "mgmt-group-1803", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-c5b5e6e28bce5c4b86461e74a51d08dd-cd41d7ff2ade194c-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "af03055a360ff86c0b71c8a45c1b7229", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "0475a8b4-0627-4910-bdb8-c3b0d6ba0f98", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:28:09 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "0475a8b4-0627-4910-bdb8-c3b0d6ba0f98", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0475a8b4-0627-4910-bdb8-c3b0d6ba0f98", + "x-ms-ratelimit-remaining-tenant-reads": "11976", + "x-ms-request-id": "westus2:0475a8b4-0627-4910-bdb8-c3b0d6ba0f98", + "x-ms-routing-request-id": "WESTUS2:20210712T032810Z:0475a8b4-0627-4910-bdb8-c3b0d6ba0f98" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803", + "name": "mgmt-group-1803", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-c5b5e6e28bce5c4b86461e74a51d08dd-f5662d466c172d4d-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "6bc5dcfe869315d2351cb6eb9d95167b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "157c5816-a24e-4ffa-a7e8-8adca3f88d57", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:28:10 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "157c5816-a24e-4ffa-a7e8-8adca3f88d57", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "157c5816-a24e-4ffa-a7e8-8adca3f88d57", + "x-ms-ratelimit-remaining-tenant-reads": "11975", + "x-ms-request-id": "westus2:157c5816-a24e-4ffa-a7e8-8adca3f88d57", + "x-ms-routing-request-id": "WESTUS2:20210712T032811Z:157c5816-a24e-4ffa-a7e8-8adca3f88d57" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803", + "name": "mgmt-group-1803", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-c5b5e6e28bce5c4b86461e74a51d08dd-c251804690118949-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "d05b2cb1a0d10f97573dc6c6e18f8149", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "82ea3d6d-2a9d-4baa-b5ee-ad411cf9cce4", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:28:11 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "82ea3d6d-2a9d-4baa-b5ee-ad411cf9cce4", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "82ea3d6d-2a9d-4baa-b5ee-ad411cf9cce4", + "x-ms-ratelimit-remaining-tenant-reads": "11974", + "x-ms-request-id": "westus2:82ea3d6d-2a9d-4baa-b5ee-ad411cf9cce4", + "x-ms-routing-request-id": "WESTUS2:20210712T032812Z:82ea3d6d-2a9d-4baa-b5ee-ad411cf9cce4" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803", + "name": "mgmt-group-1803", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-c5b5e6e28bce5c4b86461e74a51d08dd-bc8b74c569da064f-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "a439cac2fa0ad3b332ee7af280805a75", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "e876497b-946b-4970-8b3e-5b0b21ba57cc", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:28:12 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "e876497b-946b-4970-8b3e-5b0b21ba57cc", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e876497b-946b-4970-8b3e-5b0b21ba57cc", + "x-ms-ratelimit-remaining-tenant-reads": "11973", + "x-ms-request-id": "westus2:e876497b-946b-4970-8b3e-5b0b21ba57cc", + "x-ms-routing-request-id": "WESTUS2:20210712T032813Z:e876497b-946b-4970-8b3e-5b0b21ba57cc" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803", + "name": "mgmt-group-1803", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-c5b5e6e28bce5c4b86461e74a51d08dd-1ef81f1f33991b4e-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "2ff34d5ba1bf5e5745b61456bf0b34a5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "1d96cf47-dfb1-45b2-95bb-f929095d5920", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:28:13 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "1d96cf47-dfb1-45b2-95bb-f929095d5920", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1d96cf47-dfb1-45b2-95bb-f929095d5920", + "x-ms-ratelimit-remaining-tenant-reads": "11972", + "x-ms-request-id": "westus2:1d96cf47-dfb1-45b2-95bb-f929095d5920", + "x-ms-routing-request-id": "WESTUS2:20210712T032814Z:1d96cf47-dfb1-45b2-95bb-f929095d5920" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803", + "name": "mgmt-group-1803", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-c5b5e6e28bce5c4b86461e74a51d08dd-11e27270bfca3e45-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "d2296c9b715cb77179879de325a48ed7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "411a40a9-8826-44b8-8063-1efc566f5dd4", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:28:15 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "411a40a9-8826-44b8-8063-1efc566f5dd4", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "411a40a9-8826-44b8-8063-1efc566f5dd4", + "x-ms-ratelimit-remaining-tenant-reads": "11971", + "x-ms-request-id": "westus2:411a40a9-8826-44b8-8063-1efc566f5dd4", + "x-ms-routing-request-id": "WESTUS2:20210712T032815Z:411a40a9-8826-44b8-8063-1efc566f5dd4" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803", + "name": "mgmt-group-1803", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-c5b5e6e28bce5c4b86461e74a51d08dd-0404f5ca56600447-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "936b51e2519b208972db5e53e55c1326", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "805c5d95-d049-4a60-8b4a-fc84111e9245", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:28:16 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "805c5d95-d049-4a60-8b4a-fc84111e9245", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "805c5d95-d049-4a60-8b4a-fc84111e9245", + "x-ms-ratelimit-remaining-tenant-reads": "11970", + "x-ms-request-id": "westus2:805c5d95-d049-4a60-8b4a-fc84111e9245", + "x-ms-routing-request-id": "WESTUS2:20210712T032816Z:805c5d95-d049-4a60-8b4a-fc84111e9245" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803", + "name": "mgmt-group-1803", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-c5b5e6e28bce5c4b86461e74a51d08dd-b7f1c2afcabd7b4f-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "1357d4b98757e919dc3cb637047438a1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "869c4d01-e214-428e-b058-89de8aa7dbcf", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:28:17 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "869c4d01-e214-428e-b058-89de8aa7dbcf", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "869c4d01-e214-428e-b058-89de8aa7dbcf", + "x-ms-ratelimit-remaining-tenant-reads": "11969", + "x-ms-request-id": "westus2:869c4d01-e214-428e-b058-89de8aa7dbcf", + "x-ms-routing-request-id": "WESTUS2:20210712T032817Z:869c4d01-e214-428e-b058-89de8aa7dbcf" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803", + "name": "mgmt-group-1803", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-c5b5e6e28bce5c4b86461e74a51d08dd-5c7a56d87b73914a-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "6e743d27a1a04a0ae3095f80121dd11c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "beb9bd3d-f25c-49aa-9085-ad59350e0ee7", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:28:18 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "beb9bd3d-f25c-49aa-9085-ad59350e0ee7", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "beb9bd3d-f25c-49aa-9085-ad59350e0ee7", + "x-ms-ratelimit-remaining-tenant-reads": "11968", + "x-ms-request-id": "westus2:beb9bd3d-f25c-49aa-9085-ad59350e0ee7", + "x-ms-routing-request-id": "WESTUS2:20210712T032819Z:beb9bd3d-f25c-49aa-9085-ad59350e0ee7" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803", + "name": "mgmt-group-1803", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-c5b5e6e28bce5c4b86461e74a51d08dd-3c03c20d0fc1804b-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "512977747a4d5a803881b65e9a521cfe", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "7749010e-fbe4-467a-b5a1-42de652d2fa6", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:28:19 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "7749010e-fbe4-467a-b5a1-42de652d2fa6", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7749010e-fbe4-467a-b5a1-42de652d2fa6", + "x-ms-ratelimit-remaining-tenant-reads": "11967", + "x-ms-request-id": "westus2:7749010e-fbe4-467a-b5a1-42de652d2fa6", + "x-ms-routing-request-id": "WESTUS2:20210712T032820Z:7749010e-fbe4-467a-b5a1-42de652d2fa6" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803", + "name": "mgmt-group-1803", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-c5b5e6e28bce5c4b86461e74a51d08dd-51660bf6a9587748-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "a82bbda2a5e71885ca0c304d2898d7bf", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "f38f418e-9afb-4e50-af75-acfee9def033", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:28:20 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "f38f418e-9afb-4e50-af75-acfee9def033", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f38f418e-9afb-4e50-af75-acfee9def033", + "x-ms-ratelimit-remaining-tenant-reads": "11966", + "x-ms-request-id": "westus2:f38f418e-9afb-4e50-af75-acfee9def033", + "x-ms-routing-request-id": "WESTUS2:20210712T032821Z:f38f418e-9afb-4e50-af75-acfee9def033" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803", + "name": "mgmt-group-1803", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-c5b5e6e28bce5c4b86461e74a51d08dd-338507768814aa49-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "8cc39a6be74aad54bd1a361feaabaf91", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "b44d191d-e194-4e73-834f-34b61c8a3002", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:28:21 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "b44d191d-e194-4e73-834f-34b61c8a3002", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b44d191d-e194-4e73-834f-34b61c8a3002", + "x-ms-ratelimit-remaining-tenant-reads": "11965", + "x-ms-request-id": "westus2:b44d191d-e194-4e73-834f-34b61c8a3002", + "x-ms-routing-request-id": "WESTUS2:20210712T032822Z:b44d191d-e194-4e73-834f-34b61c8a3002" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803", + "name": "mgmt-group-1803", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-c5b5e6e28bce5c4b86461e74a51d08dd-2468f6d4a653004d-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "55de61ed28f1ce34f11186404a3232a0", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "f2e1029c-7d06-40bd-ac1a-307767f1ac33", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:28:22 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "f2e1029c-7d06-40bd-ac1a-307767f1ac33", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f2e1029c-7d06-40bd-ac1a-307767f1ac33", + "x-ms-ratelimit-remaining-tenant-reads": "11964", + "x-ms-request-id": "westus2:f2e1029c-7d06-40bd-ac1a-307767f1ac33", + "x-ms-routing-request-id": "WESTUS2:20210712T032823Z:f2e1029c-7d06-40bd-ac1a-307767f1ac33" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803", + "name": "mgmt-group-1803", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-c5b5e6e28bce5c4b86461e74a51d08dd-e8dc979370029b48-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "00f3f7aa8f8ebbb3687eebcd6f662e1e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "ebf181b9-9d33-40a5-aa42-27243c763e44", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:28:23 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "ebf181b9-9d33-40a5-aa42-27243c763e44", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ebf181b9-9d33-40a5-aa42-27243c763e44", + "x-ms-ratelimit-remaining-tenant-reads": "11963", + "x-ms-request-id": "westus2:ebf181b9-9d33-40a5-aa42-27243c763e44", + "x-ms-routing-request-id": "WESTUS2:20210712T032824Z:ebf181b9-9d33-40a5-aa42-27243c763e44" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803", + "name": "mgmt-group-1803", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-c5b5e6e28bce5c4b86461e74a51d08dd-2184250b8848da4d-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "c6609f5c81ba42ce65f49b396013638a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "e6aba003-85bf-46b3-b323-e5bebec03957", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:28:25 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "e6aba003-85bf-46b3-b323-e5bebec03957", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e6aba003-85bf-46b3-b323-e5bebec03957", + "x-ms-ratelimit-remaining-tenant-reads": "11962", + "x-ms-request-id": "westus2:e6aba003-85bf-46b3-b323-e5bebec03957", + "x-ms-routing-request-id": "WESTUS2:20210712T032825Z:e6aba003-85bf-46b3-b323-e5bebec03957" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803", + "name": "mgmt-group-1803", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-c5b5e6e28bce5c4b86461e74a51d08dd-40be601187985541-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "f27496e7afb75d02ad22ec723d665f8a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "5f6b0d8d-830f-43c0-adb3-5c3fb6ccabd1", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:28:26 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "5f6b0d8d-830f-43c0-adb3-5c3fb6ccabd1", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5f6b0d8d-830f-43c0-adb3-5c3fb6ccabd1", + "x-ms-ratelimit-remaining-tenant-reads": "11961", + "x-ms-request-id": "westus2:5f6b0d8d-830f-43c0-adb3-5c3fb6ccabd1", + "x-ms-routing-request-id": "WESTUS2:20210712T032826Z:5f6b0d8d-830f-43c0-adb3-5c3fb6ccabd1" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803", + "name": "mgmt-group-1803", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-c5b5e6e28bce5c4b86461e74a51d08dd-2b210ef467f1f94d-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "aae367e36bd128e529b19a9af47a5b55", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "c114ef32-8a8c-4188-95e9-697fc05f3301", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:28:27 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "c114ef32-8a8c-4188-95e9-697fc05f3301", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c114ef32-8a8c-4188-95e9-697fc05f3301", + "x-ms-ratelimit-remaining-tenant-reads": "11960", + "x-ms-request-id": "westus2:c114ef32-8a8c-4188-95e9-697fc05f3301", + "x-ms-routing-request-id": "WESTUS2:20210712T032828Z:c114ef32-8a8c-4188-95e9-697fc05f3301" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803", + "name": "mgmt-group-1803", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-c5b5e6e28bce5c4b86461e74a51d08dd-19c2a687c1aee144-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "d8e6601b3bf2ac679c031997955b05fe", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "6b5bfa7b-f946-46df-b3da-deae72b995c8", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:28:28 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "6b5bfa7b-f946-46df-b3da-deae72b995c8", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6b5bfa7b-f946-46df-b3da-deae72b995c8", + "x-ms-ratelimit-remaining-tenant-reads": "11959", + "x-ms-request-id": "westus2:6b5bfa7b-f946-46df-b3da-deae72b995c8", + "x-ms-routing-request-id": "WESTUS2:20210712T032829Z:6b5bfa7b-f946-46df-b3da-deae72b995c8" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803", + "name": "mgmt-group-1803", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-c5b5e6e28bce5c4b86461e74a51d08dd-43f1cb35f1e2c947-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "f8551095b8307bb9b04cc80615686932", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "865a8409-514c-4c27-8577-60fecca7f358", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:28:29 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "865a8409-514c-4c27-8577-60fecca7f358", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "865a8409-514c-4c27-8577-60fecca7f358", + "x-ms-ratelimit-remaining-tenant-reads": "11958", + "x-ms-request-id": "westus2:865a8409-514c-4c27-8577-60fecca7f358", + "x-ms-routing-request-id": "WESTUS2:20210712T032830Z:865a8409-514c-4c27-8577-60fecca7f358" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803", + "name": "mgmt-group-1803", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-c5b5e6e28bce5c4b86461e74a51d08dd-efa09609101c334b-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "dd5797c78680a79800360ece524e93ce", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "7d737a53-bfed-4f4d-8a04-cd4ed6e5d0fa", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:28:30 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "7d737a53-bfed-4f4d-8a04-cd4ed6e5d0fa", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7d737a53-bfed-4f4d-8a04-cd4ed6e5d0fa", + "x-ms-ratelimit-remaining-tenant-reads": "11957", + "x-ms-request-id": "westus2:7d737a53-bfed-4f4d-8a04-cd4ed6e5d0fa", + "x-ms-routing-request-id": "WESTUS2:20210712T032831Z:7d737a53-bfed-4f4d-8a04-cd4ed6e5d0fa" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803", + "name": "mgmt-group-1803", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-c5b5e6e28bce5c4b86461e74a51d08dd-8815ebc9648e584e-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "e3049cac63246224a76a28a572609734", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "client-request-id": "57f6b869-1d4d-4e6e-a676-1649955c600f", + "Content-Length": "382", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:28:32 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "request-id": "57f6b869-1d4d-4e6e-a676-1649955c600f", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "57f6b869-1d4d-4e6e-a676-1649955c600f", + "x-ms-ratelimit-remaining-tenant-reads": "11956", + "x-ms-request-id": "westus2:57f6b869-1d4d-4e6e-a676-1649955c600f", + "x-ms-routing-request-id": "WESTUS2:20210712T032833Z:57f6b869-1d4d-4e6e-a676-1649955c600f" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-1803", + "name": "mgmt-group-1803", + "status": "Succeeded", + "properties": { + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "mgmt-group-1803", + "details": { + "version": 1, + "updatedTime": "2021-07-12T03:28:15.7177604Z", + "updatedBy": "3b10dae3-28cf-49a7-a8df-8fbae3e77f27" + } + } + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-c5b5e6e28bce5c4b86461e74a51d08dd-7d3263e703041a40-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "fdd0e69a27030e7d78aef7f9aaea2961", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "client-request-id": "a1677263-b01b-4461-a9c1-bc9aff9cb1bc", + "Content-Length": "565", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:28:32 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "request-id": "a1677263-b01b-4461-a9c1-bc9aff9cb1bc", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a1677263-b01b-4461-a9c1-bc9aff9cb1bc", + "x-ms-ratelimit-remaining-tenant-reads": "11955", + "x-ms-request-id": "westus2:a1677263-b01b-4461-a9c1-bc9aff9cb1bc", + "x-ms-routing-request-id": "WESTUS2:20210712T032833Z:a1677263-b01b-4461-a9c1-bc9aff9cb1bc" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/managementGroups/mgmt-group-1803", + "type": "Microsoft.Management/managementGroups", + "name": "mgmt-group-1803", + "properties": { + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "mgmt-group-1803", + "details": { + "version": 1, + "updatedTime": "2021-07-12T03:28:15.7177604Z", + "updatedBy": "3b10dae3-28cf-49a7-a8df-8fbae3e77f27", + "parent": { + "id": "/providers/Microsoft.Management/managementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47", + "name": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } + } + } + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-52f71155f29008459593095a20b92943-4ba342151c5fcd46-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "795afab98563640e72f435165ef234a0", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "45dd4916-bb25-4186-9cce-5c9a40b609fa", + "Content-Length": "167", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:28:33 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "45dd4916-bb25-4186-9cce-5c9a40b609fa", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "45dd4916-bb25-4186-9cce-5c9a40b609fa", + "x-ms-ratelimit-remaining-managementgroups-requests": "59", + "x-ms-ratelimit-remaining-tenant-deletes": "14999", + "x-ms-request-id": "westus2:45dd4916-bb25-4186-9cce-5c9a40b609fa", + "x-ms-routing-request-id": "WESTUS2:20210712T032834Z:45dd4916-bb25-4186-9cce-5c9a40b609fa" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/managementGroups/mgmt-group-1803", + "type": "Microsoft.Management/managementGroups", + "name": "mgmt-group-1803", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "77ecc6411e0514d0d76c8b0ef167b085", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "4407091b-07df-4b3b-b536-0ea84c8b23bd", + "Content-Length": "166", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:28:33 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "4407091b-07df-4b3b-b536-0ea84c8b23bd", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4407091b-07df-4b3b-b536-0ea84c8b23bd", + "x-ms-ratelimit-remaining-tenant-reads": "11954", + "x-ms-request-id": "westus2:4407091b-07df-4b3b-b536-0ea84c8b23bd", + "x-ms-routing-request-id": "WESTUS2:20210712T032834Z:4407091b-07df-4b3b-b536-0ea84c8b23bd" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-1803", + "name": "mgmt-group-1803", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "d05a5779bcb623e330d65b6d1997f847", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "9e7a6ffe-b0a8-4d43-a41b-2b9227e0ec7e", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:28:34 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "9e7a6ffe-b0a8-4d43-a41b-2b9227e0ec7e", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9e7a6ffe-b0a8-4d43-a41b-2b9227e0ec7e", + "x-ms-ratelimit-remaining-tenant-reads": "11953", + "x-ms-request-id": "westus2:9e7a6ffe-b0a8-4d43-a41b-2b9227e0ec7e", + "x-ms-routing-request-id": "WESTUS2:20210712T032835Z:9e7a6ffe-b0a8-4d43-a41b-2b9227e0ec7e" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-1803", + "name": "mgmt-group-1803", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "97d5793cbc06809a081f94110abb92b6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "de7e64be-3817-47a8-9831-ba6918fe1774", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:28:35 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "de7e64be-3817-47a8-9831-ba6918fe1774", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "de7e64be-3817-47a8-9831-ba6918fe1774", + "x-ms-ratelimit-remaining-tenant-reads": "11952", + "x-ms-request-id": "westus2:de7e64be-3817-47a8-9831-ba6918fe1774", + "x-ms-routing-request-id": "WESTUS2:20210712T032836Z:de7e64be-3817-47a8-9831-ba6918fe1774" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-1803", + "name": "mgmt-group-1803", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "14fce645e7d18405e2c8472fc363fa40", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "a19eb7ec-c21c-4055-8ebc-42384e974f77", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:28:37 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "a19eb7ec-c21c-4055-8ebc-42384e974f77", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a19eb7ec-c21c-4055-8ebc-42384e974f77", + "x-ms-ratelimit-remaining-tenant-reads": "11951", + "x-ms-request-id": "westus2:a19eb7ec-c21c-4055-8ebc-42384e974f77", + "x-ms-routing-request-id": "WESTUS2:20210712T032837Z:a19eb7ec-c21c-4055-8ebc-42384e974f77" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-1803", + "name": "mgmt-group-1803", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "78d243731992bc7ebdd9c89628d21974", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "e90dcb04-5da4-491c-a41d-48782d19e179", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:28:38 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "e90dcb04-5da4-491c-a41d-48782d19e179", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e90dcb04-5da4-491c-a41d-48782d19e179", + "x-ms-ratelimit-remaining-tenant-reads": "11950", + "x-ms-request-id": "westus2:e90dcb04-5da4-491c-a41d-48782d19e179", + "x-ms-routing-request-id": "WESTUS2:20210712T032838Z:e90dcb04-5da4-491c-a41d-48782d19e179" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-1803", + "name": "mgmt-group-1803", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "3328a444e49b54767350b43e756abda5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "31b59b18-0f5c-4c6a-9533-e1efed408072", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:28:39 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "31b59b18-0f5c-4c6a-9533-e1efed408072", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "31b59b18-0f5c-4c6a-9533-e1efed408072", + "x-ms-ratelimit-remaining-tenant-reads": "11949", + "x-ms-request-id": "westus2:31b59b18-0f5c-4c6a-9533-e1efed408072", + "x-ms-routing-request-id": "WESTUS2:20210712T032839Z:31b59b18-0f5c-4c6a-9533-e1efed408072" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-1803", + "name": "mgmt-group-1803", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "c69d542419e82c24674056f71f6e5c10", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "client-request-id": "f24c2420-892d-4e99-ada1-42be0e5465fb", + "Content-Length": "165", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:28:40 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "request-id": "f24c2420-892d-4e99-ada1-42be0e5465fb", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f24c2420-892d-4e99-ada1-42be0e5465fb", + "x-ms-ratelimit-remaining-tenant-reads": "11948", + "x-ms-request-id": "westus2:f24c2420-892d-4e99-ada1-42be0e5465fb", + "x-ms-routing-request-id": "WESTUS2:20210712T032840Z:f24c2420-892d-4e99-ada1-42be0e5465fb" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/mgmt-group-1803", + "name": "mgmt-group-1803", + "status": "Succeeded" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/mgmt-group-1803?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-2e7ff34c50d02e4aabff17883a2ffcfc-b8f7ced3dc6f5b49-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "1eead3afc63b8fa4cd7d044164404752", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "client-request-id": "90679f60-15c8-487c-a101-fa77e37b95ec", + "Content-Length": "133", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:28:41 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "request-id": "90679f60-15c8-487c-a101-fa77e37b95ec", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "90679f60-15c8-487c-a101-fa77e37b95ec", + "x-ms-ratelimit-remaining-tenant-reads": "11947", + "x-ms-request-id": "westus2:90679f60-15c8-487c-a101-fa77e37b95ec", + "x-ms-routing-request-id": "WESTUS2:20210712T032841Z:90679f60-15c8-487c-a101-fa77e37b95ec" + }, + "ResponseBody": { + "error": { + "code": "NotFound", + "message": "\u0027/providers/Microsoft.Management/managementGroups/mgmt-group-1803\u0027 not found", + "details": null + } + } + } + ], + "Variables": { + "RandomSeed": "157798411", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupOperationsTests/Update.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupOperationsTests/Update.json new file mode 100644 index 0000000000000..197d5d308e470 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupOperationsTests/Update.json @@ -0,0 +1,1068 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "868914fed861f20fdce46f7858e7ef22", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "450", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:22:59 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "19313002-cbbf-4708-b014-607a7508889f", + "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-request-id": "19313002-cbbf-4708-b014-607a7508889f", + "x-ms-routing-request-id": "WESTUS2:20210712T032300Z:19313002-cbbf-4708-b014-607a7508889f" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "tagKey1": "tagValue1", + "tagKey2": "tagValue2" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "17", + "Content-Type": "application/json", + "traceparent": "00-db3c49e90672fc43ae36d7e5023e7a31-0c9f41a4bc366944-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "d893b5a0b1ae7fa53dbb7731f0bef8a3", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": {} + }, + "StatusCode": 202, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "caef1f54-161c-4756-a867-d3a24cc22128", + "Content-Length": "167", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:23:00 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "caef1f54-161c-4756-a867-d3a24cc22128", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "caef1f54-161c-4756-a867-d3a24cc22128", + "x-ms-ratelimit-remaining-managementgroups-requests": "58", + "x-ms-ratelimit-remaining-tenant-writes": "1198", + "x-ms-request-id": "westus2:caef1f54-161c-4756-a867-d3a24cc22128", + "x-ms-routing-request-id": "WESTUS2:20210712T032300Z:caef1f54-161c-4756-a867-d3a24cc22128" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/managementGroups/mgmt-group-6022", + "type": "Microsoft.Management/managementGroups", + "name": "mgmt-group-6022", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-db3c49e90672fc43ae36d7e5023e7a31-9b013b47183c1946-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "20e784982c1a634fe306241c97c1ec25", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "7535cbee-4e92-4439-8044-207386f32f5d", + "Content-Length": "166", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:23:00 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "7535cbee-4e92-4439-8044-207386f32f5d", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7535cbee-4e92-4439-8044-207386f32f5d", + "x-ms-ratelimit-remaining-tenant-reads": "11972", + "x-ms-request-id": "westus2:7535cbee-4e92-4439-8044-207386f32f5d", + "x-ms-routing-request-id": "WESTUS2:20210712T032300Z:7535cbee-4e92-4439-8044-207386f32f5d" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022", + "name": "mgmt-group-6022", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-db3c49e90672fc43ae36d7e5023e7a31-da079d19507aa147-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "5812d577b0eeb6e892919af3f7ef68b9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "9c4fcee5-836e-4cab-b0d1-c23b28bb12d4", + "Content-Length": "166", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:23:01 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "9c4fcee5-836e-4cab-b0d1-c23b28bb12d4", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9c4fcee5-836e-4cab-b0d1-c23b28bb12d4", + "x-ms-ratelimit-remaining-tenant-reads": "11971", + "x-ms-request-id": "westus2:9c4fcee5-836e-4cab-b0d1-c23b28bb12d4", + "x-ms-routing-request-id": "WESTUS2:20210712T032301Z:9c4fcee5-836e-4cab-b0d1-c23b28bb12d4" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022", + "name": "mgmt-group-6022", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-db3c49e90672fc43ae36d7e5023e7a31-b14d64b9ef730545-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "6b99cef6d8d618883f9d8e22c6066a7c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "48cb070b-c781-48a0-b3ce-c19c277e3e19", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:23:02 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "48cb070b-c781-48a0-b3ce-c19c277e3e19", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "48cb070b-c781-48a0-b3ce-c19c277e3e19", + "x-ms-ratelimit-remaining-tenant-reads": "11970", + "x-ms-request-id": "westus2:48cb070b-c781-48a0-b3ce-c19c277e3e19", + "x-ms-routing-request-id": "WESTUS2:20210712T032303Z:48cb070b-c781-48a0-b3ce-c19c277e3e19" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022", + "name": "mgmt-group-6022", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-db3c49e90672fc43ae36d7e5023e7a31-5a435cf068f00441-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "413f93ce6c71e7ba9c318d89925c6bf4", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "3a9d3ce5-2181-4914-bb34-bf5e2c955644", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:23:03 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "3a9d3ce5-2181-4914-bb34-bf5e2c955644", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3a9d3ce5-2181-4914-bb34-bf5e2c955644", + "x-ms-ratelimit-remaining-tenant-reads": "11969", + "x-ms-request-id": "westus2:3a9d3ce5-2181-4914-bb34-bf5e2c955644", + "x-ms-routing-request-id": "WESTUS2:20210712T032304Z:3a9d3ce5-2181-4914-bb34-bf5e2c955644" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022", + "name": "mgmt-group-6022", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-db3c49e90672fc43ae36d7e5023e7a31-3be5a1b01afe0f4f-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "c8266b9d81289f4f4cfa185122c5f08c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "9fb7fac1-8a7e-43bb-985b-210d30a6a6b8", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:23:04 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "9fb7fac1-8a7e-43bb-985b-210d30a6a6b8", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9fb7fac1-8a7e-43bb-985b-210d30a6a6b8", + "x-ms-ratelimit-remaining-tenant-reads": "11968", + "x-ms-request-id": "westus2:9fb7fac1-8a7e-43bb-985b-210d30a6a6b8", + "x-ms-routing-request-id": "WESTUS2:20210712T032305Z:9fb7fac1-8a7e-43bb-985b-210d30a6a6b8" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022", + "name": "mgmt-group-6022", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-db3c49e90672fc43ae36d7e5023e7a31-891ddc06c4825a4c-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "63241e2627af8a4713b1cea54afe86e3", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "90acd296-c467-4fa4-a44c-ac9005279c31", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:23:05 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "90acd296-c467-4fa4-a44c-ac9005279c31", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "90acd296-c467-4fa4-a44c-ac9005279c31", + "x-ms-ratelimit-remaining-tenant-reads": "11967", + "x-ms-request-id": "westus2:90acd296-c467-4fa4-a44c-ac9005279c31", + "x-ms-routing-request-id": "WESTUS2:20210712T032306Z:90acd296-c467-4fa4-a44c-ac9005279c31" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022", + "name": "mgmt-group-6022", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-db3c49e90672fc43ae36d7e5023e7a31-bc0df51e96fe7d4d-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "5a849a31a2e04d5444a0f4765369c5d6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "0643f983-57cc-4308-a0bf-d7805e9bc1bf", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:23:07 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "0643f983-57cc-4308-a0bf-d7805e9bc1bf", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0643f983-57cc-4308-a0bf-d7805e9bc1bf", + "x-ms-ratelimit-remaining-tenant-reads": "11966", + "x-ms-request-id": "westus2:0643f983-57cc-4308-a0bf-d7805e9bc1bf", + "x-ms-routing-request-id": "WESTUS2:20210712T032307Z:0643f983-57cc-4308-a0bf-d7805e9bc1bf" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022", + "name": "mgmt-group-6022", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-db3c49e90672fc43ae36d7e5023e7a31-d5fde94236d3e846-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "7363014008387644239bb576b2a9544d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "1524c7b6-de77-474a-8fc6-f4b0e2072e00", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:23:08 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "1524c7b6-de77-474a-8fc6-f4b0e2072e00", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1524c7b6-de77-474a-8fc6-f4b0e2072e00", + "x-ms-ratelimit-remaining-tenant-reads": "11965", + "x-ms-request-id": "westus2:1524c7b6-de77-474a-8fc6-f4b0e2072e00", + "x-ms-routing-request-id": "WESTUS2:20210712T032308Z:1524c7b6-de77-474a-8fc6-f4b0e2072e00" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022", + "name": "mgmt-group-6022", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-db3c49e90672fc43ae36d7e5023e7a31-cba327ff513d8c4f-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "871f3574954084abcad61e0f32d136a9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "10e9ee9a-84c4-4e01-b476-365086bdbf6a", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:23:09 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "10e9ee9a-84c4-4e01-b476-365086bdbf6a", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "10e9ee9a-84c4-4e01-b476-365086bdbf6a", + "x-ms-ratelimit-remaining-tenant-reads": "11964", + "x-ms-request-id": "westus2:10e9ee9a-84c4-4e01-b476-365086bdbf6a", + "x-ms-routing-request-id": "WESTUS2:20210712T032309Z:10e9ee9a-84c4-4e01-b476-365086bdbf6a" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022", + "name": "mgmt-group-6022", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-db3c49e90672fc43ae36d7e5023e7a31-16d380491406944a-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "4864f7eb129b29ab550e3744ecdd9b9b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "25702b73-0cb7-46f8-9727-cebe0cd282e6", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:23:10 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "25702b73-0cb7-46f8-9727-cebe0cd282e6", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25702b73-0cb7-46f8-9727-cebe0cd282e6", + "x-ms-ratelimit-remaining-tenant-reads": "11963", + "x-ms-request-id": "westus2:25702b73-0cb7-46f8-9727-cebe0cd282e6", + "x-ms-routing-request-id": "WESTUS2:20210712T032310Z:25702b73-0cb7-46f8-9727-cebe0cd282e6" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022", + "name": "mgmt-group-6022", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-db3c49e90672fc43ae36d7e5023e7a31-e3d71a3f6ec0db44-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "1e02a64b3d49ab9555dea961e9354352", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "508f77aa-8b42-4a45-b5ad-d771cdb784af", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:23:11 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "508f77aa-8b42-4a45-b5ad-d771cdb784af", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "508f77aa-8b42-4a45-b5ad-d771cdb784af", + "x-ms-ratelimit-remaining-tenant-reads": "11962", + "x-ms-request-id": "westus2:508f77aa-8b42-4a45-b5ad-d771cdb784af", + "x-ms-routing-request-id": "WESTUS2:20210712T032312Z:508f77aa-8b42-4a45-b5ad-d771cdb784af" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022", + "name": "mgmt-group-6022", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-db3c49e90672fc43ae36d7e5023e7a31-b312a9d6e3fc4c43-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "ba8a0b640c4462b189f631325e6697ec", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "f65ff7b7-7eea-4b43-b41f-23c1c02b404e", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:23:12 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "f65ff7b7-7eea-4b43-b41f-23c1c02b404e", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f65ff7b7-7eea-4b43-b41f-23c1c02b404e", + "x-ms-ratelimit-remaining-tenant-reads": "11961", + "x-ms-request-id": "westus2:f65ff7b7-7eea-4b43-b41f-23c1c02b404e", + "x-ms-routing-request-id": "WESTUS2:20210712T032313Z:f65ff7b7-7eea-4b43-b41f-23c1c02b404e" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022", + "name": "mgmt-group-6022", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-db3c49e90672fc43ae36d7e5023e7a31-76345eab3fefcd4f-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "8bc3833b17cead6061b9f2bd684a3f20", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "d9c486d2-d7b3-4e8d-b542-2558a2a528fb", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:23:13 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "d9c486d2-d7b3-4e8d-b542-2558a2a528fb", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d9c486d2-d7b3-4e8d-b542-2558a2a528fb", + "x-ms-ratelimit-remaining-tenant-reads": "11960", + "x-ms-request-id": "westus2:d9c486d2-d7b3-4e8d-b542-2558a2a528fb", + "x-ms-routing-request-id": "WESTUS2:20210712T032314Z:d9c486d2-d7b3-4e8d-b542-2558a2a528fb" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022", + "name": "mgmt-group-6022", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-db3c49e90672fc43ae36d7e5023e7a31-ba1fc9ebcbc4ba4f-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "e0e0e4cae0533f56f4a094520c634cef", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "06381a57-59bf-4533-8c15-137a4a159ca5", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:23:14 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "06381a57-59bf-4533-8c15-137a4a159ca5", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "06381a57-59bf-4533-8c15-137a4a159ca5", + "x-ms-ratelimit-remaining-tenant-reads": "11959", + "x-ms-request-id": "westus2:06381a57-59bf-4533-8c15-137a4a159ca5", + "x-ms-routing-request-id": "WESTUS2:20210712T032315Z:06381a57-59bf-4533-8c15-137a4a159ca5" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022", + "name": "mgmt-group-6022", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-db3c49e90672fc43ae36d7e5023e7a31-79a3796fd078464d-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "6525bd47b7714c83abdc588b19f4f93f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "695aefe8-e9be-4382-a4c6-eaab6aaba1fe", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:23:15 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "695aefe8-e9be-4382-a4c6-eaab6aaba1fe", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "695aefe8-e9be-4382-a4c6-eaab6aaba1fe", + "x-ms-ratelimit-remaining-tenant-reads": "11958", + "x-ms-request-id": "westus2:695aefe8-e9be-4382-a4c6-eaab6aaba1fe", + "x-ms-routing-request-id": "WESTUS2:20210712T032316Z:695aefe8-e9be-4382-a4c6-eaab6aaba1fe" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022", + "name": "mgmt-group-6022", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-db3c49e90672fc43ae36d7e5023e7a31-39f57573627d584a-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "796810b7b6865a992d84972e820da1fe", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "62eaeb21-a46f-4488-80d2-bb827814f143", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:23:17 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "62eaeb21-a46f-4488-80d2-bb827814f143", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "62eaeb21-a46f-4488-80d2-bb827814f143", + "x-ms-ratelimit-remaining-tenant-reads": "11957", + "x-ms-request-id": "westus2:62eaeb21-a46f-4488-80d2-bb827814f143", + "x-ms-routing-request-id": "WESTUS2:20210712T032317Z:62eaeb21-a46f-4488-80d2-bb827814f143" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022", + "name": "mgmt-group-6022", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-db3c49e90672fc43ae36d7e5023e7a31-1051839cad0a8845-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "ab75036cd92413af6193357688cb2500", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "1127cfc7-b15e-43a3-97aa-16f4537353ef", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:23:18 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "1127cfc7-b15e-43a3-97aa-16f4537353ef", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1127cfc7-b15e-43a3-97aa-16f4537353ef", + "x-ms-ratelimit-remaining-tenant-reads": "11956", + "x-ms-request-id": "westus2:1127cfc7-b15e-43a3-97aa-16f4537353ef", + "x-ms-routing-request-id": "WESTUS2:20210712T032318Z:1127cfc7-b15e-43a3-97aa-16f4537353ef" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022", + "name": "mgmt-group-6022", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-db3c49e90672fc43ae36d7e5023e7a31-f99ca447382c244b-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "fb9b55a6d3fb906824ca38ec2054c99e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "319a8943-1286-4528-b000-4f9a2b0f8040", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:23:19 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "319a8943-1286-4528-b000-4f9a2b0f8040", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "319a8943-1286-4528-b000-4f9a2b0f8040", + "x-ms-ratelimit-remaining-tenant-reads": "11955", + "x-ms-request-id": "westus2:319a8943-1286-4528-b000-4f9a2b0f8040", + "x-ms-routing-request-id": "WESTUS2:20210712T032320Z:319a8943-1286-4528-b000-4f9a2b0f8040" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022", + "name": "mgmt-group-6022", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-db3c49e90672fc43ae36d7e5023e7a31-1b72e59b1ec6c340-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "161e593a4e7fdd1b605418f38122d262", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "b8a52afc-86ff-43ca-9ef6-17cc2fe9138d", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:23:20 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "b8a52afc-86ff-43ca-9ef6-17cc2fe9138d", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b8a52afc-86ff-43ca-9ef6-17cc2fe9138d", + "x-ms-ratelimit-remaining-tenant-reads": "11954", + "x-ms-request-id": "westus2:b8a52afc-86ff-43ca-9ef6-17cc2fe9138d", + "x-ms-routing-request-id": "WESTUS2:20210712T032321Z:b8a52afc-86ff-43ca-9ef6-17cc2fe9138d" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022", + "name": "mgmt-group-6022", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-db3c49e90672fc43ae36d7e5023e7a31-d9860cabc98b8f42-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "2d88975ea67199039be48759a1c3f20c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "101cf356-25d9-4f34-b831-1cc13ee3367e", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:23:21 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "101cf356-25d9-4f34-b831-1cc13ee3367e", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "101cf356-25d9-4f34-b831-1cc13ee3367e", + "x-ms-ratelimit-remaining-tenant-reads": "11953", + "x-ms-request-id": "westus2:101cf356-25d9-4f34-b831-1cc13ee3367e", + "x-ms-routing-request-id": "WESTUS2:20210712T032322Z:101cf356-25d9-4f34-b831-1cc13ee3367e" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022", + "name": "mgmt-group-6022", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-db3c49e90672fc43ae36d7e5023e7a31-095e050c4f2d2c48-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "2e3b97c90fac588039be9aa6ba750f01", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "c1173da3-8f97-4d84-acb9-b40a177e1013", + "Content-Length": "163", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:23:22 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "c1173da3-8f97-4d84-acb9-b40a177e1013", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c1173da3-8f97-4d84-acb9-b40a177e1013", + "x-ms-ratelimit-remaining-tenant-reads": "11952", + "x-ms-request-id": "westus2:c1173da3-8f97-4d84-acb9-b40a177e1013", + "x-ms-routing-request-id": "WESTUS2:20210712T032323Z:c1173da3-8f97-4d84-acb9-b40a177e1013" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022", + "name": "mgmt-group-6022", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-db3c49e90672fc43ae36d7e5023e7a31-436ad286af8b8646-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "898dd6f89bcc942c56857b9ac7c23b9d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "client-request-id": "5ab12bf0-fc03-4ccc-a796-52a788aa6ea0", + "Content-Length": "382", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:23:24 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "request-id": "5ab12bf0-fc03-4ccc-a796-52a788aa6ea0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5ab12bf0-fc03-4ccc-a796-52a788aa6ea0", + "x-ms-ratelimit-remaining-tenant-reads": "11951", + "x-ms-request-id": "westus2:5ab12bf0-fc03-4ccc-a796-52a788aa6ea0", + "x-ms-routing-request-id": "WESTUS2:20210712T032324Z:5ab12bf0-fc03-4ccc-a796-52a788aa6ea0" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-6022", + "name": "mgmt-group-6022", + "status": "Succeeded", + "properties": { + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "mgmt-group-6022", + "details": { + "version": 1, + "updatedTime": "2021-07-12T03:23:06.8979418Z", + "updatedBy": "3b10dae3-28cf-49a7-a8df-8fbae3e77f27" + } + } + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-db3c49e90672fc43ae36d7e5023e7a31-51f27f19a609f049-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "ea290c62a4e74fb6162ff4b30b5ddf25", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "client-request-id": "55032bc7-e1b0-4313-b4ab-085e6878381b", + "Content-Length": "565", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:23:24 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "request-id": "55032bc7-e1b0-4313-b4ab-085e6878381b", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "55032bc7-e1b0-4313-b4ab-085e6878381b", + "x-ms-ratelimit-remaining-tenant-reads": "11950", + "x-ms-request-id": "westus2:55032bc7-e1b0-4313-b4ab-085e6878381b", + "x-ms-routing-request-id": "WESTUS2:20210712T032324Z:55032bc7-e1b0-4313-b4ab-085e6878381b" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/managementGroups/mgmt-group-6022", + "type": "Microsoft.Management/managementGroups", + "name": "mgmt-group-6022", + "properties": { + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "mgmt-group-6022", + "details": { + "version": 1, + "updatedTime": "2021-07-12T03:23:06.8979418Z", + "updatedBy": "3b10dae3-28cf-49a7-a8df-8fbae3e77f27", + "parent": { + "id": "/providers/Microsoft.Management/managementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47", + "name": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } + } + } + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/mgmt-group-6022?api-version=2021-04-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "34", + "Content-Type": "application/json", + "traceparent": "00-3d8601103612b044bb0b0db0e1afac00-b3c801b8899d664a-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "cb6185d569352d3f6aa6d72694e69177", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "displayName": "New Display Name" + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "client-request-id": "de329d58-008b-4613-af19-06223e3412cf", + "Content-Length": "566", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:23:29 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "request-id": "de329d58-008b-4613-af19-06223e3412cf", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "de329d58-008b-4613-af19-06223e3412cf", + "x-ms-ratelimit-remaining-managementgroups-requests": "59", + "x-ms-ratelimit-remaining-tenant-writes": "1197", + "x-ms-request-id": "westus2:de329d58-008b-4613-af19-06223e3412cf", + "x-ms-routing-request-id": "WESTUS2:20210712T032330Z:de329d58-008b-4613-af19-06223e3412cf" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/managementGroups/mgmt-group-6022", + "type": "Microsoft.Management/managementGroups", + "name": "mgmt-group-6022", + "properties": { + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "New Display Name", + "details": { + "version": 2, + "updatedTime": "2021-07-12T03:23:25.2873341Z", + "updatedBy": "3b10dae3-28cf-49a7-a8df-8fbae3e77f27", + "parent": { + "id": "/providers/Microsoft.Management/managementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47", + "name": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } + } + } + } + } + ], + "Variables": { + "RandomSeed": "120121711", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupOperationsTests/UpdateAsync.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupOperationsTests/UpdateAsync.json new file mode 100644 index 0000000000000..8a4f09c53fdcd --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupOperationsTests/UpdateAsync.json @@ -0,0 +1,1029 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "ee9f754cfb38551bb114baecf8c8c9bd", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "450", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:28:41 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "466d8d20-15f1-4ced-abb1-188a0db9c2c6", + "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-request-id": "466d8d20-15f1-4ced-abb1-188a0db9c2c6", + "x-ms-routing-request-id": "WESTUS2:20210712T032841Z:466d8d20-15f1-4ced-abb1-188a0db9c2c6" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "tagKey1": "tagValue1", + "tagKey2": "tagValue2" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Azure SDK sandbox", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/mgmt-group-185?api-version=2021-04-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "17", + "Content-Type": "application/json", + "traceparent": "00-050309f64eccd74daf2509e841be9ef9-3ebe14dbe4791f4f-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "dc0484f450a5ab31b345fdefb0d9d9c7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": {} + }, + "StatusCode": 202, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "18d77971-c188-4a2c-8285-fe0b9f2c064d", + "Content-Length": "165", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:28:41 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-185?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "18d77971-c188-4a2c-8285-fe0b9f2c064d", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "18d77971-c188-4a2c-8285-fe0b9f2c064d", + "x-ms-ratelimit-remaining-managementgroups-requests": "57", + "x-ms-ratelimit-remaining-tenant-writes": "1197", + "x-ms-request-id": "westus2:18d77971-c188-4a2c-8285-fe0b9f2c064d", + "x-ms-routing-request-id": "WESTUS2:20210712T032841Z:18d77971-c188-4a2c-8285-fe0b9f2c064d" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/managementGroups/mgmt-group-185", + "type": "Microsoft.Management/managementGroups", + "name": "mgmt-group-185", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-050309f64eccd74daf2509e841be9ef9-31fd75a726a7124c-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "93467a64f51525a66d4285b61e65013a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "1b0db099-a7cd-4331-91a3-ba0f3fe9f937", + "Content-Length": "164", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:28:41 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-185?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "1b0db099-a7cd-4331-91a3-ba0f3fe9f937", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1b0db099-a7cd-4331-91a3-ba0f3fe9f937", + "x-ms-ratelimit-remaining-tenant-reads": "11946", + "x-ms-request-id": "westus2:1b0db099-a7cd-4331-91a3-ba0f3fe9f937", + "x-ms-routing-request-id": "WESTUS2:20210712T032841Z:1b0db099-a7cd-4331-91a3-ba0f3fe9f937" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185", + "name": "mgmt-group-185", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-050309f64eccd74daf2509e841be9ef9-bd0d796f60d00449-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "70f724e0e6fa2d3421de701f0b02220e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "5f6e3ffe-90ee-4052-ab71-9df004aaf6ae", + "Content-Length": "161", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:28:43 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-185?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "5f6e3ffe-90ee-4052-ab71-9df004aaf6ae", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5f6e3ffe-90ee-4052-ab71-9df004aaf6ae", + "x-ms-ratelimit-remaining-tenant-reads": "11945", + "x-ms-request-id": "westus2:5f6e3ffe-90ee-4052-ab71-9df004aaf6ae", + "x-ms-routing-request-id": "WESTUS2:20210712T032843Z:5f6e3ffe-90ee-4052-ab71-9df004aaf6ae" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185", + "name": "mgmt-group-185", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-050309f64eccd74daf2509e841be9ef9-e3fc7c25ae80694d-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "358bf88d45920bb2b1a968b841ab0705", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "c013dc5d-9cf5-478a-b7a8-a5ba43bb7923", + "Content-Length": "161", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:28:44 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-185?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "c013dc5d-9cf5-478a-b7a8-a5ba43bb7923", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c013dc5d-9cf5-478a-b7a8-a5ba43bb7923", + "x-ms-ratelimit-remaining-tenant-reads": "11944", + "x-ms-request-id": "westus2:c013dc5d-9cf5-478a-b7a8-a5ba43bb7923", + "x-ms-routing-request-id": "WESTUS2:20210712T032844Z:c013dc5d-9cf5-478a-b7a8-a5ba43bb7923" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185", + "name": "mgmt-group-185", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-050309f64eccd74daf2509e841be9ef9-dcd4a1f710aa874b-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "634e098547ad7e0a461971368487196b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "69320431-440a-480b-bc72-64fca400317f", + "Content-Length": "161", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:28:45 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-185?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "69320431-440a-480b-bc72-64fca400317f", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "69320431-440a-480b-bc72-64fca400317f", + "x-ms-ratelimit-remaining-tenant-reads": "11943", + "x-ms-request-id": "westus2:69320431-440a-480b-bc72-64fca400317f", + "x-ms-routing-request-id": "WESTUS2:20210712T032845Z:69320431-440a-480b-bc72-64fca400317f" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185", + "name": "mgmt-group-185", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-050309f64eccd74daf2509e841be9ef9-45e004788aa99c49-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "26287720cbda9ba772ecbf507d7bec75", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "b29233b0-8af9-47a5-b66a-aec220bd67e2", + "Content-Length": "161", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:28:46 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-185?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "b29233b0-8af9-47a5-b66a-aec220bd67e2", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b29233b0-8af9-47a5-b66a-aec220bd67e2", + "x-ms-ratelimit-remaining-tenant-reads": "11942", + "x-ms-request-id": "westus2:b29233b0-8af9-47a5-b66a-aec220bd67e2", + "x-ms-routing-request-id": "WESTUS2:20210712T032846Z:b29233b0-8af9-47a5-b66a-aec220bd67e2" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185", + "name": "mgmt-group-185", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-050309f64eccd74daf2509e841be9ef9-6ec042cd2961e541-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "02996ad7bfb44660ed0cee79d37b8629", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "83307294-521d-4151-b4e0-fe2a8c1d302f", + "Content-Length": "161", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:28:47 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-185?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "83307294-521d-4151-b4e0-fe2a8c1d302f", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "83307294-521d-4151-b4e0-fe2a8c1d302f", + "x-ms-ratelimit-remaining-tenant-reads": "11941", + "x-ms-request-id": "westus2:83307294-521d-4151-b4e0-fe2a8c1d302f", + "x-ms-routing-request-id": "WESTUS2:20210712T032847Z:83307294-521d-4151-b4e0-fe2a8c1d302f" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185", + "name": "mgmt-group-185", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-050309f64eccd74daf2509e841be9ef9-f5848709dec93943-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "c998fc90e083b92b61b2f1c087b900ca", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "94a6fb79-5857-46e2-a6a1-827f38b8721c", + "Content-Length": "161", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:28:48 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-185?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "94a6fb79-5857-46e2-a6a1-827f38b8721c", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "94a6fb79-5857-46e2-a6a1-827f38b8721c", + "x-ms-ratelimit-remaining-tenant-reads": "11940", + "x-ms-request-id": "westus2:94a6fb79-5857-46e2-a6a1-827f38b8721c", + "x-ms-routing-request-id": "WESTUS2:20210712T032848Z:94a6fb79-5857-46e2-a6a1-827f38b8721c" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185", + "name": "mgmt-group-185", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-050309f64eccd74daf2509e841be9ef9-8f46a563a4ea254a-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "195ffb2c16ee60b716e238cddd2ec8f6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "773ebc99-6b6d-48fd-8af1-0255456b8ac1", + "Content-Length": "161", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:28:49 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-185?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "773ebc99-6b6d-48fd-8af1-0255456b8ac1", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "773ebc99-6b6d-48fd-8af1-0255456b8ac1", + "x-ms-ratelimit-remaining-tenant-reads": "11939", + "x-ms-request-id": "westus2:773ebc99-6b6d-48fd-8af1-0255456b8ac1", + "x-ms-routing-request-id": "WESTUS2:20210712T032849Z:773ebc99-6b6d-48fd-8af1-0255456b8ac1" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185", + "name": "mgmt-group-185", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-050309f64eccd74daf2509e841be9ef9-b48c15b6982d3c44-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "80bf956522e3f6f23fdfa001cea0be33", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "49fe0856-1a70-42e4-b93e-ab3265f01166", + "Content-Length": "161", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:28:50 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-185?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "49fe0856-1a70-42e4-b93e-ab3265f01166", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "49fe0856-1a70-42e4-b93e-ab3265f01166", + "x-ms-ratelimit-remaining-tenant-reads": "11938", + "x-ms-request-id": "westus2:49fe0856-1a70-42e4-b93e-ab3265f01166", + "x-ms-routing-request-id": "WESTUS2:20210712T032850Z:49fe0856-1a70-42e4-b93e-ab3265f01166" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185", + "name": "mgmt-group-185", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-050309f64eccd74daf2509e841be9ef9-30dadd9142510145-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "d74c230c6d1b7a3b4537b2a0a75ddc32", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "d5858305-da15-4b31-b483-f9f5ca07e456", + "Content-Length": "161", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:28:51 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-185?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "d5858305-da15-4b31-b483-f9f5ca07e456", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d5858305-da15-4b31-b483-f9f5ca07e456", + "x-ms-ratelimit-remaining-tenant-reads": "11937", + "x-ms-request-id": "westus2:d5858305-da15-4b31-b483-f9f5ca07e456", + "x-ms-routing-request-id": "WESTUS2:20210712T032852Z:d5858305-da15-4b31-b483-f9f5ca07e456" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185", + "name": "mgmt-group-185", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-050309f64eccd74daf2509e841be9ef9-1a51443dcc6f9048-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "f25afaea7ffa0ae60969d90e75b59276", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "2d556ded-3dff-4f61-816c-7ebc1add0fd2", + "Content-Length": "161", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:28:52 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-185?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "2d556ded-3dff-4f61-816c-7ebc1add0fd2", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2d556ded-3dff-4f61-816c-7ebc1add0fd2", + "x-ms-ratelimit-remaining-tenant-reads": "11936", + "x-ms-request-id": "westus2:2d556ded-3dff-4f61-816c-7ebc1add0fd2", + "x-ms-routing-request-id": "WESTUS2:20210712T032853Z:2d556ded-3dff-4f61-816c-7ebc1add0fd2" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185", + "name": "mgmt-group-185", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-050309f64eccd74daf2509e841be9ef9-dcd924baddb65946-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "b9c10524f0e1f8da59453bac70524ee2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "6fa71914-d193-4c6c-af7c-9584e0c5ba6f", + "Content-Length": "161", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:28:54 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-185?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "6fa71914-d193-4c6c-af7c-9584e0c5ba6f", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6fa71914-d193-4c6c-af7c-9584e0c5ba6f", + "x-ms-ratelimit-remaining-tenant-reads": "11935", + "x-ms-request-id": "westus2:6fa71914-d193-4c6c-af7c-9584e0c5ba6f", + "x-ms-routing-request-id": "WESTUS2:20210712T032854Z:6fa71914-d193-4c6c-af7c-9584e0c5ba6f" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185", + "name": "mgmt-group-185", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-050309f64eccd74daf2509e841be9ef9-fb6fd494ae11654f-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "d3176d02cc458d393c42ceb2932d048f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "9befbedd-c955-4017-882f-3df83a0d8886", + "Content-Length": "161", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:28:55 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-185?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "9befbedd-c955-4017-882f-3df83a0d8886", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9befbedd-c955-4017-882f-3df83a0d8886", + "x-ms-ratelimit-remaining-tenant-reads": "11934", + "x-ms-request-id": "westus2:9befbedd-c955-4017-882f-3df83a0d8886", + "x-ms-routing-request-id": "WESTUS2:20210712T032855Z:9befbedd-c955-4017-882f-3df83a0d8886" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185", + "name": "mgmt-group-185", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-050309f64eccd74daf2509e841be9ef9-1ecc8164d7afea42-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "a27c3ca5229cf951206298b4433a99b7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "e3c3afa5-bdb5-4165-941c-23b475a3c674", + "Content-Length": "161", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:28:56 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-185?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "e3c3afa5-bdb5-4165-941c-23b475a3c674", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e3c3afa5-bdb5-4165-941c-23b475a3c674", + "x-ms-ratelimit-remaining-tenant-reads": "11933", + "x-ms-request-id": "westus2:e3c3afa5-bdb5-4165-941c-23b475a3c674", + "x-ms-routing-request-id": "WESTUS2:20210712T032856Z:e3c3afa5-bdb5-4165-941c-23b475a3c674" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185", + "name": "mgmt-group-185", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-050309f64eccd74daf2509e841be9ef9-99929aa590f66343-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "070bf61abe9e5731cb337d9f2227642c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "56a4a3dc-3c1e-4537-9571-f3bad289d494", + "Content-Length": "161", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:28:57 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-185?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "56a4a3dc-3c1e-4537-9571-f3bad289d494", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "56a4a3dc-3c1e-4537-9571-f3bad289d494", + "x-ms-ratelimit-remaining-tenant-reads": "11932", + "x-ms-request-id": "westus2:56a4a3dc-3c1e-4537-9571-f3bad289d494", + "x-ms-routing-request-id": "WESTUS2:20210712T032857Z:56a4a3dc-3c1e-4537-9571-f3bad289d494" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185", + "name": "mgmt-group-185", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-050309f64eccd74daf2509e841be9ef9-4d29a4c5f334f44e-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "3307ac41abd5e0461c1eb3e234854902", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "c28ab9e4-db8f-409e-8cc0-f99c5504184e", + "Content-Length": "161", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:28:58 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-185?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "c28ab9e4-db8f-409e-8cc0-f99c5504184e", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c28ab9e4-db8f-409e-8cc0-f99c5504184e", + "x-ms-ratelimit-remaining-tenant-reads": "11931", + "x-ms-request-id": "westus2:c28ab9e4-db8f-409e-8cc0-f99c5504184e", + "x-ms-routing-request-id": "WESTUS2:20210712T032858Z:c28ab9e4-db8f-409e-8cc0-f99c5504184e" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185", + "name": "mgmt-group-185", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-050309f64eccd74daf2509e841be9ef9-2247357793c3c74b-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "9c9717a8fc21e6f10b24d768a5b1d7f8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "ccc2ce99-0466-463b-a75d-980f0e2319e1", + "Content-Length": "161", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:28:59 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-185?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "ccc2ce99-0466-463b-a75d-980f0e2319e1", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ccc2ce99-0466-463b-a75d-980f0e2319e1", + "x-ms-ratelimit-remaining-tenant-reads": "11930", + "x-ms-request-id": "westus2:ccc2ce99-0466-463b-a75d-980f0e2319e1", + "x-ms-routing-request-id": "WESTUS2:20210712T032859Z:ccc2ce99-0466-463b-a75d-980f0e2319e1" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185", + "name": "mgmt-group-185", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-050309f64eccd74daf2509e841be9ef9-cd1887f7c4d70143-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "97726bfe65326fe1b02beb800b4e2345", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "07dbba66-2d58-4ced-9169-e9e67260589c", + "Content-Length": "161", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:29:00 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-185?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "07dbba66-2d58-4ced-9169-e9e67260589c", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "07dbba66-2d58-4ced-9169-e9e67260589c", + "x-ms-ratelimit-remaining-tenant-reads": "11929", + "x-ms-request-id": "westus2:07dbba66-2d58-4ced-9169-e9e67260589c", + "x-ms-routing-request-id": "WESTUS2:20210712T032901Z:07dbba66-2d58-4ced-9169-e9e67260589c" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185", + "name": "mgmt-group-185", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-050309f64eccd74daf2509e841be9ef9-abcdeae9ca9a6540-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "0af67be9c790450bba2128b0d4dd3a6b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "0f660da5-ba38-4e21-8822-8726bfefa9bc", + "Content-Length": "161", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:29:01 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-185?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "0f660da5-ba38-4e21-8822-8726bfefa9bc", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0f660da5-ba38-4e21-8822-8726bfefa9bc", + "x-ms-ratelimit-remaining-tenant-reads": "11928", + "x-ms-request-id": "westus2:0f660da5-ba38-4e21-8822-8726bfefa9bc", + "x-ms-routing-request-id": "WESTUS2:20210712T032902Z:0f660da5-ba38-4e21-8822-8726bfefa9bc" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185", + "name": "mgmt-group-185", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-050309f64eccd74daf2509e841be9ef9-71ec001065ad5f40-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "c8e4ba46b21242cf3528ecf61170dabc", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185?api-version=2021-04-01", + "Cache-Control": "no-cache", + "client-request-id": "a3710bf6-d935-4718-9456-6fcdcc385670", + "Content-Length": "161", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:29:02 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-185?api-version=2021-04-01", + "Pragma": "no-cache", + "request-id": "a3710bf6-d935-4718-9456-6fcdcc385670", + "Retry-After": "10", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a3710bf6-d935-4718-9456-6fcdcc385670", + "x-ms-ratelimit-remaining-tenant-reads": "11927", + "x-ms-request-id": "westus2:a3710bf6-d935-4718-9456-6fcdcc385670", + "x-ms-routing-request-id": "WESTUS2:20210712T032903Z:a3710bf6-d935-4718-9456-6fcdcc385670" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185", + "name": "mgmt-group-185", + "status": "Running" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-050309f64eccd74daf2509e841be9ef9-0a9ab8419bb22249-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "2a7f9101ccba3668602ddc113d309ad2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "client-request-id": "e918449b-3dfa-40ae-939d-28fba06fc249", + "Content-Length": "379", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:29:04 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "request-id": "e918449b-3dfa-40ae-939d-28fba06fc249", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e918449b-3dfa-40ae-939d-28fba06fc249", + "x-ms-ratelimit-remaining-tenant-reads": "11926", + "x-ms-request-id": "westus2:e918449b-3dfa-40ae-939d-28fba06fc249", + "x-ms-routing-request-id": "WESTUS2:20210712T032904Z:e918449b-3dfa-40ae-939d-28fba06fc249" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-185", + "name": "mgmt-group-185", + "status": "Succeeded", + "properties": { + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "mgmt-group-185", + "details": { + "version": 1, + "updatedTime": "2021-07-12T03:28:47.4712147Z", + "updatedBy": "3b10dae3-28cf-49a7-a8df-8fbae3e77f27" + } + } + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/mgmt-group-185?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-050309f64eccd74daf2509e841be9ef9-1313abfd1aa50448-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "50397ff05a693733abb4d567da143449", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "client-request-id": "bfc78ebb-c8eb-4df7-8e0e-4a6f2147b780", + "Content-Length": "562", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:29:04 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "request-id": "bfc78ebb-c8eb-4df7-8e0e-4a6f2147b780", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "bfc78ebb-c8eb-4df7-8e0e-4a6f2147b780", + "x-ms-ratelimit-remaining-tenant-reads": "11925", + "x-ms-request-id": "westus2:bfc78ebb-c8eb-4df7-8e0e-4a6f2147b780", + "x-ms-routing-request-id": "WESTUS2:20210712T032904Z:bfc78ebb-c8eb-4df7-8e0e-4a6f2147b780" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/managementGroups/mgmt-group-185", + "type": "Microsoft.Management/managementGroups", + "name": "mgmt-group-185", + "properties": { + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "mgmt-group-185", + "details": { + "version": 1, + "updatedTime": "2021-07-12T03:28:47.4712147Z", + "updatedBy": "3b10dae3-28cf-49a7-a8df-8fbae3e77f27", + "parent": { + "id": "/providers/Microsoft.Management/managementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47", + "name": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } + } + } + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/mgmt-group-185?api-version=2021-04-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "34", + "Content-Type": "application/json", + "traceparent": "00-3f29cea6c766c5469cb822bed50d7ff1-93323e9cf107ce4b-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "42af6c46105e7ab052ae68e5d5bd0504", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "displayName": "New Display Name" + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "client-request-id": "c8ff8fb3-b667-4334-95e6-20ad55eef375", + "Content-Length": "564", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 03:29:09 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "request-id": "c8ff8fb3-b667-4334-95e6-20ad55eef375", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c8ff8fb3-b667-4334-95e6-20ad55eef375", + "x-ms-ratelimit-remaining-managementgroups-requests": "59", + "x-ms-ratelimit-remaining-tenant-writes": "1196", + "x-ms-request-id": "westus2:c8ff8fb3-b667-4334-95e6-20ad55eef375", + "x-ms-routing-request-id": "WESTUS2:20210712T032910Z:c8ff8fb3-b667-4334-95e6-20ad55eef375" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Management/managementGroups/mgmt-group-185", + "type": "Microsoft.Management/managementGroups", + "name": "mgmt-group-185", + "properties": { + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "New Display Name", + "details": { + "version": 2, + "updatedTime": "2021-07-12T03:29:05.0746947Z", + "updatedBy": "3b10dae3-28cf-49a7-a8df-8fbae3e77f27", + "parent": { + "id": "/providers/Microsoft.Management/managementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47", + "name": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } + } + } + } + } + ], + "Variables": { + "RandomSeed": "1378822567", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file From 8eacadf673c3532367a23df4fde1a06e8b80b5a7 Mon Sep 17 00:00:00 2001 From: m-nash Date: Sun, 11 Jul 2021 20:45:26 -0700 Subject: [PATCH 3/5] remove temp files --- ...Azure.ResourceManager.ManagementGroups.sln | 51 -- .../CHANGELOG.md | 7 - .../Directory.Build.props | 6 - .../README.md | 77 -- ...re.ResourceManager.ManagementGroups.csproj | 15 - .../src/Generated/EntitiesOperations.cs | 162 ---- .../src/Generated/EntitiesRestOperations.cs | 299 ------- .../Generated/HierarchySettingsOperations.cs | 255 ------ .../HierarchySettingsRestOperations.cs | 444 ---------- .../ManagementGroupSubscriptionsOperations.cs | 284 ------- ...agementGroupSubscriptionsRestOperations.cs | 500 ------------ .../ManagementGroupsAPIManagementClient.cs | 65 -- ...agementGroupsAPIManagementClientOptions.cs | 16 - .../ManagementGroupsAPIOperations.cs | 145 ---- .../ManagementGroupsAPIRestOperations.cs | 226 ------ .../ManagementGroupsCreateOrUpdateHeaders.cs | 35 - ...ManagementGroupsCreateOrUpdateOperation.cs | 76 -- .../ManagementGroupsDeleteHeaders.cs | 35 - .../ManagementGroupsDeleteOperation.cs | 72 -- .../Generated/ManagementGroupsOperations.cs | 466 ----------- .../ManagementGroupsRestOperations.cs | 768 ------------------ ...zureAsyncOperationResults.Serialization.cs | 71 -- .../Models/AzureAsyncOperationResults.cs | 48 -- ...ckNameAvailabilityRequest.Serialization.cs | 31 - .../Models/CheckNameAvailabilityRequest.cs | 24 - ...eckNameAvailabilityResult.Serialization.cs | 51 -- .../Models/CheckNameAvailabilityResult.cs | 36 - ...eManagementGroupChildInfo.Serialization.cs | 13 - .../Models/CreateManagementGroupChildInfo.cs | 33 - ...ateManagementGroupDetails.Serialization.cs | 26 - .../Models/CreateManagementGroupDetails.cs | 29 - ...ateManagementGroupRequest.Serialization.cs | 46 -- .../Models/CreateManagementGroupRequest.cs | 37 - ...teOrUpdateSettingsRequest.Serialization.cs | 34 - .../Models/CreateOrUpdateSettingsRequest.cs | 23 - .../CreateParentGroupInfo.Serialization.cs | 26 - .../Generated/Models/CreateParentGroupInfo.cs | 25 - .../Models/DescendantInfo.Serialization.cs | 85 -- .../src/Generated/Models/DescendantInfo.cs | 44 - .../DescendantListResult.Serialization.cs | 46 -- .../Generated/Models/DescendantListResult.cs | 36 - ...DescendantParentGroupInfo.Serialization.cs | 29 - .../Models/DescendantParentGroupInfo.cs | 28 - .../Generated/Models/EntityHierarchyItem.cs | 35 - .../Models/EntityInfo.Serialization.cs | 184 ----- .../src/Generated/Models/EntityInfo.cs | 81 -- .../Models/EntityListResult.Serialization.cs | 57 -- .../src/Generated/Models/EntityListResult.cs | 40 - .../EntityParentGroupInfo.Serialization.cs | 29 - .../Generated/Models/EntityParentGroupInfo.cs | 28 - .../src/Generated/Models/Enum0.cs | 54 -- .../src/Generated/Models/Enum2.cs | 60 -- .../src/Generated/Models/Enum3.cs | 57 -- .../Models/ErrorDetails.Serialization.cs | 41 - .../src/Generated/Models/ErrorDetails.cs | 36 - .../Models/ErrorResponse.Serialization.cs | 34 - .../src/Generated/Models/ErrorResponse.cs | 28 - .../Models/HierarchySettings.Serialization.cs | 76 -- .../src/Generated/Models/HierarchySettings.cs | 48 -- .../HierarchySettingsInfo.Serialization.cs | 76 -- .../Generated/Models/HierarchySettingsInfo.cs | 48 -- .../HierarchySettingsList.Serialization.cs | 46 -- .../Generated/Models/HierarchySettingsList.cs | 36 - ...ptionUnderManagementGroup.Serialization.cs | 46 -- .../ListSubscriptionUnderManagementGroup.cs | 36 - .../Models/ManagementGroup.Serialization.cs | 93 --- .../src/Generated/Models/ManagementGroup.cs | 56 -- .../ManagementGroupChildInfo.Serialization.cs | 69 -- .../Models/ManagementGroupChildInfo.cs | 48 -- .../Models/ManagementGroupChildType.cs | 51 -- .../ManagementGroupDetails.Serialization.cs | 112 --- .../Models/ManagementGroupDetails.cs | 59 -- .../ManagementGroupInfo.Serialization.cs | 65 -- .../Generated/Models/ManagementGroupInfo.cs | 44 - ...ManagementGroupListResult.Serialization.cs | 46 -- .../Models/ManagementGroupListResult.cs | 36 - ...anagementGroupPathElement.Serialization.cs | 35 - .../Models/ManagementGroupPathElement.cs | 32 - .../Models/Operation.Serialization.cs | 40 - .../src/Generated/Models/Operation.cs | 32 - ...perationDisplayProperties.Serialization.cs | 47 -- .../Models/OperationDisplayProperties.cs | 40 - .../OperationListResult.Serialization.cs | 46 -- .../Generated/Models/OperationListResult.cs | 36 - .../src/Generated/Models/OperationResults.cs | 29 - .../Models/ParentGroupInfo.Serialization.cs | 41 - .../src/Generated/Models/ParentGroupInfo.cs | 36 - ...tchManagementGroupRequest.Serialization.cs | 45 - .../Models/PatchManagementGroupRequest.cs | 23 - .../src/Generated/Models/Permissions.cs | 57 -- .../Generated/Models/Reason.Serialization.cs | 28 - .../src/Generated/Models/Reason.cs | 18 - .../Generated/Models/Status.Serialization.cs | 36 - .../src/Generated/Models/Status.cs | 26 - ...ptionUnderManagementGroup.Serialization.cs | 82 -- .../SubscriptionUnderManagementGroup.cs | 52 -- ...enantBackfillStatusResult.Serialization.cs | 40 - .../Models/TenantBackfillStatusResult.cs | 32 - .../src/Generated/Operations.cs | 116 --- .../src/Generated/RestOperations.cs | 167 ---- .../src/Properties/AssemblyInfo.cs | 8 - .../src/autorest.md | 11 - ...ourceManager.ManagementGroups.Tests.csproj | 6 - .../ManagementManagementTestEnvironment.cs | 11 - sdk/managementgroups/ci.yml | 31 - sdk/managementgroups/test-resources.json | 6 - 106 files changed, 7889 deletions(-) delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/Azure.ResourceManager.ManagementGroups.sln delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/CHANGELOG.md delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/Directory.Build.props delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/README.md delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Azure.ResourceManager.ManagementGroups.csproj delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/EntitiesOperations.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/EntitiesRestOperations.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/HierarchySettingsOperations.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/HierarchySettingsRestOperations.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupSubscriptionsOperations.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupSubscriptionsRestOperations.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsAPIManagementClient.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsAPIManagementClientOptions.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsAPIOperations.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsAPIRestOperations.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsCreateOrUpdateHeaders.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsCreateOrUpdateOperation.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsDeleteHeaders.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsDeleteOperation.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsOperations.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsRestOperations.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/AzureAsyncOperationResults.Serialization.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/AzureAsyncOperationResults.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CheckNameAvailabilityRequest.Serialization.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CheckNameAvailabilityRequest.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CheckNameAvailabilityResult.Serialization.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CheckNameAvailabilityResult.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateManagementGroupChildInfo.Serialization.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateManagementGroupChildInfo.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateManagementGroupDetails.Serialization.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateManagementGroupDetails.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateManagementGroupRequest.Serialization.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateManagementGroupRequest.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateOrUpdateSettingsRequest.Serialization.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateOrUpdateSettingsRequest.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateParentGroupInfo.Serialization.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateParentGroupInfo.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/DescendantInfo.Serialization.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/DescendantInfo.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/DescendantListResult.Serialization.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/DescendantListResult.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/DescendantParentGroupInfo.Serialization.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/DescendantParentGroupInfo.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/EntityHierarchyItem.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/EntityInfo.Serialization.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/EntityInfo.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/EntityListResult.Serialization.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/EntityListResult.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/EntityParentGroupInfo.Serialization.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/EntityParentGroupInfo.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Enum0.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Enum2.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Enum3.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ErrorDetails.Serialization.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ErrorDetails.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ErrorResponse.Serialization.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ErrorResponse.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/HierarchySettings.Serialization.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/HierarchySettings.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/HierarchySettingsInfo.Serialization.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/HierarchySettingsInfo.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/HierarchySettingsList.Serialization.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/HierarchySettingsList.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ListSubscriptionUnderManagementGroup.Serialization.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ListSubscriptionUnderManagementGroup.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroup.Serialization.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroup.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupChildInfo.Serialization.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupChildInfo.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupChildType.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupDetails.Serialization.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupDetails.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupInfo.Serialization.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupInfo.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupListResult.Serialization.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupListResult.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupPathElement.Serialization.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupPathElement.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Operation.Serialization.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Operation.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/OperationDisplayProperties.Serialization.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/OperationDisplayProperties.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/OperationListResult.Serialization.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/OperationListResult.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/OperationResults.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ParentGroupInfo.Serialization.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ParentGroupInfo.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/PatchManagementGroupRequest.Serialization.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/PatchManagementGroupRequest.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Permissions.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Reason.Serialization.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Reason.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Status.Serialization.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Status.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/SubscriptionUnderManagementGroup.Serialization.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/SubscriptionUnderManagementGroup.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/TenantBackfillStatusResult.Serialization.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/TenantBackfillStatusResult.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Operations.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/RestOperations.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Properties/AssemblyInfo.cs delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/autorest.md delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/tests/Azure.ResourceManager.ManagementGroups.Tests.csproj delete mode 100644 sdk/managementgroups/Azure.ResourceManager.ManagementGroups/tests/ManagementManagementTestEnvironment.cs delete mode 100644 sdk/managementgroups/ci.yml delete mode 100644 sdk/managementgroups/test-resources.json diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/Azure.ResourceManager.ManagementGroups.sln b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/Azure.ResourceManager.ManagementGroups.sln deleted file mode 100644 index a2b1124f24498..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/Azure.ResourceManager.ManagementGroups.sln +++ /dev/null @@ -1,51 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 -VisualStudioVersion = 16.0.30309.148 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{B50E35B0-A4E1-4DC4-B3EE-5220A63834E1}") = "Azure.ResourceManager.ManagementGroups", "src\Azure.ResourceManager.ManagementGroups.csproj", "{56985A47-45ED-4214-A1E3-13F4A4C7939D}" -EndProject -Project("{B50E35B0-A4E1-4DC4-B3EE-5220A63834E1}") = "Azure.ResourceManager.ManagementGroups.Tests", "tests\Azure.ResourceManager.ManagementGroups.Tests.csproj", "{0D8A8877-3ADC-4C49-B811-C09B95BE2B56}" -EndProject -Global - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {25FDDB09-AF1C-476E-B776-C34C6A8808BA} - EndGlobalSection - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|Any CPU = Release|Any CPU - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {56985A47-45ED-4214-A1E3-13F4A4C7939D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {56985A47-45ED-4214-A1E3-13F4A4C7939D}.Debug|Any CPU.Build.0 = Debug|Any CPU - {56985A47-45ED-4214-A1E3-13F4A4C7939D}.Debug|x64.ActiveCfg = Debug|Any CPU - {56985A47-45ED-4214-A1E3-13F4A4C7939D}.Debug|x64.Build.0 = Debug|Any CPU - {56985A47-45ED-4214-A1E3-13F4A4C7939D}.Debug|x86.ActiveCfg = Debug|Any CPU - {56985A47-45ED-4214-A1E3-13F4A4C7939D}.Debug|x86.Build.0 = Debug|Any CPU - {56985A47-45ED-4214-A1E3-13F4A4C7939D}.Release|Any CPU.ActiveCfg = Release|Any CPU - {56985A47-45ED-4214-A1E3-13F4A4C7939D}.Release|Any CPU.Build.0 = Release|Any CPU - {56985A47-45ED-4214-A1E3-13F4A4C7939D}.Release|x64.ActiveCfg = Release|Any CPU - {56985A47-45ED-4214-A1E3-13F4A4C7939D}.Release|x64.Build.0 = Release|Any CPU - {56985A47-45ED-4214-A1E3-13F4A4C7939D}.Release|x86.ActiveCfg = Release|Any CPU - {56985A47-45ED-4214-A1E3-13F4A4C7939D}.Release|x86.Build.0 = Release|Any CPU - {0D8A8877-3ADC-4C49-B811-C09B95BE2B56}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {0D8A8877-3ADC-4C49-B811-C09B95BE2B56}.Debug|Any CPU.Build.0 = Debug|Any CPU - {0D8A8877-3ADC-4C49-B811-C09B95BE2B56}.Debug|x64.ActiveCfg = Debug|Any CPU - {0D8A8877-3ADC-4C49-B811-C09B95BE2B56}.Debug|x64.Build.0 = Debug|Any CPU - {0D8A8877-3ADC-4C49-B811-C09B95BE2B56}.Debug|x86.ActiveCfg = Debug|Any CPU - {0D8A8877-3ADC-4C49-B811-C09B95BE2B56}.Debug|x86.Build.0 = Debug|Any CPU - {0D8A8877-3ADC-4C49-B811-C09B95BE2B56}.Release|Any CPU.ActiveCfg = Release|Any CPU - {0D8A8877-3ADC-4C49-B811-C09B95BE2B56}.Release|Any CPU.Build.0 = Release|Any CPU - {0D8A8877-3ADC-4C49-B811-C09B95BE2B56}.Release|x64.ActiveCfg = Release|Any CPU - {0D8A8877-3ADC-4C49-B811-C09B95BE2B56}.Release|x64.Build.0 = Release|Any CPU - {0D8A8877-3ADC-4C49-B811-C09B95BE2B56}.Release|x86.ActiveCfg = Release|Any CPU - {0D8A8877-3ADC-4C49-B811-C09B95BE2B56}.Release|x86.Build.0 = Release|Any CPU - EndGlobalSection -EndGlobal diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/CHANGELOG.md b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/CHANGELOG.md deleted file mode 100644 index 3d4ff921b5b6e..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/CHANGELOG.md +++ /dev/null @@ -1,7 +0,0 @@ -# Release History - -## 1.0.0-preview.1 (Unreleased) - -This package follows the [Azure SDK Design Guidelines for .NET](https://azure.github.io/azure-sdk/dotnet_introduction.html) which provide a number of core capabilities that are shared amongst all Azure SDKs, including the intuitive Azure Identity library, an HTTP Pipeline with custom policies, error-handling, distributed tracing, and much more. - -This is a Public Preview version, so expect incompatible changes in subsequent releases as we improve the product. To provide feedback, please submit an issue in our [Azure SDK for .NET GitHub repo](https://github.com/Azure/azure-sdk-for-net/issues). \ No newline at end of file diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/Directory.Build.props b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/Directory.Build.props deleted file mode 100644 index 1a9611bd49242..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/Directory.Build.props +++ /dev/null @@ -1,6 +0,0 @@ - - - - diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/README.md b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/README.md deleted file mode 100644 index 4576cd11cbf94..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/README.md +++ /dev/null @@ -1,77 +0,0 @@ -# Azure Management Management client library for .NET - -This package follows the [new Azure SDK guidelines](https://azure.github.io/azure-sdk/general_introduction.html) which provide a number of core capabilities that are shared amongst all Azure SDKs, including the intuitive Azure Identity library, an HTTP Pipeline with custom policies, error-handling, distributed tracing, and much more. - -## Getting started - -### Install the package - -Install the Azure Management management library for .NET with [NuGet](https://www.nuget.org/): - -```PowerShell -Install-Package Azure.ResourceManager.ManagementGroups -Version 1.0.0-preview.1 -``` - -### Prerequisites - -* You must have an [Azure subscription](https://azure.microsoft.com/free/dotnet/) - -### Authenticate the Client - -To create an authenticated client and start interacting with Azure resources, please see the [quickstart guide here](https://github.com/Azure/azure-sdk-for-net/blob/main/doc/mgmt_preview_quickstart.md) - -## Key concepts - -Key concepts of the Azure .NET SDK can be found [here](https://azure.github.io/azure-sdk/dotnet_introduction.html) - -## Documentation - -Documentation is available to help you learn how to use this package - -- [Quickstart](https://github.com/Azure/azure-sdk-for-net/blob/main/doc/mgmt_preview_quickstart.md) -- [API References](https://docs.microsoft.com/dotnet/api/?view=azure-dotnet) -- [Authentication](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md) - -## Examples - -Code samples for using the management library for .NET can be found in the following locations -- [.NET Management Library Code Samples](https://docs.microsoft.com/samples/browse/?branch=master&languages=csharp&term=managing%20using%20Azure%20.NET%20SDK) - -## Troubleshooting - -- File an issue via [Github - Issues](https://github.com/Azure/azure-sdk-for-net/issues) -- Check [previous - questions](https://stackoverflow.com/questions/tagged/azure+.net) - or ask new ones on Stack Overflow using azure and .net tags. - - -## Next steps - -For more information on Azure SDK, please refer to [this website](https://azure.github.io/azure-sdk/) - -## Contributing - -For details on contributing to this repository, see the contributing -guide. - -This project welcomes contributions and suggestions. Most contributions -require you to agree to a Contributor License Agreement (CLA) declaring -that you have the right to, and actually do, grant us the rights to use -your contribution. For details, visit . - -When you submit a pull request, a CLA-bot will automatically determine -whether you need to provide a CLA and decorate the PR appropriately -(e.g., label, comment). Simply follow the instructions provided by the -bot. You will only need to do this once across all repositories using -our CLA. - -This project has adopted the Microsoft Open Source Code of Conduct. For -more information see the Code of Conduct FAQ or contact - with any additional questions or comments. - - -[style-guide-msft]: https://docs.microsoft.com/style-guide/capitalization -[style-guide-cloud]: https://aka.ms/azsdk/cloud-style-guide - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-net%2Fsdk%2Ftemplate%2FAzure.Template%2FREADME.png) \ No newline at end of file diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Azure.ResourceManager.ManagementGroups.csproj b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Azure.ResourceManager.ManagementGroups.csproj deleted file mode 100644 index 3a1a6d2ce2490..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Azure.ResourceManager.ManagementGroups.csproj +++ /dev/null @@ -1,15 +0,0 @@ - - - 1.0.0-preview.1 - Azure.ResourceManager.ManagementGroups - Azure Resource Manager client SDK for Azure resource provider Microsoft.Management - azure;management;arm;resource manager;management - - - - - - - - - diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/EntitiesOperations.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/EntitiesOperations.cs deleted file mode 100644 index f49f64f101178..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/EntitiesOperations.cs +++ /dev/null @@ -1,162 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager.ManagementGroups.Models; - -namespace Azure.ResourceManager.ManagementGroups -{ - /// The Entities service client. - public partial class EntitiesOperations - { - private readonly ClientDiagnostics _clientDiagnostics; - private readonly HttpPipeline _pipeline; - internal EntitiesRestOperations RestClient { get; } - - /// Initializes a new instance of EntitiesOperations for mocking. - protected EntitiesOperations() - { - } - - /// Initializes a new instance of EntitiesOperations. - /// The handler for diagnostic messaging in the client. - /// The HTTP pipeline for sending and receiving REST requests and responses. - /// server parameter. - /// Api Version. - internal EntitiesOperations(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint = null, string apiVersion = "2021-04-01") - { - RestClient = new EntitiesRestOperations(clientDiagnostics, pipeline, endpoint, apiVersion); - _clientDiagnostics = clientDiagnostics; - _pipeline = pipeline; - } - - /// - /// List all entities (Management Groups, Subscriptions, etc.) for the authenticated user. - /// . - /// - /// - /// Page continuation token is only used if a previous operation returned a partial result. - /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. - /// . - /// - /// Number of entities to skip over when retrieving results. Passing this in will override $skipToken. - /// Number of elements to return when retrieving results. Passing this in will override $skipToken. - /// This parameter specifies the fields to include in the response. Can include any combination of Name,DisplayName,Type,ParentDisplayNameChain,ParentChain, e.g. '$select=Name,DisplayName,Type,ParentDisplayNameChain,ParentNameChain'. When specified the $select parameter can override select in $skipToken. - /// - /// The $search parameter is used in conjunction with the $filter parameter to return three different outputs depending on the parameter passed in. - /// With $search=AllowedParents the API will return the entity info of all groups that the requested entity will be able to reparent to as determined by the user's permissions. - /// With $search=AllowedChildren the API will return the entity info of all entities that can be added as children of the requested entity. - /// With $search=ParentAndFirstLevelChildren the API will return the parent and first level of children that the user has either direct access to or indirect access via one of their descendants. - /// With $search=ParentOnly the API will return only the group if the user has access to at least one of the descendants of the group. - /// With $search=ChildrenOnly the API will return only the first level of children of the group entity info specified in $filter. The user must have direct access to the children entities or one of it's descendants for it to show up in the results. - /// - /// The filter parameter allows you to filter on the the name or display name fields. You can check for equality on the name field (e.g. name eq '{entityName}') and you can check for substrings on either the name or display name fields(e.g. contains(name, '{substringToSearch}'), contains(displayName, '{substringToSearch')). Note that the '{entityName}' and '{substringToSearch}' fields are checked case insensitively. - /// The view parameter allows clients to filter the type of data that is returned by the getEntities call. - /// A filter which allows the get entities call to focus on a particular group (i.e. "$filter=name eq 'groupName'"). - /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. - /// The cancellation token to use. - public virtual AsyncPageable ListAsync(string skiptoken = null, int? skip = null, int? top = null, string select = null, Enum2? search = null, string filter = null, Enum3? view = null, string groupName = null, string cacheControl = null, CancellationToken cancellationToken = default) - { - async Task> FirstPageFunc(int? pageSizeHint) - { - using var scope = _clientDiagnostics.CreateScope("EntitiesOperations.List"); - scope.Start(); - try - { - var response = await RestClient.ListAsync(skiptoken, skip, top, select, search, filter, view, groupName, cacheControl, cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - async Task> NextPageFunc(string nextLink, int? pageSizeHint) - { - using var scope = _clientDiagnostics.CreateScope("EntitiesOperations.List"); - scope.Start(); - try - { - var response = await RestClient.ListNextPageAsync(nextLink, skiptoken, skip, top, select, search, filter, view, groupName, cacheControl, cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, NextPageFunc); - } - - /// - /// List all entities (Management Groups, Subscriptions, etc.) for the authenticated user. - /// . - /// - /// - /// Page continuation token is only used if a previous operation returned a partial result. - /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. - /// . - /// - /// Number of entities to skip over when retrieving results. Passing this in will override $skipToken. - /// Number of elements to return when retrieving results. Passing this in will override $skipToken. - /// This parameter specifies the fields to include in the response. Can include any combination of Name,DisplayName,Type,ParentDisplayNameChain,ParentChain, e.g. '$select=Name,DisplayName,Type,ParentDisplayNameChain,ParentNameChain'. When specified the $select parameter can override select in $skipToken. - /// - /// The $search parameter is used in conjunction with the $filter parameter to return three different outputs depending on the parameter passed in. - /// With $search=AllowedParents the API will return the entity info of all groups that the requested entity will be able to reparent to as determined by the user's permissions. - /// With $search=AllowedChildren the API will return the entity info of all entities that can be added as children of the requested entity. - /// With $search=ParentAndFirstLevelChildren the API will return the parent and first level of children that the user has either direct access to or indirect access via one of their descendants. - /// With $search=ParentOnly the API will return only the group if the user has access to at least one of the descendants of the group. - /// With $search=ChildrenOnly the API will return only the first level of children of the group entity info specified in $filter. The user must have direct access to the children entities or one of it's descendants for it to show up in the results. - /// - /// The filter parameter allows you to filter on the the name or display name fields. You can check for equality on the name field (e.g. name eq '{entityName}') and you can check for substrings on either the name or display name fields(e.g. contains(name, '{substringToSearch}'), contains(displayName, '{substringToSearch')). Note that the '{entityName}' and '{substringToSearch}' fields are checked case insensitively. - /// The view parameter allows clients to filter the type of data that is returned by the getEntities call. - /// A filter which allows the get entities call to focus on a particular group (i.e. "$filter=name eq 'groupName'"). - /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. - /// The cancellation token to use. - public virtual Pageable List(string skiptoken = null, int? skip = null, int? top = null, string select = null, Enum2? search = null, string filter = null, Enum3? view = null, string groupName = null, string cacheControl = null, CancellationToken cancellationToken = default) - { - Page FirstPageFunc(int? pageSizeHint) - { - using var scope = _clientDiagnostics.CreateScope("EntitiesOperations.List"); - scope.Start(); - try - { - var response = RestClient.List(skiptoken, skip, top, select, search, filter, view, groupName, cacheControl, cancellationToken); - return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - Page NextPageFunc(string nextLink, int? pageSizeHint) - { - using var scope = _clientDiagnostics.CreateScope("EntitiesOperations.List"); - scope.Start(); - try - { - var response = RestClient.ListNextPage(nextLink, skiptoken, skip, top, select, search, filter, view, groupName, cacheControl, cancellationToken); - return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - return PageableHelpers.CreateEnumerable(FirstPageFunc, NextPageFunc); - } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/EntitiesRestOperations.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/EntitiesRestOperations.cs deleted file mode 100644 index c71edf11923be..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/EntitiesRestOperations.cs +++ /dev/null @@ -1,299 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager.ManagementGroups.Models; - -namespace Azure.ResourceManager.ManagementGroups -{ - internal partial class EntitiesRestOperations - { - private Uri endpoint; - private string apiVersion; - private ClientDiagnostics _clientDiagnostics; - private HttpPipeline _pipeline; - - /// Initializes a new instance of EntitiesRestOperations. - /// The handler for diagnostic messaging in the client. - /// The HTTP pipeline for sending and receiving REST requests and responses. - /// server parameter. - /// Api Version. - /// is null. - public EntitiesRestOperations(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint = null, string apiVersion = "2021-04-01") - { - endpoint ??= new Uri("https://management.azure.com"); - if (apiVersion == null) - { - throw new ArgumentNullException(nameof(apiVersion)); - } - - this.endpoint = endpoint; - this.apiVersion = apiVersion; - _clientDiagnostics = clientDiagnostics; - _pipeline = pipeline; - } - - internal HttpMessage CreateListRequest(string skiptoken, int? skip, int? top, string select, Enum2? search, string filter, Enum3? view, string groupName, string cacheControl) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(endpoint); - uri.AppendPath("/providers/Microsoft.Management/getEntities", false); - uri.AppendQuery("api-version", apiVersion, true); - if (skiptoken != null) - { - uri.AppendQuery("$skiptoken", skiptoken, true); - } - if (skip != null) - { - uri.AppendQuery("$skip", skip.Value, true); - } - if (top != null) - { - uri.AppendQuery("$top", top.Value, true); - } - if (select != null) - { - uri.AppendQuery("$select", select, true); - } - if (search != null) - { - uri.AppendQuery("$search", search.Value.ToString(), true); - } - if (filter != null) - { - uri.AppendQuery("$filter", filter, true); - } - if (view != null) - { - uri.AppendQuery("$view", view.Value.ToString(), true); - } - if (groupName != null) - { - uri.AppendQuery("groupName", groupName, true); - } - request.Uri = uri; - if (cacheControl != null) - { - request.Headers.Add("Cache-Control", cacheControl); - } - request.Headers.Add("Accept", "application/json"); - return message; - } - - /// - /// List all entities (Management Groups, Subscriptions, etc.) for the authenticated user. - /// . - /// - /// - /// Page continuation token is only used if a previous operation returned a partial result. - /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. - /// . - /// - /// Number of entities to skip over when retrieving results. Passing this in will override $skipToken. - /// Number of elements to return when retrieving results. Passing this in will override $skipToken. - /// This parameter specifies the fields to include in the response. Can include any combination of Name,DisplayName,Type,ParentDisplayNameChain,ParentChain, e.g. '$select=Name,DisplayName,Type,ParentDisplayNameChain,ParentNameChain'. When specified the $select parameter can override select in $skipToken. - /// - /// The $search parameter is used in conjunction with the $filter parameter to return three different outputs depending on the parameter passed in. - /// With $search=AllowedParents the API will return the entity info of all groups that the requested entity will be able to reparent to as determined by the user's permissions. - /// With $search=AllowedChildren the API will return the entity info of all entities that can be added as children of the requested entity. - /// With $search=ParentAndFirstLevelChildren the API will return the parent and first level of children that the user has either direct access to or indirect access via one of their descendants. - /// With $search=ParentOnly the API will return only the group if the user has access to at least one of the descendants of the group. - /// With $search=ChildrenOnly the API will return only the first level of children of the group entity info specified in $filter. The user must have direct access to the children entities or one of it's descendants for it to show up in the results. - /// - /// The filter parameter allows you to filter on the the name or display name fields. You can check for equality on the name field (e.g. name eq '{entityName}') and you can check for substrings on either the name or display name fields(e.g. contains(name, '{substringToSearch}'), contains(displayName, '{substringToSearch')). Note that the '{entityName}' and '{substringToSearch}' fields are checked case insensitively. - /// The view parameter allows clients to filter the type of data that is returned by the getEntities call. - /// A filter which allows the get entities call to focus on a particular group (i.e. "$filter=name eq 'groupName'"). - /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. - /// The cancellation token to use. - public async Task> ListAsync(string skiptoken = null, int? skip = null, int? top = null, string select = null, Enum2? search = null, string filter = null, Enum3? view = null, string groupName = null, string cacheControl = null, CancellationToken cancellationToken = default) - { - using var message = CreateListRequest(skiptoken, skip, top, select, search, filter, view, groupName, cacheControl); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - EntityListResult value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = EntityListResult.DeserializeEntityListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); - } - } - - /// - /// List all entities (Management Groups, Subscriptions, etc.) for the authenticated user. - /// . - /// - /// - /// Page continuation token is only used if a previous operation returned a partial result. - /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. - /// . - /// - /// Number of entities to skip over when retrieving results. Passing this in will override $skipToken. - /// Number of elements to return when retrieving results. Passing this in will override $skipToken. - /// This parameter specifies the fields to include in the response. Can include any combination of Name,DisplayName,Type,ParentDisplayNameChain,ParentChain, e.g. '$select=Name,DisplayName,Type,ParentDisplayNameChain,ParentNameChain'. When specified the $select parameter can override select in $skipToken. - /// - /// The $search parameter is used in conjunction with the $filter parameter to return three different outputs depending on the parameter passed in. - /// With $search=AllowedParents the API will return the entity info of all groups that the requested entity will be able to reparent to as determined by the user's permissions. - /// With $search=AllowedChildren the API will return the entity info of all entities that can be added as children of the requested entity. - /// With $search=ParentAndFirstLevelChildren the API will return the parent and first level of children that the user has either direct access to or indirect access via one of their descendants. - /// With $search=ParentOnly the API will return only the group if the user has access to at least one of the descendants of the group. - /// With $search=ChildrenOnly the API will return only the first level of children of the group entity info specified in $filter. The user must have direct access to the children entities or one of it's descendants for it to show up in the results. - /// - /// The filter parameter allows you to filter on the the name or display name fields. You can check for equality on the name field (e.g. name eq '{entityName}') and you can check for substrings on either the name or display name fields(e.g. contains(name, '{substringToSearch}'), contains(displayName, '{substringToSearch')). Note that the '{entityName}' and '{substringToSearch}' fields are checked case insensitively. - /// The view parameter allows clients to filter the type of data that is returned by the getEntities call. - /// A filter which allows the get entities call to focus on a particular group (i.e. "$filter=name eq 'groupName'"). - /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. - /// The cancellation token to use. - public Response List(string skiptoken = null, int? skip = null, int? top = null, string select = null, Enum2? search = null, string filter = null, Enum3? view = null, string groupName = null, string cacheControl = null, CancellationToken cancellationToken = default) - { - using var message = CreateListRequest(skiptoken, skip, top, select, search, filter, view, groupName, cacheControl); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - EntityListResult value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = EntityListResult.DeserializeEntityListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw _clientDiagnostics.CreateRequestFailedException(message.Response); - } - } - - internal HttpMessage CreateListNextPageRequest(string nextLink, string skiptoken, int? skip, int? top, string select, Enum2? search, string filter, Enum3? view, string groupName, string cacheControl) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(endpoint); - uri.AppendRawNextLink(nextLink, false); - request.Uri = uri; - if (cacheControl != null) - { - request.Headers.Add("Cache-Control", cacheControl); - } - request.Headers.Add("Accept", "application/json"); - return message; - } - - /// - /// List all entities (Management Groups, Subscriptions, etc.) for the authenticated user. - /// . - /// - /// The URL to the next page of results. - /// - /// Page continuation token is only used if a previous operation returned a partial result. - /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. - /// . - /// - /// Number of entities to skip over when retrieving results. Passing this in will override $skipToken. - /// Number of elements to return when retrieving results. Passing this in will override $skipToken. - /// This parameter specifies the fields to include in the response. Can include any combination of Name,DisplayName,Type,ParentDisplayNameChain,ParentChain, e.g. '$select=Name,DisplayName,Type,ParentDisplayNameChain,ParentNameChain'. When specified the $select parameter can override select in $skipToken. - /// - /// The $search parameter is used in conjunction with the $filter parameter to return three different outputs depending on the parameter passed in. - /// With $search=AllowedParents the API will return the entity info of all groups that the requested entity will be able to reparent to as determined by the user's permissions. - /// With $search=AllowedChildren the API will return the entity info of all entities that can be added as children of the requested entity. - /// With $search=ParentAndFirstLevelChildren the API will return the parent and first level of children that the user has either direct access to or indirect access via one of their descendants. - /// With $search=ParentOnly the API will return only the group if the user has access to at least one of the descendants of the group. - /// With $search=ChildrenOnly the API will return only the first level of children of the group entity info specified in $filter. The user must have direct access to the children entities or one of it's descendants for it to show up in the results. - /// - /// The filter parameter allows you to filter on the the name or display name fields. You can check for equality on the name field (e.g. name eq '{entityName}') and you can check for substrings on either the name or display name fields(e.g. contains(name, '{substringToSearch}'), contains(displayName, '{substringToSearch')). Note that the '{entityName}' and '{substringToSearch}' fields are checked case insensitively. - /// The view parameter allows clients to filter the type of data that is returned by the getEntities call. - /// A filter which allows the get entities call to focus on a particular group (i.e. "$filter=name eq 'groupName'"). - /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. - /// The cancellation token to use. - /// is null. - public async Task> ListNextPageAsync(string nextLink, string skiptoken = null, int? skip = null, int? top = null, string select = null, Enum2? search = null, string filter = null, Enum3? view = null, string groupName = null, string cacheControl = null, CancellationToken cancellationToken = default) - { - if (nextLink == null) - { - throw new ArgumentNullException(nameof(nextLink)); - } - - using var message = CreateListNextPageRequest(nextLink, skiptoken, skip, top, select, search, filter, view, groupName, cacheControl); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - EntityListResult value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = EntityListResult.DeserializeEntityListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); - } - } - - /// - /// List all entities (Management Groups, Subscriptions, etc.) for the authenticated user. - /// . - /// - /// The URL to the next page of results. - /// - /// Page continuation token is only used if a previous operation returned a partial result. - /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. - /// . - /// - /// Number of entities to skip over when retrieving results. Passing this in will override $skipToken. - /// Number of elements to return when retrieving results. Passing this in will override $skipToken. - /// This parameter specifies the fields to include in the response. Can include any combination of Name,DisplayName,Type,ParentDisplayNameChain,ParentChain, e.g. '$select=Name,DisplayName,Type,ParentDisplayNameChain,ParentNameChain'. When specified the $select parameter can override select in $skipToken. - /// - /// The $search parameter is used in conjunction with the $filter parameter to return three different outputs depending on the parameter passed in. - /// With $search=AllowedParents the API will return the entity info of all groups that the requested entity will be able to reparent to as determined by the user's permissions. - /// With $search=AllowedChildren the API will return the entity info of all entities that can be added as children of the requested entity. - /// With $search=ParentAndFirstLevelChildren the API will return the parent and first level of children that the user has either direct access to or indirect access via one of their descendants. - /// With $search=ParentOnly the API will return only the group if the user has access to at least one of the descendants of the group. - /// With $search=ChildrenOnly the API will return only the first level of children of the group entity info specified in $filter. The user must have direct access to the children entities or one of it's descendants for it to show up in the results. - /// - /// The filter parameter allows you to filter on the the name or display name fields. You can check for equality on the name field (e.g. name eq '{entityName}') and you can check for substrings on either the name or display name fields(e.g. contains(name, '{substringToSearch}'), contains(displayName, '{substringToSearch')). Note that the '{entityName}' and '{substringToSearch}' fields are checked case insensitively. - /// The view parameter allows clients to filter the type of data that is returned by the getEntities call. - /// A filter which allows the get entities call to focus on a particular group (i.e. "$filter=name eq 'groupName'"). - /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. - /// The cancellation token to use. - /// is null. - public Response ListNextPage(string nextLink, string skiptoken = null, int? skip = null, int? top = null, string select = null, Enum2? search = null, string filter = null, Enum3? view = null, string groupName = null, string cacheControl = null, CancellationToken cancellationToken = default) - { - if (nextLink == null) - { - throw new ArgumentNullException(nameof(nextLink)); - } - - using var message = CreateListNextPageRequest(nextLink, skiptoken, skip, top, select, search, filter, view, groupName, cacheControl); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - EntityListResult value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = EntityListResult.DeserializeEntityListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw _clientDiagnostics.CreateRequestFailedException(message.Response); - } - } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/HierarchySettingsOperations.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/HierarchySettingsOperations.cs deleted file mode 100644 index 86c7aeb163d33..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/HierarchySettingsOperations.cs +++ /dev/null @@ -1,255 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core.Pipeline; -using Azure.ResourceManager.ManagementGroups.Models; - -namespace Azure.ResourceManager.ManagementGroups -{ - /// The HierarchySettings service client. - public partial class HierarchySettingsOperations - { - private readonly ClientDiagnostics _clientDiagnostics; - private readonly HttpPipeline _pipeline; - internal HierarchySettingsRestOperations RestClient { get; } - - /// Initializes a new instance of HierarchySettingsOperations for mocking. - protected HierarchySettingsOperations() - { - } - - /// Initializes a new instance of HierarchySettingsOperations. - /// The handler for diagnostic messaging in the client. - /// The HTTP pipeline for sending and receiving REST requests and responses. - /// server parameter. - /// Api Version. - internal HierarchySettingsOperations(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint = null, string apiVersion = "2021-04-01") - { - RestClient = new HierarchySettingsRestOperations(clientDiagnostics, pipeline, endpoint, apiVersion); - _clientDiagnostics = clientDiagnostics; - _pipeline = pipeline; - } - - /// - /// Gets all the hierarchy settings defined at the Management Group level. Settings can only be set on the root Management Group of the hierarchy. - /// . - /// - /// Management Group ID. - /// The cancellation token to use. - public virtual async Task> ListAsync(string groupId, CancellationToken cancellationToken = default) - { - using var scope = _clientDiagnostics.CreateScope("HierarchySettingsOperations.List"); - scope.Start(); - try - { - return await RestClient.ListAsync(groupId, cancellationToken).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Gets all the hierarchy settings defined at the Management Group level. Settings can only be set on the root Management Group of the hierarchy. - /// . - /// - /// Management Group ID. - /// The cancellation token to use. - public virtual Response List(string groupId, CancellationToken cancellationToken = default) - { - using var scope = _clientDiagnostics.CreateScope("HierarchySettingsOperations.List"); - scope.Start(); - try - { - return RestClient.List(groupId, cancellationToken); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Gets the hierarchy settings defined at the Management Group level. Settings can only be set on the root Management Group of the hierarchy. - /// . - /// - /// Management Group ID. - /// The cancellation token to use. - public virtual async Task> GetAsync(string groupId, CancellationToken cancellationToken = default) - { - using var scope = _clientDiagnostics.CreateScope("HierarchySettingsOperations.Get"); - scope.Start(); - try - { - return await RestClient.GetAsync(groupId, cancellationToken).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Gets the hierarchy settings defined at the Management Group level. Settings can only be set on the root Management Group of the hierarchy. - /// . - /// - /// Management Group ID. - /// The cancellation token to use. - public virtual Response Get(string groupId, CancellationToken cancellationToken = default) - { - using var scope = _clientDiagnostics.CreateScope("HierarchySettingsOperations.Get"); - scope.Start(); - try - { - return RestClient.Get(groupId, cancellationToken); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Creates or updates the hierarchy settings defined at the Management Group level. - /// . - /// - /// Management Group ID. - /// Tenant level settings request parameter. - /// The cancellation token to use. - public virtual async Task> CreateOrUpdateAsync(string groupId, CreateOrUpdateSettingsRequest createTenantSettingsRequest, CancellationToken cancellationToken = default) - { - using var scope = _clientDiagnostics.CreateScope("HierarchySettingsOperations.CreateOrUpdate"); - scope.Start(); - try - { - return await RestClient.CreateOrUpdateAsync(groupId, createTenantSettingsRequest, cancellationToken).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Creates or updates the hierarchy settings defined at the Management Group level. - /// . - /// - /// Management Group ID. - /// Tenant level settings request parameter. - /// The cancellation token to use. - public virtual Response CreateOrUpdate(string groupId, CreateOrUpdateSettingsRequest createTenantSettingsRequest, CancellationToken cancellationToken = default) - { - using var scope = _clientDiagnostics.CreateScope("HierarchySettingsOperations.CreateOrUpdate"); - scope.Start(); - try - { - return RestClient.CreateOrUpdate(groupId, createTenantSettingsRequest, cancellationToken); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Updates the hierarchy settings defined at the Management Group level. - /// . - /// - /// Management Group ID. - /// Tenant level settings request parameter. - /// The cancellation token to use. - public virtual async Task> UpdateAsync(string groupId, CreateOrUpdateSettingsRequest createTenantSettingsRequest, CancellationToken cancellationToken = default) - { - using var scope = _clientDiagnostics.CreateScope("HierarchySettingsOperations.Update"); - scope.Start(); - try - { - return await RestClient.UpdateAsync(groupId, createTenantSettingsRequest, cancellationToken).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Updates the hierarchy settings defined at the Management Group level. - /// . - /// - /// Management Group ID. - /// Tenant level settings request parameter. - /// The cancellation token to use. - public virtual Response Update(string groupId, CreateOrUpdateSettingsRequest createTenantSettingsRequest, CancellationToken cancellationToken = default) - { - using var scope = _clientDiagnostics.CreateScope("HierarchySettingsOperations.Update"); - scope.Start(); - try - { - return RestClient.Update(groupId, createTenantSettingsRequest, cancellationToken); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Deletes the hierarchy settings defined at the Management Group level. - /// . - /// - /// Management Group ID. - /// The cancellation token to use. - public virtual async Task DeleteAsync(string groupId, CancellationToken cancellationToken = default) - { - using var scope = _clientDiagnostics.CreateScope("HierarchySettingsOperations.Delete"); - scope.Start(); - try - { - return await RestClient.DeleteAsync(groupId, cancellationToken).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Deletes the hierarchy settings defined at the Management Group level. - /// . - /// - /// Management Group ID. - /// The cancellation token to use. - public virtual Response Delete(string groupId, CancellationToken cancellationToken = default) - { - using var scope = _clientDiagnostics.CreateScope("HierarchySettingsOperations.Delete"); - scope.Start(); - try - { - return RestClient.Delete(groupId, cancellationToken); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/HierarchySettingsRestOperations.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/HierarchySettingsRestOperations.cs deleted file mode 100644 index a2784037e62be..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/HierarchySettingsRestOperations.cs +++ /dev/null @@ -1,444 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager.ManagementGroups.Models; - -namespace Azure.ResourceManager.ManagementGroups -{ - internal partial class HierarchySettingsRestOperations - { - private Uri endpoint; - private string apiVersion; - private ClientDiagnostics _clientDiagnostics; - private HttpPipeline _pipeline; - - /// Initializes a new instance of HierarchySettingsRestOperations. - /// The handler for diagnostic messaging in the client. - /// The HTTP pipeline for sending and receiving REST requests and responses. - /// server parameter. - /// Api Version. - /// is null. - public HierarchySettingsRestOperations(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint = null, string apiVersion = "2021-04-01") - { - endpoint ??= new Uri("https://management.azure.com"); - if (apiVersion == null) - { - throw new ArgumentNullException(nameof(apiVersion)); - } - - this.endpoint = endpoint; - this.apiVersion = apiVersion; - _clientDiagnostics = clientDiagnostics; - _pipeline = pipeline; - } - - internal HttpMessage CreateListRequest(string groupId) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(endpoint); - uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); - uri.AppendPath(groupId, true); - uri.AppendPath("/settings", false); - uri.AppendQuery("api-version", apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - /// - /// Gets all the hierarchy settings defined at the Management Group level. Settings can only be set on the root Management Group of the hierarchy. - /// . - /// - /// Management Group ID. - /// The cancellation token to use. - /// is null. - public async Task> ListAsync(string groupId, CancellationToken cancellationToken = default) - { - if (groupId == null) - { - throw new ArgumentNullException(nameof(groupId)); - } - - using var message = CreateListRequest(groupId); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - HierarchySettingsList value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = HierarchySettingsList.DeserializeHierarchySettingsList(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); - } - } - - /// - /// Gets all the hierarchy settings defined at the Management Group level. Settings can only be set on the root Management Group of the hierarchy. - /// . - /// - /// Management Group ID. - /// The cancellation token to use. - /// is null. - public Response List(string groupId, CancellationToken cancellationToken = default) - { - if (groupId == null) - { - throw new ArgumentNullException(nameof(groupId)); - } - - using var message = CreateListRequest(groupId); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - HierarchySettingsList value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = HierarchySettingsList.DeserializeHierarchySettingsList(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw _clientDiagnostics.CreateRequestFailedException(message.Response); - } - } - - internal HttpMessage CreateGetRequest(string groupId) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(endpoint); - uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); - uri.AppendPath(groupId, true); - uri.AppendPath("/settings/default", false); - uri.AppendQuery("api-version", apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - /// - /// Gets the hierarchy settings defined at the Management Group level. Settings can only be set on the root Management Group of the hierarchy. - /// . - /// - /// Management Group ID. - /// The cancellation token to use. - /// is null. - public async Task> GetAsync(string groupId, CancellationToken cancellationToken = default) - { - if (groupId == null) - { - throw new ArgumentNullException(nameof(groupId)); - } - - using var message = CreateGetRequest(groupId); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - HierarchySettings value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = HierarchySettings.DeserializeHierarchySettings(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); - } - } - - /// - /// Gets the hierarchy settings defined at the Management Group level. Settings can only be set on the root Management Group of the hierarchy. - /// . - /// - /// Management Group ID. - /// The cancellation token to use. - /// is null. - public Response Get(string groupId, CancellationToken cancellationToken = default) - { - if (groupId == null) - { - throw new ArgumentNullException(nameof(groupId)); - } - - using var message = CreateGetRequest(groupId); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - HierarchySettings value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = HierarchySettings.DeserializeHierarchySettings(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw _clientDiagnostics.CreateRequestFailedException(message.Response); - } - } - - internal HttpMessage CreateCreateOrUpdateRequest(string groupId, CreateOrUpdateSettingsRequest createTenantSettingsRequest) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Put; - var uri = new RawRequestUriBuilder(); - uri.Reset(endpoint); - uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); - uri.AppendPath(groupId, true); - uri.AppendPath("/settings/default", false); - uri.AppendQuery("api-version", apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(createTenantSettingsRequest); - request.Content = content; - return message; - } - - /// - /// Creates or updates the hierarchy settings defined at the Management Group level. - /// . - /// - /// Management Group ID. - /// Tenant level settings request parameter. - /// The cancellation token to use. - /// or is null. - public async Task> CreateOrUpdateAsync(string groupId, CreateOrUpdateSettingsRequest createTenantSettingsRequest, CancellationToken cancellationToken = default) - { - if (groupId == null) - { - throw new ArgumentNullException(nameof(groupId)); - } - if (createTenantSettingsRequest == null) - { - throw new ArgumentNullException(nameof(createTenantSettingsRequest)); - } - - using var message = CreateCreateOrUpdateRequest(groupId, createTenantSettingsRequest); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - HierarchySettings value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = HierarchySettings.DeserializeHierarchySettings(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); - } - } - - /// - /// Creates or updates the hierarchy settings defined at the Management Group level. - /// . - /// - /// Management Group ID. - /// Tenant level settings request parameter. - /// The cancellation token to use. - /// or is null. - public Response CreateOrUpdate(string groupId, CreateOrUpdateSettingsRequest createTenantSettingsRequest, CancellationToken cancellationToken = default) - { - if (groupId == null) - { - throw new ArgumentNullException(nameof(groupId)); - } - if (createTenantSettingsRequest == null) - { - throw new ArgumentNullException(nameof(createTenantSettingsRequest)); - } - - using var message = CreateCreateOrUpdateRequest(groupId, createTenantSettingsRequest); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - HierarchySettings value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = HierarchySettings.DeserializeHierarchySettings(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw _clientDiagnostics.CreateRequestFailedException(message.Response); - } - } - - internal HttpMessage CreateUpdateRequest(string groupId, CreateOrUpdateSettingsRequest createTenantSettingsRequest) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Patch; - var uri = new RawRequestUriBuilder(); - uri.Reset(endpoint); - uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); - uri.AppendPath(groupId, true); - uri.AppendPath("/settings/default", false); - uri.AppendQuery("api-version", apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(createTenantSettingsRequest); - request.Content = content; - return message; - } - - /// - /// Updates the hierarchy settings defined at the Management Group level. - /// . - /// - /// Management Group ID. - /// Tenant level settings request parameter. - /// The cancellation token to use. - /// or is null. - public async Task> UpdateAsync(string groupId, CreateOrUpdateSettingsRequest createTenantSettingsRequest, CancellationToken cancellationToken = default) - { - if (groupId == null) - { - throw new ArgumentNullException(nameof(groupId)); - } - if (createTenantSettingsRequest == null) - { - throw new ArgumentNullException(nameof(createTenantSettingsRequest)); - } - - using var message = CreateUpdateRequest(groupId, createTenantSettingsRequest); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - HierarchySettings value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = HierarchySettings.DeserializeHierarchySettings(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); - } - } - - /// - /// Updates the hierarchy settings defined at the Management Group level. - /// . - /// - /// Management Group ID. - /// Tenant level settings request parameter. - /// The cancellation token to use. - /// or is null. - public Response Update(string groupId, CreateOrUpdateSettingsRequest createTenantSettingsRequest, CancellationToken cancellationToken = default) - { - if (groupId == null) - { - throw new ArgumentNullException(nameof(groupId)); - } - if (createTenantSettingsRequest == null) - { - throw new ArgumentNullException(nameof(createTenantSettingsRequest)); - } - - using var message = CreateUpdateRequest(groupId, createTenantSettingsRequest); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - HierarchySettings value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = HierarchySettings.DeserializeHierarchySettings(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw _clientDiagnostics.CreateRequestFailedException(message.Response); - } - } - - internal HttpMessage CreateDeleteRequest(string groupId) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Delete; - var uri = new RawRequestUriBuilder(); - uri.Reset(endpoint); - uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); - uri.AppendPath(groupId, true); - uri.AppendPath("/settings/default", false); - uri.AppendQuery("api-version", apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - /// - /// Deletes the hierarchy settings defined at the Management Group level. - /// . - /// - /// Management Group ID. - /// The cancellation token to use. - /// is null. - public async Task DeleteAsync(string groupId, CancellationToken cancellationToken = default) - { - if (groupId == null) - { - throw new ArgumentNullException(nameof(groupId)); - } - - using var message = CreateDeleteRequest(groupId); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - return message.Response; - default: - throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); - } - } - - /// - /// Deletes the hierarchy settings defined at the Management Group level. - /// . - /// - /// Management Group ID. - /// The cancellation token to use. - /// is null. - public Response Delete(string groupId, CancellationToken cancellationToken = default) - { - if (groupId == null) - { - throw new ArgumentNullException(nameof(groupId)); - } - - using var message = CreateDeleteRequest(groupId); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - return message.Response; - default: - throw _clientDiagnostics.CreateRequestFailedException(message.Response); - } - } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupSubscriptionsOperations.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupSubscriptionsOperations.cs deleted file mode 100644 index 6a1b056b13b4f..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupSubscriptionsOperations.cs +++ /dev/null @@ -1,284 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager.ManagementGroups.Models; - -namespace Azure.ResourceManager.ManagementGroups -{ - /// The ManagementGroupSubscriptions service client. - public partial class ManagementGroupSubscriptionsOperations - { - private readonly ClientDiagnostics _clientDiagnostics; - private readonly HttpPipeline _pipeline; - internal ManagementGroupSubscriptionsRestOperations RestClient { get; } - - /// Initializes a new instance of ManagementGroupSubscriptionsOperations for mocking. - protected ManagementGroupSubscriptionsOperations() - { - } - - /// Initializes a new instance of ManagementGroupSubscriptionsOperations. - /// The handler for diagnostic messaging in the client. - /// The HTTP pipeline for sending and receiving REST requests and responses. - /// server parameter. - /// Api Version. - internal ManagementGroupSubscriptionsOperations(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint = null, string apiVersion = "2021-04-01") - { - RestClient = new ManagementGroupSubscriptionsRestOperations(clientDiagnostics, pipeline, endpoint, apiVersion); - _clientDiagnostics = clientDiagnostics; - _pipeline = pipeline; - } - - /// - /// Associates existing subscription with the management group. - /// . - /// - /// Management Group ID. - /// Subscription ID. - /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. - /// The cancellation token to use. - public virtual async Task> CreateAsync(string groupId, string subscriptionId, string cacheControl = null, CancellationToken cancellationToken = default) - { - using var scope = _clientDiagnostics.CreateScope("ManagementGroupSubscriptionsOperations.Create"); - scope.Start(); - try - { - return await RestClient.CreateAsync(groupId, subscriptionId, cacheControl, cancellationToken).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Associates existing subscription with the management group. - /// . - /// - /// Management Group ID. - /// Subscription ID. - /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. - /// The cancellation token to use. - public virtual Response Create(string groupId, string subscriptionId, string cacheControl = null, CancellationToken cancellationToken = default) - { - using var scope = _clientDiagnostics.CreateScope("ManagementGroupSubscriptionsOperations.Create"); - scope.Start(); - try - { - return RestClient.Create(groupId, subscriptionId, cacheControl, cancellationToken); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// De-associates subscription from the management group. - /// . - /// - /// Management Group ID. - /// Subscription ID. - /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. - /// The cancellation token to use. - public virtual async Task DeleteAsync(string groupId, string subscriptionId, string cacheControl = null, CancellationToken cancellationToken = default) - { - using var scope = _clientDiagnostics.CreateScope("ManagementGroupSubscriptionsOperations.Delete"); - scope.Start(); - try - { - return await RestClient.DeleteAsync(groupId, subscriptionId, cacheControl, cancellationToken).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// De-associates subscription from the management group. - /// . - /// - /// Management Group ID. - /// Subscription ID. - /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. - /// The cancellation token to use. - public virtual Response Delete(string groupId, string subscriptionId, string cacheControl = null, CancellationToken cancellationToken = default) - { - using var scope = _clientDiagnostics.CreateScope("ManagementGroupSubscriptionsOperations.Delete"); - scope.Start(); - try - { - return RestClient.Delete(groupId, subscriptionId, cacheControl, cancellationToken); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Retrieves details about given subscription which is associated with the management group. - /// . - /// - /// Management Group ID. - /// Subscription ID. - /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. - /// The cancellation token to use. - public virtual async Task> GetSubscriptionAsync(string groupId, string subscriptionId, string cacheControl = null, CancellationToken cancellationToken = default) - { - using var scope = _clientDiagnostics.CreateScope("ManagementGroupSubscriptionsOperations.GetSubscription"); - scope.Start(); - try - { - return await RestClient.GetSubscriptionAsync(groupId, subscriptionId, cacheControl, cancellationToken).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Retrieves details about given subscription which is associated with the management group. - /// . - /// - /// Management Group ID. - /// Subscription ID. - /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. - /// The cancellation token to use. - public virtual Response GetSubscription(string groupId, string subscriptionId, string cacheControl = null, CancellationToken cancellationToken = default) - { - using var scope = _clientDiagnostics.CreateScope("ManagementGroupSubscriptionsOperations.GetSubscription"); - scope.Start(); - try - { - return RestClient.GetSubscription(groupId, subscriptionId, cacheControl, cancellationToken); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Retrieves details about all subscriptions which are associated with the management group. - /// . - /// - /// Management Group ID. - /// - /// Page continuation token is only used if a previous operation returned a partial result. - /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. - /// . - /// - /// The cancellation token to use. - /// is null. - public virtual AsyncPageable GetSubscriptionsUnderManagementGroupAsync(string groupId, string skiptoken = null, CancellationToken cancellationToken = default) - { - if (groupId == null) - { - throw new ArgumentNullException(nameof(groupId)); - } - - async Task> FirstPageFunc(int? pageSizeHint) - { - using var scope = _clientDiagnostics.CreateScope("ManagementGroupSubscriptionsOperations.GetSubscriptionsUnderManagementGroup"); - scope.Start(); - try - { - var response = await RestClient.GetSubscriptionsUnderManagementGroupAsync(groupId, skiptoken, cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - async Task> NextPageFunc(string nextLink, int? pageSizeHint) - { - using var scope = _clientDiagnostics.CreateScope("ManagementGroupSubscriptionsOperations.GetSubscriptionsUnderManagementGroup"); - scope.Start(); - try - { - var response = await RestClient.GetSubscriptionsUnderManagementGroupNextPageAsync(nextLink, groupId, skiptoken, cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, NextPageFunc); - } - - /// - /// Retrieves details about all subscriptions which are associated with the management group. - /// . - /// - /// Management Group ID. - /// - /// Page continuation token is only used if a previous operation returned a partial result. - /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. - /// . - /// - /// The cancellation token to use. - /// is null. - public virtual Pageable GetSubscriptionsUnderManagementGroup(string groupId, string skiptoken = null, CancellationToken cancellationToken = default) - { - if (groupId == null) - { - throw new ArgumentNullException(nameof(groupId)); - } - - Page FirstPageFunc(int? pageSizeHint) - { - using var scope = _clientDiagnostics.CreateScope("ManagementGroupSubscriptionsOperations.GetSubscriptionsUnderManagementGroup"); - scope.Start(); - try - { - var response = RestClient.GetSubscriptionsUnderManagementGroup(groupId, skiptoken, cancellationToken); - return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - Page NextPageFunc(string nextLink, int? pageSizeHint) - { - using var scope = _clientDiagnostics.CreateScope("ManagementGroupSubscriptionsOperations.GetSubscriptionsUnderManagementGroup"); - scope.Start(); - try - { - var response = RestClient.GetSubscriptionsUnderManagementGroupNextPage(nextLink, groupId, skiptoken, cancellationToken); - return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - return PageableHelpers.CreateEnumerable(FirstPageFunc, NextPageFunc); - } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupSubscriptionsRestOperations.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupSubscriptionsRestOperations.cs deleted file mode 100644 index ac0cac4e46fde..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupSubscriptionsRestOperations.cs +++ /dev/null @@ -1,500 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager.ManagementGroups.Models; - -namespace Azure.ResourceManager.ManagementGroups -{ - internal partial class ManagementGroupSubscriptionsRestOperations - { - private Uri endpoint; - private string apiVersion; - private ClientDiagnostics _clientDiagnostics; - private HttpPipeline _pipeline; - - /// Initializes a new instance of ManagementGroupSubscriptionsRestOperations. - /// The handler for diagnostic messaging in the client. - /// The HTTP pipeline for sending and receiving REST requests and responses. - /// server parameter. - /// Api Version. - /// is null. - public ManagementGroupSubscriptionsRestOperations(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint = null, string apiVersion = "2021-04-01") - { - endpoint ??= new Uri("https://management.azure.com"); - if (apiVersion == null) - { - throw new ArgumentNullException(nameof(apiVersion)); - } - - this.endpoint = endpoint; - this.apiVersion = apiVersion; - _clientDiagnostics = clientDiagnostics; - _pipeline = pipeline; - } - - internal HttpMessage CreateCreateRequest(string groupId, string subscriptionId, string cacheControl) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Put; - var uri = new RawRequestUriBuilder(); - uri.Reset(endpoint); - uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); - uri.AppendPath(groupId, true); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendQuery("api-version", apiVersion, true); - request.Uri = uri; - if (cacheControl != null) - { - request.Headers.Add("Cache-Control", cacheControl); - } - request.Headers.Add("Accept", "application/json"); - return message; - } - - /// - /// Associates existing subscription with the management group. - /// . - /// - /// Management Group ID. - /// Subscription ID. - /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. - /// The cancellation token to use. - /// or is null. - public async Task> CreateAsync(string groupId, string subscriptionId, string cacheControl = null, CancellationToken cancellationToken = default) - { - if (groupId == null) - { - throw new ArgumentNullException(nameof(groupId)); - } - if (subscriptionId == null) - { - throw new ArgumentNullException(nameof(subscriptionId)); - } - - using var message = CreateCreateRequest(groupId, subscriptionId, cacheControl); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - SubscriptionUnderManagementGroup value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = SubscriptionUnderManagementGroup.DeserializeSubscriptionUnderManagementGroup(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); - } - } - - /// - /// Associates existing subscription with the management group. - /// . - /// - /// Management Group ID. - /// Subscription ID. - /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. - /// The cancellation token to use. - /// or is null. - public Response Create(string groupId, string subscriptionId, string cacheControl = null, CancellationToken cancellationToken = default) - { - if (groupId == null) - { - throw new ArgumentNullException(nameof(groupId)); - } - if (subscriptionId == null) - { - throw new ArgumentNullException(nameof(subscriptionId)); - } - - using var message = CreateCreateRequest(groupId, subscriptionId, cacheControl); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - SubscriptionUnderManagementGroup value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = SubscriptionUnderManagementGroup.DeserializeSubscriptionUnderManagementGroup(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw _clientDiagnostics.CreateRequestFailedException(message.Response); - } - } - - internal HttpMessage CreateDeleteRequest(string groupId, string subscriptionId, string cacheControl) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Delete; - var uri = new RawRequestUriBuilder(); - uri.Reset(endpoint); - uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); - uri.AppendPath(groupId, true); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendQuery("api-version", apiVersion, true); - request.Uri = uri; - if (cacheControl != null) - { - request.Headers.Add("Cache-Control", cacheControl); - } - request.Headers.Add("Accept", "application/json"); - return message; - } - - /// - /// De-associates subscription from the management group. - /// . - /// - /// Management Group ID. - /// Subscription ID. - /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. - /// The cancellation token to use. - /// or is null. - public async Task DeleteAsync(string groupId, string subscriptionId, string cacheControl = null, CancellationToken cancellationToken = default) - { - if (groupId == null) - { - throw new ArgumentNullException(nameof(groupId)); - } - if (subscriptionId == null) - { - throw new ArgumentNullException(nameof(subscriptionId)); - } - - using var message = CreateDeleteRequest(groupId, subscriptionId, cacheControl); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - case 204: - return message.Response; - default: - throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); - } - } - - /// - /// De-associates subscription from the management group. - /// . - /// - /// Management Group ID. - /// Subscription ID. - /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. - /// The cancellation token to use. - /// or is null. - public Response Delete(string groupId, string subscriptionId, string cacheControl = null, CancellationToken cancellationToken = default) - { - if (groupId == null) - { - throw new ArgumentNullException(nameof(groupId)); - } - if (subscriptionId == null) - { - throw new ArgumentNullException(nameof(subscriptionId)); - } - - using var message = CreateDeleteRequest(groupId, subscriptionId, cacheControl); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - case 204: - return message.Response; - default: - throw _clientDiagnostics.CreateRequestFailedException(message.Response); - } - } - - internal HttpMessage CreateGetSubscriptionRequest(string groupId, string subscriptionId, string cacheControl) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(endpoint); - uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); - uri.AppendPath(groupId, true); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendQuery("api-version", apiVersion, true); - request.Uri = uri; - if (cacheControl != null) - { - request.Headers.Add("Cache-Control", cacheControl); - } - request.Headers.Add("Accept", "application/json"); - return message; - } - - /// - /// Retrieves details about given subscription which is associated with the management group. - /// . - /// - /// Management Group ID. - /// Subscription ID. - /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. - /// The cancellation token to use. - /// or is null. - public async Task> GetSubscriptionAsync(string groupId, string subscriptionId, string cacheControl = null, CancellationToken cancellationToken = default) - { - if (groupId == null) - { - throw new ArgumentNullException(nameof(groupId)); - } - if (subscriptionId == null) - { - throw new ArgumentNullException(nameof(subscriptionId)); - } - - using var message = CreateGetSubscriptionRequest(groupId, subscriptionId, cacheControl); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - SubscriptionUnderManagementGroup value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = SubscriptionUnderManagementGroup.DeserializeSubscriptionUnderManagementGroup(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); - } - } - - /// - /// Retrieves details about given subscription which is associated with the management group. - /// . - /// - /// Management Group ID. - /// Subscription ID. - /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. - /// The cancellation token to use. - /// or is null. - public Response GetSubscription(string groupId, string subscriptionId, string cacheControl = null, CancellationToken cancellationToken = default) - { - if (groupId == null) - { - throw new ArgumentNullException(nameof(groupId)); - } - if (subscriptionId == null) - { - throw new ArgumentNullException(nameof(subscriptionId)); - } - - using var message = CreateGetSubscriptionRequest(groupId, subscriptionId, cacheControl); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - SubscriptionUnderManagementGroup value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = SubscriptionUnderManagementGroup.DeserializeSubscriptionUnderManagementGroup(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw _clientDiagnostics.CreateRequestFailedException(message.Response); - } - } - - internal HttpMessage CreateGetSubscriptionsUnderManagementGroupRequest(string groupId, string skiptoken) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(endpoint); - uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); - uri.AppendPath(groupId, true); - uri.AppendPath("/subscriptions", false); - uri.AppendQuery("api-version", apiVersion, true); - if (skiptoken != null) - { - uri.AppendQuery("$skiptoken", skiptoken, true); - } - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - /// - /// Retrieves details about all subscriptions which are associated with the management group. - /// . - /// - /// Management Group ID. - /// - /// Page continuation token is only used if a previous operation returned a partial result. - /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. - /// . - /// - /// The cancellation token to use. - /// is null. - public async Task> GetSubscriptionsUnderManagementGroupAsync(string groupId, string skiptoken = null, CancellationToken cancellationToken = default) - { - if (groupId == null) - { - throw new ArgumentNullException(nameof(groupId)); - } - - using var message = CreateGetSubscriptionsUnderManagementGroupRequest(groupId, skiptoken); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - ListSubscriptionUnderManagementGroup value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ListSubscriptionUnderManagementGroup.DeserializeListSubscriptionUnderManagementGroup(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); - } - } - - /// - /// Retrieves details about all subscriptions which are associated with the management group. - /// . - /// - /// Management Group ID. - /// - /// Page continuation token is only used if a previous operation returned a partial result. - /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. - /// . - /// - /// The cancellation token to use. - /// is null. - public Response GetSubscriptionsUnderManagementGroup(string groupId, string skiptoken = null, CancellationToken cancellationToken = default) - { - if (groupId == null) - { - throw new ArgumentNullException(nameof(groupId)); - } - - using var message = CreateGetSubscriptionsUnderManagementGroupRequest(groupId, skiptoken); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - ListSubscriptionUnderManagementGroup value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ListSubscriptionUnderManagementGroup.DeserializeListSubscriptionUnderManagementGroup(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw _clientDiagnostics.CreateRequestFailedException(message.Response); - } - } - - internal HttpMessage CreateGetSubscriptionsUnderManagementGroupNextPageRequest(string nextLink, string groupId, string skiptoken) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(endpoint); - uri.AppendRawNextLink(nextLink, false); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - /// - /// Retrieves details about all subscriptions which are associated with the management group. - /// . - /// - /// The URL to the next page of results. - /// Management Group ID. - /// - /// Page continuation token is only used if a previous operation returned a partial result. - /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. - /// . - /// - /// The cancellation token to use. - /// or is null. - public async Task> GetSubscriptionsUnderManagementGroupNextPageAsync(string nextLink, string groupId, string skiptoken = null, CancellationToken cancellationToken = default) - { - if (nextLink == null) - { - throw new ArgumentNullException(nameof(nextLink)); - } - if (groupId == null) - { - throw new ArgumentNullException(nameof(groupId)); - } - - using var message = CreateGetSubscriptionsUnderManagementGroupNextPageRequest(nextLink, groupId, skiptoken); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - ListSubscriptionUnderManagementGroup value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ListSubscriptionUnderManagementGroup.DeserializeListSubscriptionUnderManagementGroup(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); - } - } - - /// - /// Retrieves details about all subscriptions which are associated with the management group. - /// . - /// - /// The URL to the next page of results. - /// Management Group ID. - /// - /// Page continuation token is only used if a previous operation returned a partial result. - /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. - /// . - /// - /// The cancellation token to use. - /// or is null. - public Response GetSubscriptionsUnderManagementGroupNextPage(string nextLink, string groupId, string skiptoken = null, CancellationToken cancellationToken = default) - { - if (nextLink == null) - { - throw new ArgumentNullException(nameof(nextLink)); - } - if (groupId == null) - { - throw new ArgumentNullException(nameof(groupId)); - } - - using var message = CreateGetSubscriptionsUnderManagementGroupNextPageRequest(nextLink, groupId, skiptoken); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - ListSubscriptionUnderManagementGroup value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ListSubscriptionUnderManagementGroup.DeserializeListSubscriptionUnderManagementGroup(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw _clientDiagnostics.CreateRequestFailedException(message.Response); - } - } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsAPIManagementClient.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsAPIManagementClient.cs deleted file mode 100644 index 5d9bade1721a8..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsAPIManagementClient.cs +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager.ManagementGroups; - -namespace Azure.ResourceManager.ManagementGroups -{ - /// ManagementGroupsAPI service management client. - public partial class ManagementGroupsAPIManagementClient - { - private readonly ClientDiagnostics _clientDiagnostics; - private readonly HttpPipeline _pipeline; - private readonly Uri _endpoint; - - /// Initializes a new instance of ManagementGroupsAPIManagementClient for mocking. - protected ManagementGroupsAPIManagementClient() - { - } - - /// Initializes a new instance of ManagementGroupsAPIManagementClient. - /// The OAuth token for making client requests. - /// The options for configuring the client. - public ManagementGroupsAPIManagementClient(TokenCredential tokenCredential, ManagementGroupsAPIManagementClientOptions options = null) : this(null, tokenCredential, options) - { - } - /// Initializes a new instance of ManagementGroupsAPIManagementClient. - /// server parameter. - /// The OAuth token for making client requests. - /// The options for configuring the client. - public ManagementGroupsAPIManagementClient(Uri endpoint, TokenCredential tokenCredential, ManagementGroupsAPIManagementClientOptions options = null) - { - endpoint ??= new Uri("https://management.azure.com"); - - options ??= new ManagementGroupsAPIManagementClientOptions(); - _clientDiagnostics = new ClientDiagnostics(options); - _pipeline = ManagementPipelineBuilder.Build(tokenCredential, endpoint, options); - _endpoint = endpoint; - } - - /// Returns an instance of ManagementGroupsOperations. - public virtual ManagementGroupsOperations ManagementGroups => new ManagementGroupsOperations(_clientDiagnostics, _pipeline, _endpoint); - - /// Returns an instance of ManagementGroupSubscriptionsOperations. - public virtual ManagementGroupSubscriptionsOperations ManagementGroupSubscriptions => new ManagementGroupSubscriptionsOperations(_clientDiagnostics, _pipeline, _endpoint); - - /// Returns an instance of HierarchySettingsOperations. - public virtual HierarchySettingsOperations HierarchySettings => new HierarchySettingsOperations(_clientDiagnostics, _pipeline, _endpoint); - - /// Returns an instance of Operations. - public virtual Operations Operations => new Operations(_clientDiagnostics, _pipeline, _endpoint); - - /// Returns an instance of ManagementGroupsAPIOperations. - public virtual ManagementGroupsAPIOperations ManagementGroupsAPI => new ManagementGroupsAPIOperations(_clientDiagnostics, _pipeline, _endpoint); - - /// Returns an instance of EntitiesOperations. - public virtual EntitiesOperations Entities => new EntitiesOperations(_clientDiagnostics, _pipeline, _endpoint); - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsAPIManagementClientOptions.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsAPIManagementClientOptions.cs deleted file mode 100644 index 827408a8df078..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsAPIManagementClientOptions.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using Azure.Core; - -namespace Azure.ResourceManager.ManagementGroups -{ - /// Client options for ManagementGroupsAPI. - public partial class ManagementGroupsAPIManagementClientOptions : ClientOptions - { - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsAPIOperations.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsAPIOperations.cs deleted file mode 100644 index 01a6352538ed6..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsAPIOperations.cs +++ /dev/null @@ -1,145 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core.Pipeline; -using Azure.ResourceManager.ManagementGroups.Models; - -namespace Azure.ResourceManager.ManagementGroups -{ - /// The ManagementGroupsAPI service client. - public partial class ManagementGroupsAPIOperations - { - private readonly ClientDiagnostics _clientDiagnostics; - private readonly HttpPipeline _pipeline; - internal ManagementGroupsAPIRestOperations RestClient { get; } - - /// Initializes a new instance of ManagementGroupsAPIOperations for mocking. - protected ManagementGroupsAPIOperations() - { - } - - /// Initializes a new instance of ManagementGroupsAPIOperations. - /// The handler for diagnostic messaging in the client. - /// The HTTP pipeline for sending and receiving REST requests and responses. - /// server parameter. - /// Api Version. - internal ManagementGroupsAPIOperations(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint = null, string apiVersion = "2021-04-01") - { - RestClient = new ManagementGroupsAPIRestOperations(clientDiagnostics, pipeline, endpoint, apiVersion); - _clientDiagnostics = clientDiagnostics; - _pipeline = pipeline; - } - - /// Checks if the specified management group name is valid and unique. - /// Management group name availability check parameters. - /// The cancellation token to use. - public virtual async Task> CheckNameAvailabilityAsync(CheckNameAvailabilityRequest checkNameAvailabilityRequest, CancellationToken cancellationToken = default) - { - using var scope = _clientDiagnostics.CreateScope("ManagementGroupsAPIOperations.CheckNameAvailability"); - scope.Start(); - try - { - return await RestClient.CheckNameAvailabilityAsync(checkNameAvailabilityRequest, cancellationToken).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// Checks if the specified management group name is valid and unique. - /// Management group name availability check parameters. - /// The cancellation token to use. - public virtual Response CheckNameAvailability(CheckNameAvailabilityRequest checkNameAvailabilityRequest, CancellationToken cancellationToken = default) - { - using var scope = _clientDiagnostics.CreateScope("ManagementGroupsAPIOperations.CheckNameAvailability"); - scope.Start(); - try - { - return RestClient.CheckNameAvailability(checkNameAvailabilityRequest, cancellationToken); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// Starts backfilling subscriptions for the Tenant. - /// The cancellation token to use. - public virtual async Task> StartTenantBackfillAsync(CancellationToken cancellationToken = default) - { - using var scope = _clientDiagnostics.CreateScope("ManagementGroupsAPIOperations.StartTenantBackfill"); - scope.Start(); - try - { - return await RestClient.StartTenantBackfillAsync(cancellationToken).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// Starts backfilling subscriptions for the Tenant. - /// The cancellation token to use. - public virtual Response StartTenantBackfill(CancellationToken cancellationToken = default) - { - using var scope = _clientDiagnostics.CreateScope("ManagementGroupsAPIOperations.StartTenantBackfill"); - scope.Start(); - try - { - return RestClient.StartTenantBackfill(cancellationToken); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// Gets tenant backfill status. - /// The cancellation token to use. - public virtual async Task> TenantBackfillStatusAsync(CancellationToken cancellationToken = default) - { - using var scope = _clientDiagnostics.CreateScope("ManagementGroupsAPIOperations.TenantBackfillStatus"); - scope.Start(); - try - { - return await RestClient.TenantBackfillStatusAsync(cancellationToken).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// Gets tenant backfill status. - /// The cancellation token to use. - public virtual Response TenantBackfillStatus(CancellationToken cancellationToken = default) - { - using var scope = _clientDiagnostics.CreateScope("ManagementGroupsAPIOperations.TenantBackfillStatus"); - scope.Start(); - try - { - return RestClient.TenantBackfillStatus(cancellationToken); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsAPIRestOperations.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsAPIRestOperations.cs deleted file mode 100644 index 192a4de49e1f6..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsAPIRestOperations.cs +++ /dev/null @@ -1,226 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager.ManagementGroups.Models; - -namespace Azure.ResourceManager.ManagementGroups -{ - internal partial class ManagementGroupsAPIRestOperations - { - private Uri endpoint; - private string apiVersion; - private ClientDiagnostics _clientDiagnostics; - private HttpPipeline _pipeline; - - /// Initializes a new instance of ManagementGroupsAPIRestOperations. - /// The handler for diagnostic messaging in the client. - /// The HTTP pipeline for sending and receiving REST requests and responses. - /// server parameter. - /// Api Version. - /// is null. - public ManagementGroupsAPIRestOperations(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint = null, string apiVersion = "2021-04-01") - { - endpoint ??= new Uri("https://management.azure.com"); - if (apiVersion == null) - { - throw new ArgumentNullException(nameof(apiVersion)); - } - - this.endpoint = endpoint; - this.apiVersion = apiVersion; - _clientDiagnostics = clientDiagnostics; - _pipeline = pipeline; - } - - internal HttpMessage CreateCheckNameAvailabilityRequest(CheckNameAvailabilityRequest checkNameAvailabilityRequest) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(endpoint); - uri.AppendPath("/providers/Microsoft.Management/checkNameAvailability", false); - uri.AppendQuery("api-version", apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(checkNameAvailabilityRequest); - request.Content = content; - return message; - } - - /// Checks if the specified management group name is valid and unique. - /// Management group name availability check parameters. - /// The cancellation token to use. - /// is null. - public async Task> CheckNameAvailabilityAsync(CheckNameAvailabilityRequest checkNameAvailabilityRequest, CancellationToken cancellationToken = default) - { - if (checkNameAvailabilityRequest == null) - { - throw new ArgumentNullException(nameof(checkNameAvailabilityRequest)); - } - - using var message = CreateCheckNameAvailabilityRequest(checkNameAvailabilityRequest); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - CheckNameAvailabilityResult value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = CheckNameAvailabilityResult.DeserializeCheckNameAvailabilityResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); - } - } - - /// Checks if the specified management group name is valid and unique. - /// Management group name availability check parameters. - /// The cancellation token to use. - /// is null. - public Response CheckNameAvailability(CheckNameAvailabilityRequest checkNameAvailabilityRequest, CancellationToken cancellationToken = default) - { - if (checkNameAvailabilityRequest == null) - { - throw new ArgumentNullException(nameof(checkNameAvailabilityRequest)); - } - - using var message = CreateCheckNameAvailabilityRequest(checkNameAvailabilityRequest); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - CheckNameAvailabilityResult value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = CheckNameAvailabilityResult.DeserializeCheckNameAvailabilityResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw _clientDiagnostics.CreateRequestFailedException(message.Response); - } - } - - internal HttpMessage CreateStartTenantBackfillRequest() - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(endpoint); - uri.AppendPath("/providers/Microsoft.Management/startTenantBackfill", false); - uri.AppendQuery("api-version", apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - /// Starts backfilling subscriptions for the Tenant. - /// The cancellation token to use. - public async Task> StartTenantBackfillAsync(CancellationToken cancellationToken = default) - { - using var message = CreateStartTenantBackfillRequest(); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - TenantBackfillStatusResult value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = TenantBackfillStatusResult.DeserializeTenantBackfillStatusResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); - } - } - - /// Starts backfilling subscriptions for the Tenant. - /// The cancellation token to use. - public Response StartTenantBackfill(CancellationToken cancellationToken = default) - { - using var message = CreateStartTenantBackfillRequest(); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - TenantBackfillStatusResult value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = TenantBackfillStatusResult.DeserializeTenantBackfillStatusResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw _clientDiagnostics.CreateRequestFailedException(message.Response); - } - } - - internal HttpMessage CreateTenantBackfillStatusRequest() - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(endpoint); - uri.AppendPath("/providers/Microsoft.Management/tenantBackfillStatus", false); - uri.AppendQuery("api-version", apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - /// Gets tenant backfill status. - /// The cancellation token to use. - public async Task> TenantBackfillStatusAsync(CancellationToken cancellationToken = default) - { - using var message = CreateTenantBackfillStatusRequest(); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - TenantBackfillStatusResult value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = TenantBackfillStatusResult.DeserializeTenantBackfillStatusResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); - } - } - - /// Gets tenant backfill status. - /// The cancellation token to use. - public Response TenantBackfillStatus(CancellationToken cancellationToken = default) - { - using var message = CreateTenantBackfillStatusRequest(); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - TenantBackfillStatusResult value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = TenantBackfillStatusResult.DeserializeTenantBackfillStatusResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw _clientDiagnostics.CreateRequestFailedException(message.Response); - } - } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsCreateOrUpdateHeaders.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsCreateOrUpdateHeaders.cs deleted file mode 100644 index 3ff8b19fb442b..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsCreateOrUpdateHeaders.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using Azure; -using Azure.Core; - -namespace Azure.ResourceManager.ManagementGroups -{ - internal partial class ManagementGroupsCreateOrUpdateHeaders - { - private readonly Response _response; - public ManagementGroupsCreateOrUpdateHeaders(Response response) - { - _response = response; - } - /// - /// URL for determining when an operation has completed. Send a GET request to the URL in Location header. - /// The URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state. - /// - /// For more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers. - /// - public string Location => _response.Headers.TryGetValue("Location", out string value) ? value : null; - /// - /// URL for checking the ongoing status of the operation. - /// To get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value. - /// - /// For more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations. - /// - public string AzureAsyncOperation => _response.Headers.TryGetValue("Azure-AsyncOperation", out string value) ? value : null; - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsCreateOrUpdateOperation.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsCreateOrUpdateOperation.cs deleted file mode 100644 index fdd189d2da117..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsCreateOrUpdateOperation.cs +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager.ManagementGroups.Models; - -namespace Azure.ResourceManager.ManagementGroups -{ - /// - /// Create or update a management group. - /// If a management group is already created and a subsequent create request is issued with different properties, the management group properties will be updated. - /// . - /// - public partial class ManagementGroupsCreateOrUpdateOperation : Operation, IOperationSource - { - private readonly ArmOperationHelpers _operation; - - /// Initializes a new instance of ManagementGroupsCreateOrUpdateOperation for mocking. - protected ManagementGroupsCreateOrUpdateOperation() - { - } - - internal ManagementGroupsCreateOrUpdateOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) - { - _operation = new ArmOperationHelpers(this, clientDiagnostics, pipeline, request, response, OperationFinalStateVia.AzureAsyncOperation, "ManagementGroupsCreateOrUpdateOperation"); - } - /// - public override string Id => _operation.Id; - - /// - public override ManagementGroup Value => _operation.Value; - - /// - public override bool HasCompleted => _operation.HasCompleted; - - /// - public override bool HasValue => _operation.HasValue; - - /// - public override Response GetRawResponse() => _operation.GetRawResponse(); - - /// - public override Response UpdateStatus(CancellationToken cancellationToken = default) => _operation.UpdateStatus(cancellationToken); - - /// - public override ValueTask UpdateStatusAsync(CancellationToken cancellationToken = default) => _operation.UpdateStatusAsync(cancellationToken); - - /// - public override ValueTask> WaitForCompletionAsync(CancellationToken cancellationToken = default) => _operation.WaitForCompletionAsync(cancellationToken); - - /// - public override ValueTask> WaitForCompletionAsync(TimeSpan pollingInterval, CancellationToken cancellationToken = default) => _operation.WaitForCompletionAsync(pollingInterval, cancellationToken); - - ManagementGroup IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) - { - using var document = JsonDocument.Parse(response.ContentStream); - return ManagementGroup.DeserializeManagementGroup(document.RootElement); - } - - async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) - { - using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); - return ManagementGroup.DeserializeManagementGroup(document.RootElement); - } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsDeleteHeaders.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsDeleteHeaders.cs deleted file mode 100644 index 89a2a2f84bdfd..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsDeleteHeaders.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using Azure; -using Azure.Core; - -namespace Azure.ResourceManager.ManagementGroups -{ - internal partial class ManagementGroupsDeleteHeaders - { - private readonly Response _response; - public ManagementGroupsDeleteHeaders(Response response) - { - _response = response; - } - /// - /// URL for determining when an operation has completed. Send a GET request to the URL in Location header. - /// The URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state. - /// - /// For more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers. - /// - public string Location => _response.Headers.TryGetValue("Location", out string value) ? value : null; - /// - /// URL for checking the ongoing status of the operation. - /// To get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value. - /// - /// For more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations. - /// - public string AzureAsyncOperation => _response.Headers.TryGetValue("Azure-AsyncOperation", out string value) ? value : null; - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsDeleteOperation.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsDeleteOperation.cs deleted file mode 100644 index 5e169649dd2cd..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsDeleteOperation.cs +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; - -namespace Azure.ResourceManager.ManagementGroups -{ - /// - /// Delete management group. - /// If a management group contains child resources, the request will fail. - /// . - /// - public partial class ManagementGroupsDeleteOperation : Operation, IOperationSource - { - private readonly ArmOperationHelpers _operation; - - /// Initializes a new instance of ManagementGroupsDeleteOperation for mocking. - protected ManagementGroupsDeleteOperation() - { - } - - internal ManagementGroupsDeleteOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) - { - _operation = new ArmOperationHelpers(this, clientDiagnostics, pipeline, request, response, OperationFinalStateVia.AzureAsyncOperation, "ManagementGroupsDeleteOperation"); - } - /// - public override string Id => _operation.Id; - - /// - public override Response Value => _operation.Value; - - /// - public override bool HasCompleted => _operation.HasCompleted; - - /// - public override bool HasValue => _operation.HasValue; - - /// - public override Response GetRawResponse() => _operation.GetRawResponse(); - - /// - public override Response UpdateStatus(CancellationToken cancellationToken = default) => _operation.UpdateStatus(cancellationToken); - - /// - public override ValueTask UpdateStatusAsync(CancellationToken cancellationToken = default) => _operation.UpdateStatusAsync(cancellationToken); - - /// - public override ValueTask> WaitForCompletionAsync(CancellationToken cancellationToken = default) => _operation.WaitForCompletionAsync(cancellationToken); - - /// - public override ValueTask> WaitForCompletionAsync(TimeSpan pollingInterval, CancellationToken cancellationToken = default) => _operation.WaitForCompletionAsync(pollingInterval, cancellationToken); - - Response IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) - { - return response; - } - - async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) - { - return await new ValueTask(response).ConfigureAwait(false); - } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsOperations.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsOperations.cs deleted file mode 100644 index dd2d220b6146c..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsOperations.cs +++ /dev/null @@ -1,466 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager.ManagementGroups.Models; - -namespace Azure.ResourceManager.ManagementGroups -{ - /// The ManagementGroups service client. - public partial class ManagementGroupsOperations - { - private readonly ClientDiagnostics _clientDiagnostics; - private readonly HttpPipeline _pipeline; - internal ManagementGroupsRestOperations RestClient { get; } - - /// Initializes a new instance of ManagementGroupsOperations for mocking. - protected ManagementGroupsOperations() - { - } - - /// Initializes a new instance of ManagementGroupsOperations. - /// The handler for diagnostic messaging in the client. - /// The HTTP pipeline for sending and receiving REST requests and responses. - /// server parameter. - /// Api Version. - internal ManagementGroupsOperations(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint = null, string apiVersion = "2021-04-01") - { - RestClient = new ManagementGroupsRestOperations(clientDiagnostics, pipeline, endpoint, apiVersion); - _clientDiagnostics = clientDiagnostics; - _pipeline = pipeline; - } - - /// - /// Get the details of the management group. - /// . - /// - /// Management Group ID. - /// The $expand=children query string parameter allows clients to request inclusion of children in the response payload. $expand=path includes the path from the root group to the current group. $expand=ancestors includes the ancestor Ids of the current group. - /// The $recurse=true query string parameter allows clients to request inclusion of entire hierarchy in the response payload. Note that $expand=children must be passed up if $recurse is set to true. - /// A filter which allows the exclusion of subscriptions from results (i.e. '$filter=children.childType ne Subscription'). - /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. - /// The cancellation token to use. - public virtual async Task> GetAsync(string groupId, Enum0? expand = null, bool? recurse = null, string filter = null, string cacheControl = null, CancellationToken cancellationToken = default) - { - using var scope = _clientDiagnostics.CreateScope("ManagementGroupsOperations.Get"); - scope.Start(); - try - { - return await RestClient.GetAsync(groupId, expand, recurse, filter, cacheControl, cancellationToken).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Get the details of the management group. - /// . - /// - /// Management Group ID. - /// The $expand=children query string parameter allows clients to request inclusion of children in the response payload. $expand=path includes the path from the root group to the current group. $expand=ancestors includes the ancestor Ids of the current group. - /// The $recurse=true query string parameter allows clients to request inclusion of entire hierarchy in the response payload. Note that $expand=children must be passed up if $recurse is set to true. - /// A filter which allows the exclusion of subscriptions from results (i.e. '$filter=children.childType ne Subscription'). - /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. - /// The cancellation token to use. - public virtual Response Get(string groupId, Enum0? expand = null, bool? recurse = null, string filter = null, string cacheControl = null, CancellationToken cancellationToken = default) - { - using var scope = _clientDiagnostics.CreateScope("ManagementGroupsOperations.Get"); - scope.Start(); - try - { - return RestClient.Get(groupId, expand, recurse, filter, cacheControl, cancellationToken); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Update a management group. - /// . - /// - /// Management Group ID. - /// Management group patch parameters. - /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. - /// The cancellation token to use. - public virtual async Task> UpdateAsync(string groupId, PatchManagementGroupRequest patchGroupRequest, string cacheControl = null, CancellationToken cancellationToken = default) - { - using var scope = _clientDiagnostics.CreateScope("ManagementGroupsOperations.Update"); - scope.Start(); - try - { - return await RestClient.UpdateAsync(groupId, patchGroupRequest, cacheControl, cancellationToken).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Update a management group. - /// . - /// - /// Management Group ID. - /// Management group patch parameters. - /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. - /// The cancellation token to use. - public virtual Response Update(string groupId, PatchManagementGroupRequest patchGroupRequest, string cacheControl = null, CancellationToken cancellationToken = default) - { - using var scope = _clientDiagnostics.CreateScope("ManagementGroupsOperations.Update"); - scope.Start(); - try - { - return RestClient.Update(groupId, patchGroupRequest, cacheControl, cancellationToken); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// List management groups for the authenticated user. - /// . - /// - /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. - /// - /// Page continuation token is only used if a previous operation returned a partial result. - /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. - /// . - /// - /// The cancellation token to use. - public virtual AsyncPageable ListAsync(string cacheControl = null, string skiptoken = null, CancellationToken cancellationToken = default) - { - async Task> FirstPageFunc(int? pageSizeHint) - { - using var scope = _clientDiagnostics.CreateScope("ManagementGroupsOperations.List"); - scope.Start(); - try - { - var response = await RestClient.ListAsync(cacheControl, skiptoken, cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - async Task> NextPageFunc(string nextLink, int? pageSizeHint) - { - using var scope = _clientDiagnostics.CreateScope("ManagementGroupsOperations.List"); - scope.Start(); - try - { - var response = await RestClient.ListNextPageAsync(nextLink, cacheControl, skiptoken, cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, NextPageFunc); - } - - /// - /// List management groups for the authenticated user. - /// . - /// - /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. - /// - /// Page continuation token is only used if a previous operation returned a partial result. - /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. - /// . - /// - /// The cancellation token to use. - public virtual Pageable List(string cacheControl = null, string skiptoken = null, CancellationToken cancellationToken = default) - { - Page FirstPageFunc(int? pageSizeHint) - { - using var scope = _clientDiagnostics.CreateScope("ManagementGroupsOperations.List"); - scope.Start(); - try - { - var response = RestClient.List(cacheControl, skiptoken, cancellationToken); - return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - Page NextPageFunc(string nextLink, int? pageSizeHint) - { - using var scope = _clientDiagnostics.CreateScope("ManagementGroupsOperations.List"); - scope.Start(); - try - { - var response = RestClient.ListNextPage(nextLink, cacheControl, skiptoken, cancellationToken); - return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - return PageableHelpers.CreateEnumerable(FirstPageFunc, NextPageFunc); - } - - /// - /// List all entities that descend from a management group. - /// . - /// - /// Management Group ID. - /// - /// Page continuation token is only used if a previous operation returned a partial result. - /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. - /// . - /// - /// Number of elements to return when retrieving results. Passing this in will override $skipToken. - /// The cancellation token to use. - /// is null. - public virtual AsyncPageable GetDescendantsAsync(string groupId, string skiptoken = null, int? top = null, CancellationToken cancellationToken = default) - { - if (groupId == null) - { - throw new ArgumentNullException(nameof(groupId)); - } - - async Task> FirstPageFunc(int? pageSizeHint) - { - using var scope = _clientDiagnostics.CreateScope("ManagementGroupsOperations.GetDescendants"); - scope.Start(); - try - { - var response = await RestClient.GetDescendantsAsync(groupId, skiptoken, top, cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - async Task> NextPageFunc(string nextLink, int? pageSizeHint) - { - using var scope = _clientDiagnostics.CreateScope("ManagementGroupsOperations.GetDescendants"); - scope.Start(); - try - { - var response = await RestClient.GetDescendantsNextPageAsync(nextLink, groupId, skiptoken, top, cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, NextPageFunc); - } - - /// - /// List all entities that descend from a management group. - /// . - /// - /// Management Group ID. - /// - /// Page continuation token is only used if a previous operation returned a partial result. - /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. - /// . - /// - /// Number of elements to return when retrieving results. Passing this in will override $skipToken. - /// The cancellation token to use. - /// is null. - public virtual Pageable GetDescendants(string groupId, string skiptoken = null, int? top = null, CancellationToken cancellationToken = default) - { - if (groupId == null) - { - throw new ArgumentNullException(nameof(groupId)); - } - - Page FirstPageFunc(int? pageSizeHint) - { - using var scope = _clientDiagnostics.CreateScope("ManagementGroupsOperations.GetDescendants"); - scope.Start(); - try - { - var response = RestClient.GetDescendants(groupId, skiptoken, top, cancellationToken); - return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - Page NextPageFunc(string nextLink, int? pageSizeHint) - { - using var scope = _clientDiagnostics.CreateScope("ManagementGroupsOperations.GetDescendants"); - scope.Start(); - try - { - var response = RestClient.GetDescendantsNextPage(nextLink, groupId, skiptoken, top, cancellationToken); - return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - return PageableHelpers.CreateEnumerable(FirstPageFunc, NextPageFunc); - } - - /// - /// Create or update a management group. - /// If a management group is already created and a subsequent create request is issued with different properties, the management group properties will be updated. - /// . - /// - /// Management Group ID. - /// Management group creation parameters. - /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. - /// The cancellation token to use. - /// or is null. - public virtual async Task StartCreateOrUpdateAsync(string groupId, CreateManagementGroupRequest createManagementGroupRequest, string cacheControl = null, CancellationToken cancellationToken = default) - { - if (groupId == null) - { - throw new ArgumentNullException(nameof(groupId)); - } - if (createManagementGroupRequest == null) - { - throw new ArgumentNullException(nameof(createManagementGroupRequest)); - } - - using var scope = _clientDiagnostics.CreateScope("ManagementGroupsOperations.StartCreateOrUpdate"); - scope.Start(); - try - { - var originalResponse = await RestClient.CreateOrUpdateAsync(groupId, createManagementGroupRequest, cacheControl, cancellationToken).ConfigureAwait(false); - return new ManagementGroupsCreateOrUpdateOperation(_clientDiagnostics, _pipeline, RestClient.CreateCreateOrUpdateRequest(groupId, createManagementGroupRequest, cacheControl).Request, originalResponse); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Create or update a management group. - /// If a management group is already created and a subsequent create request is issued with different properties, the management group properties will be updated. - /// . - /// - /// Management Group ID. - /// Management group creation parameters. - /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. - /// The cancellation token to use. - /// or is null. - public virtual ManagementGroupsCreateOrUpdateOperation StartCreateOrUpdate(string groupId, CreateManagementGroupRequest createManagementGroupRequest, string cacheControl = null, CancellationToken cancellationToken = default) - { - if (groupId == null) - { - throw new ArgumentNullException(nameof(groupId)); - } - if (createManagementGroupRequest == null) - { - throw new ArgumentNullException(nameof(createManagementGroupRequest)); - } - - using var scope = _clientDiagnostics.CreateScope("ManagementGroupsOperations.StartCreateOrUpdate"); - scope.Start(); - try - { - var originalResponse = RestClient.CreateOrUpdate(groupId, createManagementGroupRequest, cacheControl, cancellationToken); - return new ManagementGroupsCreateOrUpdateOperation(_clientDiagnostics, _pipeline, RestClient.CreateCreateOrUpdateRequest(groupId, createManagementGroupRequest, cacheControl).Request, originalResponse); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Delete management group. - /// If a management group contains child resources, the request will fail. - /// . - /// - /// Management Group ID. - /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. - /// The cancellation token to use. - /// is null. - public virtual async Task StartDeleteAsync(string groupId, string cacheControl = null, CancellationToken cancellationToken = default) - { - if (groupId == null) - { - throw new ArgumentNullException(nameof(groupId)); - } - - using var scope = _clientDiagnostics.CreateScope("ManagementGroupsOperations.StartDelete"); - scope.Start(); - try - { - var originalResponse = await RestClient.DeleteAsync(groupId, cacheControl, cancellationToken).ConfigureAwait(false); - return new ManagementGroupsDeleteOperation(_clientDiagnostics, _pipeline, RestClient.CreateDeleteRequest(groupId, cacheControl).Request, originalResponse); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Delete management group. - /// If a management group contains child resources, the request will fail. - /// . - /// - /// Management Group ID. - /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. - /// The cancellation token to use. - /// is null. - public virtual ManagementGroupsDeleteOperation StartDelete(string groupId, string cacheControl = null, CancellationToken cancellationToken = default) - { - if (groupId == null) - { - throw new ArgumentNullException(nameof(groupId)); - } - - using var scope = _clientDiagnostics.CreateScope("ManagementGroupsOperations.StartDelete"); - scope.Start(); - try - { - var originalResponse = RestClient.Delete(groupId, cacheControl, cancellationToken); - return new ManagementGroupsDeleteOperation(_clientDiagnostics, _pipeline, RestClient.CreateDeleteRequest(groupId, cacheControl).Request, originalResponse); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsRestOperations.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsRestOperations.cs deleted file mode 100644 index 3fa926dacb828..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/ManagementGroupsRestOperations.cs +++ /dev/null @@ -1,768 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager.ManagementGroups.Models; - -namespace Azure.ResourceManager.ManagementGroups -{ - internal partial class ManagementGroupsRestOperations - { - private Uri endpoint; - private string apiVersion; - private ClientDiagnostics _clientDiagnostics; - private HttpPipeline _pipeline; - - /// Initializes a new instance of ManagementGroupsRestOperations. - /// The handler for diagnostic messaging in the client. - /// The HTTP pipeline for sending and receiving REST requests and responses. - /// server parameter. - /// Api Version. - /// is null. - public ManagementGroupsRestOperations(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint = null, string apiVersion = "2021-04-01") - { - endpoint ??= new Uri("https://management.azure.com"); - if (apiVersion == null) - { - throw new ArgumentNullException(nameof(apiVersion)); - } - - this.endpoint = endpoint; - this.apiVersion = apiVersion; - _clientDiagnostics = clientDiagnostics; - _pipeline = pipeline; - } - - internal HttpMessage CreateListRequest(string cacheControl, string skiptoken) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(endpoint); - uri.AppendPath("/providers/Microsoft.Management/managementGroups", false); - uri.AppendQuery("api-version", apiVersion, true); - if (skiptoken != null) - { - uri.AppendQuery("$skiptoken", skiptoken, true); - } - request.Uri = uri; - if (cacheControl != null) - { - request.Headers.Add("Cache-Control", cacheControl); - } - request.Headers.Add("Accept", "application/json"); - return message; - } - - /// - /// List management groups for the authenticated user. - /// . - /// - /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. - /// - /// Page continuation token is only used if a previous operation returned a partial result. - /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. - /// . - /// - /// The cancellation token to use. - public async Task> ListAsync(string cacheControl = null, string skiptoken = null, CancellationToken cancellationToken = default) - { - using var message = CreateListRequest(cacheControl, skiptoken); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - ManagementGroupListResult value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ManagementGroupListResult.DeserializeManagementGroupListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); - } - } - - /// - /// List management groups for the authenticated user. - /// . - /// - /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. - /// - /// Page continuation token is only used if a previous operation returned a partial result. - /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. - /// . - /// - /// The cancellation token to use. - public Response List(string cacheControl = null, string skiptoken = null, CancellationToken cancellationToken = default) - { - using var message = CreateListRequest(cacheControl, skiptoken); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - ManagementGroupListResult value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ManagementGroupListResult.DeserializeManagementGroupListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw _clientDiagnostics.CreateRequestFailedException(message.Response); - } - } - - internal HttpMessage CreateGetRequest(string groupId, Enum0? expand, bool? recurse, string filter, string cacheControl) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(endpoint); - uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); - uri.AppendPath(groupId, true); - uri.AppendQuery("api-version", apiVersion, true); - if (expand != null) - { - uri.AppendQuery("$expand", expand.Value.ToString(), true); - } - if (recurse != null) - { - uri.AppendQuery("$recurse", recurse.Value, true); - } - if (filter != null) - { - uri.AppendQuery("$filter", filter, true); - } - request.Uri = uri; - if (cacheControl != null) - { - request.Headers.Add("Cache-Control", cacheControl); - } - request.Headers.Add("Accept", "application/json"); - return message; - } - - /// - /// Get the details of the management group. - /// . - /// - /// Management Group ID. - /// The $expand=children query string parameter allows clients to request inclusion of children in the response payload. $expand=path includes the path from the root group to the current group. $expand=ancestors includes the ancestor Ids of the current group. - /// The $recurse=true query string parameter allows clients to request inclusion of entire hierarchy in the response payload. Note that $expand=children must be passed up if $recurse is set to true. - /// A filter which allows the exclusion of subscriptions from results (i.e. '$filter=children.childType ne Subscription'). - /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. - /// The cancellation token to use. - /// is null. - public async Task> GetAsync(string groupId, Enum0? expand = null, bool? recurse = null, string filter = null, string cacheControl = null, CancellationToken cancellationToken = default) - { - if (groupId == null) - { - throw new ArgumentNullException(nameof(groupId)); - } - - using var message = CreateGetRequest(groupId, expand, recurse, filter, cacheControl); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - ManagementGroup value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ManagementGroup.DeserializeManagementGroup(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); - } - } - - /// - /// Get the details of the management group. - /// . - /// - /// Management Group ID. - /// The $expand=children query string parameter allows clients to request inclusion of children in the response payload. $expand=path includes the path from the root group to the current group. $expand=ancestors includes the ancestor Ids of the current group. - /// The $recurse=true query string parameter allows clients to request inclusion of entire hierarchy in the response payload. Note that $expand=children must be passed up if $recurse is set to true. - /// A filter which allows the exclusion of subscriptions from results (i.e. '$filter=children.childType ne Subscription'). - /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. - /// The cancellation token to use. - /// is null. - public Response Get(string groupId, Enum0? expand = null, bool? recurse = null, string filter = null, string cacheControl = null, CancellationToken cancellationToken = default) - { - if (groupId == null) - { - throw new ArgumentNullException(nameof(groupId)); - } - - using var message = CreateGetRequest(groupId, expand, recurse, filter, cacheControl); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - ManagementGroup value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ManagementGroup.DeserializeManagementGroup(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw _clientDiagnostics.CreateRequestFailedException(message.Response); - } - } - - internal HttpMessage CreateCreateOrUpdateRequest(string groupId, CreateManagementGroupRequest createManagementGroupRequest, string cacheControl) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Put; - var uri = new RawRequestUriBuilder(); - uri.Reset(endpoint); - uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); - uri.AppendPath(groupId, true); - uri.AppendQuery("api-version", apiVersion, true); - request.Uri = uri; - if (cacheControl != null) - { - request.Headers.Add("Cache-Control", cacheControl); - } - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(createManagementGroupRequest); - request.Content = content; - return message; - } - - /// - /// Create or update a management group. - /// If a management group is already created and a subsequent create request is issued with different properties, the management group properties will be updated. - /// . - /// - /// Management Group ID. - /// Management group creation parameters. - /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. - /// The cancellation token to use. - /// or is null. - public async Task> CreateOrUpdateAsync(string groupId, CreateManagementGroupRequest createManagementGroupRequest, string cacheControl = null, CancellationToken cancellationToken = default) - { - if (groupId == null) - { - throw new ArgumentNullException(nameof(groupId)); - } - if (createManagementGroupRequest == null) - { - throw new ArgumentNullException(nameof(createManagementGroupRequest)); - } - - using var message = CreateCreateOrUpdateRequest(groupId, createManagementGroupRequest, cacheControl); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - var headers = new ManagementGroupsCreateOrUpdateHeaders(message.Response); - switch (message.Response.Status) - { - case 200: - case 202: - return ResponseWithHeaders.FromValue(headers, message.Response); - default: - throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); - } - } - - /// - /// Create or update a management group. - /// If a management group is already created and a subsequent create request is issued with different properties, the management group properties will be updated. - /// . - /// - /// Management Group ID. - /// Management group creation parameters. - /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. - /// The cancellation token to use. - /// or is null. - public ResponseWithHeaders CreateOrUpdate(string groupId, CreateManagementGroupRequest createManagementGroupRequest, string cacheControl = null, CancellationToken cancellationToken = default) - { - if (groupId == null) - { - throw new ArgumentNullException(nameof(groupId)); - } - if (createManagementGroupRequest == null) - { - throw new ArgumentNullException(nameof(createManagementGroupRequest)); - } - - using var message = CreateCreateOrUpdateRequest(groupId, createManagementGroupRequest, cacheControl); - _pipeline.Send(message, cancellationToken); - var headers = new ManagementGroupsCreateOrUpdateHeaders(message.Response); - switch (message.Response.Status) - { - case 200: - case 202: - return ResponseWithHeaders.FromValue(headers, message.Response); - default: - throw _clientDiagnostics.CreateRequestFailedException(message.Response); - } - } - - internal HttpMessage CreateUpdateRequest(string groupId, PatchManagementGroupRequest patchGroupRequest, string cacheControl) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Patch; - var uri = new RawRequestUriBuilder(); - uri.Reset(endpoint); - uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); - uri.AppendPath(groupId, true); - uri.AppendQuery("api-version", apiVersion, true); - request.Uri = uri; - if (cacheControl != null) - { - request.Headers.Add("Cache-Control", cacheControl); - } - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(patchGroupRequest); - request.Content = content; - return message; - } - - /// - /// Update a management group. - /// . - /// - /// Management Group ID. - /// Management group patch parameters. - /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. - /// The cancellation token to use. - /// or is null. - public async Task> UpdateAsync(string groupId, PatchManagementGroupRequest patchGroupRequest, string cacheControl = null, CancellationToken cancellationToken = default) - { - if (groupId == null) - { - throw new ArgumentNullException(nameof(groupId)); - } - if (patchGroupRequest == null) - { - throw new ArgumentNullException(nameof(patchGroupRequest)); - } - - using var message = CreateUpdateRequest(groupId, patchGroupRequest, cacheControl); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - ManagementGroup value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ManagementGroup.DeserializeManagementGroup(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); - } - } - - /// - /// Update a management group. - /// . - /// - /// Management Group ID. - /// Management group patch parameters. - /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. - /// The cancellation token to use. - /// or is null. - public Response Update(string groupId, PatchManagementGroupRequest patchGroupRequest, string cacheControl = null, CancellationToken cancellationToken = default) - { - if (groupId == null) - { - throw new ArgumentNullException(nameof(groupId)); - } - if (patchGroupRequest == null) - { - throw new ArgumentNullException(nameof(patchGroupRequest)); - } - - using var message = CreateUpdateRequest(groupId, patchGroupRequest, cacheControl); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - ManagementGroup value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ManagementGroup.DeserializeManagementGroup(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw _clientDiagnostics.CreateRequestFailedException(message.Response); - } - } - - internal HttpMessage CreateDeleteRequest(string groupId, string cacheControl) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Delete; - var uri = new RawRequestUriBuilder(); - uri.Reset(endpoint); - uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); - uri.AppendPath(groupId, true); - uri.AppendQuery("api-version", apiVersion, true); - request.Uri = uri; - if (cacheControl != null) - { - request.Headers.Add("Cache-Control", cacheControl); - } - request.Headers.Add("Accept", "application/json"); - return message; - } - - /// - /// Delete management group. - /// If a management group contains child resources, the request will fail. - /// . - /// - /// Management Group ID. - /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. - /// The cancellation token to use. - /// is null. - public async Task> DeleteAsync(string groupId, string cacheControl = null, CancellationToken cancellationToken = default) - { - if (groupId == null) - { - throw new ArgumentNullException(nameof(groupId)); - } - - using var message = CreateDeleteRequest(groupId, cacheControl); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - var headers = new ManagementGroupsDeleteHeaders(message.Response); - switch (message.Response.Status) - { - case 202: - case 204: - return ResponseWithHeaders.FromValue(headers, message.Response); - default: - throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); - } - } - - /// - /// Delete management group. - /// If a management group contains child resources, the request will fail. - /// . - /// - /// Management Group ID. - /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. - /// The cancellation token to use. - /// is null. - public ResponseWithHeaders Delete(string groupId, string cacheControl = null, CancellationToken cancellationToken = default) - { - if (groupId == null) - { - throw new ArgumentNullException(nameof(groupId)); - } - - using var message = CreateDeleteRequest(groupId, cacheControl); - _pipeline.Send(message, cancellationToken); - var headers = new ManagementGroupsDeleteHeaders(message.Response); - switch (message.Response.Status) - { - case 202: - case 204: - return ResponseWithHeaders.FromValue(headers, message.Response); - default: - throw _clientDiagnostics.CreateRequestFailedException(message.Response); - } - } - - internal HttpMessage CreateGetDescendantsRequest(string groupId, string skiptoken, int? top) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(endpoint); - uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); - uri.AppendPath(groupId, true); - uri.AppendPath("/descendants", false); - uri.AppendQuery("api-version", apiVersion, true); - if (skiptoken != null) - { - uri.AppendQuery("$skiptoken", skiptoken, true); - } - if (top != null) - { - uri.AppendQuery("$top", top.Value, true); - } - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - /// - /// List all entities that descend from a management group. - /// . - /// - /// Management Group ID. - /// - /// Page continuation token is only used if a previous operation returned a partial result. - /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. - /// . - /// - /// Number of elements to return when retrieving results. Passing this in will override $skipToken. - /// The cancellation token to use. - /// is null. - public async Task> GetDescendantsAsync(string groupId, string skiptoken = null, int? top = null, CancellationToken cancellationToken = default) - { - if (groupId == null) - { - throw new ArgumentNullException(nameof(groupId)); - } - - using var message = CreateGetDescendantsRequest(groupId, skiptoken, top); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - DescendantListResult value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = DescendantListResult.DeserializeDescendantListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); - } - } - - /// - /// List all entities that descend from a management group. - /// . - /// - /// Management Group ID. - /// - /// Page continuation token is only used if a previous operation returned a partial result. - /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. - /// . - /// - /// Number of elements to return when retrieving results. Passing this in will override $skipToken. - /// The cancellation token to use. - /// is null. - public Response GetDescendants(string groupId, string skiptoken = null, int? top = null, CancellationToken cancellationToken = default) - { - if (groupId == null) - { - throw new ArgumentNullException(nameof(groupId)); - } - - using var message = CreateGetDescendantsRequest(groupId, skiptoken, top); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - DescendantListResult value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = DescendantListResult.DeserializeDescendantListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw _clientDiagnostics.CreateRequestFailedException(message.Response); - } - } - - internal HttpMessage CreateListNextPageRequest(string nextLink, string cacheControl, string skiptoken) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(endpoint); - uri.AppendRawNextLink(nextLink, false); - request.Uri = uri; - if (cacheControl != null) - { - request.Headers.Add("Cache-Control", cacheControl); - } - request.Headers.Add("Accept", "application/json"); - return message; - } - - /// - /// List management groups for the authenticated user. - /// . - /// - /// The URL to the next page of results. - /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. - /// - /// Page continuation token is only used if a previous operation returned a partial result. - /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. - /// . - /// - /// The cancellation token to use. - /// is null. - public async Task> ListNextPageAsync(string nextLink, string cacheControl = null, string skiptoken = null, CancellationToken cancellationToken = default) - { - if (nextLink == null) - { - throw new ArgumentNullException(nameof(nextLink)); - } - - using var message = CreateListNextPageRequest(nextLink, cacheControl, skiptoken); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - ManagementGroupListResult value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ManagementGroupListResult.DeserializeManagementGroupListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); - } - } - - /// - /// List management groups for the authenticated user. - /// . - /// - /// The URL to the next page of results. - /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. - /// - /// Page continuation token is only used if a previous operation returned a partial result. - /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. - /// . - /// - /// The cancellation token to use. - /// is null. - public Response ListNextPage(string nextLink, string cacheControl = null, string skiptoken = null, CancellationToken cancellationToken = default) - { - if (nextLink == null) - { - throw new ArgumentNullException(nameof(nextLink)); - } - - using var message = CreateListNextPageRequest(nextLink, cacheControl, skiptoken); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - ManagementGroupListResult value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ManagementGroupListResult.DeserializeManagementGroupListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw _clientDiagnostics.CreateRequestFailedException(message.Response); - } - } - - internal HttpMessage CreateGetDescendantsNextPageRequest(string nextLink, string groupId, string skiptoken, int? top) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(endpoint); - uri.AppendRawNextLink(nextLink, false); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - /// - /// List all entities that descend from a management group. - /// . - /// - /// The URL to the next page of results. - /// Management Group ID. - /// - /// Page continuation token is only used if a previous operation returned a partial result. - /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. - /// . - /// - /// Number of elements to return when retrieving results. Passing this in will override $skipToken. - /// The cancellation token to use. - /// or is null. - public async Task> GetDescendantsNextPageAsync(string nextLink, string groupId, string skiptoken = null, int? top = null, CancellationToken cancellationToken = default) - { - if (nextLink == null) - { - throw new ArgumentNullException(nameof(nextLink)); - } - if (groupId == null) - { - throw new ArgumentNullException(nameof(groupId)); - } - - using var message = CreateGetDescendantsNextPageRequest(nextLink, groupId, skiptoken, top); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - DescendantListResult value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = DescendantListResult.DeserializeDescendantListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); - } - } - - /// - /// List all entities that descend from a management group. - /// . - /// - /// The URL to the next page of results. - /// Management Group ID. - /// - /// Page continuation token is only used if a previous operation returned a partial result. - /// If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls. - /// . - /// - /// Number of elements to return when retrieving results. Passing this in will override $skipToken. - /// The cancellation token to use. - /// or is null. - public Response GetDescendantsNextPage(string nextLink, string groupId, string skiptoken = null, int? top = null, CancellationToken cancellationToken = default) - { - if (nextLink == null) - { - throw new ArgumentNullException(nameof(nextLink)); - } - if (groupId == null) - { - throw new ArgumentNullException(nameof(groupId)); - } - - using var message = CreateGetDescendantsNextPageRequest(nextLink, groupId, skiptoken, top); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - DescendantListResult value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = DescendantListResult.DeserializeDescendantListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw _clientDiagnostics.CreateRequestFailedException(message.Response); - } - } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/AzureAsyncOperationResults.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/AzureAsyncOperationResults.Serialization.cs deleted file mode 100644 index d5e4a27d1496c..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/AzureAsyncOperationResults.Serialization.cs +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - public partial class AzureAsyncOperationResults - { - internal static AzureAsyncOperationResults DeserializeAzureAsyncOperationResults(JsonElement element) - { - Optional id = default; - Optional type = default; - Optional name = default; - Optional status = default; - Optional tenantId = default; - Optional displayName = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("id")) - { - id = property.Value.GetString(); - continue; - } - if (property.NameEquals("type")) - { - type = property.Value.GetString(); - continue; - } - if (property.NameEquals("name")) - { - name = property.Value.GetString(); - continue; - } - if (property.NameEquals("status")) - { - status = property.Value.GetString(); - continue; - } - if (property.NameEquals("properties")) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - foreach (var property0 in property.Value.EnumerateObject()) - { - if (property0.NameEquals("tenantId")) - { - tenantId = property0.Value.GetString(); - continue; - } - if (property0.NameEquals("displayName")) - { - displayName = property0.Value.GetString(); - continue; - } - } - continue; - } - } - return new AzureAsyncOperationResults(id.Value, type.Value, name.Value, status.Value, tenantId.Value, displayName.Value); - } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/AzureAsyncOperationResults.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/AzureAsyncOperationResults.cs deleted file mode 100644 index 826203d0a8479..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/AzureAsyncOperationResults.cs +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - /// The results of Azure-AsyncOperation. - public partial class AzureAsyncOperationResults - { - /// Initializes a new instance of AzureAsyncOperationResults. - internal AzureAsyncOperationResults() - { - } - - /// Initializes a new instance of AzureAsyncOperationResults. - /// The fully qualified ID for the management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. - /// The type of the resource. For example, Microsoft.Management/managementGroups. - /// The name of the management group. For example, 00000000-0000-0000-0000-000000000000. - /// The current status of the asynchronous operation performed . For example, Running, Succeeded, Failed. - /// The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000. - /// The friendly name of the management group. - internal AzureAsyncOperationResults(string id, string type, string name, string status, string tenantId, string displayName) - { - Id = id; - Type = type; - Name = name; - Status = status; - TenantId = tenantId; - DisplayName = displayName; - } - - /// The fully qualified ID for the management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. - public string Id { get; } - /// The type of the resource. For example, Microsoft.Management/managementGroups. - public string Type { get; } - /// The name of the management group. For example, 00000000-0000-0000-0000-000000000000. - public string Name { get; } - /// The current status of the asynchronous operation performed . For example, Running, Succeeded, Failed. - public string Status { get; } - /// The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000. - public string TenantId { get; } - /// The friendly name of the management group. - public string DisplayName { get; } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CheckNameAvailabilityRequest.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CheckNameAvailabilityRequest.Serialization.cs deleted file mode 100644 index 4c2c88e1c6831..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CheckNameAvailabilityRequest.Serialization.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - public partial class CheckNameAvailabilityRequest : IUtf8JsonSerializable - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) - { - writer.WriteStartObject(); - if (Optional.IsDefined(Name)) - { - writer.WritePropertyName("name"); - writer.WriteStringValue(Name); - } - if (Optional.IsDefined(Type)) - { - writer.WritePropertyName("type"); - writer.WriteStringValue(Type); - } - writer.WriteEndObject(); - } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CheckNameAvailabilityRequest.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CheckNameAvailabilityRequest.cs deleted file mode 100644 index e93ff6651a618..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CheckNameAvailabilityRequest.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - /// Management group name availability check parameters. - public partial class CheckNameAvailabilityRequest - { - /// Initializes a new instance of CheckNameAvailabilityRequest. - public CheckNameAvailabilityRequest() - { - Type = "Microsoft.Management/managementGroups"; - } - - /// the name to check for availability. - public string Name { get; set; } - /// fully qualified resource type which includes provider namespace. - public string Type { get; set; } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CheckNameAvailabilityResult.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CheckNameAvailabilityResult.Serialization.cs deleted file mode 100644 index 2b16c5964daae..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CheckNameAvailabilityResult.Serialization.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - public partial class CheckNameAvailabilityResult - { - internal static CheckNameAvailabilityResult DeserializeCheckNameAvailabilityResult(JsonElement element) - { - Optional nameAvailable = default; - Optional reason = default; - Optional message = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("nameAvailable")) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - nameAvailable = property.Value.GetBoolean(); - continue; - } - if (property.NameEquals("reason")) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - reason = property.Value.GetString().ToReason(); - continue; - } - if (property.NameEquals("message")) - { - message = property.Value.GetString(); - continue; - } - } - return new CheckNameAvailabilityResult(Optional.ToNullable(nameAvailable), Optional.ToNullable(reason), message.Value); - } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CheckNameAvailabilityResult.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CheckNameAvailabilityResult.cs deleted file mode 100644 index 6ba79c9ee67c3..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CheckNameAvailabilityResult.cs +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - /// Describes the result of the request to check management group name availability. - public partial class CheckNameAvailabilityResult - { - /// Initializes a new instance of CheckNameAvailabilityResult. - internal CheckNameAvailabilityResult() - { - } - - /// Initializes a new instance of CheckNameAvailabilityResult. - /// Required. True indicates name is valid and available. False indicates the name is invalid, unavailable, or both. - /// Required if nameAvailable == false. Invalid indicates the name provided does not match the resource provider's naming requirements (incorrect length, unsupported characters, etc.) AlreadyExists indicates that the name is already in use and is therefore unavailable. - /// Required if nameAvailable == false. Localized. If reason == invalid, provide the user with the reason why the given name is invalid, and provide the resource naming requirements so that the user can select a valid name. If reason == AlreadyExists, explain that is already in use, and direct them to select a different name. - internal CheckNameAvailabilityResult(bool? nameAvailable, Reason? reason, string message) - { - NameAvailable = nameAvailable; - Reason = reason; - Message = message; - } - - /// Required. True indicates name is valid and available. False indicates the name is invalid, unavailable, or both. - public bool? NameAvailable { get; } - /// Required if nameAvailable == false. Invalid indicates the name provided does not match the resource provider's naming requirements (incorrect length, unsupported characters, etc.) AlreadyExists indicates that the name is already in use and is therefore unavailable. - public Reason? Reason { get; } - /// Required if nameAvailable == false. Localized. If reason == invalid, provide the user with the reason why the given name is invalid, and provide the resource naming requirements so that the user can select a valid name. If reason == AlreadyExists, explain that is already in use, and direct them to select a different name. - public string Message { get; } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateManagementGroupChildInfo.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateManagementGroupChildInfo.Serialization.cs deleted file mode 100644 index 4fbd78d61502e..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateManagementGroupChildInfo.Serialization.cs +++ /dev/null @@ -1,13 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - public partial class CreateManagementGroupChildInfo - { - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateManagementGroupChildInfo.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateManagementGroupChildInfo.cs deleted file mode 100644 index 617d7616f65ba..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateManagementGroupChildInfo.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using Azure.Core; - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - /// The child information of a management group used during creation. - public partial class CreateManagementGroupChildInfo - { - /// Initializes a new instance of CreateManagementGroupChildInfo. - internal CreateManagementGroupChildInfo() - { - Children = new ChangeTrackingList(); - } - - /// The fully qualified resource type which includes provider namespace (e.g. Microsoft.Management/managementGroups). - public ManagementGroupChildType? Type { get; } - /// The fully qualified ID for the child resource (management group or subscription). For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. - public string Id { get; } - /// The name of the child entity. - public string Name { get; } - /// The friendly name of the child resource. - public string DisplayName { get; } - /// The list of children. - public IReadOnlyList Children { get; } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateManagementGroupDetails.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateManagementGroupDetails.Serialization.cs deleted file mode 100644 index 6aa0c739d125a..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateManagementGroupDetails.Serialization.cs +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - public partial class CreateManagementGroupDetails : IUtf8JsonSerializable - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) - { - writer.WriteStartObject(); - if (Optional.IsDefined(Parent)) - { - writer.WritePropertyName("parent"); - writer.WriteObjectValue(Parent); - } - writer.WriteEndObject(); - } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateManagementGroupDetails.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateManagementGroupDetails.cs deleted file mode 100644 index 12ddb9928687e..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateManagementGroupDetails.cs +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - /// The details of a management group used during creation. - public partial class CreateManagementGroupDetails - { - /// Initializes a new instance of CreateManagementGroupDetails. - public CreateManagementGroupDetails() - { - } - - /// The version number of the object. - public int? Version { get; } - /// The date and time when this object was last updated. - public DateTimeOffset? UpdatedTime { get; } - /// The identity of the principal or process that updated the object. - public string UpdatedBy { get; } - /// (Optional) The ID of the parent management group used during creation. - public CreateParentGroupInfo Parent { get; set; } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateManagementGroupRequest.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateManagementGroupRequest.Serialization.cs deleted file mode 100644 index ebc5332879a17..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateManagementGroupRequest.Serialization.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - public partial class CreateManagementGroupRequest : IUtf8JsonSerializable - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) - { - writer.WriteStartObject(); - if (Optional.IsDefined(Name)) - { - writer.WritePropertyName("name"); - writer.WriteStringValue(Name); - } - writer.WritePropertyName("properties"); - writer.WriteStartObject(); - if (Optional.IsDefined(DisplayName)) - { - if (DisplayName != null) - { - writer.WritePropertyName("displayName"); - writer.WriteStringValue(DisplayName); - } - else - { - writer.WriteNull("displayName"); - } - } - if (Optional.IsDefined(Details)) - { - writer.WritePropertyName("details"); - writer.WriteObjectValue(Details); - } - writer.WriteEndObject(); - writer.WriteEndObject(); - } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateManagementGroupRequest.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateManagementGroupRequest.cs deleted file mode 100644 index c493f554d603a..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateManagementGroupRequest.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using Azure.Core; - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - /// Management group creation parameters. - public partial class CreateManagementGroupRequest - { - /// Initializes a new instance of CreateManagementGroupRequest. - public CreateManagementGroupRequest() - { - Children = new ChangeTrackingList(); - } - - /// The fully qualified ID for the management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. - public string Id { get; } - /// The type of the resource. For example, Microsoft.Management/managementGroups. - public string Type { get; } - /// The name of the management group. For example, 00000000-0000-0000-0000-000000000000. - public string Name { get; set; } - /// The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000. - public string TenantId { get; } - /// The friendly name of the management group. If no value is passed then this field will be set to the groupId. - public string DisplayName { get; set; } - /// The details of a management group used during creation. - public CreateManagementGroupDetails Details { get; set; } - /// The list of children. - public IReadOnlyList Children { get; } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateOrUpdateSettingsRequest.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateOrUpdateSettingsRequest.Serialization.cs deleted file mode 100644 index 6c4e1c576eaf2..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateOrUpdateSettingsRequest.Serialization.cs +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - public partial class CreateOrUpdateSettingsRequest : IUtf8JsonSerializable - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) - { - writer.WriteStartObject(); - writer.WritePropertyName("properties"); - writer.WriteStartObject(); - if (Optional.IsDefined(RequireAuthorizationForGroupCreation)) - { - writer.WritePropertyName("requireAuthorizationForGroupCreation"); - writer.WriteBooleanValue(RequireAuthorizationForGroupCreation.Value); - } - if (Optional.IsDefined(DefaultManagementGroup)) - { - writer.WritePropertyName("defaultManagementGroup"); - writer.WriteStringValue(DefaultManagementGroup); - } - writer.WriteEndObject(); - writer.WriteEndObject(); - } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateOrUpdateSettingsRequest.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateOrUpdateSettingsRequest.cs deleted file mode 100644 index 21b0427a6eb7c..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateOrUpdateSettingsRequest.cs +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - /// Parameters for creating or updating Management Group settings. - public partial class CreateOrUpdateSettingsRequest - { - /// Initializes a new instance of CreateOrUpdateSettingsRequest. - public CreateOrUpdateSettingsRequest() - { - } - - /// Indicates whether RBAC access is required upon group creation under the root Management Group. If set to true, user will require Microsoft.Management/managementGroups/write action on the root Management Group scope in order to create new Groups directly under the root. This will prevent new users from creating new Management Groups, unless they are given access. - public bool? RequireAuthorizationForGroupCreation { get; set; } - /// Settings that sets the default Management Group under which new subscriptions get added in this tenant. For example, /providers/Microsoft.Management/managementGroups/defaultGroup. - public string DefaultManagementGroup { get; set; } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateParentGroupInfo.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateParentGroupInfo.Serialization.cs deleted file mode 100644 index 11a4298be0129..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateParentGroupInfo.Serialization.cs +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - public partial class CreateParentGroupInfo : IUtf8JsonSerializable - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) - { - writer.WriteStartObject(); - if (Optional.IsDefined(Id)) - { - writer.WritePropertyName("id"); - writer.WriteStringValue(Id); - } - writer.WriteEndObject(); - } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateParentGroupInfo.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateParentGroupInfo.cs deleted file mode 100644 index 4d4c739ea5172..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/CreateParentGroupInfo.cs +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - /// (Optional) The ID of the parent management group used during creation. - public partial class CreateParentGroupInfo - { - /// Initializes a new instance of CreateParentGroupInfo. - public CreateParentGroupInfo() - { - } - - /// The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. - public string Id { get; set; } - /// The name of the parent management group. - public string Name { get; } - /// The friendly name of the parent management group. - public string DisplayName { get; } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/DescendantInfo.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/DescendantInfo.Serialization.cs deleted file mode 100644 index 7aed01312bba2..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/DescendantInfo.Serialization.cs +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - public partial class DescendantInfo - { - internal static DescendantInfo DeserializeDescendantInfo(JsonElement element) - { - Optional id = default; - Optional type = default; - Optional name = default; - Optional displayName = default; - Optional parent = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("id")) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - id = null; - continue; - } - id = property.Value.GetString(); - continue; - } - if (property.NameEquals("type")) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - type = null; - continue; - } - type = property.Value.GetString(); - continue; - } - if (property.NameEquals("name")) - { - name = property.Value.GetString(); - continue; - } - if (property.NameEquals("properties")) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - foreach (var property0 in property.Value.EnumerateObject()) - { - if (property0.NameEquals("displayName")) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - displayName = null; - continue; - } - displayName = property0.Value.GetString(); - continue; - } - if (property0.NameEquals("parent")) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - parent = null; - continue; - } - parent = DescendantParentGroupInfo.DeserializeDescendantParentGroupInfo(property0.Value); - continue; - } - } - continue; - } - } - return new DescendantInfo(id.Value, type.Value, name.Value, displayName.Value, parent.Value); - } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/DescendantInfo.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/DescendantInfo.cs deleted file mode 100644 index 75edd4175d3b7..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/DescendantInfo.cs +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - /// The descendant. - public partial class DescendantInfo - { - /// Initializes a new instance of DescendantInfo. - internal DescendantInfo() - { - } - - /// Initializes a new instance of DescendantInfo. - /// The fully qualified ID for the descendant. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000 or /subscriptions/0000000-0000-0000-0000-000000000000. - /// The type of the resource. For example, Microsoft.Management/managementGroups or /subscriptions. - /// The name of the descendant. For example, 00000000-0000-0000-0000-000000000000. - /// The friendly name of the management group. - /// The ID of the parent management group. - internal DescendantInfo(string id, string type, string name, string displayName, DescendantParentGroupInfo parent) - { - Id = id; - Type = type; - Name = name; - DisplayName = displayName; - Parent = parent; - } - - /// The fully qualified ID for the descendant. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000 or /subscriptions/0000000-0000-0000-0000-000000000000. - public string Id { get; } - /// The type of the resource. For example, Microsoft.Management/managementGroups or /subscriptions. - public string Type { get; } - /// The name of the descendant. For example, 00000000-0000-0000-0000-000000000000. - public string Name { get; } - /// The friendly name of the management group. - public string DisplayName { get; } - /// The ID of the parent management group. - public DescendantParentGroupInfo Parent { get; } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/DescendantListResult.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/DescendantListResult.Serialization.cs deleted file mode 100644 index 66ce6f28f2bf8..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/DescendantListResult.Serialization.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - internal partial class DescendantListResult - { - internal static DescendantListResult DeserializeDescendantListResult(JsonElement element) - { - Optional> value = default; - Optional nextLink = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("value")) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - List array = new List(); - foreach (var item in property.Value.EnumerateArray()) - { - array.Add(DescendantInfo.DeserializeDescendantInfo(item)); - } - value = array; - continue; - } - if (property.NameEquals("nextLink")) - { - nextLink = property.Value.GetString(); - continue; - } - } - return new DescendantListResult(Optional.ToList(value), nextLink.Value); - } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/DescendantListResult.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/DescendantListResult.cs deleted file mode 100644 index a13e6b4567da3..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/DescendantListResult.cs +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using Azure.Core; - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - /// Describes the result of the request to view descendants. - internal partial class DescendantListResult - { - /// Initializes a new instance of DescendantListResult. - internal DescendantListResult() - { - Value = new ChangeTrackingList(); - } - - /// Initializes a new instance of DescendantListResult. - /// The list of descendants. - /// The URL to use for getting the next set of results. - internal DescendantListResult(IReadOnlyList value, string nextLink) - { - Value = value; - NextLink = nextLink; - } - - /// The list of descendants. - public IReadOnlyList Value { get; } - /// The URL to use for getting the next set of results. - public string NextLink { get; } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/DescendantParentGroupInfo.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/DescendantParentGroupInfo.Serialization.cs deleted file mode 100644 index c05e771531948..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/DescendantParentGroupInfo.Serialization.cs +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - public partial class DescendantParentGroupInfo - { - internal static DescendantParentGroupInfo DeserializeDescendantParentGroupInfo(JsonElement element) - { - Optional id = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("id")) - { - id = property.Value.GetString(); - continue; - } - } - return new DescendantParentGroupInfo(id.Value); - } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/DescendantParentGroupInfo.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/DescendantParentGroupInfo.cs deleted file mode 100644 index 185683d1b299e..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/DescendantParentGroupInfo.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - /// The ID of the parent management group. - public partial class DescendantParentGroupInfo - { - /// Initializes a new instance of DescendantParentGroupInfo. - internal DescendantParentGroupInfo() - { - } - - /// Initializes a new instance of DescendantParentGroupInfo. - /// The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. - internal DescendantParentGroupInfo(string id) - { - Id = id; - } - - /// The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. - public string Id { get; } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/EntityHierarchyItem.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/EntityHierarchyItem.cs deleted file mode 100644 index 4c487e6b194a3..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/EntityHierarchyItem.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using Azure.Core; - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - /// The management group details for the hierarchy view. - internal partial class EntityHierarchyItem - { - /// Initializes a new instance of EntityHierarchyItem. - internal EntityHierarchyItem() - { - Children = new ChangeTrackingList(); - } - - /// The fully qualified ID for the management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. - public string Id { get; } - /// The type of the resource. For example, Microsoft.Management/managementGroups. - public string Type { get; } - /// The name of the management group. For example, 00000000-0000-0000-0000-000000000000. - public string Name { get; } - /// The friendly name of the management group. - public string DisplayName { get; } - /// The users specific permissions to this item. - public Permissions? Permissions { get; } - /// The list of children. - public IReadOnlyList Children { get; } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/EntityInfo.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/EntityInfo.Serialization.cs deleted file mode 100644 index 440b91a1586d1..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/EntityInfo.Serialization.cs +++ /dev/null @@ -1,184 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - public partial class EntityInfo - { - internal static EntityInfo DeserializeEntityInfo(JsonElement element) - { - Optional id = default; - Optional type = default; - Optional name = default; - Optional tenantId = default; - Optional displayName = default; - Optional parent = default; - Optional permissions = default; - Optional inheritedPermissions = default; - Optional numberOfDescendants = default; - Optional numberOfChildren = default; - Optional numberOfChildGroups = default; - Optional> parentDisplayNameChain = default; - Optional> parentNameChain = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("id")) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - id = null; - continue; - } - id = property.Value.GetString(); - continue; - } - if (property.NameEquals("type")) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - type = null; - continue; - } - type = property.Value.GetString(); - continue; - } - if (property.NameEquals("name")) - { - name = property.Value.GetString(); - continue; - } - if (property.NameEquals("properties")) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - foreach (var property0 in property.Value.EnumerateObject()) - { - if (property0.NameEquals("tenantId")) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - tenantId = null; - continue; - } - tenantId = property0.Value.GetString(); - continue; - } - if (property0.NameEquals("displayName")) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - displayName = null; - continue; - } - displayName = property0.Value.GetString(); - continue; - } - if (property0.NameEquals("parent")) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - parent = null; - continue; - } - parent = EntityParentGroupInfo.DeserializeEntityParentGroupInfo(property0.Value); - continue; - } - if (property0.NameEquals("permissions")) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - permissions = null; - continue; - } - permissions = new Permissions(property0.Value.GetString()); - continue; - } - if (property0.NameEquals("inheritedPermissions")) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - inheritedPermissions = null; - continue; - } - inheritedPermissions = new Permissions(property0.Value.GetString()); - continue; - } - if (property0.NameEquals("numberOfDescendants")) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - numberOfDescendants = null; - continue; - } - numberOfDescendants = property0.Value.GetInt32(); - continue; - } - if (property0.NameEquals("numberOfChildren")) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - numberOfChildren = null; - continue; - } - numberOfChildren = property0.Value.GetInt32(); - continue; - } - if (property0.NameEquals("numberOfChildGroups")) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - numberOfChildGroups = null; - continue; - } - numberOfChildGroups = property0.Value.GetInt32(); - continue; - } - if (property0.NameEquals("parentDisplayNameChain")) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - parentDisplayNameChain = null; - continue; - } - List array = new List(); - foreach (var item in property0.Value.EnumerateArray()) - { - array.Add(item.GetString()); - } - parentDisplayNameChain = array; - continue; - } - if (property0.NameEquals("parentNameChain")) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - parentNameChain = null; - continue; - } - List array = new List(); - foreach (var item in property0.Value.EnumerateArray()) - { - array.Add(item.GetString()); - } - parentNameChain = array; - continue; - } - } - continue; - } - } - return new EntityInfo(id.Value, type.Value, name.Value, tenantId.Value, displayName.Value, parent.Value, Optional.ToNullable(permissions), Optional.ToNullable(inheritedPermissions), Optional.ToNullable(numberOfDescendants), Optional.ToNullable(numberOfChildren), Optional.ToNullable(numberOfChildGroups), Optional.ToList(parentDisplayNameChain), Optional.ToList(parentNameChain)); - } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/EntityInfo.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/EntityInfo.cs deleted file mode 100644 index c33ff0cb6f9d4..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/EntityInfo.cs +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using Azure.Core; - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - /// The entity. - public partial class EntityInfo - { - /// Initializes a new instance of EntityInfo. - internal EntityInfo() - { - ParentDisplayNameChain = new ChangeTrackingList(); - ParentNameChain = new ChangeTrackingList(); - } - - /// Initializes a new instance of EntityInfo. - /// The fully qualified ID for the entity. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. - /// The type of the resource. For example, Microsoft.Management/managementGroups. - /// The name of the entity. For example, 00000000-0000-0000-0000-000000000000. - /// The AAD Tenant ID associated with the entity. For example, 00000000-0000-0000-0000-000000000000. - /// The friendly name of the management group. - /// (Optional) The ID of the parent management group. - /// The users specific permissions to this item. - /// The users specific permissions to this item. - /// Number of Descendants. - /// Number of children is the number of Groups and Subscriptions that are exactly one level underneath the current Group. - /// Number of children is the number of Groups that are exactly one level underneath the current Group. - /// The parent display name chain from the root group to the immediate parent. - /// The parent name chain from the root group to the immediate parent. - internal EntityInfo(string id, string type, string name, string tenantId, string displayName, EntityParentGroupInfo parent, Permissions? permissions, Permissions? inheritedPermissions, int? numberOfDescendants, int? numberOfChildren, int? numberOfChildGroups, IReadOnlyList parentDisplayNameChain, IReadOnlyList parentNameChain) - { - Id = id; - Type = type; - Name = name; - TenantId = tenantId; - DisplayName = displayName; - Parent = parent; - Permissions = permissions; - InheritedPermissions = inheritedPermissions; - NumberOfDescendants = numberOfDescendants; - NumberOfChildren = numberOfChildren; - NumberOfChildGroups = numberOfChildGroups; - ParentDisplayNameChain = parentDisplayNameChain; - ParentNameChain = parentNameChain; - } - - /// The fully qualified ID for the entity. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. - public string Id { get; } - /// The type of the resource. For example, Microsoft.Management/managementGroups. - public string Type { get; } - /// The name of the entity. For example, 00000000-0000-0000-0000-000000000000. - public string Name { get; } - /// The AAD Tenant ID associated with the entity. For example, 00000000-0000-0000-0000-000000000000. - public string TenantId { get; } - /// The friendly name of the management group. - public string DisplayName { get; } - /// (Optional) The ID of the parent management group. - public EntityParentGroupInfo Parent { get; } - /// The users specific permissions to this item. - public Permissions? Permissions { get; } - /// The users specific permissions to this item. - public Permissions? InheritedPermissions { get; } - /// Number of Descendants. - public int? NumberOfDescendants { get; } - /// Number of children is the number of Groups and Subscriptions that are exactly one level underneath the current Group. - public int? NumberOfChildren { get; } - /// Number of children is the number of Groups that are exactly one level underneath the current Group. - public int? NumberOfChildGroups { get; } - /// The parent display name chain from the root group to the immediate parent. - public IReadOnlyList ParentDisplayNameChain { get; } - /// The parent name chain from the root group to the immediate parent. - public IReadOnlyList ParentNameChain { get; } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/EntityListResult.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/EntityListResult.Serialization.cs deleted file mode 100644 index 0d07552eacb3f..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/EntityListResult.Serialization.cs +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - internal partial class EntityListResult - { - internal static EntityListResult DeserializeEntityListResult(JsonElement element) - { - Optional> value = default; - Optional count = default; - Optional nextLink = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("value")) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - List array = new List(); - foreach (var item in property.Value.EnumerateArray()) - { - array.Add(EntityInfo.DeserializeEntityInfo(item)); - } - value = array; - continue; - } - if (property.NameEquals("count")) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - count = property.Value.GetInt32(); - continue; - } - if (property.NameEquals("nextLink")) - { - nextLink = property.Value.GetString(); - continue; - } - } - return new EntityListResult(Optional.ToList(value), Optional.ToNullable(count), nextLink.Value); - } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/EntityListResult.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/EntityListResult.cs deleted file mode 100644 index 3af2764987ae8..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/EntityListResult.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using Azure.Core; - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - /// Describes the result of the request to view entities. - internal partial class EntityListResult - { - /// Initializes a new instance of EntityListResult. - internal EntityListResult() - { - Value = new ChangeTrackingList(); - } - - /// Initializes a new instance of EntityListResult. - /// The list of entities. - /// Total count of records that match the filter. - /// The URL to use for getting the next set of results. - internal EntityListResult(IReadOnlyList value, int? count, string nextLink) - { - Value = value; - Count = count; - NextLink = nextLink; - } - - /// The list of entities. - public IReadOnlyList Value { get; } - /// Total count of records that match the filter. - public int? Count { get; } - /// The URL to use for getting the next set of results. - public string NextLink { get; } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/EntityParentGroupInfo.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/EntityParentGroupInfo.Serialization.cs deleted file mode 100644 index f4c0c7d6f9dd2..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/EntityParentGroupInfo.Serialization.cs +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - public partial class EntityParentGroupInfo - { - internal static EntityParentGroupInfo DeserializeEntityParentGroupInfo(JsonElement element) - { - Optional id = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("id")) - { - id = property.Value.GetString(); - continue; - } - } - return new EntityParentGroupInfo(id.Value); - } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/EntityParentGroupInfo.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/EntityParentGroupInfo.cs deleted file mode 100644 index 8b25972a9f6d9..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/EntityParentGroupInfo.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - /// (Optional) The ID of the parent management group. - public partial class EntityParentGroupInfo - { - /// Initializes a new instance of EntityParentGroupInfo. - internal EntityParentGroupInfo() - { - } - - /// Initializes a new instance of EntityParentGroupInfo. - /// The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. - internal EntityParentGroupInfo(string id) - { - Id = id; - } - - /// The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. - public string Id { get; } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Enum0.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Enum0.cs deleted file mode 100644 index 20f0f12ac7676..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Enum0.cs +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - /// The Enum0. - public readonly partial struct Enum0 : IEquatable - { - private readonly string _value; - - /// Determines if two values are the same. - /// is null. - public Enum0(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string ChildrenValue = "children"; - private const string PathValue = "path"; - private const string AncestorsValue = "ancestors"; - - /// children. - public static Enum0 Children { get; } = new Enum0(ChildrenValue); - /// path. - public static Enum0 Path { get; } = new Enum0(PathValue); - /// ancestors. - public static Enum0 Ancestors { get; } = new Enum0(AncestorsValue); - /// Determines if two values are the same. - public static bool operator ==(Enum0 left, Enum0 right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(Enum0 left, Enum0 right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator Enum0(string value) => new Enum0(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is Enum0 other && Equals(other); - /// - public bool Equals(Enum0 other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Enum2.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Enum2.cs deleted file mode 100644 index 83da0bfad72a0..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Enum2.cs +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - /// The Enum2. - public readonly partial struct Enum2 : IEquatable - { - private readonly string _value; - - /// Determines if two values are the same. - /// is null. - public Enum2(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string AllowedParentsValue = "AllowedParents"; - private const string AllowedChildrenValue = "AllowedChildren"; - private const string ParentAndFirstLevelChildrenValue = "ParentAndFirstLevelChildren"; - private const string ParentOnlyValue = "ParentOnly"; - private const string ChildrenOnlyValue = "ChildrenOnly"; - - /// AllowedParents. - public static Enum2 AllowedParents { get; } = new Enum2(AllowedParentsValue); - /// AllowedChildren. - public static Enum2 AllowedChildren { get; } = new Enum2(AllowedChildrenValue); - /// ParentAndFirstLevelChildren. - public static Enum2 ParentAndFirstLevelChildren { get; } = new Enum2(ParentAndFirstLevelChildrenValue); - /// ParentOnly. - public static Enum2 ParentOnly { get; } = new Enum2(ParentOnlyValue); - /// ChildrenOnly. - public static Enum2 ChildrenOnly { get; } = new Enum2(ChildrenOnlyValue); - /// Determines if two values are the same. - public static bool operator ==(Enum2 left, Enum2 right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(Enum2 left, Enum2 right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator Enum2(string value) => new Enum2(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is Enum2 other && Equals(other); - /// - public bool Equals(Enum2 other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Enum3.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Enum3.cs deleted file mode 100644 index 98c37aec6e45d..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Enum3.cs +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - /// The Enum3. - public readonly partial struct Enum3 : IEquatable - { - private readonly string _value; - - /// Determines if two values are the same. - /// is null. - public Enum3(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string FullHierarchyValue = "FullHierarchy"; - private const string GroupsOnlyValue = "GroupsOnly"; - private const string SubscriptionsOnlyValue = "SubscriptionsOnly"; - private const string AuditValue = "Audit"; - - /// FullHierarchy. - public static Enum3 FullHierarchy { get; } = new Enum3(FullHierarchyValue); - /// GroupsOnly. - public static Enum3 GroupsOnly { get; } = new Enum3(GroupsOnlyValue); - /// SubscriptionsOnly. - public static Enum3 SubscriptionsOnly { get; } = new Enum3(SubscriptionsOnlyValue); - /// Audit. - public static Enum3 Audit { get; } = new Enum3(AuditValue); - /// Determines if two values are the same. - public static bool operator ==(Enum3 left, Enum3 right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(Enum3 left, Enum3 right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator Enum3(string value) => new Enum3(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is Enum3 other && Equals(other); - /// - public bool Equals(Enum3 other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ErrorDetails.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ErrorDetails.Serialization.cs deleted file mode 100644 index 0de44a8bc8eca..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ErrorDetails.Serialization.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - internal partial class ErrorDetails - { - internal static ErrorDetails DeserializeErrorDetails(JsonElement element) - { - Optional code = default; - Optional message = default; - Optional details = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("code")) - { - code = property.Value.GetString(); - continue; - } - if (property.NameEquals("message")) - { - message = property.Value.GetString(); - continue; - } - if (property.NameEquals("details")) - { - details = property.Value.GetString(); - continue; - } - } - return new ErrorDetails(code.Value, message.Value, details.Value); - } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ErrorDetails.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ErrorDetails.cs deleted file mode 100644 index 351b3933daa4d..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ErrorDetails.cs +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - /// The details of the error. - internal partial class ErrorDetails - { - /// Initializes a new instance of ErrorDetails. - internal ErrorDetails() - { - } - - /// Initializes a new instance of ErrorDetails. - /// One of a server-defined set of error codes. - /// A human-readable representation of the error. - /// A human-readable representation of the error's details. - internal ErrorDetails(string code, string message, string details) - { - Code = code; - Message = message; - Details = details; - } - - /// One of a server-defined set of error codes. - public string Code { get; } - /// A human-readable representation of the error. - public string Message { get; } - /// A human-readable representation of the error's details. - public string Details { get; } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ErrorResponse.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ErrorResponse.Serialization.cs deleted file mode 100644 index 3c85e24887af2..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ErrorResponse.Serialization.cs +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - internal partial class ErrorResponse - { - internal static ErrorResponse DeserializeErrorResponse(JsonElement element) - { - Optional error = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("error")) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - error = ErrorDetails.DeserializeErrorDetails(property.Value); - continue; - } - } - return new ErrorResponse(error.Value); - } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ErrorResponse.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ErrorResponse.cs deleted file mode 100644 index 40a7838f8e31b..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ErrorResponse.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - /// The error object. - internal partial class ErrorResponse - { - /// Initializes a new instance of ErrorResponse. - internal ErrorResponse() - { - } - - /// Initializes a new instance of ErrorResponse. - /// The details of the error. - internal ErrorResponse(ErrorDetails error) - { - Error = error; - } - - /// The details of the error. - public ErrorDetails Error { get; } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/HierarchySettings.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/HierarchySettings.Serialization.cs deleted file mode 100644 index 4353b9ea34dc3..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/HierarchySettings.Serialization.cs +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - public partial class HierarchySettings - { - internal static HierarchySettings DeserializeHierarchySettings(JsonElement element) - { - Optional id = default; - Optional type = default; - Optional name = default; - Optional tenantId = default; - Optional requireAuthorizationForGroupCreation = default; - Optional defaultManagementGroup = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("id")) - { - id = property.Value.GetString(); - continue; - } - if (property.NameEquals("type")) - { - type = property.Value.GetString(); - continue; - } - if (property.NameEquals("name")) - { - name = property.Value.GetString(); - continue; - } - if (property.NameEquals("properties")) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - foreach (var property0 in property.Value.EnumerateObject()) - { - if (property0.NameEquals("tenantId")) - { - tenantId = property0.Value.GetString(); - continue; - } - if (property0.NameEquals("requireAuthorizationForGroupCreation")) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - property0.ThrowNonNullablePropertyIsNull(); - continue; - } - requireAuthorizationForGroupCreation = property0.Value.GetBoolean(); - continue; - } - if (property0.NameEquals("defaultManagementGroup")) - { - defaultManagementGroup = property0.Value.GetString(); - continue; - } - } - continue; - } - } - return new HierarchySettings(id.Value, type.Value, name.Value, tenantId.Value, Optional.ToNullable(requireAuthorizationForGroupCreation), defaultManagementGroup.Value); - } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/HierarchySettings.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/HierarchySettings.cs deleted file mode 100644 index 4d271963daf07..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/HierarchySettings.cs +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - /// Settings defined at the Management Group scope. - public partial class HierarchySettings - { - /// Initializes a new instance of HierarchySettings. - internal HierarchySettings() - { - } - - /// Initializes a new instance of HierarchySettings. - /// The fully qualified ID for the settings object. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000/settings/default. - /// The type of the resource. For example, Microsoft.Management/managementGroups/settings. - /// The name of the object. In this case, default. - /// The AAD Tenant ID associated with the hierarchy settings. For example, 00000000-0000-0000-0000-000000000000. - /// Indicates whether RBAC access is required upon group creation under the root Management Group. If set to true, user will require Microsoft.Management/managementGroups/write action on the root Management Group scope in order to create new Groups directly under the root. This will prevent new users from creating new Management Groups, unless they are given access. - /// Settings that sets the default Management Group under which new subscriptions get added in this tenant. For example, /providers/Microsoft.Management/managementGroups/defaultGroup. - internal HierarchySettings(string id, string type, string name, string tenantId, bool? requireAuthorizationForGroupCreation, string defaultManagementGroup) - { - Id = id; - Type = type; - Name = name; - TenantId = tenantId; - RequireAuthorizationForGroupCreation = requireAuthorizationForGroupCreation; - DefaultManagementGroup = defaultManagementGroup; - } - - /// The fully qualified ID for the settings object. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000/settings/default. - public string Id { get; } - /// The type of the resource. For example, Microsoft.Management/managementGroups/settings. - public string Type { get; } - /// The name of the object. In this case, default. - public string Name { get; } - /// The AAD Tenant ID associated with the hierarchy settings. For example, 00000000-0000-0000-0000-000000000000. - public string TenantId { get; } - /// Indicates whether RBAC access is required upon group creation under the root Management Group. If set to true, user will require Microsoft.Management/managementGroups/write action on the root Management Group scope in order to create new Groups directly under the root. This will prevent new users from creating new Management Groups, unless they are given access. - public bool? RequireAuthorizationForGroupCreation { get; } - /// Settings that sets the default Management Group under which new subscriptions get added in this tenant. For example, /providers/Microsoft.Management/managementGroups/defaultGroup. - public string DefaultManagementGroup { get; } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/HierarchySettingsInfo.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/HierarchySettingsInfo.Serialization.cs deleted file mode 100644 index ff1a77e2fc895..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/HierarchySettingsInfo.Serialization.cs +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - public partial class HierarchySettingsInfo - { - internal static HierarchySettingsInfo DeserializeHierarchySettingsInfo(JsonElement element) - { - Optional id = default; - Optional type = default; - Optional name = default; - Optional tenantId = default; - Optional requireAuthorizationForGroupCreation = default; - Optional defaultManagementGroup = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("id")) - { - id = property.Value.GetString(); - continue; - } - if (property.NameEquals("type")) - { - type = property.Value.GetString(); - continue; - } - if (property.NameEquals("name")) - { - name = property.Value.GetString(); - continue; - } - if (property.NameEquals("properties")) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - foreach (var property0 in property.Value.EnumerateObject()) - { - if (property0.NameEquals("tenantId")) - { - tenantId = property0.Value.GetString(); - continue; - } - if (property0.NameEquals("requireAuthorizationForGroupCreation")) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - property0.ThrowNonNullablePropertyIsNull(); - continue; - } - requireAuthorizationForGroupCreation = property0.Value.GetBoolean(); - continue; - } - if (property0.NameEquals("defaultManagementGroup")) - { - defaultManagementGroup = property0.Value.GetString(); - continue; - } - } - continue; - } - } - return new HierarchySettingsInfo(id.Value, type.Value, name.Value, tenantId.Value, Optional.ToNullable(requireAuthorizationForGroupCreation), defaultManagementGroup.Value); - } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/HierarchySettingsInfo.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/HierarchySettingsInfo.cs deleted file mode 100644 index 5e208f93341c5..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/HierarchySettingsInfo.cs +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - /// The hierarchy settings resource. - public partial class HierarchySettingsInfo - { - /// Initializes a new instance of HierarchySettingsInfo. - internal HierarchySettingsInfo() - { - } - - /// Initializes a new instance of HierarchySettingsInfo. - /// The fully qualified ID for the settings object. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000/settings/default. - /// The type of the resource. For example, Microsoft.Management/managementGroups/settings. - /// The name of the object. In this case, default. - /// The AAD Tenant ID associated with the hierarchy settings. For example, 00000000-0000-0000-0000-000000000000. - /// Indicates whether RBAC access is required upon group creation under the root Management Group. If set to true, user will require Microsoft.Management/managementGroups/write action on the root Management Group scope in order to create new Groups directly under the root. This will prevent new users from creating new Management Groups, unless they are given access. - /// Settings that sets the default Management Group under which new subscriptions get added in this tenant. For example, /providers/Microsoft.Management/managementGroups/defaultGroup. - internal HierarchySettingsInfo(string id, string type, string name, string tenantId, bool? requireAuthorizationForGroupCreation, string defaultManagementGroup) - { - Id = id; - Type = type; - Name = name; - TenantId = tenantId; - RequireAuthorizationForGroupCreation = requireAuthorizationForGroupCreation; - DefaultManagementGroup = defaultManagementGroup; - } - - /// The fully qualified ID for the settings object. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000/settings/default. - public string Id { get; } - /// The type of the resource. For example, Microsoft.Management/managementGroups/settings. - public string Type { get; } - /// The name of the object. In this case, default. - public string Name { get; } - /// The AAD Tenant ID associated with the hierarchy settings. For example, 00000000-0000-0000-0000-000000000000. - public string TenantId { get; } - /// Indicates whether RBAC access is required upon group creation under the root Management Group. If set to true, user will require Microsoft.Management/managementGroups/write action on the root Management Group scope in order to create new Groups directly under the root. This will prevent new users from creating new Management Groups, unless they are given access. - public bool? RequireAuthorizationForGroupCreation { get; } - /// Settings that sets the default Management Group under which new subscriptions get added in this tenant. For example, /providers/Microsoft.Management/managementGroups/defaultGroup. - public string DefaultManagementGroup { get; } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/HierarchySettingsList.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/HierarchySettingsList.Serialization.cs deleted file mode 100644 index b8365f1a57ce8..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/HierarchySettingsList.Serialization.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - public partial class HierarchySettingsList - { - internal static HierarchySettingsList DeserializeHierarchySettingsList(JsonElement element) - { - Optional> value = default; - Optional nextLink = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("value")) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - List array = new List(); - foreach (var item in property.Value.EnumerateArray()) - { - array.Add(HierarchySettingsInfo.DeserializeHierarchySettingsInfo(item)); - } - value = array; - continue; - } - if (property.NameEquals("nextLink")) - { - nextLink = property.Value.GetString(); - continue; - } - } - return new HierarchySettingsList(Optional.ToList(value), nextLink.Value); - } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/HierarchySettingsList.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/HierarchySettingsList.cs deleted file mode 100644 index 640c0b7ff773c..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/HierarchySettingsList.cs +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using Azure.Core; - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - /// Lists all hierarchy settings. - public partial class HierarchySettingsList - { - /// Initializes a new instance of HierarchySettingsList. - internal HierarchySettingsList() - { - Value = new ChangeTrackingList(); - } - - /// Initializes a new instance of HierarchySettingsList. - /// The list of hierarchy settings. - /// The URL to use for getting the next set of results. - internal HierarchySettingsList(IReadOnlyList value, string nextLink) - { - Value = value; - NextLink = nextLink; - } - - /// The list of hierarchy settings. - public IReadOnlyList Value { get; } - /// The URL to use for getting the next set of results. - public string NextLink { get; } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ListSubscriptionUnderManagementGroup.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ListSubscriptionUnderManagementGroup.Serialization.cs deleted file mode 100644 index 99a9dee5449f7..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ListSubscriptionUnderManagementGroup.Serialization.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - internal partial class ListSubscriptionUnderManagementGroup - { - internal static ListSubscriptionUnderManagementGroup DeserializeListSubscriptionUnderManagementGroup(JsonElement element) - { - Optional> value = default; - Optional nextLink = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("value")) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - List array = new List(); - foreach (var item in property.Value.EnumerateArray()) - { - array.Add(SubscriptionUnderManagementGroup.DeserializeSubscriptionUnderManagementGroup(item)); - } - value = array; - continue; - } - if (property.NameEquals("nextLink")) - { - nextLink = property.Value.GetString(); - continue; - } - } - return new ListSubscriptionUnderManagementGroup(Optional.ToList(value), nextLink.Value); - } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ListSubscriptionUnderManagementGroup.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ListSubscriptionUnderManagementGroup.cs deleted file mode 100644 index ac0fed60669c1..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ListSubscriptionUnderManagementGroup.cs +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using Azure.Core; - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - /// The details of all subscriptions under management group. - internal partial class ListSubscriptionUnderManagementGroup - { - /// Initializes a new instance of ListSubscriptionUnderManagementGroup. - internal ListSubscriptionUnderManagementGroup() - { - Value = new ChangeTrackingList(); - } - - /// Initializes a new instance of ListSubscriptionUnderManagementGroup. - /// The list of subscriptions. - /// The URL to use for getting the next set of results. - internal ListSubscriptionUnderManagementGroup(IReadOnlyList value, string nextLink) - { - Value = value; - NextLink = nextLink; - } - - /// The list of subscriptions. - public IReadOnlyList Value { get; } - /// The URL to use for getting the next set of results. - public string NextLink { get; } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroup.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroup.Serialization.cs deleted file mode 100644 index 77f511b5af083..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroup.Serialization.cs +++ /dev/null @@ -1,93 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - public partial class ManagementGroup - { - internal static ManagementGroup DeserializeManagementGroup(JsonElement element) - { - Optional id = default; - Optional type = default; - Optional name = default; - Optional tenantId = default; - Optional displayName = default; - Optional details = default; - Optional> children = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("id")) - { - id = property.Value.GetString(); - continue; - } - if (property.NameEquals("type")) - { - type = property.Value.GetString(); - continue; - } - if (property.NameEquals("name")) - { - name = property.Value.GetString(); - continue; - } - if (property.NameEquals("properties")) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - foreach (var property0 in property.Value.EnumerateObject()) - { - if (property0.NameEquals("tenantId")) - { - tenantId = property0.Value.GetString(); - continue; - } - if (property0.NameEquals("displayName")) - { - displayName = property0.Value.GetString(); - continue; - } - if (property0.NameEquals("details")) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - property0.ThrowNonNullablePropertyIsNull(); - continue; - } - details = ManagementGroupDetails.DeserializeManagementGroupDetails(property0.Value); - continue; - } - if (property0.NameEquals("children")) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - children = null; - continue; - } - List array = new List(); - foreach (var item in property0.Value.EnumerateArray()) - { - array.Add(ManagementGroupChildInfo.DeserializeManagementGroupChildInfo(item)); - } - children = array; - continue; - } - } - continue; - } - } - return new ManagementGroup(id.Value, type.Value, name.Value, tenantId.Value, displayName.Value, details.Value, Optional.ToList(children)); - } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroup.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroup.cs deleted file mode 100644 index 76fb139e287ae..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroup.cs +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using Azure.Core; - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - /// The management group details. - public partial class ManagementGroup - { - /// Initializes a new instance of ManagementGroup. - internal ManagementGroup() - { - Children = new ChangeTrackingList(); - } - - /// Initializes a new instance of ManagementGroup. - /// The fully qualified ID for the management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. - /// The type of the resource. For example, Microsoft.Management/managementGroups. - /// The name of the management group. For example, 00000000-0000-0000-0000-000000000000. - /// The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000. - /// The friendly name of the management group. - /// The details of a management group. - /// The list of children. - internal ManagementGroup(string id, string type, string name, string tenantId, string displayName, ManagementGroupDetails details, IReadOnlyList children) - { - Id = id; - Type = type; - Name = name; - TenantId = tenantId; - DisplayName = displayName; - Details = details; - Children = children; - } - - /// The fully qualified ID for the management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. - public string Id { get; } - /// The type of the resource. For example, Microsoft.Management/managementGroups. - public string Type { get; } - /// The name of the management group. For example, 00000000-0000-0000-0000-000000000000. - public string Name { get; } - /// The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000. - public string TenantId { get; } - /// The friendly name of the management group. - public string DisplayName { get; } - /// The details of a management group. - public ManagementGroupDetails Details { get; } - /// The list of children. - public IReadOnlyList Children { get; } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupChildInfo.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupChildInfo.Serialization.cs deleted file mode 100644 index 58fcaef43c599..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupChildInfo.Serialization.cs +++ /dev/null @@ -1,69 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - public partial class ManagementGroupChildInfo - { - internal static ManagementGroupChildInfo DeserializeManagementGroupChildInfo(JsonElement element) - { - Optional type = default; - Optional id = default; - Optional name = default; - Optional displayName = default; - Optional> children = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("type")) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - type = new ManagementGroupChildType(property.Value.GetString()); - continue; - } - if (property.NameEquals("id")) - { - id = property.Value.GetString(); - continue; - } - if (property.NameEquals("name")) - { - name = property.Value.GetString(); - continue; - } - if (property.NameEquals("displayName")) - { - displayName = property.Value.GetString(); - continue; - } - if (property.NameEquals("children")) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - List array = new List(); - foreach (var item in property.Value.EnumerateArray()) - { - array.Add(DeserializeManagementGroupChildInfo(item)); - } - children = array; - continue; - } - } - return new ManagementGroupChildInfo(Optional.ToNullable(type), id.Value, name.Value, displayName.Value, Optional.ToList(children)); - } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupChildInfo.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupChildInfo.cs deleted file mode 100644 index 360eab72a5d6d..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupChildInfo.cs +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using Azure.Core; - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - /// The child information of a management group. - public partial class ManagementGroupChildInfo - { - /// Initializes a new instance of ManagementGroupChildInfo. - internal ManagementGroupChildInfo() - { - Children = new ChangeTrackingList(); - } - - /// Initializes a new instance of ManagementGroupChildInfo. - /// The fully qualified resource type which includes provider namespace (e.g. Microsoft.Management/managementGroups). - /// The fully qualified ID for the child resource (management group or subscription). For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. - /// The name of the child entity. - /// The friendly name of the child resource. - /// The list of children. - internal ManagementGroupChildInfo(ManagementGroupChildType? type, string id, string name, string displayName, IReadOnlyList children) - { - Type = type; - Id = id; - Name = name; - DisplayName = displayName; - Children = children; - } - - /// The fully qualified resource type which includes provider namespace (e.g. Microsoft.Management/managementGroups). - public ManagementGroupChildType? Type { get; } - /// The fully qualified ID for the child resource (management group or subscription). For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. - public string Id { get; } - /// The name of the child entity. - public string Name { get; } - /// The friendly name of the child resource. - public string DisplayName { get; } - /// The list of children. - public IReadOnlyList Children { get; } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupChildType.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupChildType.cs deleted file mode 100644 index e338697a7059a..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupChildType.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - /// The type of child resource. - public readonly partial struct ManagementGroupChildType : IEquatable - { - private readonly string _value; - - /// Determines if two values are the same. - /// is null. - public ManagementGroupChildType(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string MicrosoftManagementManagementGroupsValue = "Microsoft.Management/managementGroups"; - private const string SubscriptionsValue = "/subscriptions"; - - /// Microsoft.Management/managementGroups. - public static ManagementGroupChildType MicrosoftManagementManagementGroups { get; } = new ManagementGroupChildType(MicrosoftManagementManagementGroupsValue); - /// /subscriptions. - public static ManagementGroupChildType Subscriptions { get; } = new ManagementGroupChildType(SubscriptionsValue); - /// Determines if two values are the same. - public static bool operator ==(ManagementGroupChildType left, ManagementGroupChildType right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(ManagementGroupChildType left, ManagementGroupChildType right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator ManagementGroupChildType(string value) => new ManagementGroupChildType(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is ManagementGroupChildType other && Equals(other); - /// - public bool Equals(ManagementGroupChildType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupDetails.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupDetails.Serialization.cs deleted file mode 100644 index a18e4f5ac6787..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupDetails.Serialization.cs +++ /dev/null @@ -1,112 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - public partial class ManagementGroupDetails - { - internal static ManagementGroupDetails DeserializeManagementGroupDetails(JsonElement element) - { - Optional version = default; - Optional updatedTime = default; - Optional updatedBy = default; - Optional parent = default; - Optional> path = default; - Optional> managementGroupAncestors = default; - Optional> managementGroupAncestorsChain = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("version")) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - version = property.Value.GetInt32(); - continue; - } - if (property.NameEquals("updatedTime")) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - updatedTime = property.Value.GetDateTimeOffset("O"); - continue; - } - if (property.NameEquals("updatedBy")) - { - updatedBy = property.Value.GetString(); - continue; - } - if (property.NameEquals("parent")) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - parent = ParentGroupInfo.DeserializeParentGroupInfo(property.Value); - continue; - } - if (property.NameEquals("path")) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - path = null; - continue; - } - List array = new List(); - foreach (var item in property.Value.EnumerateArray()) - { - array.Add(ManagementGroupPathElement.DeserializeManagementGroupPathElement(item)); - } - path = array; - continue; - } - if (property.NameEquals("managementGroupAncestors")) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - managementGroupAncestors = null; - continue; - } - List array = new List(); - foreach (var item in property.Value.EnumerateArray()) - { - array.Add(item.GetString()); - } - managementGroupAncestors = array; - continue; - } - if (property.NameEquals("managementGroupAncestorsChain")) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - managementGroupAncestorsChain = null; - continue; - } - List array = new List(); - foreach (var item in property.Value.EnumerateArray()) - { - array.Add(ManagementGroupPathElement.DeserializeManagementGroupPathElement(item)); - } - managementGroupAncestorsChain = array; - continue; - } - } - return new ManagementGroupDetails(Optional.ToNullable(version), Optional.ToNullable(updatedTime), updatedBy.Value, parent.Value, Optional.ToList(path), Optional.ToList(managementGroupAncestors), Optional.ToList(managementGroupAncestorsChain)); - } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupDetails.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupDetails.cs deleted file mode 100644 index 15134ceee0bf6..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupDetails.cs +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using Azure.Core; - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - /// The details of a management group. - public partial class ManagementGroupDetails - { - /// Initializes a new instance of ManagementGroupDetails. - internal ManagementGroupDetails() - { - Path = new ChangeTrackingList(); - ManagementGroupAncestors = new ChangeTrackingList(); - ManagementGroupAncestorsChain = new ChangeTrackingList(); - } - - /// Initializes a new instance of ManagementGroupDetails. - /// The version number of the object. - /// The date and time when this object was last updated. - /// The identity of the principal or process that updated the object. - /// (Optional) The ID of the parent management group. - /// The path from the root to the current group. - /// The ancestors of the management group. - /// The ancestors of the management group displayed in reversed order, from immediate parent to the root. - internal ManagementGroupDetails(int? version, DateTimeOffset? updatedTime, string updatedBy, ParentGroupInfo parent, IReadOnlyList path, IReadOnlyList managementGroupAncestors, IReadOnlyList managementGroupAncestorsChain) - { - Version = version; - UpdatedTime = updatedTime; - UpdatedBy = updatedBy; - Parent = parent; - Path = path; - ManagementGroupAncestors = managementGroupAncestors; - ManagementGroupAncestorsChain = managementGroupAncestorsChain; - } - - /// The version number of the object. - public int? Version { get; } - /// The date and time when this object was last updated. - public DateTimeOffset? UpdatedTime { get; } - /// The identity of the principal or process that updated the object. - public string UpdatedBy { get; } - /// (Optional) The ID of the parent management group. - public ParentGroupInfo Parent { get; } - /// The path from the root to the current group. - public IReadOnlyList Path { get; } - /// The ancestors of the management group. - public IReadOnlyList ManagementGroupAncestors { get; } - /// The ancestors of the management group displayed in reversed order, from immediate parent to the root. - public IReadOnlyList ManagementGroupAncestorsChain { get; } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupInfo.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupInfo.Serialization.cs deleted file mode 100644 index 1dd4f7d499eca..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupInfo.Serialization.cs +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - public partial class ManagementGroupInfo - { - internal static ManagementGroupInfo DeserializeManagementGroupInfo(JsonElement element) - { - Optional id = default; - Optional type = default; - Optional name = default; - Optional tenantId = default; - Optional displayName = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("id")) - { - id = property.Value.GetString(); - continue; - } - if (property.NameEquals("type")) - { - type = property.Value.GetString(); - continue; - } - if (property.NameEquals("name")) - { - name = property.Value.GetString(); - continue; - } - if (property.NameEquals("properties")) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - foreach (var property0 in property.Value.EnumerateObject()) - { - if (property0.NameEquals("tenantId")) - { - tenantId = property0.Value.GetString(); - continue; - } - if (property0.NameEquals("displayName")) - { - displayName = property0.Value.GetString(); - continue; - } - } - continue; - } - } - return new ManagementGroupInfo(id.Value, type.Value, name.Value, tenantId.Value, displayName.Value); - } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupInfo.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupInfo.cs deleted file mode 100644 index 6cdb9b21422a8..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupInfo.cs +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - /// The management group resource. - public partial class ManagementGroupInfo - { - /// Initializes a new instance of ManagementGroupInfo. - internal ManagementGroupInfo() - { - } - - /// Initializes a new instance of ManagementGroupInfo. - /// The fully qualified ID for the management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. - /// The type of the resource. For example, Microsoft.Management/managementGroups. - /// The name of the management group. For example, 00000000-0000-0000-0000-000000000000. - /// The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000. - /// The friendly name of the management group. - internal ManagementGroupInfo(string id, string type, string name, string tenantId, string displayName) - { - Id = id; - Type = type; - Name = name; - TenantId = tenantId; - DisplayName = displayName; - } - - /// The fully qualified ID for the management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. - public string Id { get; } - /// The type of the resource. For example, Microsoft.Management/managementGroups. - public string Type { get; } - /// The name of the management group. For example, 00000000-0000-0000-0000-000000000000. - public string Name { get; } - /// The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000. - public string TenantId { get; } - /// The friendly name of the management group. - public string DisplayName { get; } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupListResult.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupListResult.Serialization.cs deleted file mode 100644 index 3290a553377e1..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupListResult.Serialization.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - internal partial class ManagementGroupListResult - { - internal static ManagementGroupListResult DeserializeManagementGroupListResult(JsonElement element) - { - Optional> value = default; - Optional nextLink = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("value")) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - List array = new List(); - foreach (var item in property.Value.EnumerateArray()) - { - array.Add(ManagementGroupInfo.DeserializeManagementGroupInfo(item)); - } - value = array; - continue; - } - if (property.NameEquals("nextLink")) - { - nextLink = property.Value.GetString(); - continue; - } - } - return new ManagementGroupListResult(Optional.ToList(value), nextLink.Value); - } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupListResult.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupListResult.cs deleted file mode 100644 index e937ac5604648..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupListResult.cs +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using Azure.Core; - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - /// Describes the result of the request to list management groups. - internal partial class ManagementGroupListResult - { - /// Initializes a new instance of ManagementGroupListResult. - internal ManagementGroupListResult() - { - Value = new ChangeTrackingList(); - } - - /// Initializes a new instance of ManagementGroupListResult. - /// The list of management groups. - /// The URL to use for getting the next set of results. - internal ManagementGroupListResult(IReadOnlyList value, string nextLink) - { - Value = value; - NextLink = nextLink; - } - - /// The list of management groups. - public IReadOnlyList Value { get; } - /// The URL to use for getting the next set of results. - public string NextLink { get; } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupPathElement.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupPathElement.Serialization.cs deleted file mode 100644 index 35e587863ee04..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupPathElement.Serialization.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - public partial class ManagementGroupPathElement - { - internal static ManagementGroupPathElement DeserializeManagementGroupPathElement(JsonElement element) - { - Optional name = default; - Optional displayName = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("name")) - { - name = property.Value.GetString(); - continue; - } - if (property.NameEquals("displayName")) - { - displayName = property.Value.GetString(); - continue; - } - } - return new ManagementGroupPathElement(name.Value, displayName.Value); - } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupPathElement.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupPathElement.cs deleted file mode 100644 index 3dc6815a10230..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ManagementGroupPathElement.cs +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - /// A path element of a management group ancestors. - public partial class ManagementGroupPathElement - { - /// Initializes a new instance of ManagementGroupPathElement. - internal ManagementGroupPathElement() - { - } - - /// Initializes a new instance of ManagementGroupPathElement. - /// The name of the group. - /// The friendly name of the group. - internal ManagementGroupPathElement(string name, string displayName) - { - Name = name; - DisplayName = displayName; - } - - /// The name of the group. - public string Name { get; } - /// The friendly name of the group. - public string DisplayName { get; } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Operation.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Operation.Serialization.cs deleted file mode 100644 index a9a931fa5f793..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Operation.Serialization.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - public partial class Operation - { - internal static Operation DeserializeOperation(JsonElement element) - { - Optional name = default; - Optional display = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("name")) - { - name = property.Value.GetString(); - continue; - } - if (property.NameEquals("display")) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - display = OperationDisplayProperties.DeserializeOperationDisplayProperties(property.Value); - continue; - } - } - return new Operation(name.Value, display.Value); - } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Operation.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Operation.cs deleted file mode 100644 index de9cb375509ed..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Operation.cs +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - /// Operation supported by the Microsoft.Management resource provider. - public partial class Operation - { - /// Initializes a new instance of Operation. - internal Operation() - { - } - - /// Initializes a new instance of Operation. - /// Operation name: {provider}/{resource}/{operation}. - /// The object that represents the operation. - internal Operation(string name, OperationDisplayProperties display) - { - Name = name; - Display = display; - } - - /// Operation name: {provider}/{resource}/{operation}. - public string Name { get; } - /// The object that represents the operation. - public OperationDisplayProperties Display { get; } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/OperationDisplayProperties.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/OperationDisplayProperties.Serialization.cs deleted file mode 100644 index 5cacd1c503d54..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/OperationDisplayProperties.Serialization.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - public partial class OperationDisplayProperties - { - internal static OperationDisplayProperties DeserializeOperationDisplayProperties(JsonElement element) - { - Optional provider = default; - Optional resource = default; - Optional operation = default; - Optional description = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("provider")) - { - provider = property.Value.GetString(); - continue; - } - if (property.NameEquals("resource")) - { - resource = property.Value.GetString(); - continue; - } - if (property.NameEquals("operation")) - { - operation = property.Value.GetString(); - continue; - } - if (property.NameEquals("description")) - { - description = property.Value.GetString(); - continue; - } - } - return new OperationDisplayProperties(provider.Value, resource.Value, operation.Value, description.Value); - } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/OperationDisplayProperties.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/OperationDisplayProperties.cs deleted file mode 100644 index 582640518cc83..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/OperationDisplayProperties.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - /// The object that represents the operation. - public partial class OperationDisplayProperties - { - /// Initializes a new instance of OperationDisplayProperties. - internal OperationDisplayProperties() - { - } - - /// Initializes a new instance of OperationDisplayProperties. - /// The name of the provider. - /// The resource on which the operation is performed. - /// The operation that can be performed. - /// Operation description. - internal OperationDisplayProperties(string provider, string resource, string operation, string description) - { - Provider = provider; - Resource = resource; - Operation = operation; - Description = description; - } - - /// The name of the provider. - public string Provider { get; } - /// The resource on which the operation is performed. - public string Resource { get; } - /// The operation that can be performed. - public string Operation { get; } - /// Operation description. - public string Description { get; } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/OperationListResult.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/OperationListResult.Serialization.cs deleted file mode 100644 index 66adfcdb9b165..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/OperationListResult.Serialization.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - internal partial class OperationListResult - { - internal static OperationListResult DeserializeOperationListResult(JsonElement element) - { - Optional> value = default; - Optional nextLink = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("value")) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - List array = new List(); - foreach (var item in property.Value.EnumerateArray()) - { - array.Add(Operation.DeserializeOperation(item)); - } - value = array; - continue; - } - if (property.NameEquals("nextLink")) - { - nextLink = property.Value.GetString(); - continue; - } - } - return new OperationListResult(Optional.ToList(value), nextLink.Value); - } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/OperationListResult.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/OperationListResult.cs deleted file mode 100644 index 1327e98c2104e..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/OperationListResult.cs +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using Azure.Core; - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - /// Describes the result of the request to list Microsoft.Management operations. - internal partial class OperationListResult - { - /// Initializes a new instance of OperationListResult. - internal OperationListResult() - { - Value = new ChangeTrackingList(); - } - - /// Initializes a new instance of OperationListResult. - /// List of operations supported by the Microsoft.Management resource provider. - /// URL to get the next set of operation list results if there are any. - internal OperationListResult(IReadOnlyList value, string nextLink) - { - Value = value; - NextLink = nextLink; - } - - /// List of operations supported by the Microsoft.Management resource provider. - public IReadOnlyList Value { get; } - /// URL to get the next set of operation list results if there are any. - public string NextLink { get; } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/OperationResults.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/OperationResults.cs deleted file mode 100644 index abb36e0db53bb..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/OperationResults.cs +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - /// The results of an asynchronous operation. - internal partial class OperationResults - { - /// Initializes a new instance of OperationResults. - internal OperationResults() - { - } - - /// The fully qualified ID for the management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. - public string Id { get; } - /// The type of the resource. For example, Microsoft.Management/managementGroups. - public string Type { get; } - /// The name of the management group. For example, 00000000-0000-0000-0000-000000000000. - public string Name { get; } - /// The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000. - public string TenantId { get; } - /// The friendly name of the management group. - public string DisplayName { get; } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ParentGroupInfo.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ParentGroupInfo.Serialization.cs deleted file mode 100644 index 0331e7365e9a2..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ParentGroupInfo.Serialization.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - public partial class ParentGroupInfo - { - internal static ParentGroupInfo DeserializeParentGroupInfo(JsonElement element) - { - Optional id = default; - Optional name = default; - Optional displayName = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("id")) - { - id = property.Value.GetString(); - continue; - } - if (property.NameEquals("name")) - { - name = property.Value.GetString(); - continue; - } - if (property.NameEquals("displayName")) - { - displayName = property.Value.GetString(); - continue; - } - } - return new ParentGroupInfo(id.Value, name.Value, displayName.Value); - } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ParentGroupInfo.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ParentGroupInfo.cs deleted file mode 100644 index ea3ebae39f11c..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/ParentGroupInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - /// (Optional) The ID of the parent management group. - public partial class ParentGroupInfo - { - /// Initializes a new instance of ParentGroupInfo. - internal ParentGroupInfo() - { - } - - /// Initializes a new instance of ParentGroupInfo. - /// The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. - /// The name of the parent management group. - /// The friendly name of the parent management group. - internal ParentGroupInfo(string id, string name, string displayName) - { - Id = id; - Name = name; - DisplayName = displayName; - } - - /// The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. - public string Id { get; } - /// The name of the parent management group. - public string Name { get; } - /// The friendly name of the parent management group. - public string DisplayName { get; } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/PatchManagementGroupRequest.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/PatchManagementGroupRequest.Serialization.cs deleted file mode 100644 index fda117fe69a64..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/PatchManagementGroupRequest.Serialization.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - public partial class PatchManagementGroupRequest : IUtf8JsonSerializable - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) - { - writer.WriteStartObject(); - if (Optional.IsDefined(DisplayName)) - { - if (DisplayName != null) - { - writer.WritePropertyName("displayName"); - writer.WriteStringValue(DisplayName); - } - else - { - writer.WriteNull("displayName"); - } - } - if (Optional.IsDefined(ParentGroupId)) - { - if (ParentGroupId != null) - { - writer.WritePropertyName("parentGroupId"); - writer.WriteStringValue(ParentGroupId); - } - else - { - writer.WriteNull("parentGroupId"); - } - } - writer.WriteEndObject(); - } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/PatchManagementGroupRequest.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/PatchManagementGroupRequest.cs deleted file mode 100644 index 22af956630bfb..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/PatchManagementGroupRequest.cs +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - /// Management group patch parameters. - public partial class PatchManagementGroupRequest - { - /// Initializes a new instance of PatchManagementGroupRequest. - public PatchManagementGroupRequest() - { - } - - /// The friendly name of the management group. - public string DisplayName { get; set; } - /// (Optional) The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000. - public string ParentGroupId { get; set; } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Permissions.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Permissions.cs deleted file mode 100644 index 22579e3101845..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Permissions.cs +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - /// The users specific permissions to this item. - public readonly partial struct Permissions : IEquatable - { - private readonly string _value; - - /// Determines if two values are the same. - /// is null. - public Permissions(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string NoaccessValue = "noaccess"; - private const string ViewValue = "view"; - private const string EditValue = "edit"; - private const string DeleteValue = "delete"; - - /// noaccess. - public static Permissions Noaccess { get; } = new Permissions(NoaccessValue); - /// view. - public static Permissions View { get; } = new Permissions(ViewValue); - /// edit. - public static Permissions Edit { get; } = new Permissions(EditValue); - /// delete. - public static Permissions Delete { get; } = new Permissions(DeleteValue); - /// Determines if two values are the same. - public static bool operator ==(Permissions left, Permissions right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(Permissions left, Permissions right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator Permissions(string value) => new Permissions(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is Permissions other && Equals(other); - /// - public bool Equals(Permissions other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Reason.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Reason.Serialization.cs deleted file mode 100644 index bbbbd6dcc653b..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Reason.Serialization.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - internal static partial class ReasonExtensions - { - public static string ToSerialString(this Reason value) => value switch - { - Reason.Invalid => "Invalid", - Reason.AlreadyExists => "AlreadyExists", - _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown Reason value.") - }; - - public static Reason ToReason(this string value) - { - if (string.Equals(value, "Invalid", StringComparison.InvariantCultureIgnoreCase)) return Reason.Invalid; - if (string.Equals(value, "AlreadyExists", StringComparison.InvariantCultureIgnoreCase)) return Reason.AlreadyExists; - throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown Reason value."); - } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Reason.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Reason.cs deleted file mode 100644 index 9c0d112ae9da3..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Reason.cs +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - /// Required if nameAvailable == false. Invalid indicates the name provided does not match the resource provider's naming requirements (incorrect length, unsupported characters, etc.) AlreadyExists indicates that the name is already in use and is therefore unavailable. - public enum Reason - { - /// Invalid. - Invalid, - /// AlreadyExists. - AlreadyExists - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Status.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Status.Serialization.cs deleted file mode 100644 index c79a8336fd5c7..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Status.Serialization.cs +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - internal static partial class StatusExtensions - { - public static string ToSerialString(this Status value) => value switch - { - Status.NotStarted => "NotStarted", - Status.NotStartedButGroupsExist => "NotStartedButGroupsExist", - Status.Started => "Started", - Status.Failed => "Failed", - Status.Cancelled => "Cancelled", - Status.Completed => "Completed", - _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown Status value.") - }; - - public static Status ToStatus(this string value) - { - if (string.Equals(value, "NotStarted", StringComparison.InvariantCultureIgnoreCase)) return Status.NotStarted; - if (string.Equals(value, "NotStartedButGroupsExist", StringComparison.InvariantCultureIgnoreCase)) return Status.NotStartedButGroupsExist; - if (string.Equals(value, "Started", StringComparison.InvariantCultureIgnoreCase)) return Status.Started; - if (string.Equals(value, "Failed", StringComparison.InvariantCultureIgnoreCase)) return Status.Failed; - if (string.Equals(value, "Cancelled", StringComparison.InvariantCultureIgnoreCase)) return Status.Cancelled; - if (string.Equals(value, "Completed", StringComparison.InvariantCultureIgnoreCase)) return Status.Completed; - throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown Status value."); - } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Status.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Status.cs deleted file mode 100644 index 973a209f49fbd..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/Status.cs +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - /// The status of the Tenant Backfill. - public enum Status - { - /// NotStarted. - NotStarted, - /// NotStartedButGroupsExist. - NotStartedButGroupsExist, - /// Started. - Started, - /// Failed. - Failed, - /// Cancelled. - Cancelled, - /// Completed. - Completed - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/SubscriptionUnderManagementGroup.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/SubscriptionUnderManagementGroup.Serialization.cs deleted file mode 100644 index ff431556ea592..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/SubscriptionUnderManagementGroup.Serialization.cs +++ /dev/null @@ -1,82 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - public partial class SubscriptionUnderManagementGroup - { - internal static SubscriptionUnderManagementGroup DeserializeSubscriptionUnderManagementGroup(JsonElement element) - { - Optional id = default; - Optional type = default; - Optional name = default; - Optional tenant = default; - Optional displayName = default; - Optional parent = default; - Optional state = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("id")) - { - id = property.Value.GetString(); - continue; - } - if (property.NameEquals("type")) - { - type = property.Value.GetString(); - continue; - } - if (property.NameEquals("name")) - { - name = property.Value.GetString(); - continue; - } - if (property.NameEquals("properties")) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - foreach (var property0 in property.Value.EnumerateObject()) - { - if (property0.NameEquals("tenant")) - { - tenant = property0.Value.GetString(); - continue; - } - if (property0.NameEquals("displayName")) - { - displayName = property0.Value.GetString(); - continue; - } - if (property0.NameEquals("parent")) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - parent = null; - continue; - } - parent = DescendantParentGroupInfo.DeserializeDescendantParentGroupInfo(property0.Value); - continue; - } - if (property0.NameEquals("state")) - { - state = property0.Value.GetString(); - continue; - } - } - continue; - } - } - return new SubscriptionUnderManagementGroup(id.Value, type.Value, name.Value, tenant.Value, displayName.Value, parent.Value, state.Value); - } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/SubscriptionUnderManagementGroup.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/SubscriptionUnderManagementGroup.cs deleted file mode 100644 index dad19e2577b03..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/SubscriptionUnderManagementGroup.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - /// The details of subscription under management group. - public partial class SubscriptionUnderManagementGroup - { - /// Initializes a new instance of SubscriptionUnderManagementGroup. - internal SubscriptionUnderManagementGroup() - { - } - - /// Initializes a new instance of SubscriptionUnderManagementGroup. - /// The fully qualified ID for the subscription. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000/subscriptions/0000000-0000-0000-0000-000000000001. - /// The type of the resource. For example, Microsoft.Management/managementGroups/subscriptions. - /// The stringified id of the subscription. For example, 00000000-0000-0000-0000-000000000000. - /// The AAD Tenant ID associated with the subscription. For example, 00000000-0000-0000-0000-000000000000. - /// The friendly name of the subscription. - /// The ID of the parent management group. - /// The state of the subscription. - internal SubscriptionUnderManagementGroup(string id, string type, string name, string tenant, string displayName, DescendantParentGroupInfo parent, string state) - { - Id = id; - Type = type; - Name = name; - Tenant = tenant; - DisplayName = displayName; - Parent = parent; - State = state; - } - - /// The fully qualified ID for the subscription. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000/subscriptions/0000000-0000-0000-0000-000000000001. - public string Id { get; } - /// The type of the resource. For example, Microsoft.Management/managementGroups/subscriptions. - public string Type { get; } - /// The stringified id of the subscription. For example, 00000000-0000-0000-0000-000000000000. - public string Name { get; } - /// The AAD Tenant ID associated with the subscription. For example, 00000000-0000-0000-0000-000000000000. - public string Tenant { get; } - /// The friendly name of the subscription. - public string DisplayName { get; } - /// The ID of the parent management group. - public DescendantParentGroupInfo Parent { get; } - /// The state of the subscription. - public string State { get; } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/TenantBackfillStatusResult.Serialization.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/TenantBackfillStatusResult.Serialization.cs deleted file mode 100644 index 2072551dfb05f..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/TenantBackfillStatusResult.Serialization.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - public partial class TenantBackfillStatusResult - { - internal static TenantBackfillStatusResult DeserializeTenantBackfillStatusResult(JsonElement element) - { - Optional tenantId = default; - Optional status = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("tenantId")) - { - tenantId = property.Value.GetString(); - continue; - } - if (property.NameEquals("status")) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - status = property.Value.GetString().ToStatus(); - continue; - } - } - return new TenantBackfillStatusResult(tenantId.Value, Optional.ToNullable(status)); - } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/TenantBackfillStatusResult.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/TenantBackfillStatusResult.cs deleted file mode 100644 index 355f2e1b48abf..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Models/TenantBackfillStatusResult.cs +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.ResourceManager.ManagementGroups.Models -{ - /// The tenant backfill status. - public partial class TenantBackfillStatusResult - { - /// Initializes a new instance of TenantBackfillStatusResult. - internal TenantBackfillStatusResult() - { - } - - /// Initializes a new instance of TenantBackfillStatusResult. - /// The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000. - /// The status of the Tenant Backfill. - internal TenantBackfillStatusResult(string tenantId, Status? status) - { - TenantId = tenantId; - Status = status; - } - - /// The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000. - public string TenantId { get; } - /// The status of the Tenant Backfill. - public Status? Status { get; } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Operations.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Operations.cs deleted file mode 100644 index 2ac0a29e6395f..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/Operations.cs +++ /dev/null @@ -1,116 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager.ManagementGroups.Models; - -namespace Azure.ResourceManager.ManagementGroups -{ - /// The service client. - public partial class Operations - { - private readonly ClientDiagnostics _clientDiagnostics; - private readonly HttpPipeline _pipeline; - internal RestOperations RestClient { get; } - - /// Initializes a new instance of Operations for mocking. - protected Operations() - { - } - - /// Initializes a new instance of Operations. - /// The handler for diagnostic messaging in the client. - /// The HTTP pipeline for sending and receiving REST requests and responses. - /// server parameter. - /// Api Version. - internal Operations(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint = null, string apiVersion = "2021-04-01") - { - RestClient = new RestOperations(clientDiagnostics, pipeline, endpoint, apiVersion); - _clientDiagnostics = clientDiagnostics; - _pipeline = pipeline; - } - - /// Lists all of the available Management REST API operations. - /// The cancellation token to use. - public virtual AsyncPageable ListAsync(CancellationToken cancellationToken = default) - { - async Task> FirstPageFunc(int? pageSizeHint) - { - using var scope = _clientDiagnostics.CreateScope("Operations.List"); - scope.Start(); - try - { - var response = await RestClient.ListAsync(cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - async Task> NextPageFunc(string nextLink, int? pageSizeHint) - { - using var scope = _clientDiagnostics.CreateScope("Operations.List"); - scope.Start(); - try - { - var response = await RestClient.ListNextPageAsync(nextLink, cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, NextPageFunc); - } - - /// Lists all of the available Management REST API operations. - /// The cancellation token to use. - public virtual Pageable List(CancellationToken cancellationToken = default) - { - Page FirstPageFunc(int? pageSizeHint) - { - using var scope = _clientDiagnostics.CreateScope("Operations.List"); - scope.Start(); - try - { - var response = RestClient.List(cancellationToken); - return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - Page NextPageFunc(string nextLink, int? pageSizeHint) - { - using var scope = _clientDiagnostics.CreateScope("Operations.List"); - scope.Start(); - try - { - var response = RestClient.ListNextPage(nextLink, cancellationToken); - return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - return PageableHelpers.CreateEnumerable(FirstPageFunc, NextPageFunc); - } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/RestOperations.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/RestOperations.cs deleted file mode 100644 index 6b49e99d9e911..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Generated/RestOperations.cs +++ /dev/null @@ -1,167 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager.ManagementGroups.Models; - -namespace Azure.ResourceManager.ManagementGroups -{ - internal partial class RestOperations - { - private Uri endpoint; - private string apiVersion; - private ClientDiagnostics _clientDiagnostics; - private HttpPipeline _pipeline; - - /// Initializes a new instance of RestOperations. - /// The handler for diagnostic messaging in the client. - /// The HTTP pipeline for sending and receiving REST requests and responses. - /// server parameter. - /// Api Version. - /// is null. - public RestOperations(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint = null, string apiVersion = "2021-04-01") - { - endpoint ??= new Uri("https://management.azure.com"); - if (apiVersion == null) - { - throw new ArgumentNullException(nameof(apiVersion)); - } - - this.endpoint = endpoint; - this.apiVersion = apiVersion; - _clientDiagnostics = clientDiagnostics; - _pipeline = pipeline; - } - - internal HttpMessage CreateListRequest() - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(endpoint); - uri.AppendPath("/providers/Microsoft.Management/operations", false); - uri.AppendQuery("api-version", apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - /// Lists all of the available Management REST API operations. - /// The cancellation token to use. - public async Task> ListAsync(CancellationToken cancellationToken = default) - { - using var message = CreateListRequest(); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - OperationListResult value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = OperationListResult.DeserializeOperationListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); - } - } - - /// Lists all of the available Management REST API operations. - /// The cancellation token to use. - public Response List(CancellationToken cancellationToken = default) - { - using var message = CreateListRequest(); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - OperationListResult value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = OperationListResult.DeserializeOperationListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw _clientDiagnostics.CreateRequestFailedException(message.Response); - } - } - - internal HttpMessage CreateListNextPageRequest(string nextLink) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(endpoint); - uri.AppendRawNextLink(nextLink, false); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - /// Lists all of the available Management REST API operations. - /// The URL to the next page of results. - /// The cancellation token to use. - /// is null. - public async Task> ListNextPageAsync(string nextLink, CancellationToken cancellationToken = default) - { - if (nextLink == null) - { - throw new ArgumentNullException(nameof(nextLink)); - } - - using var message = CreateListNextPageRequest(nextLink); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - OperationListResult value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = OperationListResult.DeserializeOperationListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); - } - } - - /// Lists all of the available Management REST API operations. - /// The URL to the next page of results. - /// The cancellation token to use. - /// is null. - public Response ListNextPage(string nextLink, CancellationToken cancellationToken = default) - { - if (nextLink == null) - { - throw new ArgumentNullException(nameof(nextLink)); - } - - using var message = CreateListNextPageRequest(nextLink); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - OperationListResult value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = OperationListResult.DeserializeOperationListResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw _clientDiagnostics.CreateRequestFailedException(message.Response); - } - } - } -} diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Properties/AssemblyInfo.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Properties/AssemblyInfo.cs deleted file mode 100644 index e42035fa7852f..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -using System.Runtime.CompilerServices; - -[assembly: Azure.Core.AzureResourceProviderNamespace("Microsoft.Management")] - -[assembly: InternalsVisibleTo("Azure.ResourceManager.ManagementGroups.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100d15ddcb29688295338af4b7686603fe614abd555e09efba8fb88ee09e1f7b1ccaeed2e8f823fa9eef3fdd60217fc012ea67d2479751a0b8c087a4185541b851bd8b16f8d91b840e51b1cb0ba6fe647997e57429265e85ef62d565db50a69ae1647d54d7bd855e4db3d8a91510e5bcbd0edfbbecaa20a7bd9ae74593daa7b11b4")] diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/autorest.md b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/autorest.md deleted file mode 100644 index 62d8ee6b0f3c4..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/src/autorest.md +++ /dev/null @@ -1,11 +0,0 @@ -# Generated code configuration - -Run `dotnet build /t:GenerateCode` to generate code. - -``` yaml - -azure-arm: true -require: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/e5bdbb00cf31e34dfaffe74432b80a110f86e06a/specification/managementgroups/resource-manager/readme.md - - -``` \ No newline at end of file diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/tests/Azure.ResourceManager.ManagementGroups.Tests.csproj b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/tests/Azure.ResourceManager.ManagementGroups.Tests.csproj deleted file mode 100644 index 8c7e99b51dfb7..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/tests/Azure.ResourceManager.ManagementGroups.Tests.csproj +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/tests/ManagementManagementTestEnvironment.cs b/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/tests/ManagementManagementTestEnvironment.cs deleted file mode 100644 index 23db61359add4..0000000000000 --- a/sdk/managementgroups/Azure.ResourceManager.ManagementGroups/tests/ManagementManagementTestEnvironment.cs +++ /dev/null @@ -1,11 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -using Azure.Core.TestFramework; - -namespace Azure.ResourceManager.ManagementGroups.Tests -{ - public class ManagementManagementTestEnvironment : TestEnvironment - { - } -} \ No newline at end of file diff --git a/sdk/managementgroups/ci.yml b/sdk/managementgroups/ci.yml deleted file mode 100644 index 45893f4d58e1f..0000000000000 --- a/sdk/managementgroups/ci.yml +++ /dev/null @@ -1,31 +0,0 @@ -# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. - -trigger: - branches: - include: - - main - - hotfix/* - - release/* - paths: - include: - - sdk/management/ - -pr: - branches: - include: - - main - - feature/* - - hotfix/* - - release/* - paths: - include: - - sdk/management/ - -extends: - template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml - parameters: - ServiceDirectory: management - ArtifactName: packages - Artifacts: - - name: Azure.ResourceManager.ManagementGroups - safeName: AzureResourceManagerManagementGroups diff --git a/sdk/managementgroups/test-resources.json b/sdk/managementgroups/test-resources.json deleted file mode 100644 index a837d5a0f2b84..0000000000000 --- a/sdk/managementgroups/test-resources.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "resources": [ - ] -} From 67f3d3779fed3409bcf83269951096e632cb2648 Mon Sep 17 00:00:00 2001 From: m-nash Date: Mon, 12 Jul 2021 11:46:42 -0700 Subject: [PATCH 4/5] update to not have nullable but share the same operations between ManagementGroup and ManagementGroupInfo --- .../Models/ManagementGroupData.cs | 15 ------ .../ManagementGroupContainer.cs | 32 +++++------ .../ManagementGroup/ManagementGroupInfo.cs | 34 ++++++++++++ .../ManagementGroupOperations.cs | 4 +- .../ManagementGroupsRestOperations.cs | 6 +-- .../Generated/ManagementGroup/Models/Enum0.cs | 54 ------------------- .../Models/ManagementGroupExpandType.cs | 54 +++++++++++++++++++ ... ManagementGroupInfoData.Serialization.cs} | 6 +-- ...roupInfo.cs => ManagementGroupInfoData.cs} | 6 +-- ...ManagementGroupListResult.Serialization.cs | 6 +-- .../Models/ManagementGroupListResult.cs | 6 +-- .../Scenario/ManagementGroupContainerTests.cs | 2 +- 12 files changed, 122 insertions(+), 103 deletions(-) delete mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/src/Custom/ManagementGroup/Models/ManagementGroupData.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroupInfo.cs delete mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/Enum0.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupExpandType.cs rename sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/{ManagementGroupInfo.Serialization.cs => ManagementGroupInfoData.Serialization.cs} (88%) rename sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/{ManagementGroupInfo.cs => ManagementGroupInfoData.cs} (91%) diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Custom/ManagementGroup/Models/ManagementGroupData.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Custom/ManagementGroup/Models/ManagementGroupData.cs deleted file mode 100644 index af67d6ebe79b4..0000000000000 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Custom/ManagementGroup/Models/ManagementGroupData.cs +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -using System.Collections.Generic; - -namespace Azure.ResourceManager.Core -{ - public partial class ManagementGroupData - { - internal ManagementGroupData(ManagementGroupInfo managementGroupInfo) - : this(managementGroupInfo.Id, managementGroupInfo.Type, managementGroupInfo.Name, managementGroupInfo.TenantId, managementGroupInfo.DisplayName, null, new List()) - { - } - } -} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroupContainer.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroupContainer.cs index f5ac55207c00a..2c258375c7a53 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroupContainer.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroupContainer.cs @@ -50,16 +50,16 @@ internal ManagementGroupContainer(TenantOperations tenant) /// . /// /// The cancellation token to use. - public virtual Pageable List(string cacheControl = null, string skiptoken = null, CancellationToken cancellationToken = default) + public virtual Pageable List(string cacheControl = null, string skiptoken = null, CancellationToken cancellationToken = default) { - Page FirstPageFunc(int? pageSizeHint) + Page FirstPageFunc(int? pageSizeHint) { using var scope = _clientDiagnostics.CreateScope("ManagementGroupContainer.List"); scope.Start(); try { var response = _restClient.List(cacheControl, skiptoken, cancellationToken); - return Page.FromValues(response.Value.Value.Select(d => new ManagementGroup(this, new ManagementGroupData(d))), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(d => new ManagementGroupInfo(this, d)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -67,14 +67,14 @@ Page FirstPageFunc(int? pageSizeHint) throw; } } - Page NextPageFunc(string nextLink, int? pageSizeHint) + Page NextPageFunc(string nextLink, int? pageSizeHint) { using var scope = _clientDiagnostics.CreateScope("ManagementGroupContainer.List"); scope.Start(); try { var response = _restClient.ListNextPage(nextLink, cacheControl, skiptoken, cancellationToken); - return Page.FromValues(response.Value.Value.Select(d => new ManagementGroup(this, new ManagementGroupData(d))), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(d => new ManagementGroupInfo(this, d)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -96,16 +96,16 @@ Page NextPageFunc(string nextLink, int? pageSizeHint) /// . /// /// The cancellation token to use. - public virtual AsyncPageable ListAsync(string cacheControl = null, string skiptoken = null, CancellationToken cancellationToken = default) + public virtual AsyncPageable ListAsync(string cacheControl = null, string skiptoken = null, CancellationToken cancellationToken = default) { - async Task> FirstPageFunc(int? pageSizeHint) + async Task> FirstPageFunc(int? pageSizeHint) { using var scope = _clientDiagnostics.CreateScope("ManagementGroupContainer.List"); scope.Start(); try { var response = await _restClient.ListAsync(cacheControl, skiptoken, cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(d => new ManagementGroup(this, new ManagementGroupData(d))), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(d => new ManagementGroupInfo(this, d)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -113,14 +113,14 @@ async Task> FirstPageFunc(int? pageSizeHint) throw; } } - async Task> NextPageFunc(string nextLink, int? pageSizeHint) + async Task> NextPageFunc(string nextLink, int? pageSizeHint) { using var scope = _clientDiagnostics.CreateScope("ManagementGroupContainer.List"); scope.Start(); try { var response = await _restClient.ListNextPageAsync(nextLink, cacheControl, skiptoken, cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(d => new ManagementGroup(this, new ManagementGroupData(d))), response.Value.NextLink, response.GetRawResponse()); + return Page.FromValues(response.Value.Value.Select(d => new ManagementGroupInfo(this, d)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -141,7 +141,7 @@ async Task> NextPageFunc(string nextLink, int? pageSizeHin /// A filter which allows the exclusion of subscriptions from results (i.e. '$filter=children.childType ne Subscription'). /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. /// The cancellation token to use. - public virtual Response Get(string groupId, Enum0? expand = null, bool? recurse = null, string filter = null, string cacheControl = null, CancellationToken cancellationToken = default) + public virtual Response Get(string groupId, ManagementGroupExpandType? expand = null, bool? recurse = null, string filter = null, string cacheControl = null, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("ManagementGroupContainer.Get"); scope.Start(); @@ -167,7 +167,7 @@ public virtual Response Get(string groupId, Enum0? expand = nul /// A filter which allows the exclusion of subscriptions from results (i.e. '$filter=children.childType ne Subscription'). /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. /// The cancellation token to use. - public async virtual Task> GetAsync(string groupId, Enum0? expand = null, bool? recurse = null, string filter = null, string cacheControl = null, CancellationToken cancellationToken = default) + public async virtual Task> GetAsync(string groupId, ManagementGroupExpandType? expand = null, bool? recurse = null, string filter = null, string cacheControl = null, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("ManagementGroupContainer.Get"); scope.Start(); @@ -193,7 +193,7 @@ public async virtual Task> GetAsync(string groupId, En /// A filter which allows the exclusion of subscriptions from results (i.e. '$filter=children.childType ne Subscription'). /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. /// The cancellation token to use. - public virtual ManagementGroup TryGet(string groupId, Enum0? expand = null, bool? recurse = null, string filter = null, string cacheControl = null, CancellationToken cancellationToken = default) + public virtual ManagementGroup TryGet(string groupId, ManagementGroupExpandType? expand = null, bool? recurse = null, string filter = null, string cacheControl = null, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("ManagementGroupContainer.TryGet"); scope.Start(); @@ -222,7 +222,7 @@ public virtual ManagementGroup TryGet(string groupId, Enum0? expand = null, bool /// A filter which allows the exclusion of subscriptions from results (i.e. '$filter=children.childType ne Subscription'). /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. /// The cancellation token to use. - public async virtual Task TryGetAsync(string groupId, Enum0? expand = null, bool? recurse = null, string filter = null, string cacheControl = null, CancellationToken cancellationToken = default) + public async virtual Task TryGetAsync(string groupId, ManagementGroupExpandType? expand = null, bool? recurse = null, string filter = null, string cacheControl = null, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("ManagementGroupContainer.TryGet"); scope.Start(); @@ -251,7 +251,7 @@ public async virtual Task TryGetAsync(string groupId, Enum0? ex /// A filter which allows the exclusion of subscriptions from results (i.e. '$filter=children.childType ne Subscription'). /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. /// The cancellation token to use. - public virtual bool DoesExist(string groupId, Enum0? expand = null, bool? recurse = null, string filter = null, string cacheControl = null, CancellationToken cancellationToken = default) + public virtual bool DoesExist(string groupId, ManagementGroupExpandType? expand = null, bool? recurse = null, string filter = null, string cacheControl = null, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("ManagementGroupContainer.DoesExist"); scope.Start(); @@ -276,7 +276,7 @@ public virtual bool DoesExist(string groupId, Enum0? expand = null, bool? recurs /// A filter which allows the exclusion of subscriptions from results (i.e. '$filter=children.childType ne Subscription'). /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. /// The cancellation token to use. - public async virtual Task DoesExistAsync(string groupId, Enum0? expand = null, bool? recurse = null, string filter = null, string cacheControl = null, CancellationToken cancellationToken = default) + public async virtual Task DoesExistAsync(string groupId, ManagementGroupExpandType? expand = null, bool? recurse = null, string filter = null, string cacheControl = null, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("ManagementGroupContainer.DoesExist"); scope.Start(); diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroupInfo.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroupInfo.cs new file mode 100644 index 0000000000000..bd2abf79f9170 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroupInfo.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +namespace Azure.ResourceManager.Core +{ + /// + /// A class representing a ManagementGroup along with the instance operations that can be performed on it. + /// + public class ManagementGroupInfo : ManagementGroupOperations + { + /// + /// Initializes a new instance of the class for mocking. + /// + protected ManagementGroupInfo() + { + } + + /// + /// Initializes a new instance of the class. + /// + /// The operations to copy the client options from. + /// The ManagementGroupData to use in these operations. + internal ManagementGroupInfo(OperationsBase operations, ManagementGroupInfoData resource) + : base(operations, resource.Id) + { + Data = resource; + } + + /// + /// Gets the data representing this ManagementGroup. + /// + public virtual ManagementGroupInfoData Data { get; } + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroupOperations.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroupOperations.cs index 27aae73076717..c5e3b31b84a14 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroupOperations.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroupOperations.cs @@ -65,7 +65,7 @@ public async override Task> GetAsync(CancellationToken /// A filter which allows the exclusion of subscriptions from results (i.e. '$filter=children.childType ne Subscription'). /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. /// The cancellation token to use. - public virtual Response Get(Enum0? expand = null, bool? recurse = null, string filter = null, string cacheControl = null, CancellationToken cancellationToken = default) + public virtual Response Get(ManagementGroupExpandType? expand = null, bool? recurse = null, string filter = null, string cacheControl = null, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("ManagementGroupOperations.Get"); scope.Start(); @@ -90,7 +90,7 @@ public virtual Response Get(Enum0? expand = null, bool? recurse /// A filter which allows the exclusion of subscriptions from results (i.e. '$filter=children.childType ne Subscription'). /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. /// The cancellation token to use. - public async virtual Task> GetAsync(Enum0? expand = null, bool? recurse = null, string filter = null, string cacheControl = null, CancellationToken cancellationToken = default) + public async virtual Task> GetAsync(ManagementGroupExpandType? expand = null, bool? recurse = null, string filter = null, string cacheControl = null, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("ManagementGroupOperations.Get"); scope.Start(); diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroupsRestOperations.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroupsRestOperations.cs index b74b8285f8676..72c99c04bf862 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroupsRestOperations.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroupsRestOperations.cs @@ -121,7 +121,7 @@ public Response List(string cacheControl = null, stri } } - internal HttpMessage CreateGetRequest(string groupId, Enum0? expand, bool? recurse, string filter, string cacheControl) + internal HttpMessage CreateGetRequest(string groupId, ManagementGroupExpandType? expand, bool? recurse, string filter, string cacheControl) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -163,7 +163,7 @@ internal HttpMessage CreateGetRequest(string groupId, Enum0? expand, bool? recur /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. /// The cancellation token to use. /// is null. - public async Task> GetAsync(string groupId, Enum0? expand = null, bool? recurse = null, string filter = null, string cacheControl = null, CancellationToken cancellationToken = default) + public async Task> GetAsync(string groupId, ManagementGroupExpandType? expand = null, bool? recurse = null, string filter = null, string cacheControl = null, CancellationToken cancellationToken = default) { if (groupId == null) { @@ -197,7 +197,7 @@ public async Task> GetAsync(string groupId, Enum0? /// Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. /// The cancellation token to use. /// is null. - public Response Get(string groupId, Enum0? expand = null, bool? recurse = null, string filter = null, string cacheControl = null, CancellationToken cancellationToken = default) + public Response Get(string groupId, ManagementGroupExpandType? expand = null, bool? recurse = null, string filter = null, string cacheControl = null, CancellationToken cancellationToken = default) { if (groupId == null) { diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/Enum0.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/Enum0.cs deleted file mode 100644 index 5c907cfd61b72..0000000000000 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/Enum0.cs +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.Core -{ - /// The Enum0. - public readonly partial struct Enum0 : IEquatable - { - private readonly string _value; - - /// Determines if two values are the same. - /// is null. - public Enum0(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string ChildrenValue = "children"; - private const string PathValue = "path"; - private const string AncestorsValue = "ancestors"; - - /// children. - public static Enum0 Children { get; } = new Enum0(ChildrenValue); - /// path. - public static Enum0 Path { get; } = new Enum0(PathValue); - /// ancestors. - public static Enum0 Ancestors { get; } = new Enum0(AncestorsValue); - /// Determines if two values are the same. - public static bool operator ==(Enum0 left, Enum0 right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(Enum0 left, Enum0 right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator Enum0(string value) => new Enum0(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is Enum0 other && Equals(other); - /// - public bool Equals(Enum0 other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupExpandType.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupExpandType.cs new file mode 100644 index 0000000000000..ac0217b8eac71 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupExpandType.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Core +{ + /// The Enum0. + public readonly partial struct ManagementGroupExpandType : IEquatable + { + private readonly string _value; + + /// Determines if two values are the same. + /// is null. + public ManagementGroupExpandType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string ChildrenValue = "children"; + private const string PathValue = "path"; + private const string AncestorsValue = "ancestors"; + + /// children. + public static ManagementGroupExpandType Children { get; } = new ManagementGroupExpandType(ChildrenValue); + /// path. + public static ManagementGroupExpandType Path { get; } = new ManagementGroupExpandType(PathValue); + /// ancestors. + public static ManagementGroupExpandType Ancestors { get; } = new ManagementGroupExpandType(AncestorsValue); + /// Determines if two values are the same. + public static bool operator ==(ManagementGroupExpandType left, ManagementGroupExpandType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ManagementGroupExpandType left, ManagementGroupExpandType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator ManagementGroupExpandType(string value) => new ManagementGroupExpandType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ManagementGroupExpandType other && Equals(other); + /// + public bool Equals(ManagementGroupExpandType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupInfo.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupInfoData.Serialization.cs similarity index 88% rename from sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupInfo.Serialization.cs rename to sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupInfoData.Serialization.cs index ef1003cd4489f..3004c2376e7e5 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupInfo.Serialization.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupInfoData.Serialization.cs @@ -10,9 +10,9 @@ namespace Azure.ResourceManager.Core { - public partial class ManagementGroupInfo + public partial class ManagementGroupInfoData { - internal static ManagementGroupInfo DeserializeManagementGroupInfo(JsonElement element) + internal static ManagementGroupInfoData DeserializeManagementGroupInfo(JsonElement element) { Optional id = default; Optional type = default; @@ -59,7 +59,7 @@ internal static ManagementGroupInfo DeserializeManagementGroupInfo(JsonElement e continue; } } - return new ManagementGroupInfo(id.Value, type.Value, name.Value, tenantId.Value, displayName.Value); + return new ManagementGroupInfoData(id.Value, type.Value, name.Value, tenantId.Value, displayName.Value); } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupInfo.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupInfoData.cs similarity index 91% rename from sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupInfo.cs rename to sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupInfoData.cs index a6eb6cf168c06..7bcfde10d21fb 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupInfo.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupInfoData.cs @@ -8,10 +8,10 @@ namespace Azure.ResourceManager.Core { /// The management group resource. - public partial class ManagementGroupInfo + public partial class ManagementGroupInfoData { /// Initializes a new instance of ManagementGroupInfo. - internal ManagementGroupInfo() + internal ManagementGroupInfoData() { } @@ -21,7 +21,7 @@ internal ManagementGroupInfo() /// The name of the management group. For example, 00000000-0000-0000-0000-000000000000. /// The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000. /// The friendly name of the management group. - internal ManagementGroupInfo(string id, string type, string name, string tenantId, string displayName) + internal ManagementGroupInfoData(string id, string type, string name, string tenantId, string displayName) { Id = id; Type = type; diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupListResult.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupListResult.Serialization.cs index aa6e87a31f7e8..ec8b98d0999da 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupListResult.Serialization.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupListResult.Serialization.cs @@ -15,7 +15,7 @@ internal partial class ManagementGroupListResult { internal static ManagementGroupListResult DeserializeManagementGroupListResult(JsonElement element) { - Optional> value = default; + Optional> value = default; Optional nextLink = default; foreach (var property in element.EnumerateObject()) { @@ -26,10 +26,10 @@ internal static ManagementGroupListResult DeserializeManagementGroupListResult(J property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ManagementGroupInfo.DeserializeManagementGroupInfo(item)); + array.Add(ManagementGroupInfoData.DeserializeManagementGroupInfo(item)); } value = array; continue; diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupListResult.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupListResult.cs index a56f8cf3a1b53..98dace9698e98 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupListResult.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/Models/ManagementGroupListResult.cs @@ -16,20 +16,20 @@ internal partial class ManagementGroupListResult /// Initializes a new instance of ManagementGroupListResult. internal ManagementGroupListResult() { - Value = new ChangeTrackingList(); + Value = new ChangeTrackingList(); } /// Initializes a new instance of ManagementGroupListResult. /// The list of management groups. /// The URL to use for getting the next set of results. - internal ManagementGroupListResult(IReadOnlyList value, string nextLink) + internal ManagementGroupListResult(IReadOnlyList value, string nextLink) { Value = value; NextLink = nextLink; } /// The list of management groups. - public IReadOnlyList Value { get; } + public IReadOnlyList Value { get; } /// The URL to use for getting the next set of results. public string NextLink { get; } } diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/ManagementGroupContainerTests.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/ManagementGroupContainerTests.cs index 1b2c77e4e621d..547ee7603041c 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/ManagementGroupContainerTests.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/ManagementGroupContainerTests.cs @@ -27,7 +27,7 @@ public async Task GetGlobalManagementGroup() public async Task List() { var mgmtGroupContainer = Client.GetManagementGroups(); - ManagementGroup mgmtGroup = null; + ManagementGroupInfo mgmtGroup = null; await foreach(var item in mgmtGroupContainer.ListAsync("no-cache")) { mgmtGroup = item; From 2396598f03aacb801674b3f67c051f3ecdf9d4be Mon Sep 17 00:00:00 2001 From: m-nash Date: Mon, 12 Jul 2021 14:58:31 -0700 Subject: [PATCH 5/5] address PR comments --- .../ManagementGroupContainer.cs | 36 + .../ManagementGroupOperations.cs | 12 +- .../Scenario/ManagementGroupContainerTests.cs | 9 + .../ManagementGroupOperationsTests.cs | 2 +- .../CheckNameAvailability.json | 93 + .../CheckNameAvailabilityAsync.json | 93 + .../ManagementGroupContainerTests(False).json | 2404 ++--------------- ...agementGroupContainerTests(True)Async.json | 498 ++-- 8 files changed, 714 insertions(+), 2433 deletions(-) create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/CheckNameAvailability.json create mode 100644 sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/CheckNameAvailabilityAsync.json diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroupContainer.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroupContainer.cs index 2c258375c7a53..d3a28e5d9cbb1 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroupContainer.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroupContainer.cs @@ -430,5 +430,41 @@ public async virtual Task StartCreateOr throw; } } + + /// Checks if the specified management group name is valid and unique. + /// Management group name availability check parameters. + /// The cancellation token to use. + public virtual Response CheckNameAvailability(CheckNameAvailabilityRequest checkNameAvailabilityRequest, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ManagementGroupContainer.CheckNameAvailability"); + scope.Start(); + try + { + return _restClient.CheckNameAvailability(checkNameAvailabilityRequest, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Checks if the specified management group name is valid and unique. + /// Management group name availability check parameters. + /// The cancellation token to use. + public async virtual Task> CheckNameAvailabilityAsync(CheckNameAvailabilityRequest checkNameAvailabilityRequest, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ManagementGroupContainer.CheckNameAvailability"); + scope.Start(); + try + { + return await _restClient.CheckNameAvailabilityAsync(checkNameAvailabilityRequest, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroupOperations.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroupOperations.cs index c5e3b31b84a14..b8c985d7f0c3a 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroupOperations.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Generated/ManagementGroup/ManagementGroupOperations.cs @@ -209,11 +209,11 @@ public async virtual Task StartDeleteAsync(stri /// /// Number of elements to return when retrieving results. Passing this in will override $skipToken. /// The cancellation token to use. - public virtual Pageable GetDescendants(string skiptoken = null, int? top = null, CancellationToken cancellationToken = default) + public virtual Pageable ListDescendants(string skiptoken = null, int? top = null, CancellationToken cancellationToken = default) { Page FirstPageFunc(int? pageSizeHint) { - using var scope = _clientDiagnostics.CreateScope("ManagementGroupOperations.GetDescendants"); + using var scope = _clientDiagnostics.CreateScope("ManagementGroupOperations.ListDescendants"); scope.Start(); try { @@ -228,7 +228,7 @@ Page FirstPageFunc(int? pageSizeHint) } Page NextPageFunc(string nextLink, int? pageSizeHint) { - using var scope = _clientDiagnostics.CreateScope("ManagementGroupOperations.GetDescendants"); + using var scope = _clientDiagnostics.CreateScope("ManagementGroupOperations.ListDescendants"); scope.Start(); try { @@ -255,11 +255,11 @@ Page NextPageFunc(string nextLink, int? pageSizeHint) /// /// Number of elements to return when retrieving results. Passing this in will override $skipToken. /// The cancellation token to use. - public virtual AsyncPageable GetDescendantsAsync(string skiptoken = null, int? top = null, CancellationToken cancellationToken = default) + public virtual AsyncPageable ListDescendantsAsync(string skiptoken = null, int? top = null, CancellationToken cancellationToken = default) { async Task> FirstPageFunc(int? pageSizeHint) { - using var scope = _clientDiagnostics.CreateScope("ManagementGroupOperations.GetDescendants"); + using var scope = _clientDiagnostics.CreateScope("ManagementGroupOperations.ListDescendants"); scope.Start(); try { @@ -274,7 +274,7 @@ async Task> FirstPageFunc(int? pageSizeHint) } async Task> NextPageFunc(string nextLink, int? pageSizeHint) { - using var scope = _clientDiagnostics.CreateScope("ManagementGroupOperations.GetDescendants"); + using var scope = _clientDiagnostics.CreateScope("ManagementGroupOperations.ListDescendants"); scope.Start(); try { diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/ManagementGroupContainerTests.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/ManagementGroupContainerTests.cs index 547ee7603041c..155bf9b2b7654 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/ManagementGroupContainerTests.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/ManagementGroupContainerTests.cs @@ -85,5 +85,14 @@ public async Task StartCreateOrUpdate() Assert.AreEqual(mgmtGroupName, mgmtGroup.Data.DisplayName); Assert.AreEqual(ManagementGroupOperations.ResourceType, mgmtGroup.Data.Type); } + + [RecordedTest] + public async Task CheckNameAvailability() + { + var rq = new CheckNameAvailabilityRequest(); + rq.Name = "this-should-not-exist"; + var rs = await Client.GetManagementGroups().CheckNameAvailabilityAsync(rq); + Assert.IsTrue(rs.Value.NameAvailable); + } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/ManagementGroupOperationsTests.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/ManagementGroupOperationsTests.cs index e1e0a2383f34e..d0a21d0608140 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/ManagementGroupOperationsTests.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/Scenario/ManagementGroupOperationsTests.cs @@ -54,7 +54,7 @@ public async Task GetDescendants() { ManagementGroup mgmtGroup = await Client.GetManagementGroupOperations(_mgmtGroup.Id).GetAsync(); DescendantInfo descendant = null; - await foreach(var desc in mgmtGroup.GetDescendantsAsync()) + await foreach(var desc in mgmtGroup.ListDescendantsAsync()) { descendant = desc; break; diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/CheckNameAvailability.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/CheckNameAvailability.json new file mode 100644 index 0000000000000..2e1a00dd92f1f --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/CheckNameAvailability.json @@ -0,0 +1,93 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210712.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "9a30bcfb38f7a7e02258f0615a304507", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "468", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 21:54:26 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6223dd9b-5699-45d6-90cc-45182fea1cb5", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-request-id": "6223dd9b-5699-45d6-90cc-45182fea1cb5", + "x-ms-routing-request-id": "WESTUS2:20210712T215427Z:6223dd9b-5699-45d6-90cc-45182fea1cb5" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "tagKey1": "tagValue1", + "tagKey2": "tagValue2" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": ".NET Mgmt SDK Test with TTL = 1 Day", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/checkNameAvailability?api-version=2021-04-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "79", + "Content-Type": "application/json", + "traceparent": "00-9c0c083ae8d1624fa995c007009d8fe8-043f748a2b23f848-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210712.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "8816731aab7b93a8cdf37a0d307be50e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "name": "this-should-not-exist", + "type": "Microsoft.Management/managementGroups" + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "client-request-id": "09778cdb-4d15-4535-b702-4543216535d9", + "Content-Length": "22", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 21:54:26 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "request-id": "09778cdb-4d15-4535-b702-4543216535d9", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "09778cdb-4d15-4535-b702-4543216535d9", + "x-ms-ratelimit-remaining-tenant-writes": "1199", + "x-ms-request-id": "westus2:09778cdb-4d15-4535-b702-4543216535d9", + "x-ms-routing-request-id": "WESTUS2:20210712T215427Z:09778cdb-4d15-4535-b702-4543216535d9" + }, + "ResponseBody": { + "nameAvailable": true + } + } + ], + "Variables": { + "RandomSeed": "1692393202", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/CheckNameAvailabilityAsync.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/CheckNameAvailabilityAsync.json new file mode 100644 index 0000000000000..27469097a8062 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/CheckNameAvailabilityAsync.json @@ -0,0 +1,93 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2019-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210712.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "9d751ff0518a2b832974b0ed6dc71ae1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "468", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 21:55:09 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b2e0c6ef-b96c-4be2-847c-849f93094eab", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-request-id": "b2e0c6ef-b96c-4be2-847c-849f93094eab", + "x-ms-routing-request-id": "WESTUS2:20210712T215509Z:b2e0c6ef-b96c-4be2-847c-849f93094eab" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "tagKey1": "tagValue1", + "tagKey2": "tagValue2" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": ".NET Mgmt SDK Test with TTL = 1 Day", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.Management/checkNameAvailability?api-version=2021-04-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "79", + "Content-Type": "application/json", + "traceparent": "00-878ca23fe24b6f4191d8036dafc4384b-181b637c76b4c24b-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210712.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "6b1e4d69c6f0516bf0d09d6deec64e06", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "name": "this-should-not-exist", + "type": "Microsoft.Management/managementGroups" + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "client-request-id": "b439dbbb-0c16-449f-8edc-c1d988c44f5d", + "Content-Length": "22", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 12 Jul 2021 21:55:09 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "request-id": "b439dbbb-0c16-449f-8edc-c1d988c44f5d", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-ba-restapi": "1.0.3.1627", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b439dbbb-0c16-449f-8edc-c1d988c44f5d", + "x-ms-ratelimit-remaining-tenant-writes": "1199", + "x-ms-request-id": "westus2:b439dbbb-0c16-449f-8edc-c1d988c44f5d", + "x-ms-routing-request-id": "WESTUS2:20210712T215509Z:b439dbbb-0c16-449f-8edc-c1d988c44f5d" + }, + "ResponseBody": { + "nameAvailable": true + } + } + ], + "Variables": { + "RandomSeed": "246446359", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} \ No newline at end of file diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/ManagementGroupContainerTests(False).json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/ManagementGroupContainerTests(False).json index c814e59a5e947..ea6a3602f39a5 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/ManagementGroupContainerTests(False).json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/ManagementGroupContainerTests(False).json @@ -6,7 +6,7 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210712.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "c3e11f6b550c9e107ce92b426a2fec90", "x-ms-return-client-request-id": "true" }, @@ -14,17 +14,17 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "450", + "Content-Length": "468", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:45:36 GMT", + "Date": "Mon, 12 Jul 2021 21:53:59 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "d01e0058-b837-431f-b288-be76fe0638be", + "x-ms-correlation-request-id": "82e19c85-dcce-4f75-880b-f6ec82c33b92", "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "d01e0058-b837-431f-b288-be76fe0638be", - "x-ms-routing-request-id": "WESTUS2:20210712T024536Z:d01e0058-b837-431f-b288-be76fe0638be" + "x-ms-request-id": "82e19c85-dcce-4f75-880b-f6ec82c33b92", + "x-ms-routing-request-id": "WESTUS2:20210712T215359Z:82e19c85-dcce-4f75-880b-f6ec82c33b92" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", @@ -36,7 +36,7 @@ }, "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", - "displayName": "Azure SDK sandbox", + "displayName": ".NET Mgmt SDK Test with TTL = 1 Day", "state": "Enabled", "subscriptionPolicies": { "locationPlacementId": "Internal_2014-09-01", @@ -53,8 +53,8 @@ "Authorization": "Sanitized", "Content-Length": "17", "Content-Type": "application/json", - "traceparent": "00-ea58924b214abb428d696373e9846f16-b21ef88b7a9f6742-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-7ced0d9aad8fec47bc680e8ae6f9cc31-89a76ee21bd82c4c-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210712.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "859b6229c1944506f0d4de51d82e796f", "x-ms-return-client-request-id": "true" }, @@ -65,23 +65,23 @@ "ResponseHeaders": { "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", "Cache-Control": "no-cache", - "client-request-id": "10b77993-1902-4058-a109-bb08d464ac1e", + "client-request-id": "62ec3bfe-ca32-43de-9149-2900f3cd80db", "Content-Length": "165", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:45:37 GMT", + "Date": "Mon, 12 Jul 2021 21:54:00 GMT", "Expires": "-1", "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", "Pragma": "no-cache", - "request-id": "10b77993-1902-4058-a109-bb08d464ac1e", + "request-id": "62ec3bfe-ca32-43de-9149-2900f3cd80db", "Retry-After": "10", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "x-ba-restapi": "1.0.3.1627", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "10b77993-1902-4058-a109-bb08d464ac1e", + "x-ms-correlation-request-id": "62ec3bfe-ca32-43de-9149-2900f3cd80db", "x-ms-ratelimit-remaining-managementgroups-requests": "59", "x-ms-ratelimit-remaining-tenant-writes": "1199", - "x-ms-request-id": "westus2:10b77993-1902-4058-a109-bb08d464ac1e", - "x-ms-routing-request-id": "WESTUS2:20210712T024538Z:10b77993-1902-4058-a109-bb08d464ac1e" + "x-ms-request-id": "westus2:62ec3bfe-ca32-43de-9149-2900f3cd80db", + "x-ms-routing-request-id": "WESTUS2:20210712T215400Z:62ec3bfe-ca32-43de-9149-2900f3cd80db" }, "ResponseBody": { "id": "/providers/Microsoft.Management/managementGroups/mgmt-group-827", @@ -95,8 +95,8 @@ "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-083aecdda8dec049-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-7ced0d9aad8fec47bc680e8ae6f9cc31-4e8ce6950a78b24a-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210712.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "80ab90b924185dd7da7d1b81314da3bb", "x-ms-return-client-request-id": "true" }, @@ -105,23 +105,23 @@ "ResponseHeaders": { "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", "Cache-Control": "no-cache", - "client-request-id": "e005a21a-6a3a-4d76-8b97-86f6da8e534e", + "client-request-id": "e54c96f1-02b5-47f0-907d-fcf8e1263c16", "Content-Length": "164", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:45:37 GMT", + "Date": "Mon, 12 Jul 2021 21:54:00 GMT", "Expires": "-1", "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", "Pragma": "no-cache", - "request-id": "e005a21a-6a3a-4d76-8b97-86f6da8e534e", + "request-id": "e54c96f1-02b5-47f0-907d-fcf8e1263c16", "Retry-After": "10", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", "x-ba-restapi": "1.0.3.1627", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "e005a21a-6a3a-4d76-8b97-86f6da8e534e", + "x-ms-correlation-request-id": "e54c96f1-02b5-47f0-907d-fcf8e1263c16", "x-ms-ratelimit-remaining-tenant-reads": "11999", - "x-ms-request-id": "westus2:e005a21a-6a3a-4d76-8b97-86f6da8e534e", - "x-ms-routing-request-id": "WESTUS2:20210712T024538Z:e005a21a-6a3a-4d76-8b97-86f6da8e534e" + "x-ms-request-id": "westus2:e54c96f1-02b5-47f0-907d-fcf8e1263c16", + "x-ms-routing-request-id": "WESTUS2:20210712T215400Z:e54c96f1-02b5-47f0-907d-fcf8e1263c16" }, "ResponseBody": { "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", @@ -134,8 +134,8 @@ "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-13e2d9848b869849-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-7ced0d9aad8fec47bc680e8ae6f9cc31-0f26c4c24aa2554e-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210712.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "c1f0d3b1760a0b718ae1c6624cd73cc6", "x-ms-return-client-request-id": "true" }, @@ -144,23 +144,23 @@ "ResponseHeaders": { "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", "Cache-Control": "no-cache", - "client-request-id": "307df8aa-aa36-46c4-98c5-113d48258967", + "client-request-id": "25a90122-1cab-4745-b2b9-09f4f34c6e1f", "Content-Length": "164", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:45:38 GMT", + "Date": "Mon, 12 Jul 2021 21:54:01 GMT", "Expires": "-1", "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", "Pragma": "no-cache", - "request-id": "307df8aa-aa36-46c4-98c5-113d48258967", + "request-id": "25a90122-1cab-4745-b2b9-09f4f34c6e1f", "Retry-After": "10", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", "x-ba-restapi": "1.0.3.1627", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "307df8aa-aa36-46c4-98c5-113d48258967", + "x-ms-correlation-request-id": "25a90122-1cab-4745-b2b9-09f4f34c6e1f", "x-ms-ratelimit-remaining-tenant-reads": "11998", - "x-ms-request-id": "westus2:307df8aa-aa36-46c4-98c5-113d48258967", - "x-ms-routing-request-id": "WESTUS2:20210712T024539Z:307df8aa-aa36-46c4-98c5-113d48258967" + "x-ms-request-id": "westus2:25a90122-1cab-4745-b2b9-09f4f34c6e1f", + "x-ms-routing-request-id": "WESTUS2:20210712T215401Z:25a90122-1cab-4745-b2b9-09f4f34c6e1f" }, "ResponseBody": { "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", @@ -173,8 +173,8 @@ "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-9f6e08bd5365494b-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-7ced0d9aad8fec47bc680e8ae6f9cc31-eae746a8a220b944-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210712.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "48973c74f982545796843fe702568872", "x-ms-return-client-request-id": "true" }, @@ -183,1895 +183,23 @@ "ResponseHeaders": { "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", "Cache-Control": "no-cache", - "client-request-id": "2cba214e-f8b2-4419-bbd2-fa6e02f7d88b", - "Content-Length": "164", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:45:40 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Pragma": "no-cache", - "request-id": "2cba214e-f8b2-4419-bbd2-fa6e02f7d88b", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "x-ba-restapi": "1.0.3.1627", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "2cba214e-f8b2-4419-bbd2-fa6e02f7d88b", - "x-ms-ratelimit-remaining-tenant-reads": "11997", - "x-ms-request-id": "westus2:2cba214e-f8b2-4419-bbd2-fa6e02f7d88b", - "x-ms-routing-request-id": "WESTUS2:20210712T024540Z:2cba214e-f8b2-4419-bbd2-fa6e02f7d88b" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", - "name": "mgmt-group-827", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-2c71cf6cdc5a764b-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "357eb98e9e3843971e9ff6365e751003", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Cache-Control": "no-cache", - "client-request-id": "717027ad-9db0-4602-af14-cd8ca3bde7c2", - "Content-Length": "164", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:45:41 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Pragma": "no-cache", - "request-id": "717027ad-9db0-4602-af14-cd8ca3bde7c2", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "x-ba-restapi": "1.0.3.1627", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "717027ad-9db0-4602-af14-cd8ca3bde7c2", - "x-ms-ratelimit-remaining-tenant-reads": "11996", - "x-ms-request-id": "westus2:717027ad-9db0-4602-af14-cd8ca3bde7c2", - "x-ms-routing-request-id": "WESTUS2:20210712T024541Z:717027ad-9db0-4602-af14-cd8ca3bde7c2" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", - "name": "mgmt-group-827", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-c52e767263239b43-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "f50c55405bb5b8387c9b2b8536890933", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Cache-Control": "no-cache", - "client-request-id": "f3c11d5f-32e1-4606-acf6-2d1e55e588b0", - "Content-Length": "164", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:45:42 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Pragma": "no-cache", - "request-id": "f3c11d5f-32e1-4606-acf6-2d1e55e588b0", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "x-ba-restapi": "1.0.3.1627", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "f3c11d5f-32e1-4606-acf6-2d1e55e588b0", - "x-ms-ratelimit-remaining-tenant-reads": "11995", - "x-ms-request-id": "westus2:f3c11d5f-32e1-4606-acf6-2d1e55e588b0", - "x-ms-routing-request-id": "WESTUS2:20210712T024542Z:f3c11d5f-32e1-4606-acf6-2d1e55e588b0" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", - "name": "mgmt-group-827", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-019068768fc82542-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "93d354590758d58da45429e30220f621", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Cache-Control": "no-cache", - "client-request-id": "0b1d14a6-b55e-479e-95bc-496bbefc5b0e", - "Content-Length": "164", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:45:43 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Pragma": "no-cache", - "request-id": "0b1d14a6-b55e-479e-95bc-496bbefc5b0e", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "x-ba-restapi": "1.0.3.1627", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "0b1d14a6-b55e-479e-95bc-496bbefc5b0e", - "x-ms-ratelimit-remaining-tenant-reads": "11994", - "x-ms-request-id": "westus2:0b1d14a6-b55e-479e-95bc-496bbefc5b0e", - "x-ms-routing-request-id": "WESTUS2:20210712T024544Z:0b1d14a6-b55e-479e-95bc-496bbefc5b0e" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", - "name": "mgmt-group-827", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-bef474894a5c0040-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "aca63b73934a32bc80c5b89c73120c94", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Cache-Control": "no-cache", - "client-request-id": "62dd52dc-f995-4048-abc6-e945765c99c8", - "Content-Length": "164", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:45:44 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Pragma": "no-cache", - "request-id": "62dd52dc-f995-4048-abc6-e945765c99c8", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "x-ba-restapi": "1.0.3.1627", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "62dd52dc-f995-4048-abc6-e945765c99c8", - "x-ms-ratelimit-remaining-tenant-reads": "11993", - "x-ms-request-id": "westus2:62dd52dc-f995-4048-abc6-e945765c99c8", - "x-ms-routing-request-id": "WESTUS2:20210712T024545Z:62dd52dc-f995-4048-abc6-e945765c99c8" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", - "name": "mgmt-group-827", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-82bfa8563798d448-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "0adcc2967da139aac73650613255b55b", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Cache-Control": "no-cache", - "client-request-id": "78b11d49-8540-46d0-af37-08d984661924", - "Content-Length": "164", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:45:45 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Pragma": "no-cache", - "request-id": "78b11d49-8540-46d0-af37-08d984661924", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "x-ba-restapi": "1.0.3.1627", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "78b11d49-8540-46d0-af37-08d984661924", - "x-ms-ratelimit-remaining-tenant-reads": "11992", - "x-ms-request-id": "westus2:78b11d49-8540-46d0-af37-08d984661924", - "x-ms-routing-request-id": "WESTUS2:20210712T024546Z:78b11d49-8540-46d0-af37-08d984661924" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", - "name": "mgmt-group-827", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-b1a5709b0ef2e24e-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "fb110aa55ce3c6e997a113934ef06292", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Cache-Control": "no-cache", - "client-request-id": "7dcdd6e2-7fa5-4be6-aa31-67ea0b7e24e0", - "Content-Length": "164", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:45:46 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Pragma": "no-cache", - "request-id": "7dcdd6e2-7fa5-4be6-aa31-67ea0b7e24e0", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "x-ba-restapi": "1.0.3.1627", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "7dcdd6e2-7fa5-4be6-aa31-67ea0b7e24e0", - "x-ms-ratelimit-remaining-tenant-reads": "11991", - "x-ms-request-id": "westus2:7dcdd6e2-7fa5-4be6-aa31-67ea0b7e24e0", - "x-ms-routing-request-id": "WESTUS2:20210712T024547Z:7dcdd6e2-7fa5-4be6-aa31-67ea0b7e24e0" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", - "name": "mgmt-group-827", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-87106c8102b02242-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "3f4c9447ec43f67f906de513425b002b", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Cache-Control": "no-cache", - "client-request-id": "71532dce-7cd1-476e-b415-ee8e2f94da97", - "Content-Length": "164", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:45:48 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Pragma": "no-cache", - "request-id": "71532dce-7cd1-476e-b415-ee8e2f94da97", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "x-ba-restapi": "1.0.3.1627", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "71532dce-7cd1-476e-b415-ee8e2f94da97", - "x-ms-ratelimit-remaining-tenant-reads": "11990", - "x-ms-request-id": "westus2:71532dce-7cd1-476e-b415-ee8e2f94da97", - "x-ms-routing-request-id": "WESTUS2:20210712T024548Z:71532dce-7cd1-476e-b415-ee8e2f94da97" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", - "name": "mgmt-group-827", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-e85f98fe683ef14b-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "68f75c0f110039b1d91672006a17ead6", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Cache-Control": "no-cache", - "client-request-id": "ed831b7b-7345-44c1-9b0f-6f597a009f6a", - "Content-Length": "164", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:45:49 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Pragma": "no-cache", - "request-id": "ed831b7b-7345-44c1-9b0f-6f597a009f6a", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "x-ba-restapi": "1.0.3.1627", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "ed831b7b-7345-44c1-9b0f-6f597a009f6a", - "x-ms-ratelimit-remaining-tenant-reads": "11989", - "x-ms-request-id": "westus2:ed831b7b-7345-44c1-9b0f-6f597a009f6a", - "x-ms-routing-request-id": "WESTUS2:20210712T024549Z:ed831b7b-7345-44c1-9b0f-6f597a009f6a" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", - "name": "mgmt-group-827", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-359bee5e4a9b5b49-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "9d1abed37608b8178a1b6a7577d6833c", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Cache-Control": "no-cache", - "client-request-id": "2cf8ce92-427e-40ff-91b0-4ef86cb876ee", - "Content-Length": "164", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:45:50 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Pragma": "no-cache", - "request-id": "2cf8ce92-427e-40ff-91b0-4ef86cb876ee", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "x-ba-restapi": "1.0.3.1627", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "2cf8ce92-427e-40ff-91b0-4ef86cb876ee", - "x-ms-ratelimit-remaining-tenant-reads": "11988", - "x-ms-request-id": "westus2:2cf8ce92-427e-40ff-91b0-4ef86cb876ee", - "x-ms-routing-request-id": "WESTUS2:20210712T024550Z:2cf8ce92-427e-40ff-91b0-4ef86cb876ee" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", - "name": "mgmt-group-827", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-a4946f85377c1f43-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "f183e7a0f9f93592e313662d797f8c79", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Cache-Control": "no-cache", - "client-request-id": "304ef265-fcd9-4bd7-b97a-dddae226aab9", - "Content-Length": "164", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:45:51 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Pragma": "no-cache", - "request-id": "304ef265-fcd9-4bd7-b97a-dddae226aab9", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "x-ba-restapi": "1.0.3.1627", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "304ef265-fcd9-4bd7-b97a-dddae226aab9", - "x-ms-ratelimit-remaining-tenant-reads": "11987", - "x-ms-request-id": "westus2:304ef265-fcd9-4bd7-b97a-dddae226aab9", - "x-ms-routing-request-id": "WESTUS2:20210712T024552Z:304ef265-fcd9-4bd7-b97a-dddae226aab9" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", - "name": "mgmt-group-827", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-66c9714625580540-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "843f0e8262419922443edee4a63bc202", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Cache-Control": "no-cache", - "client-request-id": "2371d45a-483e-49d2-bda5-a6891811dc2b", - "Content-Length": "164", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:45:52 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Pragma": "no-cache", - "request-id": "2371d45a-483e-49d2-bda5-a6891811dc2b", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "x-ba-restapi": "1.0.3.1627", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "2371d45a-483e-49d2-bda5-a6891811dc2b", - "x-ms-ratelimit-remaining-tenant-reads": "11986", - "x-ms-request-id": "westus2:2371d45a-483e-49d2-bda5-a6891811dc2b", - "x-ms-routing-request-id": "WESTUS2:20210712T024553Z:2371d45a-483e-49d2-bda5-a6891811dc2b" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", - "name": "mgmt-group-827", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-4b30cb30b185ce4d-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "825f3692f893dadd2ce4baf50fea3e0b", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Cache-Control": "no-cache", - "client-request-id": "7d5ccc3b-8cd0-4881-8ca6-0eafd2cafffd", - "Content-Length": "164", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:45:53 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Pragma": "no-cache", - "request-id": "7d5ccc3b-8cd0-4881-8ca6-0eafd2cafffd", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "x-ba-restapi": "1.0.3.1627", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "7d5ccc3b-8cd0-4881-8ca6-0eafd2cafffd", - "x-ms-ratelimit-remaining-tenant-reads": "11985", - "x-ms-request-id": "westus2:7d5ccc3b-8cd0-4881-8ca6-0eafd2cafffd", - "x-ms-routing-request-id": "WESTUS2:20210712T024554Z:7d5ccc3b-8cd0-4881-8ca6-0eafd2cafffd" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", - "name": "mgmt-group-827", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-44ebcdec29ae0044-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "68f3f18eff973efbc5eaacba1bad8ea7", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Cache-Control": "no-cache", - "client-request-id": "92d5de88-b4a1-4ecb-bee2-0fc8ca6595d9", - "Content-Length": "164", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:45:54 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Pragma": "no-cache", - "request-id": "92d5de88-b4a1-4ecb-bee2-0fc8ca6595d9", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "x-ba-restapi": "1.0.3.1627", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "92d5de88-b4a1-4ecb-bee2-0fc8ca6595d9", - "x-ms-ratelimit-remaining-tenant-reads": "11984", - "x-ms-request-id": "westus2:92d5de88-b4a1-4ecb-bee2-0fc8ca6595d9", - "x-ms-routing-request-id": "WESTUS2:20210712T024555Z:92d5de88-b4a1-4ecb-bee2-0fc8ca6595d9" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", - "name": "mgmt-group-827", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-e74de201ecb0be47-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "439a63510a1f89e53165585ca82d895a", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Cache-Control": "no-cache", - "client-request-id": "4c56949d-893a-4eeb-a342-61feed782b47", - "Content-Length": "164", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:45:55 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Pragma": "no-cache", - "request-id": "4c56949d-893a-4eeb-a342-61feed782b47", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "x-ba-restapi": "1.0.3.1627", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "4c56949d-893a-4eeb-a342-61feed782b47", - "x-ms-ratelimit-remaining-tenant-reads": "11983", - "x-ms-request-id": "westus2:4c56949d-893a-4eeb-a342-61feed782b47", - "x-ms-routing-request-id": "WESTUS2:20210712T024556Z:4c56949d-893a-4eeb-a342-61feed782b47" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", - "name": "mgmt-group-827", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-8d0304aa6ec7ee4b-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "b556d3ff5948936b3a20bda84c22be7f", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Cache-Control": "no-cache", - "client-request-id": "94ba5a89-48fe-4394-b329-420d22ef3047", - "Content-Length": "164", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:45:56 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Pragma": "no-cache", - "request-id": "94ba5a89-48fe-4394-b329-420d22ef3047", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "x-ba-restapi": "1.0.3.1627", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "94ba5a89-48fe-4394-b329-420d22ef3047", - "x-ms-ratelimit-remaining-tenant-reads": "11982", - "x-ms-request-id": "westus2:94ba5a89-48fe-4394-b329-420d22ef3047", - "x-ms-routing-request-id": "WESTUS2:20210712T024557Z:94ba5a89-48fe-4394-b329-420d22ef3047" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", - "name": "mgmt-group-827", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-69af7aea955dac45-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "aca31255fa4f84eb0b693731a79e9697", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Cache-Control": "no-cache", - "client-request-id": "374796b4-ff76-46f9-8f6a-81017be7389e", - "Content-Length": "164", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:45:57 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Pragma": "no-cache", - "request-id": "374796b4-ff76-46f9-8f6a-81017be7389e", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "x-ba-restapi": "1.0.3.1627", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "374796b4-ff76-46f9-8f6a-81017be7389e", - "x-ms-ratelimit-remaining-tenant-reads": "11981", - "x-ms-request-id": "westus2:374796b4-ff76-46f9-8f6a-81017be7389e", - "x-ms-routing-request-id": "WESTUS2:20210712T024558Z:374796b4-ff76-46f9-8f6a-81017be7389e" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", - "name": "mgmt-group-827", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-cb69890e71272a4f-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "47ba5261d957f85ff70608ff4d3c3d0e", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Cache-Control": "no-cache", - "client-request-id": "ed1d8cad-6f07-4508-bc63-7163923fb91d", - "Content-Length": "164", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:45:59 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Pragma": "no-cache", - "request-id": "ed1d8cad-6f07-4508-bc63-7163923fb91d", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "x-ba-restapi": "1.0.3.1627", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "ed1d8cad-6f07-4508-bc63-7163923fb91d", - "x-ms-ratelimit-remaining-tenant-reads": "11980", - "x-ms-request-id": "westus2:ed1d8cad-6f07-4508-bc63-7163923fb91d", - "x-ms-routing-request-id": "WESTUS2:20210712T024559Z:ed1d8cad-6f07-4508-bc63-7163923fb91d" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", - "name": "mgmt-group-827", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-221c7abf78ada14a-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "9507d9a6dd89040ae8d1a9df2139ec9c", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Cache-Control": "no-cache", - "client-request-id": "aef7937f-8f66-466c-b5d2-c394714aef2e", - "Content-Length": "164", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:46:00 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Pragma": "no-cache", - "request-id": "aef7937f-8f66-466c-b5d2-c394714aef2e", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "x-ba-restapi": "1.0.3.1627", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "aef7937f-8f66-466c-b5d2-c394714aef2e", - "x-ms-ratelimit-remaining-tenant-reads": "11979", - "x-ms-request-id": "westus2:aef7937f-8f66-466c-b5d2-c394714aef2e", - "x-ms-routing-request-id": "WESTUS2:20210712T024601Z:aef7937f-8f66-466c-b5d2-c394714aef2e" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", - "name": "mgmt-group-827", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-a70d7369ac080f40-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "f947258a76677b27b3abb448f2eb37cf", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Cache-Control": "no-cache", - "client-request-id": "3436dbf3-c74c-49cf-b02e-7d06c61bdbce", - "Content-Length": "164", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:46:01 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Pragma": "no-cache", - "request-id": "3436dbf3-c74c-49cf-b02e-7d06c61bdbce", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "x-ba-restapi": "1.0.3.1627", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "3436dbf3-c74c-49cf-b02e-7d06c61bdbce", - "x-ms-ratelimit-remaining-tenant-reads": "11978", - "x-ms-request-id": "westus2:3436dbf3-c74c-49cf-b02e-7d06c61bdbce", - "x-ms-routing-request-id": "WESTUS2:20210712T024602Z:3436dbf3-c74c-49cf-b02e-7d06c61bdbce" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", - "name": "mgmt-group-827", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-3fc00483145c1d4a-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "ce8b282b0196830d47b55f85307fd6bd", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Cache-Control": "no-cache", - "client-request-id": "b2cc8f29-cf1e-43c3-914d-029fa89e4128", - "Content-Length": "164", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:46:02 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Pragma": "no-cache", - "request-id": "b2cc8f29-cf1e-43c3-914d-029fa89e4128", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "x-ba-restapi": "1.0.3.1627", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "b2cc8f29-cf1e-43c3-914d-029fa89e4128", - "x-ms-ratelimit-remaining-tenant-reads": "11977", - "x-ms-request-id": "westus2:b2cc8f29-cf1e-43c3-914d-029fa89e4128", - "x-ms-routing-request-id": "WESTUS2:20210712T024603Z:b2cc8f29-cf1e-43c3-914d-029fa89e4128" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", - "name": "mgmt-group-827", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-05bd376829743441-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "27746c1a43f42fa7b18ce1de28c112fc", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Cache-Control": "no-cache", - "client-request-id": "df117897-3013-4e4f-a59f-b01b1ec87f24", - "Content-Length": "164", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:46:03 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Pragma": "no-cache", - "request-id": "df117897-3013-4e4f-a59f-b01b1ec87f24", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "x-ba-restapi": "1.0.3.1627", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "df117897-3013-4e4f-a59f-b01b1ec87f24", - "x-ms-ratelimit-remaining-tenant-reads": "11976", - "x-ms-request-id": "westus2:df117897-3013-4e4f-a59f-b01b1ec87f24", - "x-ms-routing-request-id": "WESTUS2:20210712T024604Z:df117897-3013-4e4f-a59f-b01b1ec87f24" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", - "name": "mgmt-group-827", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-6c03b1d707a2e445-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "f9b4da9a1eae890618c4b2b117a24b34", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Cache-Control": "no-cache", - "client-request-id": "f3d781a5-0c33-407b-9a2e-aecdf6470639", - "Content-Length": "164", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:46:04 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Pragma": "no-cache", - "request-id": "f3d781a5-0c33-407b-9a2e-aecdf6470639", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "x-ba-restapi": "1.0.3.1627", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "f3d781a5-0c33-407b-9a2e-aecdf6470639", - "x-ms-ratelimit-remaining-tenant-reads": "11975", - "x-ms-request-id": "westus2:f3d781a5-0c33-407b-9a2e-aecdf6470639", - "x-ms-routing-request-id": "WESTUS2:20210712T024605Z:f3d781a5-0c33-407b-9a2e-aecdf6470639" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", - "name": "mgmt-group-827", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-369ad0f6b905804d-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "862ef7d51077e7da815c1d0a1f2f5b85", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Cache-Control": "no-cache", - "client-request-id": "0473f828-a9d2-422c-b6b3-1e23ef3d9862", - "Content-Length": "164", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:46:05 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Pragma": "no-cache", - "request-id": "0473f828-a9d2-422c-b6b3-1e23ef3d9862", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "x-ba-restapi": "1.0.3.1627", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "0473f828-a9d2-422c-b6b3-1e23ef3d9862", - "x-ms-ratelimit-remaining-tenant-reads": "11974", - "x-ms-request-id": "westus2:0473f828-a9d2-422c-b6b3-1e23ef3d9862", - "x-ms-routing-request-id": "WESTUS2:20210712T024606Z:0473f828-a9d2-422c-b6b3-1e23ef3d9862" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", - "name": "mgmt-group-827", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-47fdac9b7ce3a045-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "55eb62a2ddcbfc0f65eb0f3091f5170e", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Cache-Control": "no-cache", - "client-request-id": "903ea010-cf94-491f-bdef-f4bb9f445096", - "Content-Length": "164", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:46:06 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Pragma": "no-cache", - "request-id": "903ea010-cf94-491f-bdef-f4bb9f445096", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "x-ba-restapi": "1.0.3.1627", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "903ea010-cf94-491f-bdef-f4bb9f445096", - "x-ms-ratelimit-remaining-tenant-reads": "11973", - "x-ms-request-id": "westus2:903ea010-cf94-491f-bdef-f4bb9f445096", - "x-ms-routing-request-id": "WESTUS2:20210712T024607Z:903ea010-cf94-491f-bdef-f4bb9f445096" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", - "name": "mgmt-group-827", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-2432ab79d33b6349-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "3109ad408c938984ffcc775201fc69e8", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Cache-Control": "no-cache", - "client-request-id": "a03accd1-c2ff-4694-a49e-6e15ab64c545", - "Content-Length": "164", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:46:08 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Pragma": "no-cache", - "request-id": "a03accd1-c2ff-4694-a49e-6e15ab64c545", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "x-ba-restapi": "1.0.3.1627", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "a03accd1-c2ff-4694-a49e-6e15ab64c545", - "x-ms-ratelimit-remaining-tenant-reads": "11972", - "x-ms-request-id": "westus2:a03accd1-c2ff-4694-a49e-6e15ab64c545", - "x-ms-routing-request-id": "WESTUS2:20210712T024608Z:a03accd1-c2ff-4694-a49e-6e15ab64c545" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", - "name": "mgmt-group-827", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-5405eedc977f3a48-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "b40f2c68f5b6f768e732208c01a9568c", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Cache-Control": "no-cache", - "client-request-id": "d9bf5bd3-cc22-4c99-b47e-4e8e9c431b86", - "Content-Length": "164", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:46:09 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Pragma": "no-cache", - "request-id": "d9bf5bd3-cc22-4c99-b47e-4e8e9c431b86", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "x-ba-restapi": "1.0.3.1627", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "d9bf5bd3-cc22-4c99-b47e-4e8e9c431b86", - "x-ms-ratelimit-remaining-tenant-reads": "11971", - "x-ms-request-id": "westus2:d9bf5bd3-cc22-4c99-b47e-4e8e9c431b86", - "x-ms-routing-request-id": "WESTUS2:20210712T024610Z:d9bf5bd3-cc22-4c99-b47e-4e8e9c431b86" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", - "name": "mgmt-group-827", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-09203886e0aed045-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "72c90e44292616f2de6155ff65bdfa69", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Cache-Control": "no-cache", - "client-request-id": "bb620ada-3af7-461f-b121-d44b51e425f3", - "Content-Length": "164", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:46:10 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Pragma": "no-cache", - "request-id": "bb620ada-3af7-461f-b121-d44b51e425f3", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "x-ba-restapi": "1.0.3.1627", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "bb620ada-3af7-461f-b121-d44b51e425f3", - "x-ms-ratelimit-remaining-tenant-reads": "11970", - "x-ms-request-id": "westus2:bb620ada-3af7-461f-b121-d44b51e425f3", - "x-ms-routing-request-id": "WESTUS2:20210712T024611Z:bb620ada-3af7-461f-b121-d44b51e425f3" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", - "name": "mgmt-group-827", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-74e0b65250c22b40-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "64c8268163e64b58451149606cf88856", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Cache-Control": "no-cache", - "client-request-id": "8ef9bf0d-5896-4a41-8e33-16aa5cf5101e", - "Content-Length": "164", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:46:11 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Pragma": "no-cache", - "request-id": "8ef9bf0d-5896-4a41-8e33-16aa5cf5101e", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "x-ba-restapi": "1.0.3.1627", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "8ef9bf0d-5896-4a41-8e33-16aa5cf5101e", - "x-ms-ratelimit-remaining-tenant-reads": "11969", - "x-ms-request-id": "westus2:8ef9bf0d-5896-4a41-8e33-16aa5cf5101e", - "x-ms-routing-request-id": "WESTUS2:20210712T024612Z:8ef9bf0d-5896-4a41-8e33-16aa5cf5101e" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", - "name": "mgmt-group-827", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-5a21ee7feb49704f-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "f30eeb75f7323ec23af8d6549f69922a", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Cache-Control": "no-cache", - "client-request-id": "3624495f-2552-4cc2-abc8-bf213e1a8973", - "Content-Length": "164", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:46:12 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Pragma": "no-cache", - "request-id": "3624495f-2552-4cc2-abc8-bf213e1a8973", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "x-ba-restapi": "1.0.3.1627", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "3624495f-2552-4cc2-abc8-bf213e1a8973", - "x-ms-ratelimit-remaining-tenant-reads": "11968", - "x-ms-request-id": "westus2:3624495f-2552-4cc2-abc8-bf213e1a8973", - "x-ms-routing-request-id": "WESTUS2:20210712T024613Z:3624495f-2552-4cc2-abc8-bf213e1a8973" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", - "name": "mgmt-group-827", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-ba851ca0eca82540-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "da0bb637f2e1e0a6b57d2d15e091a9e5", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Cache-Control": "no-cache", - "client-request-id": "49e376db-ffae-437e-9924-043d0022522e", - "Content-Length": "164", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:46:13 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Pragma": "no-cache", - "request-id": "49e376db-ffae-437e-9924-043d0022522e", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "x-ba-restapi": "1.0.3.1627", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "49e376db-ffae-437e-9924-043d0022522e", - "x-ms-ratelimit-remaining-tenant-reads": "11967", - "x-ms-request-id": "westus2:49e376db-ffae-437e-9924-043d0022522e", - "x-ms-routing-request-id": "WESTUS2:20210712T024614Z:49e376db-ffae-437e-9924-043d0022522e" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", - "name": "mgmt-group-827", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-a6b7ca1db0139243-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "7a89ffd907ae8937638929ed8c03abdb", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Cache-Control": "no-cache", - "client-request-id": "e43ce359-9da1-4952-bf4b-92ae5576d9a4", - "Content-Length": "164", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:46:14 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Pragma": "no-cache", - "request-id": "e43ce359-9da1-4952-bf4b-92ae5576d9a4", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "x-ba-restapi": "1.0.3.1627", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "e43ce359-9da1-4952-bf4b-92ae5576d9a4", - "x-ms-ratelimit-remaining-tenant-reads": "11966", - "x-ms-request-id": "westus2:e43ce359-9da1-4952-bf4b-92ae5576d9a4", - "x-ms-routing-request-id": "WESTUS2:20210712T024615Z:e43ce359-9da1-4952-bf4b-92ae5576d9a4" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", - "name": "mgmt-group-827", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-698d92914d0ca245-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "b5281f7eaded8374442d3db4caad5ea9", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Cache-Control": "no-cache", - "client-request-id": "f185fdc6-45c2-4394-bfc2-0fccfa6d0372", - "Content-Length": "164", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:46:15 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Pragma": "no-cache", - "request-id": "f185fdc6-45c2-4394-bfc2-0fccfa6d0372", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "x-ba-restapi": "1.0.3.1627", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "f185fdc6-45c2-4394-bfc2-0fccfa6d0372", - "x-ms-ratelimit-remaining-tenant-reads": "11965", - "x-ms-request-id": "westus2:f185fdc6-45c2-4394-bfc2-0fccfa6d0372", - "x-ms-routing-request-id": "WESTUS2:20210712T024616Z:f185fdc6-45c2-4394-bfc2-0fccfa6d0372" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", - "name": "mgmt-group-827", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-5533734708e82446-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "a07bf04f18df307b7f817758c8b953b2", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Cache-Control": "no-cache", - "client-request-id": "5a5e5c13-d75e-4fa7-be4b-f7e81954af24", - "Content-Length": "164", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:46:17 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Pragma": "no-cache", - "request-id": "5a5e5c13-d75e-4fa7-be4b-f7e81954af24", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "x-ba-restapi": "1.0.3.1627", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "5a5e5c13-d75e-4fa7-be4b-f7e81954af24", - "x-ms-ratelimit-remaining-tenant-reads": "11964", - "x-ms-request-id": "westus2:5a5e5c13-d75e-4fa7-be4b-f7e81954af24", - "x-ms-routing-request-id": "WESTUS2:20210712T024617Z:5a5e5c13-d75e-4fa7-be4b-f7e81954af24" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", - "name": "mgmt-group-827", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-ceb2fc9b907a864f-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "c09651d2f3682bf88a053581ca82beb5", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Cache-Control": "no-cache", - "client-request-id": "14610893-164f-4c0f-8a78-606310e32670", - "Content-Length": "164", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:46:18 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Pragma": "no-cache", - "request-id": "14610893-164f-4c0f-8a78-606310e32670", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "x-ba-restapi": "1.0.3.1627", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "14610893-164f-4c0f-8a78-606310e32670", - "x-ms-ratelimit-remaining-tenant-reads": "11963", - "x-ms-request-id": "westus2:14610893-164f-4c0f-8a78-606310e32670", - "x-ms-routing-request-id": "WESTUS2:20210712T024619Z:14610893-164f-4c0f-8a78-606310e32670" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", - "name": "mgmt-group-827", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-0d81540b380c544d-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "9b9e802a0b8766fca3f8366b361cbb8b", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Cache-Control": "no-cache", - "client-request-id": "575b3dd9-c22d-4389-8f35-e27149074e38", - "Content-Length": "164", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:46:19 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Pragma": "no-cache", - "request-id": "575b3dd9-c22d-4389-8f35-e27149074e38", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "x-ba-restapi": "1.0.3.1627", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "575b3dd9-c22d-4389-8f35-e27149074e38", - "x-ms-ratelimit-remaining-tenant-reads": "11962", - "x-ms-request-id": "westus2:575b3dd9-c22d-4389-8f35-e27149074e38", - "x-ms-routing-request-id": "WESTUS2:20210712T024620Z:575b3dd9-c22d-4389-8f35-e27149074e38" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", - "name": "mgmt-group-827", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-a54ab5d1c7c57241-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "79e28ad99d175b40f85015d9e2fa66fc", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Cache-Control": "no-cache", - "client-request-id": "6d7af22a-e8f4-4f70-ab8d-463d7041a844", - "Content-Length": "164", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:46:20 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Pragma": "no-cache", - "request-id": "6d7af22a-e8f4-4f70-ab8d-463d7041a844", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "x-ba-restapi": "1.0.3.1627", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "6d7af22a-e8f4-4f70-ab8d-463d7041a844", - "x-ms-ratelimit-remaining-tenant-reads": "11961", - "x-ms-request-id": "westus2:6d7af22a-e8f4-4f70-ab8d-463d7041a844", - "x-ms-routing-request-id": "WESTUS2:20210712T024621Z:6d7af22a-e8f4-4f70-ab8d-463d7041a844" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", - "name": "mgmt-group-827", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-e2f7856a4742644c-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "472dc1c2b71bc62a552f1d6fbd8df46e", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Cache-Control": "no-cache", - "client-request-id": "5a290ab6-b4e3-4e84-975d-f568e668bb6d", - "Content-Length": "164", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:46:22 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Pragma": "no-cache", - "request-id": "5a290ab6-b4e3-4e84-975d-f568e668bb6d", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "x-ba-restapi": "1.0.3.1627", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "5a290ab6-b4e3-4e84-975d-f568e668bb6d", - "x-ms-ratelimit-remaining-tenant-reads": "11960", - "x-ms-request-id": "westus2:5a290ab6-b4e3-4e84-975d-f568e668bb6d", - "x-ms-routing-request-id": "WESTUS2:20210712T024622Z:5a290ab6-b4e3-4e84-975d-f568e668bb6d" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", - "name": "mgmt-group-827", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-d9cbafc960038b44-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "3fa7a94a459f8d9e4042a337f62283a9", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Cache-Control": "no-cache", - "client-request-id": "0bba9dcf-5789-405a-868a-fabb45887ba6", - "Content-Length": "164", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:46:23 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Pragma": "no-cache", - "request-id": "0bba9dcf-5789-405a-868a-fabb45887ba6", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "x-ba-restapi": "1.0.3.1627", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "0bba9dcf-5789-405a-868a-fabb45887ba6", - "x-ms-ratelimit-remaining-tenant-reads": "11959", - "x-ms-request-id": "westus2:0bba9dcf-5789-405a-868a-fabb45887ba6", - "x-ms-routing-request-id": "WESTUS2:20210712T024623Z:0bba9dcf-5789-405a-868a-fabb45887ba6" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", - "name": "mgmt-group-827", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-02519c36dafbdd41-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "74a8399273ef2170601c24e780d09d6b", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Cache-Control": "no-cache", - "client-request-id": "01bd0220-c4f9-4e3c-9d3a-4c0e9716391e", - "Content-Length": "164", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:46:24 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Pragma": "no-cache", - "request-id": "01bd0220-c4f9-4e3c-9d3a-4c0e9716391e", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "x-ba-restapi": "1.0.3.1627", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "01bd0220-c4f9-4e3c-9d3a-4c0e9716391e", - "x-ms-ratelimit-remaining-tenant-reads": "11958", - "x-ms-request-id": "westus2:01bd0220-c4f9-4e3c-9d3a-4c0e9716391e", - "x-ms-routing-request-id": "WESTUS2:20210712T024624Z:01bd0220-c4f9-4e3c-9d3a-4c0e9716391e" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", - "name": "mgmt-group-827", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-8d8993754ee5a843-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "398fa75b26527d5d22a007d814f3cf32", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Cache-Control": "no-cache", - "client-request-id": "620e5937-6cc5-4312-b650-4e77fb2b35ed", - "Content-Length": "164", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:46:25 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Pragma": "no-cache", - "request-id": "620e5937-6cc5-4312-b650-4e77fb2b35ed", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "x-ba-restapi": "1.0.3.1627", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "620e5937-6cc5-4312-b650-4e77fb2b35ed", - "x-ms-ratelimit-remaining-tenant-reads": "11957", - "x-ms-request-id": "westus2:620e5937-6cc5-4312-b650-4e77fb2b35ed", - "x-ms-routing-request-id": "WESTUS2:20210712T024625Z:620e5937-6cc5-4312-b650-4e77fb2b35ed" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", - "name": "mgmt-group-827", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-1dfbff555d8ace4d-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "84dd74ac80e4d77e3886df8321b70c6f", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Cache-Control": "no-cache", - "client-request-id": "39561acc-db62-4960-924e-2fbff821bebb", - "Content-Length": "164", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:46:27 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Pragma": "no-cache", - "request-id": "39561acc-db62-4960-924e-2fbff821bebb", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "x-ba-restapi": "1.0.3.1627", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "39561acc-db62-4960-924e-2fbff821bebb", - "x-ms-ratelimit-remaining-tenant-reads": "11956", - "x-ms-request-id": "westus2:39561acc-db62-4960-924e-2fbff821bebb", - "x-ms-routing-request-id": "WESTUS2:20210712T024627Z:39561acc-db62-4960-924e-2fbff821bebb" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", - "name": "mgmt-group-827", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-3a28f583fe3d2d49-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "4fdb38a54a936b57dc2b514e6b980d6c", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Cache-Control": "no-cache", - "client-request-id": "eb2c92e7-b1b7-4387-97c0-1cf3ac2ab080", - "Content-Length": "164", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:46:28 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Pragma": "no-cache", - "request-id": "eb2c92e7-b1b7-4387-97c0-1cf3ac2ab080", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "x-ba-restapi": "1.0.3.1627", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "eb2c92e7-b1b7-4387-97c0-1cf3ac2ab080", - "x-ms-ratelimit-remaining-tenant-reads": "11955", - "x-ms-request-id": "westus2:eb2c92e7-b1b7-4387-97c0-1cf3ac2ab080", - "x-ms-routing-request-id": "WESTUS2:20210712T024628Z:eb2c92e7-b1b7-4387-97c0-1cf3ac2ab080" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", - "name": "mgmt-group-827", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-2166851a76574340-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "0c3bf14c19f3db8628b700cb47d95b6b", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Cache-Control": "no-cache", - "client-request-id": "5a4de4bf-ae62-4161-9a14-d6c245446d2b", - "Content-Length": "164", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:46:29 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Pragma": "no-cache", - "request-id": "5a4de4bf-ae62-4161-9a14-d6c245446d2b", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "x-ba-restapi": "1.0.3.1627", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "5a4de4bf-ae62-4161-9a14-d6c245446d2b", - "x-ms-ratelimit-remaining-tenant-reads": "11954", - "x-ms-request-id": "westus2:5a4de4bf-ae62-4161-9a14-d6c245446d2b", - "x-ms-routing-request-id": "WESTUS2:20210712T024629Z:5a4de4bf-ae62-4161-9a14-d6c245446d2b" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", - "name": "mgmt-group-827", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-9ea5e75f1f4cbb42-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "dc3398938018619f1c72a7b92e306ca0", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Cache-Control": "no-cache", - "client-request-id": "8879fb05-672e-4517-888c-1bbf0db1d540", - "Content-Length": "164", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:46:30 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Pragma": "no-cache", - "request-id": "8879fb05-672e-4517-888c-1bbf0db1d540", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "x-ba-restapi": "1.0.3.1627", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "8879fb05-672e-4517-888c-1bbf0db1d540", - "x-ms-ratelimit-remaining-tenant-reads": "11953", - "x-ms-request-id": "westus2:8879fb05-672e-4517-888c-1bbf0db1d540", - "x-ms-routing-request-id": "WESTUS2:20210712T024630Z:8879fb05-672e-4517-888c-1bbf0db1d540" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", - "name": "mgmt-group-827", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-866d9aef217a1e4b-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "30377279007c8b7cb10026db4a8b2303", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Cache-Control": "no-cache", - "client-request-id": "2f7d765a-eef0-4807-b1c3-799391690bde", - "Content-Length": "164", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:46:31 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Pragma": "no-cache", - "request-id": "2f7d765a-eef0-4807-b1c3-799391690bde", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "x-ba-restapi": "1.0.3.1627", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "2f7d765a-eef0-4807-b1c3-799391690bde", - "x-ms-ratelimit-remaining-tenant-reads": "11952", - "x-ms-request-id": "westus2:2f7d765a-eef0-4807-b1c3-799391690bde", - "x-ms-routing-request-id": "WESTUS2:20210712T024631Z:2f7d765a-eef0-4807-b1c3-799391690bde" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", - "name": "mgmt-group-827", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-670d86ef8ade9948-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "d2bbe6cf3065cc5451d9ef8172cdacf8", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Cache-Control": "no-cache", - "client-request-id": "64f4c9c9-c20f-42a4-b20d-d0e8772819e7", - "Content-Length": "164", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:46:32 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Pragma": "no-cache", - "request-id": "64f4c9c9-c20f-42a4-b20d-d0e8772819e7", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "x-ba-restapi": "1.0.3.1627", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "64f4c9c9-c20f-42a4-b20d-d0e8772819e7", - "x-ms-ratelimit-remaining-tenant-reads": "11951", - "x-ms-request-id": "westus2:64f4c9c9-c20f-42a4-b20d-d0e8772819e7", - "x-ms-routing-request-id": "WESTUS2:20210712T024632Z:64f4c9c9-c20f-42a4-b20d-d0e8772819e7" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", - "name": "mgmt-group-827", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-a9e7eba631221a45-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "d552604a2ba292ee1ba72b1759c41691", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Cache-Control": "no-cache", - "client-request-id": "563a0f24-307c-4bd7-8138-f3f92bdcef26", - "Content-Length": "164", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:46:33 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Pragma": "no-cache", - "request-id": "563a0f24-307c-4bd7-8138-f3f92bdcef26", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "x-ba-restapi": "1.0.3.1627", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "563a0f24-307c-4bd7-8138-f3f92bdcef26", - "x-ms-ratelimit-remaining-tenant-reads": "11950", - "x-ms-request-id": "westus2:563a0f24-307c-4bd7-8138-f3f92bdcef26", - "x-ms-routing-request-id": "WESTUS2:20210712T024633Z:563a0f24-307c-4bd7-8138-f3f92bdcef26" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", - "name": "mgmt-group-827", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-15f930ab55a50641-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "47e9a44e9974483a1e6bdfa211fb19e3", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", - "Cache-Control": "no-cache", - "client-request-id": "f8c6388c-d043-4c8b-9adc-b3190dbf945f", + "client-request-id": "7852e06e-1328-42f6-811c-828083eaceb0", "Content-Length": "161", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:46:34 GMT", + "Date": "Mon, 12 Jul 2021 21:54:02 GMT", "Expires": "-1", "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", "Pragma": "no-cache", - "request-id": "f8c6388c-d043-4c8b-9adc-b3190dbf945f", + "request-id": "7852e06e-1328-42f6-811c-828083eaceb0", "Retry-After": "10", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", "x-ba-restapi": "1.0.3.1627", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "f8c6388c-d043-4c8b-9adc-b3190dbf945f", - "x-ms-ratelimit-remaining-tenant-reads": "11949", - "x-ms-request-id": "westus2:f8c6388c-d043-4c8b-9adc-b3190dbf945f", - "x-ms-routing-request-id": "WESTUS2:20210712T024634Z:f8c6388c-d043-4c8b-9adc-b3190dbf945f" + "x-ms-correlation-request-id": "7852e06e-1328-42f6-811c-828083eaceb0", + "x-ms-ratelimit-remaining-tenant-reads": "11997", + "x-ms-request-id": "westus2:7852e06e-1328-42f6-811c-828083eaceb0", + "x-ms-routing-request-id": "WESTUS2:20210712T215403Z:7852e06e-1328-42f6-811c-828083eaceb0" }, "ResponseBody": { "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", @@ -2084,9 +212,9 @@ "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-91ecd11f03f09943-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "ea902e534e39a460f828b7bd053c728d", + "traceparent": "00-7ced0d9aad8fec47bc680e8ae6f9cc31-8de802f9f3b3f54f-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210712.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "357eb98e9e3843971e9ff6365e751003", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -2094,23 +222,23 @@ "ResponseHeaders": { "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", "Cache-Control": "no-cache", - "client-request-id": "14ec5e8f-673e-49cf-aa7f-b04b14e03038", + "client-request-id": "2195dd1a-d32b-458f-b518-2042d49f39da", "Content-Length": "161", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:46:35 GMT", + "Date": "Mon, 12 Jul 2021 21:54:03 GMT", "Expires": "-1", "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", "Pragma": "no-cache", - "request-id": "14ec5e8f-673e-49cf-aa7f-b04b14e03038", + "request-id": "2195dd1a-d32b-458f-b518-2042d49f39da", "Retry-After": "10", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", "x-ba-restapi": "1.0.3.1627", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "14ec5e8f-673e-49cf-aa7f-b04b14e03038", - "x-ms-ratelimit-remaining-tenant-reads": "11948", - "x-ms-request-id": "westus2:14ec5e8f-673e-49cf-aa7f-b04b14e03038", - "x-ms-routing-request-id": "WESTUS2:20210712T024636Z:14ec5e8f-673e-49cf-aa7f-b04b14e03038" + "x-ms-correlation-request-id": "2195dd1a-d32b-458f-b518-2042d49f39da", + "x-ms-ratelimit-remaining-tenant-reads": "11996", + "x-ms-request-id": "westus2:2195dd1a-d32b-458f-b518-2042d49f39da", + "x-ms-routing-request-id": "WESTUS2:20210712T215404Z:2195dd1a-d32b-458f-b518-2042d49f39da" }, "ResponseBody": { "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", @@ -2123,9 +251,9 @@ "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-e627d486cd839946-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "cd325ec264e3b1832509b6374c4b8020", + "traceparent": "00-7ced0d9aad8fec47bc680e8ae6f9cc31-72cab6a56ff5bc47-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210712.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "f50c55405bb5b8387c9b2b8536890933", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -2133,23 +261,23 @@ "ResponseHeaders": { "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", "Cache-Control": "no-cache", - "client-request-id": "44792337-3f7a-4bfc-8744-459c1e5f690f", + "client-request-id": "c5f85d24-b3a8-482c-bb15-da11332265d3", "Content-Length": "161", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:46:37 GMT", + "Date": "Mon, 12 Jul 2021 21:54:04 GMT", "Expires": "-1", "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", "Pragma": "no-cache", - "request-id": "44792337-3f7a-4bfc-8744-459c1e5f690f", + "request-id": "c5f85d24-b3a8-482c-bb15-da11332265d3", "Retry-After": "10", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", "x-ba-restapi": "1.0.3.1627", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "44792337-3f7a-4bfc-8744-459c1e5f690f", - "x-ms-ratelimit-remaining-tenant-reads": "11947", - "x-ms-request-id": "westus2:44792337-3f7a-4bfc-8744-459c1e5f690f", - "x-ms-routing-request-id": "WESTUS2:20210712T024637Z:44792337-3f7a-4bfc-8744-459c1e5f690f" + "x-ms-correlation-request-id": "c5f85d24-b3a8-482c-bb15-da11332265d3", + "x-ms-ratelimit-remaining-tenant-reads": "11995", + "x-ms-request-id": "westus2:c5f85d24-b3a8-482c-bb15-da11332265d3", + "x-ms-routing-request-id": "WESTUS2:20210712T215405Z:c5f85d24-b3a8-482c-bb15-da11332265d3" }, "ResponseBody": { "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", @@ -2162,9 +290,9 @@ "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-3404ba74ed98f24f-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "2ac3478e2c33ff5843454f4be27c43e1", + "traceparent": "00-7ced0d9aad8fec47bc680e8ae6f9cc31-aa24e41cdd591f4a-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210712.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "93d354590758d58da45429e30220f621", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -2172,23 +300,23 @@ "ResponseHeaders": { "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", "Cache-Control": "no-cache", - "client-request-id": "c6017f85-c483-4720-a896-a342955fed23", + "client-request-id": "96af93cc-0759-46ce-9e94-a406d72eb848", "Content-Length": "161", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:46:38 GMT", + "Date": "Mon, 12 Jul 2021 21:54:06 GMT", "Expires": "-1", "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", "Pragma": "no-cache", - "request-id": "c6017f85-c483-4720-a896-a342955fed23", + "request-id": "96af93cc-0759-46ce-9e94-a406d72eb848", "Retry-After": "10", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", "x-ba-restapi": "1.0.3.1627", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "c6017f85-c483-4720-a896-a342955fed23", - "x-ms-ratelimit-remaining-tenant-reads": "11946", - "x-ms-request-id": "westus2:c6017f85-c483-4720-a896-a342955fed23", - "x-ms-routing-request-id": "WESTUS2:20210712T024638Z:c6017f85-c483-4720-a896-a342955fed23" + "x-ms-correlation-request-id": "96af93cc-0759-46ce-9e94-a406d72eb848", + "x-ms-ratelimit-remaining-tenant-reads": "11994", + "x-ms-request-id": "westus2:96af93cc-0759-46ce-9e94-a406d72eb848", + "x-ms-routing-request-id": "WESTUS2:20210712T215406Z:96af93cc-0759-46ce-9e94-a406d72eb848" }, "ResponseBody": { "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", @@ -2201,9 +329,9 @@ "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-7e798efa7210124d-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "b3df52f84bc8efffabdfc42f972958ac", + "traceparent": "00-7ced0d9aad8fec47bc680e8ae6f9cc31-04ec4845c6b55142-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210712.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "aca63b73934a32bc80c5b89c73120c94", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -2211,23 +339,23 @@ "ResponseHeaders": { "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", "Cache-Control": "no-cache", - "client-request-id": "8bc0f87f-3f3c-4927-9afa-53cf5e2af456", + "client-request-id": "0723484f-0b28-49a8-ba45-e032fb0167b9", "Content-Length": "161", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:46:39 GMT", + "Date": "Mon, 12 Jul 2021 21:54:07 GMT", "Expires": "-1", "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", "Pragma": "no-cache", - "request-id": "8bc0f87f-3f3c-4927-9afa-53cf5e2af456", + "request-id": "0723484f-0b28-49a8-ba45-e032fb0167b9", "Retry-After": "10", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", "x-ba-restapi": "1.0.3.1627", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "8bc0f87f-3f3c-4927-9afa-53cf5e2af456", - "x-ms-ratelimit-remaining-tenant-reads": "11945", - "x-ms-request-id": "westus2:8bc0f87f-3f3c-4927-9afa-53cf5e2af456", - "x-ms-routing-request-id": "WESTUS2:20210712T024639Z:8bc0f87f-3f3c-4927-9afa-53cf5e2af456" + "x-ms-correlation-request-id": "0723484f-0b28-49a8-ba45-e032fb0167b9", + "x-ms-ratelimit-remaining-tenant-reads": "11993", + "x-ms-request-id": "westus2:0723484f-0b28-49a8-ba45-e032fb0167b9", + "x-ms-routing-request-id": "WESTUS2:20210712T215407Z:0723484f-0b28-49a8-ba45-e032fb0167b9" }, "ResponseBody": { "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", @@ -2240,9 +368,9 @@ "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-69f64d6afb53504b-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "bd2f96a84779965905328a9e1437cea8", + "traceparent": "00-7ced0d9aad8fec47bc680e8ae6f9cc31-60123aec9a78d049-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210712.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "0adcc2967da139aac73650613255b55b", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -2250,23 +378,23 @@ "ResponseHeaders": { "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", "Cache-Control": "no-cache", - "client-request-id": "c545e2f7-238e-474a-b463-8336ca3fb92d", + "client-request-id": "8f315285-9faf-44ad-b092-6be3845e1e95", "Content-Length": "161", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:46:40 GMT", + "Date": "Mon, 12 Jul 2021 21:54:08 GMT", "Expires": "-1", "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", "Pragma": "no-cache", - "request-id": "c545e2f7-238e-474a-b463-8336ca3fb92d", + "request-id": "8f315285-9faf-44ad-b092-6be3845e1e95", "Retry-After": "10", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", "x-ba-restapi": "1.0.3.1627", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "c545e2f7-238e-474a-b463-8336ca3fb92d", - "x-ms-ratelimit-remaining-tenant-reads": "11944", - "x-ms-request-id": "westus2:c545e2f7-238e-474a-b463-8336ca3fb92d", - "x-ms-routing-request-id": "WESTUS2:20210712T024640Z:c545e2f7-238e-474a-b463-8336ca3fb92d" + "x-ms-correlation-request-id": "8f315285-9faf-44ad-b092-6be3845e1e95", + "x-ms-ratelimit-remaining-tenant-reads": "11992", + "x-ms-request-id": "westus2:8f315285-9faf-44ad-b092-6be3845e1e95", + "x-ms-routing-request-id": "WESTUS2:20210712T215408Z:8f315285-9faf-44ad-b092-6be3845e1e95" }, "ResponseBody": { "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", @@ -2279,9 +407,9 @@ "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-d1978d762af55647-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "fa3ed5c6cd6c425747d47f5467296719", + "traceparent": "00-7ced0d9aad8fec47bc680e8ae6f9cc31-078923f937374a43-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210712.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "fb110aa55ce3c6e997a113934ef06292", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -2289,23 +417,23 @@ "ResponseHeaders": { "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", "Cache-Control": "no-cache", - "client-request-id": "bcc6d4da-96ae-446e-91f0-97a3b354e647", + "client-request-id": "c964ef6b-abbe-48fc-952c-d983e74bf6aa", "Content-Length": "161", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:46:41 GMT", + "Date": "Mon, 12 Jul 2021 21:54:09 GMT", "Expires": "-1", "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", "Pragma": "no-cache", - "request-id": "bcc6d4da-96ae-446e-91f0-97a3b354e647", + "request-id": "c964ef6b-abbe-48fc-952c-d983e74bf6aa", "Retry-After": "10", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", "x-ba-restapi": "1.0.3.1627", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "bcc6d4da-96ae-446e-91f0-97a3b354e647", - "x-ms-ratelimit-remaining-tenant-reads": "11943", - "x-ms-request-id": "westus2:bcc6d4da-96ae-446e-91f0-97a3b354e647", - "x-ms-routing-request-id": "WESTUS2:20210712T024641Z:bcc6d4da-96ae-446e-91f0-97a3b354e647" + "x-ms-correlation-request-id": "c964ef6b-abbe-48fc-952c-d983e74bf6aa", + "x-ms-ratelimit-remaining-tenant-reads": "11991", + "x-ms-request-id": "westus2:c964ef6b-abbe-48fc-952c-d983e74bf6aa", + "x-ms-routing-request-id": "WESTUS2:20210712T215410Z:c964ef6b-abbe-48fc-952c-d983e74bf6aa" }, "ResponseBody": { "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", @@ -2318,9 +446,9 @@ "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-d74c1605488d4c45-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "4ba3a3ed854db068f849ad95c161da74", + "traceparent": "00-7ced0d9aad8fec47bc680e8ae6f9cc31-91695a0102e3a642-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210712.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "3f4c9447ec43f67f906de513425b002b", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -2328,23 +456,23 @@ "ResponseHeaders": { "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", "Cache-Control": "no-cache", - "client-request-id": "6e5c5401-fb29-45ca-b94f-8b216f3026c1", + "client-request-id": "da23bc78-c4e1-484a-b437-fa132948bb2b", "Content-Length": "161", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:46:42 GMT", + "Date": "Mon, 12 Jul 2021 21:54:10 GMT", "Expires": "-1", "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", "Pragma": "no-cache", - "request-id": "6e5c5401-fb29-45ca-b94f-8b216f3026c1", + "request-id": "da23bc78-c4e1-484a-b437-fa132948bb2b", "Retry-After": "10", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", "x-ba-restapi": "1.0.3.1627", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "6e5c5401-fb29-45ca-b94f-8b216f3026c1", - "x-ms-ratelimit-remaining-tenant-reads": "11942", - "x-ms-request-id": "westus2:6e5c5401-fb29-45ca-b94f-8b216f3026c1", - "x-ms-routing-request-id": "WESTUS2:20210712T024642Z:6e5c5401-fb29-45ca-b94f-8b216f3026c1" + "x-ms-correlation-request-id": "da23bc78-c4e1-484a-b437-fa132948bb2b", + "x-ms-ratelimit-remaining-tenant-reads": "11990", + "x-ms-request-id": "westus2:da23bc78-c4e1-484a-b437-fa132948bb2b", + "x-ms-routing-request-id": "WESTUS2:20210712T215411Z:da23bc78-c4e1-484a-b437-fa132948bb2b" }, "ResponseBody": { "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", @@ -2357,9 +485,9 @@ "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-da54c303cb781740-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "c2681c105debda403eec76a4c8052edc", + "traceparent": "00-7ced0d9aad8fec47bc680e8ae6f9cc31-dddcaf709b208047-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210712.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "68f75c0f110039b1d91672006a17ead6", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -2367,23 +495,23 @@ "ResponseHeaders": { "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", "Cache-Control": "no-cache", - "client-request-id": "f7587c7f-763b-4ada-9f2e-a6e5962a8711", + "client-request-id": "b642435f-6051-4bd1-aa6b-dd3cd11910ef", "Content-Length": "161", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:46:43 GMT", + "Date": "Mon, 12 Jul 2021 21:54:11 GMT", "Expires": "-1", "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", "Pragma": "no-cache", - "request-id": "f7587c7f-763b-4ada-9f2e-a6e5962a8711", + "request-id": "b642435f-6051-4bd1-aa6b-dd3cd11910ef", "Retry-After": "10", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", "x-ba-restapi": "1.0.3.1627", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "f7587c7f-763b-4ada-9f2e-a6e5962a8711", - "x-ms-ratelimit-remaining-tenant-reads": "11941", - "x-ms-request-id": "westus2:f7587c7f-763b-4ada-9f2e-a6e5962a8711", - "x-ms-routing-request-id": "WESTUS2:20210712T024643Z:f7587c7f-763b-4ada-9f2e-a6e5962a8711" + "x-ms-correlation-request-id": "b642435f-6051-4bd1-aa6b-dd3cd11910ef", + "x-ms-ratelimit-remaining-tenant-reads": "11989", + "x-ms-request-id": "westus2:b642435f-6051-4bd1-aa6b-dd3cd11910ef", + "x-ms-routing-request-id": "WESTUS2:20210712T215412Z:b642435f-6051-4bd1-aa6b-dd3cd11910ef" }, "ResponseBody": { "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", @@ -2396,9 +524,9 @@ "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-237d29faa4409d40-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "71b170cb8293415a6c8d01221fc181e6", + "traceparent": "00-7ced0d9aad8fec47bc680e8ae6f9cc31-bcd19215c892c546-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210712.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "9d1abed37608b8178a1b6a7577d6833c", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -2406,23 +534,23 @@ "ResponseHeaders": { "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", "Cache-Control": "no-cache", - "client-request-id": "7ed487e4-5f4c-40b3-b944-25a494cebc37", + "client-request-id": "c3ca7f28-c89b-404b-96cf-ca1c1dae6771", "Content-Length": "161", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:46:44 GMT", + "Date": "Mon, 12 Jul 2021 21:54:12 GMT", "Expires": "-1", "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", "Pragma": "no-cache", - "request-id": "7ed487e4-5f4c-40b3-b944-25a494cebc37", + "request-id": "c3ca7f28-c89b-404b-96cf-ca1c1dae6771", "Retry-After": "10", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", "x-ba-restapi": "1.0.3.1627", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "7ed487e4-5f4c-40b3-b944-25a494cebc37", - "x-ms-ratelimit-remaining-tenant-reads": "11940", - "x-ms-request-id": "westus2:7ed487e4-5f4c-40b3-b944-25a494cebc37", - "x-ms-routing-request-id": "WESTUS2:20210712T024645Z:7ed487e4-5f4c-40b3-b944-25a494cebc37" + "x-ms-correlation-request-id": "c3ca7f28-c89b-404b-96cf-ca1c1dae6771", + "x-ms-ratelimit-remaining-tenant-reads": "11988", + "x-ms-request-id": "westus2:c3ca7f28-c89b-404b-96cf-ca1c1dae6771", + "x-ms-routing-request-id": "WESTUS2:20210712T215413Z:c3ca7f28-c89b-404b-96cf-ca1c1dae6771" }, "ResponseBody": { "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", @@ -2435,9 +563,9 @@ "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-10ea00b413b7a248-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "4b430afaa5c08f2e63c90c610fc3e7f3", + "traceparent": "00-7ced0d9aad8fec47bc680e8ae6f9cc31-eb869dae50148b42-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210712.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "f183e7a0f9f93592e313662d797f8c79", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -2445,23 +573,23 @@ "ResponseHeaders": { "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", "Cache-Control": "no-cache", - "client-request-id": "6c257195-721b-476b-a1b0-5e7862c5e233", + "client-request-id": "d01d6037-d003-469f-b29a-72886df427e3", "Content-Length": "161", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:46:45 GMT", + "Date": "Mon, 12 Jul 2021 21:54:13 GMT", "Expires": "-1", "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", "Pragma": "no-cache", - "request-id": "6c257195-721b-476b-a1b0-5e7862c5e233", + "request-id": "d01d6037-d003-469f-b29a-72886df427e3", "Retry-After": "10", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", "x-ba-restapi": "1.0.3.1627", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "6c257195-721b-476b-a1b0-5e7862c5e233", - "x-ms-ratelimit-remaining-tenant-reads": "11939", - "x-ms-request-id": "westus2:6c257195-721b-476b-a1b0-5e7862c5e233", - "x-ms-routing-request-id": "WESTUS2:20210712T024646Z:6c257195-721b-476b-a1b0-5e7862c5e233" + "x-ms-correlation-request-id": "d01d6037-d003-469f-b29a-72886df427e3", + "x-ms-ratelimit-remaining-tenant-reads": "11987", + "x-ms-request-id": "westus2:d01d6037-d003-469f-b29a-72886df427e3", + "x-ms-routing-request-id": "WESTUS2:20210712T215414Z:d01d6037-d003-469f-b29a-72886df427e3" }, "ResponseBody": { "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", @@ -2474,9 +602,9 @@ "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-13c1534f989af042-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "51cad01a69b08de0c126555d5c1dba7d", + "traceparent": "00-7ced0d9aad8fec47bc680e8ae6f9cc31-b5755d05cac1044f-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210712.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "843f0e8262419922443edee4a63bc202", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -2484,23 +612,23 @@ "ResponseHeaders": { "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", "Cache-Control": "no-cache", - "client-request-id": "71090a53-c289-4aaf-8148-bc487dc6e3cd", + "client-request-id": "fa5c68a8-24d1-4096-bf6a-696b8e3eb9ba", "Content-Length": "161", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:46:47 GMT", + "Date": "Mon, 12 Jul 2021 21:54:14 GMT", "Expires": "-1", "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", "Pragma": "no-cache", - "request-id": "71090a53-c289-4aaf-8148-bc487dc6e3cd", + "request-id": "fa5c68a8-24d1-4096-bf6a-696b8e3eb9ba", "Retry-After": "10", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", "x-ba-restapi": "1.0.3.1627", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "71090a53-c289-4aaf-8148-bc487dc6e3cd", - "x-ms-ratelimit-remaining-tenant-reads": "11938", - "x-ms-request-id": "westus2:71090a53-c289-4aaf-8148-bc487dc6e3cd", - "x-ms-routing-request-id": "WESTUS2:20210712T024647Z:71090a53-c289-4aaf-8148-bc487dc6e3cd" + "x-ms-correlation-request-id": "fa5c68a8-24d1-4096-bf6a-696b8e3eb9ba", + "x-ms-ratelimit-remaining-tenant-reads": "11986", + "x-ms-request-id": "westus2:fa5c68a8-24d1-4096-bf6a-696b8e3eb9ba", + "x-ms-routing-request-id": "WESTUS2:20210712T215415Z:fa5c68a8-24d1-4096-bf6a-696b8e3eb9ba" }, "ResponseBody": { "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", @@ -2513,9 +641,9 @@ "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-38d4e9396fd20b40-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "beaa8f6be3c1251c42210dc975f932a9", + "traceparent": "00-7ced0d9aad8fec47bc680e8ae6f9cc31-19f8b4ffdcfd8c47-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210712.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "825f3692f893dadd2ce4baf50fea3e0b", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -2523,23 +651,23 @@ "ResponseHeaders": { "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", "Cache-Control": "no-cache", - "client-request-id": "8b4125ee-4394-4735-bd9b-26361bca70b6", + "client-request-id": "504e2ffe-142f-4d44-8678-8f0fd2c0a1ec", "Content-Length": "161", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:46:48 GMT", + "Date": "Mon, 12 Jul 2021 21:54:16 GMT", "Expires": "-1", "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", "Pragma": "no-cache", - "request-id": "8b4125ee-4394-4735-bd9b-26361bca70b6", + "request-id": "504e2ffe-142f-4d44-8678-8f0fd2c0a1ec", "Retry-After": "10", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", "x-ba-restapi": "1.0.3.1627", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "8b4125ee-4394-4735-bd9b-26361bca70b6", - "x-ms-ratelimit-remaining-tenant-reads": "11937", - "x-ms-request-id": "westus2:8b4125ee-4394-4735-bd9b-26361bca70b6", - "x-ms-routing-request-id": "WESTUS2:20210712T024648Z:8b4125ee-4394-4735-bd9b-26361bca70b6" + "x-ms-correlation-request-id": "504e2ffe-142f-4d44-8678-8f0fd2c0a1ec", + "x-ms-ratelimit-remaining-tenant-reads": "11985", + "x-ms-request-id": "westus2:504e2ffe-142f-4d44-8678-8f0fd2c0a1ec", + "x-ms-routing-request-id": "WESTUS2:20210712T215416Z:504e2ffe-142f-4d44-8678-8f0fd2c0a1ec" }, "ResponseBody": { "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", @@ -2552,9 +680,9 @@ "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-ef70737b7ef0ea4a-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "4f080ea530f7903629b6899a4fd03345", + "traceparent": "00-7ced0d9aad8fec47bc680e8ae6f9cc31-8560ec68f419d442-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210712.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "68f3f18eff973efbc5eaacba1bad8ea7", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -2562,23 +690,23 @@ "ResponseHeaders": { "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", "Cache-Control": "no-cache", - "client-request-id": "5c547230-9fd9-404f-929d-0223fbbcbd9b", + "client-request-id": "3479a062-2ee8-426e-b754-f4bd783ab872", "Content-Length": "161", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:46:49 GMT", + "Date": "Mon, 12 Jul 2021 21:54:17 GMT", "Expires": "-1", "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", "Pragma": "no-cache", - "request-id": "5c547230-9fd9-404f-929d-0223fbbcbd9b", + "request-id": "3479a062-2ee8-426e-b754-f4bd783ab872", "Retry-After": "10", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", "x-ba-restapi": "1.0.3.1627", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "5c547230-9fd9-404f-929d-0223fbbcbd9b", - "x-ms-ratelimit-remaining-tenant-reads": "11936", - "x-ms-request-id": "westus2:5c547230-9fd9-404f-929d-0223fbbcbd9b", - "x-ms-routing-request-id": "WESTUS2:20210712T024649Z:5c547230-9fd9-404f-929d-0223fbbcbd9b" + "x-ms-correlation-request-id": "3479a062-2ee8-426e-b754-f4bd783ab872", + "x-ms-ratelimit-remaining-tenant-reads": "11984", + "x-ms-request-id": "westus2:3479a062-2ee8-426e-b754-f4bd783ab872", + "x-ms-routing-request-id": "WESTUS2:20210712T215418Z:3479a062-2ee8-426e-b754-f4bd783ab872" }, "ResponseBody": { "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", @@ -2591,9 +719,9 @@ "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-cf2fc9910901324d-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "7ff58f0e29193631b4a40e8e5b1717c7", + "traceparent": "00-7ced0d9aad8fec47bc680e8ae6f9cc31-67322a18ad9b4c4d-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210712.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "439a63510a1f89e53165585ca82d895a", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -2601,23 +729,23 @@ "ResponseHeaders": { "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", "Cache-Control": "no-cache", - "client-request-id": "068203b3-0de1-4917-af85-36e90cfe001d", + "client-request-id": "34287a73-232f-4c4c-a0db-aa2d635433c5", "Content-Length": "161", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:46:50 GMT", + "Date": "Mon, 12 Jul 2021 21:54:18 GMT", "Expires": "-1", "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", "Pragma": "no-cache", - "request-id": "068203b3-0de1-4917-af85-36e90cfe001d", + "request-id": "34287a73-232f-4c4c-a0db-aa2d635433c5", "Retry-After": "10", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", "x-ba-restapi": "1.0.3.1627", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "068203b3-0de1-4917-af85-36e90cfe001d", - "x-ms-ratelimit-remaining-tenant-reads": "11935", - "x-ms-request-id": "westus2:068203b3-0de1-4917-af85-36e90cfe001d", - "x-ms-routing-request-id": "WESTUS2:20210712T024650Z:068203b3-0de1-4917-af85-36e90cfe001d" + "x-ms-correlation-request-id": "34287a73-232f-4c4c-a0db-aa2d635433c5", + "x-ms-ratelimit-remaining-tenant-reads": "11983", + "x-ms-request-id": "westus2:34287a73-232f-4c4c-a0db-aa2d635433c5", + "x-ms-routing-request-id": "WESTUS2:20210712T215419Z:34287a73-232f-4c4c-a0db-aa2d635433c5" }, "ResponseBody": { "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", @@ -2630,9 +758,9 @@ "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-ca43fc30d90c0249-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "4db7acf36b153a855919940b5a81d671", + "traceparent": "00-7ced0d9aad8fec47bc680e8ae6f9cc31-21a32baeb864534b-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210712.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "b556d3ff5948936b3a20bda84c22be7f", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -2640,23 +768,23 @@ "ResponseHeaders": { "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", "Cache-Control": "no-cache", - "client-request-id": "da40fc70-d6a3-47f2-a16c-0ca5716a27cb", + "client-request-id": "f7219b1e-7785-466d-8a70-0601a395ac2f", "Content-Length": "161", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:46:51 GMT", + "Date": "Mon, 12 Jul 2021 21:54:19 GMT", "Expires": "-1", "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", "Pragma": "no-cache", - "request-id": "da40fc70-d6a3-47f2-a16c-0ca5716a27cb", + "request-id": "f7219b1e-7785-466d-8a70-0601a395ac2f", "Retry-After": "10", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", "x-ba-restapi": "1.0.3.1627", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "da40fc70-d6a3-47f2-a16c-0ca5716a27cb", - "x-ms-ratelimit-remaining-tenant-reads": "11934", - "x-ms-request-id": "westus2:da40fc70-d6a3-47f2-a16c-0ca5716a27cb", - "x-ms-routing-request-id": "WESTUS2:20210712T024651Z:da40fc70-d6a3-47f2-a16c-0ca5716a27cb" + "x-ms-correlation-request-id": "f7219b1e-7785-466d-8a70-0601a395ac2f", + "x-ms-ratelimit-remaining-tenant-reads": "11982", + "x-ms-request-id": "westus2:f7219b1e-7785-466d-8a70-0601a395ac2f", + "x-ms-routing-request-id": "WESTUS2:20210712T215420Z:f7219b1e-7785-466d-8a70-0601a395ac2f" }, "ResponseBody": { "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", @@ -2669,9 +797,9 @@ "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-2b4b09829ac31944-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "e6bbc8eeb3037c8fdcd19b5221a73512", + "traceparent": "00-7ced0d9aad8fec47bc680e8ae6f9cc31-abf9cff5155fb549-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210712.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "aca31255fa4f84eb0b693731a79e9697", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -2679,23 +807,23 @@ "ResponseHeaders": { "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", "Cache-Control": "no-cache", - "client-request-id": "494b5c89-2cd5-4789-96c7-359912c0e88d", + "client-request-id": "6e83b99c-cc2e-412a-b612-6620c8fa86a6", "Content-Length": "161", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:46:52 GMT", + "Date": "Mon, 12 Jul 2021 21:54:20 GMT", "Expires": "-1", "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", "Pragma": "no-cache", - "request-id": "494b5c89-2cd5-4789-96c7-359912c0e88d", + "request-id": "6e83b99c-cc2e-412a-b612-6620c8fa86a6", "Retry-After": "10", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", "x-ba-restapi": "1.0.3.1627", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "494b5c89-2cd5-4789-96c7-359912c0e88d", - "x-ms-ratelimit-remaining-tenant-reads": "11933", - "x-ms-request-id": "westus2:494b5c89-2cd5-4789-96c7-359912c0e88d", - "x-ms-routing-request-id": "WESTUS2:20210712T024652Z:494b5c89-2cd5-4789-96c7-359912c0e88d" + "x-ms-correlation-request-id": "6e83b99c-cc2e-412a-b612-6620c8fa86a6", + "x-ms-ratelimit-remaining-tenant-reads": "11981", + "x-ms-request-id": "westus2:6e83b99c-cc2e-412a-b612-6620c8fa86a6", + "x-ms-routing-request-id": "WESTUS2:20210712T215421Z:6e83b99c-cc2e-412a-b612-6620c8fa86a6" }, "ResponseBody": { "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", @@ -2708,9 +836,9 @@ "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-4945dd01c9ba504d-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "a3a6c19ee518a3300abb25ff9526dc32", + "traceparent": "00-7ced0d9aad8fec47bc680e8ae6f9cc31-21ab150c4c67a042-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210712.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "47ba5261d957f85ff70608ff4d3c3d0e", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -2718,23 +846,23 @@ "ResponseHeaders": { "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", "Cache-Control": "no-cache", - "client-request-id": "0e0daeba-d37e-402a-abaa-3fbc9ad634de", + "client-request-id": "91762829-a61b-4f11-8d8e-f7b81f1294e7", "Content-Length": "161", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:46:53 GMT", + "Date": "Mon, 12 Jul 2021 21:54:21 GMT", "Expires": "-1", "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", "Pragma": "no-cache", - "request-id": "0e0daeba-d37e-402a-abaa-3fbc9ad634de", + "request-id": "91762829-a61b-4f11-8d8e-f7b81f1294e7", "Retry-After": "10", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", "x-ba-restapi": "1.0.3.1627", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "0e0daeba-d37e-402a-abaa-3fbc9ad634de", - "x-ms-ratelimit-remaining-tenant-reads": "11932", - "x-ms-request-id": "westus2:0e0daeba-d37e-402a-abaa-3fbc9ad634de", - "x-ms-routing-request-id": "WESTUS2:20210712T024654Z:0e0daeba-d37e-402a-abaa-3fbc9ad634de" + "x-ms-correlation-request-id": "91762829-a61b-4f11-8d8e-f7b81f1294e7", + "x-ms-ratelimit-remaining-tenant-reads": "11980", + "x-ms-request-id": "westus2:91762829-a61b-4f11-8d8e-f7b81f1294e7", + "x-ms-routing-request-id": "WESTUS2:20210712T215422Z:91762829-a61b-4f11-8d8e-f7b81f1294e7" }, "ResponseBody": { "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", @@ -2747,9 +875,9 @@ "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-eb93ae18eb8aca4c-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "93a09dce315b40c31d3b7043d03319b1", + "traceparent": "00-7ced0d9aad8fec47bc680e8ae6f9cc31-06f2ab4ac4ede142-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210712.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "9507d9a6dd89040ae8d1a9df2139ec9c", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -2757,23 +885,23 @@ "ResponseHeaders": { "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", "Cache-Control": "no-cache", - "client-request-id": "56b7d2a2-8f3b-4325-a064-88db594cfa8e", + "client-request-id": "b07312b9-4460-4249-931b-5e0f18e36aa6", "Content-Length": "161", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:46:54 GMT", + "Date": "Mon, 12 Jul 2021 21:54:23 GMT", "Expires": "-1", "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", "Pragma": "no-cache", - "request-id": "56b7d2a2-8f3b-4325-a064-88db594cfa8e", + "request-id": "b07312b9-4460-4249-931b-5e0f18e36aa6", "Retry-After": "10", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", "x-ba-restapi": "1.0.3.1627", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "56b7d2a2-8f3b-4325-a064-88db594cfa8e", - "x-ms-ratelimit-remaining-tenant-reads": "11931", - "x-ms-request-id": "westus2:56b7d2a2-8f3b-4325-a064-88db594cfa8e", - "x-ms-routing-request-id": "WESTUS2:20210712T024655Z:56b7d2a2-8f3b-4325-a064-88db594cfa8e" + "x-ms-correlation-request-id": "b07312b9-4460-4249-931b-5e0f18e36aa6", + "x-ms-ratelimit-remaining-tenant-reads": "11979", + "x-ms-request-id": "westus2:b07312b9-4460-4249-931b-5e0f18e36aa6", + "x-ms-routing-request-id": "WESTUS2:20210712T215423Z:b07312b9-4460-4249-931b-5e0f18e36aa6" }, "ResponseBody": { "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", @@ -2786,9 +914,9 @@ "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-a2e1b83b99234541-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "986c81e432db09589717db488d8fe6b6", + "traceparent": "00-7ced0d9aad8fec47bc680e8ae6f9cc31-484d8a3877678741-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210712.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "f947258a76677b27b3abb448f2eb37cf", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -2796,23 +924,23 @@ "ResponseHeaders": { "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827?api-version=2021-04-01", "Cache-Control": "no-cache", - "client-request-id": "73a4c8cb-9a0a-4b0e-ab26-79726268590e", + "client-request-id": "b58da0f9-53c0-410c-8316-6a09ff860415", "Content-Length": "161", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:46:55 GMT", + "Date": "Mon, 12 Jul 2021 21:54:24 GMT", "Expires": "-1", "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-827?api-version=2021-04-01", "Pragma": "no-cache", - "request-id": "73a4c8cb-9a0a-4b0e-ab26-79726268590e", + "request-id": "b58da0f9-53c0-410c-8316-6a09ff860415", "Retry-After": "10", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", "x-ba-restapi": "1.0.3.1627", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "73a4c8cb-9a0a-4b0e-ab26-79726268590e", - "x-ms-ratelimit-remaining-tenant-reads": "11930", - "x-ms-request-id": "westus2:73a4c8cb-9a0a-4b0e-ab26-79726268590e", - "x-ms-routing-request-id": "WESTUS2:20210712T024656Z:73a4c8cb-9a0a-4b0e-ab26-79726268590e" + "x-ms-correlation-request-id": "b58da0f9-53c0-410c-8316-6a09ff860415", + "x-ms-ratelimit-remaining-tenant-reads": "11978", + "x-ms-request-id": "westus2:b58da0f9-53c0-410c-8316-6a09ff860415", + "x-ms-routing-request-id": "WESTUS2:20210712T215425Z:b58da0f9-53c0-410c-8316-6a09ff860415" }, "ResponseBody": { "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", @@ -2825,30 +953,30 @@ "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-b3d9f9c3bae73742-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "838368f5a2076db6fd6686dd74ecd3d6", + "traceparent": "00-7ced0d9aad8fec47bc680e8ae6f9cc31-ebfbd2787b9c0940-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210712.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "ce8b282b0196830d47b55f85307fd6bd", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "client-request-id": "85c6a91b-337a-4576-8e1c-5a16646eb3b9", + "client-request-id": "0bfcc9e4-7781-4099-b713-edf5cca9ffcc", "Content-Length": "380", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:46:57 GMT", + "Date": "Mon, 12 Jul 2021 21:54:25 GMT", "Expires": "-1", "Pragma": "no-cache", - "request-id": "85c6a91b-337a-4576-8e1c-5a16646eb3b9", + "request-id": "0bfcc9e4-7781-4099-b713-edf5cca9ffcc", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", "x-ba-restapi": "1.0.3.1627", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "85c6a91b-337a-4576-8e1c-5a16646eb3b9", - "x-ms-ratelimit-remaining-tenant-reads": "11929", - "x-ms-request-id": "westus2:85c6a91b-337a-4576-8e1c-5a16646eb3b9", - "x-ms-routing-request-id": "WESTUS2:20210712T024657Z:85c6a91b-337a-4576-8e1c-5a16646eb3b9" + "x-ms-correlation-request-id": "0bfcc9e4-7781-4099-b713-edf5cca9ffcc", + "x-ms-ratelimit-remaining-tenant-reads": "11977", + "x-ms-request-id": "westus2:0bfcc9e4-7781-4099-b713-edf5cca9ffcc", + "x-ms-routing-request-id": "WESTUS2:20210712T215426Z:0bfcc9e4-7781-4099-b713-edf5cca9ffcc" }, "ResponseBody": { "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-827", @@ -2858,8 +986,8 @@ "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "displayName": "mgmt-group-827", "details": { - "version": 11, - "updatedTime": "2021-07-12T02:46:41.3959907Z", + "version": 13, + "updatedTime": "2021-07-12T21:54:09.0851566Z", "updatedBy": "3b10dae3-28cf-49a7-a8df-8fbae3e77f27" } } @@ -2870,30 +998,30 @@ "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-ea58924b214abb428d696373e9846f16-ce056853d9d12540-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "131b74a144b99b574496fb43557bb38d", + "traceparent": "00-7ced0d9aad8fec47bc680e8ae6f9cc31-cd279e05b230e445-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210712.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "27746c1a43f42fa7b18ce1de28c112fc", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "client-request-id": "a61b3a74-17fc-4eaa-a14f-35eed0c37662", + "client-request-id": "2ccfa28d-26a4-4a1d-93bb-60990fdcb2e0", "Content-Length": "563", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:46:57 GMT", + "Date": "Mon, 12 Jul 2021 21:54:25 GMT", "Expires": "-1", "Pragma": "no-cache", - "request-id": "a61b3a74-17fc-4eaa-a14f-35eed0c37662", + "request-id": "2ccfa28d-26a4-4a1d-93bb-60990fdcb2e0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", "x-ba-restapi": "1.0.3.1627", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "a61b3a74-17fc-4eaa-a14f-35eed0c37662", - "x-ms-ratelimit-remaining-tenant-reads": "11928", - "x-ms-request-id": "westus2:a61b3a74-17fc-4eaa-a14f-35eed0c37662", - "x-ms-routing-request-id": "WESTUS2:20210712T024657Z:a61b3a74-17fc-4eaa-a14f-35eed0c37662" + "x-ms-correlation-request-id": "2ccfa28d-26a4-4a1d-93bb-60990fdcb2e0", + "x-ms-ratelimit-remaining-tenant-reads": "11976", + "x-ms-request-id": "westus2:2ccfa28d-26a4-4a1d-93bb-60990fdcb2e0", + "x-ms-routing-request-id": "WESTUS2:20210712T215426Z:2ccfa28d-26a4-4a1d-93bb-60990fdcb2e0" }, "ResponseBody": { "id": "/providers/Microsoft.Management/managementGroups/mgmt-group-827", @@ -2903,8 +1031,8 @@ "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "displayName": "mgmt-group-827", "details": { - "version": 11, - "updatedTime": "2021-07-12T02:46:41.3959907Z", + "version": 13, + "updatedTime": "2021-07-12T21:54:09.0851566Z", "updatedBy": "3b10dae3-28cf-49a7-a8df-8fbae3e77f27", "parent": { "id": "/providers/Microsoft.Management/managementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47", @@ -2921,30 +1049,30 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-8ef3bcf5f46d484a97aa21b8a5399323-fd7e36cf5087414b-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "674eba5495af42aacaff9a75ac7b94ab", + "traceparent": "00-7c2609f9dc863b438c022395696e3f19-72f35c1142c13f4a-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210712.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "f9b4da9a1eae890618c4b2b117a24b34", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "client-request-id": "992a5378-115e-42ef-842b-e25d501e94b9", + "client-request-id": "5c9cf95e-75bb-4bc1-9394-be29030d468a", "Content-Length": "563", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:46:57 GMT", + "Date": "Mon, 12 Jul 2021 21:54:25 GMT", "Expires": "-1", "Pragma": "no-cache", - "request-id": "992a5378-115e-42ef-842b-e25d501e94b9", + "request-id": "5c9cf95e-75bb-4bc1-9394-be29030d468a", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", "x-ba-restapi": "1.0.3.1627", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "992a5378-115e-42ef-842b-e25d501e94b9", - "x-ms-ratelimit-remaining-tenant-reads": "11927", - "x-ms-request-id": "westus2:992a5378-115e-42ef-842b-e25d501e94b9", - "x-ms-routing-request-id": "WESTUS2:20210712T024657Z:992a5378-115e-42ef-842b-e25d501e94b9" + "x-ms-correlation-request-id": "5c9cf95e-75bb-4bc1-9394-be29030d468a", + "x-ms-ratelimit-remaining-tenant-reads": "11975", + "x-ms-request-id": "westus2:5c9cf95e-75bb-4bc1-9394-be29030d468a", + "x-ms-routing-request-id": "WESTUS2:20210712T215426Z:5c9cf95e-75bb-4bc1-9394-be29030d468a" }, "ResponseBody": { "id": "/providers/Microsoft.Management/managementGroups/mgmt-group-827", @@ -2954,8 +1082,8 @@ "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "displayName": "mgmt-group-827", "details": { - "version": 11, - "updatedTime": "2021-07-12T02:46:41.3959907Z", + "version": 13, + "updatedTime": "2021-07-12T21:54:09.0851566Z", "updatedBy": "3b10dae3-28cf-49a7-a8df-8fbae3e77f27", "parent": { "id": "/providers/Microsoft.Management/managementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47", diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/ManagementGroupContainerTests(True)Async.json b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/ManagementGroupContainerTests(True)Async.json index 8a88b22682cad..ed8838d6a2476 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/ManagementGroupContainerTests(True)Async.json +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/tests/SessionRecords/ManagementGroupContainerTests/ManagementGroupContainerTests(True)Async.json @@ -6,7 +6,7 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210712.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "b6d469f11bdaaf1dba903647d61c65db", "x-ms-return-client-request-id": "true" }, @@ -14,17 +14,17 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "450", + "Content-Length": "468", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:43:05 GMT", + "Date": "Mon, 12 Jul 2021 21:54:43 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "bac0ae15-4450-4eae-adc5-2160598e4bbb", + "x-ms-correlation-request-id": "d56117ec-03b9-4a1c-9686-bb611c0be605", "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "bac0ae15-4450-4eae-adc5-2160598e4bbb", - "x-ms-routing-request-id": "WESTUS2:20210712T024305Z:bac0ae15-4450-4eae-adc5-2160598e4bbb" + "x-ms-request-id": "d56117ec-03b9-4a1c-9686-bb611c0be605", + "x-ms-routing-request-id": "WESTUS2:20210712T215444Z:d56117ec-03b9-4a1c-9686-bb611c0be605" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", @@ -36,7 +36,7 @@ }, "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", - "displayName": "Azure SDK sandbox", + "displayName": ".NET Mgmt SDK Test with TTL = 1 Day", "state": "Enabled", "subscriptionPolicies": { "locationPlacementId": "Internal_2014-09-01", @@ -53,8 +53,8 @@ "Authorization": "Sanitized", "Content-Length": "17", "Content-Type": "application/json", - "traceparent": "00-156e72bd0a64d14ab6310bad014bc808-d4d8cea2ddbbbe47-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-17b2a62abf4a3b439134f9a1b5d937bb-862a80010f508e46-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210712.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "cac2c81daf6ab1916efff6a25d5c1843", "x-ms-return-client-request-id": "true" }, @@ -65,23 +65,23 @@ "ResponseHeaders": { "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", "Cache-Control": "no-cache", - "client-request-id": "450970f6-9e7f-4ba0-a750-ca5806a055bf", + "client-request-id": "1aef2ea1-ec33-4f01-a113-b99c31ba2294", "Content-Length": "167", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:43:06 GMT", + "Date": "Mon, 12 Jul 2021 21:54:45 GMT", "Expires": "-1", "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-7077?api-version=2021-04-01", "Pragma": "no-cache", - "request-id": "450970f6-9e7f-4ba0-a750-ca5806a055bf", + "request-id": "1aef2ea1-ec33-4f01-a113-b99c31ba2294", "Retry-After": "10", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "x-ba-restapi": "1.0.3.1627", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "450970f6-9e7f-4ba0-a750-ca5806a055bf", + "x-ms-correlation-request-id": "1aef2ea1-ec33-4f01-a113-b99c31ba2294", "x-ms-ratelimit-remaining-managementgroups-requests": "59", "x-ms-ratelimit-remaining-tenant-writes": "1199", - "x-ms-request-id": "westus2:450970f6-9e7f-4ba0-a750-ca5806a055bf", - "x-ms-routing-request-id": "WESTUS2:20210712T024307Z:450970f6-9e7f-4ba0-a750-ca5806a055bf" + "x-ms-request-id": "westus2:1aef2ea1-ec33-4f01-a113-b99c31ba2294", + "x-ms-routing-request-id": "WESTUS2:20210712T215445Z:1aef2ea1-ec33-4f01-a113-b99c31ba2294" }, "ResponseBody": { "id": "/providers/Microsoft.Management/managementGroups/mgmt-group-7077", @@ -95,8 +95,8 @@ "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-156e72bd0a64d14ab6310bad014bc808-1e6a4265bbd74047-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-17b2a62abf4a3b439134f9a1b5d937bb-1cf4c7bdcc6f424b-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210712.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "c84796b8b131b98642046b1c260c5c34", "x-ms-return-client-request-id": "true" }, @@ -105,23 +105,23 @@ "ResponseHeaders": { "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", "Cache-Control": "no-cache", - "client-request-id": "9bae9f38-1eb8-4b0a-9f82-c31ae8209f43", + "client-request-id": "1982c8ec-fe3e-40bc-9755-d652f61de23c", "Content-Length": "166", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:43:06 GMT", + "Date": "Mon, 12 Jul 2021 21:54:46 GMT", "Expires": "-1", "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-7077?api-version=2021-04-01", "Pragma": "no-cache", - "request-id": "9bae9f38-1eb8-4b0a-9f82-c31ae8209f43", + "request-id": "1982c8ec-fe3e-40bc-9755-d652f61de23c", "Retry-After": "10", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", "x-ba-restapi": "1.0.3.1627", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "9bae9f38-1eb8-4b0a-9f82-c31ae8209f43", + "x-ms-correlation-request-id": "1982c8ec-fe3e-40bc-9755-d652f61de23c", "x-ms-ratelimit-remaining-tenant-reads": "11999", - "x-ms-request-id": "westus2:9bae9f38-1eb8-4b0a-9f82-c31ae8209f43", - "x-ms-routing-request-id": "WESTUS2:20210712T024307Z:9bae9f38-1eb8-4b0a-9f82-c31ae8209f43" + "x-ms-request-id": "westus2:1982c8ec-fe3e-40bc-9755-d652f61de23c", + "x-ms-routing-request-id": "WESTUS2:20210712T215446Z:1982c8ec-fe3e-40bc-9755-d652f61de23c" }, "ResponseBody": { "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077", @@ -134,8 +134,8 @@ "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-156e72bd0a64d14ab6310bad014bc808-b5a73bd6df3c494c-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-17b2a62abf4a3b439134f9a1b5d937bb-ddaa4360e3430245-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210712.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "6026041e5210512bbb14b468d7063aa9", "x-ms-return-client-request-id": "true" }, @@ -144,23 +144,23 @@ "ResponseHeaders": { "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", "Cache-Control": "no-cache", - "client-request-id": "ef9ac5cb-43c3-4e6c-babd-43fc59d1abf7", + "client-request-id": "1c6a4246-7267-4e98-9fd2-052e4e393e98", "Content-Length": "166", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:43:08 GMT", + "Date": "Mon, 12 Jul 2021 21:54:47 GMT", "Expires": "-1", "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-7077?api-version=2021-04-01", "Pragma": "no-cache", - "request-id": "ef9ac5cb-43c3-4e6c-babd-43fc59d1abf7", + "request-id": "1c6a4246-7267-4e98-9fd2-052e4e393e98", "Retry-After": "10", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", "x-ba-restapi": "1.0.3.1627", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "ef9ac5cb-43c3-4e6c-babd-43fc59d1abf7", + "x-ms-correlation-request-id": "1c6a4246-7267-4e98-9fd2-052e4e393e98", "x-ms-ratelimit-remaining-tenant-reads": "11998", - "x-ms-request-id": "westus2:ef9ac5cb-43c3-4e6c-babd-43fc59d1abf7", - "x-ms-routing-request-id": "WESTUS2:20210712T024308Z:ef9ac5cb-43c3-4e6c-babd-43fc59d1abf7" + "x-ms-request-id": "westus2:1c6a4246-7267-4e98-9fd2-052e4e393e98", + "x-ms-routing-request-id": "WESTUS2:20210712T215447Z:1c6a4246-7267-4e98-9fd2-052e4e393e98" }, "ResponseBody": { "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077", @@ -173,8 +173,8 @@ "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-156e72bd0a64d14ab6310bad014bc808-7637c1635575314a-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-17b2a62abf4a3b439134f9a1b5d937bb-1d9b16762e797342-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210712.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "c7ea4e444f15fe12369b45c661f18808", "x-ms-return-client-request-id": "true" }, @@ -183,23 +183,23 @@ "ResponseHeaders": { "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", "Cache-Control": "no-cache", - "client-request-id": "8b65a99b-ce05-485e-800f-f8c5d5d5273a", + "client-request-id": "48a6fe78-38e6-495b-b9cb-a6c1e440a72e", "Content-Length": "163", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:43:09 GMT", + "Date": "Mon, 12 Jul 2021 21:54:48 GMT", "Expires": "-1", "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-7077?api-version=2021-04-01", "Pragma": "no-cache", - "request-id": "8b65a99b-ce05-485e-800f-f8c5d5d5273a", + "request-id": "48a6fe78-38e6-495b-b9cb-a6c1e440a72e", "Retry-After": "10", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", "x-ba-restapi": "1.0.3.1627", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "8b65a99b-ce05-485e-800f-f8c5d5d5273a", + "x-ms-correlation-request-id": "48a6fe78-38e6-495b-b9cb-a6c1e440a72e", "x-ms-ratelimit-remaining-tenant-reads": "11997", - "x-ms-request-id": "westus2:8b65a99b-ce05-485e-800f-f8c5d5d5273a", - "x-ms-routing-request-id": "WESTUS2:20210712T024309Z:8b65a99b-ce05-485e-800f-f8c5d5d5273a" + "x-ms-request-id": "westus2:48a6fe78-38e6-495b-b9cb-a6c1e440a72e", + "x-ms-routing-request-id": "WESTUS2:20210712T215448Z:48a6fe78-38e6-495b-b9cb-a6c1e440a72e" }, "ResponseBody": { "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077", @@ -212,8 +212,8 @@ "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-156e72bd0a64d14ab6310bad014bc808-7bdf5cfda7fad642-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-17b2a62abf4a3b439134f9a1b5d937bb-9a332321da56814f-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210712.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "736da3a5599f65986af60c1cfc1de23c", "x-ms-return-client-request-id": "true" }, @@ -222,23 +222,23 @@ "ResponseHeaders": { "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", "Cache-Control": "no-cache", - "client-request-id": "210ad7a0-e162-4e1b-b3be-14e328d97dae", + "client-request-id": "94c3d700-952f-486b-9311-7af9efcac448", "Content-Length": "163", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:43:10 GMT", + "Date": "Mon, 12 Jul 2021 21:54:49 GMT", "Expires": "-1", "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-7077?api-version=2021-04-01", "Pragma": "no-cache", - "request-id": "210ad7a0-e162-4e1b-b3be-14e328d97dae", + "request-id": "94c3d700-952f-486b-9311-7af9efcac448", "Retry-After": "10", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", "x-ba-restapi": "1.0.3.1627", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "210ad7a0-e162-4e1b-b3be-14e328d97dae", + "x-ms-correlation-request-id": "94c3d700-952f-486b-9311-7af9efcac448", "x-ms-ratelimit-remaining-tenant-reads": "11996", - "x-ms-request-id": "westus2:210ad7a0-e162-4e1b-b3be-14e328d97dae", - "x-ms-routing-request-id": "WESTUS2:20210712T024310Z:210ad7a0-e162-4e1b-b3be-14e328d97dae" + "x-ms-request-id": "westus2:94c3d700-952f-486b-9311-7af9efcac448", + "x-ms-routing-request-id": "WESTUS2:20210712T215449Z:94c3d700-952f-486b-9311-7af9efcac448" }, "ResponseBody": { "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077", @@ -251,8 +251,8 @@ "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-156e72bd0a64d14ab6310bad014bc808-8b5e605b817b0745-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-17b2a62abf4a3b439134f9a1b5d937bb-fef28436fdbf9f41-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210712.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "d7d7c1ca9422ce1ff1272a740d65efca", "x-ms-return-client-request-id": "true" }, @@ -261,23 +261,23 @@ "ResponseHeaders": { "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", "Cache-Control": "no-cache", - "client-request-id": "3ee50d53-79fe-4ffd-95ad-3bf2bd68faba", + "client-request-id": "daefb3d9-0757-4a99-acc1-2d486009dfdc", "Content-Length": "163", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:43:11 GMT", + "Date": "Mon, 12 Jul 2021 21:54:50 GMT", "Expires": "-1", "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-7077?api-version=2021-04-01", "Pragma": "no-cache", - "request-id": "3ee50d53-79fe-4ffd-95ad-3bf2bd68faba", + "request-id": "daefb3d9-0757-4a99-acc1-2d486009dfdc", "Retry-After": "10", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", "x-ba-restapi": "1.0.3.1627", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "3ee50d53-79fe-4ffd-95ad-3bf2bd68faba", + "x-ms-correlation-request-id": "daefb3d9-0757-4a99-acc1-2d486009dfdc", "x-ms-ratelimit-remaining-tenant-reads": "11995", - "x-ms-request-id": "westus2:3ee50d53-79fe-4ffd-95ad-3bf2bd68faba", - "x-ms-routing-request-id": "WESTUS2:20210712T024311Z:3ee50d53-79fe-4ffd-95ad-3bf2bd68faba" + "x-ms-request-id": "westus2:daefb3d9-0757-4a99-acc1-2d486009dfdc", + "x-ms-routing-request-id": "WESTUS2:20210712T215450Z:daefb3d9-0757-4a99-acc1-2d486009dfdc" }, "ResponseBody": { "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077", @@ -290,8 +290,8 @@ "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-156e72bd0a64d14ab6310bad014bc808-531fde91f925d445-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-17b2a62abf4a3b439134f9a1b5d937bb-0952987dd9424243-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210712.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "34c3ab8cc798eb09b6855c1f42f50118", "x-ms-return-client-request-id": "true" }, @@ -300,23 +300,23 @@ "ResponseHeaders": { "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", "Cache-Control": "no-cache", - "client-request-id": "004376b5-692c-4267-bf61-9f0e9c1045fd", + "client-request-id": "5873aad4-3421-4db3-852c-61e6f7f04ffc", "Content-Length": "163", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:43:12 GMT", + "Date": "Mon, 12 Jul 2021 21:54:51 GMT", "Expires": "-1", "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-7077?api-version=2021-04-01", "Pragma": "no-cache", - "request-id": "004376b5-692c-4267-bf61-9f0e9c1045fd", + "request-id": "5873aad4-3421-4db3-852c-61e6f7f04ffc", "Retry-After": "10", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", "x-ba-restapi": "1.0.3.1627", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "004376b5-692c-4267-bf61-9f0e9c1045fd", + "x-ms-correlation-request-id": "5873aad4-3421-4db3-852c-61e6f7f04ffc", "x-ms-ratelimit-remaining-tenant-reads": "11994", - "x-ms-request-id": "westus2:004376b5-692c-4267-bf61-9f0e9c1045fd", - "x-ms-routing-request-id": "WESTUS2:20210712T024313Z:004376b5-692c-4267-bf61-9f0e9c1045fd" + "x-ms-request-id": "westus2:5873aad4-3421-4db3-852c-61e6f7f04ffc", + "x-ms-routing-request-id": "WESTUS2:20210712T215451Z:5873aad4-3421-4db3-852c-61e6f7f04ffc" }, "ResponseBody": { "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077", @@ -329,8 +329,8 @@ "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-156e72bd0a64d14ab6310bad014bc808-596981f0abfeb141-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-17b2a62abf4a3b439134f9a1b5d937bb-70765b5e66dbff4e-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210712.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "9ffb09b9b01910e6849e81772f235704", "x-ms-return-client-request-id": "true" }, @@ -339,23 +339,23 @@ "ResponseHeaders": { "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", "Cache-Control": "no-cache", - "client-request-id": "c3900b3f-2024-42b0-9705-0d991aa122ad", + "client-request-id": "97988cb8-6e82-45de-8ec3-5f3bf7f22fa6", "Content-Length": "163", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:43:13 GMT", + "Date": "Mon, 12 Jul 2021 21:54:52 GMT", "Expires": "-1", "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-7077?api-version=2021-04-01", "Pragma": "no-cache", - "request-id": "c3900b3f-2024-42b0-9705-0d991aa122ad", + "request-id": "97988cb8-6e82-45de-8ec3-5f3bf7f22fa6", "Retry-After": "10", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", "x-ba-restapi": "1.0.3.1627", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "c3900b3f-2024-42b0-9705-0d991aa122ad", + "x-ms-correlation-request-id": "97988cb8-6e82-45de-8ec3-5f3bf7f22fa6", "x-ms-ratelimit-remaining-tenant-reads": "11993", - "x-ms-request-id": "westus2:c3900b3f-2024-42b0-9705-0d991aa122ad", - "x-ms-routing-request-id": "WESTUS2:20210712T024314Z:c3900b3f-2024-42b0-9705-0d991aa122ad" + "x-ms-request-id": "westus2:97988cb8-6e82-45de-8ec3-5f3bf7f22fa6", + "x-ms-routing-request-id": "WESTUS2:20210712T215452Z:97988cb8-6e82-45de-8ec3-5f3bf7f22fa6" }, "ResponseBody": { "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077", @@ -368,8 +368,8 @@ "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-156e72bd0a64d14ab6310bad014bc808-1e300ad9d948b34f-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-17b2a62abf4a3b439134f9a1b5d937bb-65487ad7dc8df64a-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210712.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "50904206ae5a03a3b7ec219d37ff8bfc", "x-ms-return-client-request-id": "true" }, @@ -378,23 +378,23 @@ "ResponseHeaders": { "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", "Cache-Control": "no-cache", - "client-request-id": "2c96e800-7d97-4f66-9a36-7c5d6f9c62e2", + "client-request-id": "9b6aee7f-54a0-4720-a0ef-bb8e6deea4d8", "Content-Length": "163", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:43:14 GMT", + "Date": "Mon, 12 Jul 2021 21:54:53 GMT", "Expires": "-1", "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-7077?api-version=2021-04-01", "Pragma": "no-cache", - "request-id": "2c96e800-7d97-4f66-9a36-7c5d6f9c62e2", + "request-id": "9b6aee7f-54a0-4720-a0ef-bb8e6deea4d8", "Retry-After": "10", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", "x-ba-restapi": "1.0.3.1627", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "2c96e800-7d97-4f66-9a36-7c5d6f9c62e2", + "x-ms-correlation-request-id": "9b6aee7f-54a0-4720-a0ef-bb8e6deea4d8", "x-ms-ratelimit-remaining-tenant-reads": "11992", - "x-ms-request-id": "westus2:2c96e800-7d97-4f66-9a36-7c5d6f9c62e2", - "x-ms-routing-request-id": "WESTUS2:20210712T024315Z:2c96e800-7d97-4f66-9a36-7c5d6f9c62e2" + "x-ms-request-id": "westus2:9b6aee7f-54a0-4720-a0ef-bb8e6deea4d8", + "x-ms-routing-request-id": "WESTUS2:20210712T215453Z:9b6aee7f-54a0-4720-a0ef-bb8e6deea4d8" }, "ResponseBody": { "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077", @@ -407,8 +407,8 @@ "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-156e72bd0a64d14ab6310bad014bc808-b3332fba39c59a43-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-17b2a62abf4a3b439134f9a1b5d937bb-2c755fb3b971ab48-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210712.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "04bb11264f6adbb0c5b2affa4692bb93", "x-ms-return-client-request-id": "true" }, @@ -417,23 +417,23 @@ "ResponseHeaders": { "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", "Cache-Control": "no-cache", - "client-request-id": "70d2cf0b-4abd-43a0-a76c-e7b8b46c8b40", + "client-request-id": "ad36b47b-130e-4501-8b72-08d62d36df6d", "Content-Length": "163", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:43:15 GMT", + "Date": "Mon, 12 Jul 2021 21:54:55 GMT", "Expires": "-1", "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-7077?api-version=2021-04-01", "Pragma": "no-cache", - "request-id": "70d2cf0b-4abd-43a0-a76c-e7b8b46c8b40", + "request-id": "ad36b47b-130e-4501-8b72-08d62d36df6d", "Retry-After": "10", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", "x-ba-restapi": "1.0.3.1627", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "70d2cf0b-4abd-43a0-a76c-e7b8b46c8b40", + "x-ms-correlation-request-id": "ad36b47b-130e-4501-8b72-08d62d36df6d", "x-ms-ratelimit-remaining-tenant-reads": "11991", - "x-ms-request-id": "westus2:70d2cf0b-4abd-43a0-a76c-e7b8b46c8b40", - "x-ms-routing-request-id": "WESTUS2:20210712T024316Z:70d2cf0b-4abd-43a0-a76c-e7b8b46c8b40" + "x-ms-request-id": "westus2:ad36b47b-130e-4501-8b72-08d62d36df6d", + "x-ms-routing-request-id": "WESTUS2:20210712T215455Z:ad36b47b-130e-4501-8b72-08d62d36df6d" }, "ResponseBody": { "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077", @@ -446,8 +446,8 @@ "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-156e72bd0a64d14ab6310bad014bc808-8d7ad414c2f6ed4d-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-17b2a62abf4a3b439134f9a1b5d937bb-5fdd4a65bfb13948-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210712.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "0018582db0640bbe65f8e72d8f48d884", "x-ms-return-client-request-id": "true" }, @@ -456,23 +456,23 @@ "ResponseHeaders": { "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", "Cache-Control": "no-cache", - "client-request-id": "3de2dee3-ff34-4d6a-ba8d-ae8ecf0c28db", + "client-request-id": "26c80366-d334-45d8-ae1d-d37ff369a10d", "Content-Length": "163", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:43:17 GMT", + "Date": "Mon, 12 Jul 2021 21:54:56 GMT", "Expires": "-1", "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-7077?api-version=2021-04-01", "Pragma": "no-cache", - "request-id": "3de2dee3-ff34-4d6a-ba8d-ae8ecf0c28db", + "request-id": "26c80366-d334-45d8-ae1d-d37ff369a10d", "Retry-After": "10", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", "x-ba-restapi": "1.0.3.1627", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "3de2dee3-ff34-4d6a-ba8d-ae8ecf0c28db", + "x-ms-correlation-request-id": "26c80366-d334-45d8-ae1d-d37ff369a10d", "x-ms-ratelimit-remaining-tenant-reads": "11990", - "x-ms-request-id": "westus2:3de2dee3-ff34-4d6a-ba8d-ae8ecf0c28db", - "x-ms-routing-request-id": "WESTUS2:20210712T024317Z:3de2dee3-ff34-4d6a-ba8d-ae8ecf0c28db" + "x-ms-request-id": "westus2:26c80366-d334-45d8-ae1d-d37ff369a10d", + "x-ms-routing-request-id": "WESTUS2:20210712T215456Z:26c80366-d334-45d8-ae1d-d37ff369a10d" }, "ResponseBody": { "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077", @@ -485,8 +485,8 @@ "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-156e72bd0a64d14ab6310bad014bc808-763fe9689dbfe74d-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-17b2a62abf4a3b439134f9a1b5d937bb-2f1b0a3accd2a04d-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210712.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "1e5085135367b69a91b48aa8fea9bc25", "x-ms-return-client-request-id": "true" }, @@ -495,23 +495,23 @@ "ResponseHeaders": { "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", "Cache-Control": "no-cache", - "client-request-id": "45ae4b50-e6d4-4c32-b987-882c90660d0c", + "client-request-id": "0af4f6e0-345f-4b72-91ce-0567d7b422bf", "Content-Length": "163", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:43:18 GMT", + "Date": "Mon, 12 Jul 2021 21:54:57 GMT", "Expires": "-1", "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-7077?api-version=2021-04-01", "Pragma": "no-cache", - "request-id": "45ae4b50-e6d4-4c32-b987-882c90660d0c", + "request-id": "0af4f6e0-345f-4b72-91ce-0567d7b422bf", "Retry-After": "10", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", "x-ba-restapi": "1.0.3.1627", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "45ae4b50-e6d4-4c32-b987-882c90660d0c", + "x-ms-correlation-request-id": "0af4f6e0-345f-4b72-91ce-0567d7b422bf", "x-ms-ratelimit-remaining-tenant-reads": "11989", - "x-ms-request-id": "westus2:45ae4b50-e6d4-4c32-b987-882c90660d0c", - "x-ms-routing-request-id": "WESTUS2:20210712T024318Z:45ae4b50-e6d4-4c32-b987-882c90660d0c" + "x-ms-request-id": "westus2:0af4f6e0-345f-4b72-91ce-0567d7b422bf", + "x-ms-routing-request-id": "WESTUS2:20210712T215457Z:0af4f6e0-345f-4b72-91ce-0567d7b422bf" }, "ResponseBody": { "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077", @@ -524,8 +524,8 @@ "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-156e72bd0a64d14ab6310bad014bc808-2da6eb4a8769c745-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-17b2a62abf4a3b439134f9a1b5d937bb-b08c786bbf884346-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210712.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "df708d308ae7759752b09e7168834c7d", "x-ms-return-client-request-id": "true" }, @@ -534,23 +534,23 @@ "ResponseHeaders": { "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", "Cache-Control": "no-cache", - "client-request-id": "e4897782-bc23-48af-827c-f1ea52187667", + "client-request-id": "d596f84e-59a9-411f-91e1-c586bd3ecd0b", "Content-Length": "163", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:43:19 GMT", + "Date": "Mon, 12 Jul 2021 21:54:58 GMT", "Expires": "-1", "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-7077?api-version=2021-04-01", "Pragma": "no-cache", - "request-id": "e4897782-bc23-48af-827c-f1ea52187667", + "request-id": "d596f84e-59a9-411f-91e1-c586bd3ecd0b", "Retry-After": "10", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", "x-ba-restapi": "1.0.3.1627", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "e4897782-bc23-48af-827c-f1ea52187667", + "x-ms-correlation-request-id": "d596f84e-59a9-411f-91e1-c586bd3ecd0b", "x-ms-ratelimit-remaining-tenant-reads": "11988", - "x-ms-request-id": "westus2:e4897782-bc23-48af-827c-f1ea52187667", - "x-ms-routing-request-id": "WESTUS2:20210712T024319Z:e4897782-bc23-48af-827c-f1ea52187667" + "x-ms-request-id": "westus2:d596f84e-59a9-411f-91e1-c586bd3ecd0b", + "x-ms-routing-request-id": "WESTUS2:20210712T215458Z:d596f84e-59a9-411f-91e1-c586bd3ecd0b" }, "ResponseBody": { "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077", @@ -563,8 +563,8 @@ "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-156e72bd0a64d14ab6310bad014bc808-df3df63c298d3b48-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-17b2a62abf4a3b439134f9a1b5d937bb-82a0baa8d795f241-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210712.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "c1e72bd99d41d92bbd616fb025160cbb", "x-ms-return-client-request-id": "true" }, @@ -573,23 +573,23 @@ "ResponseHeaders": { "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", "Cache-Control": "no-cache", - "client-request-id": "6cebf9c8-5903-477e-b468-77dfe26e06ff", + "client-request-id": "1552b4ce-c9ff-4486-bad2-915bc8a6c1d8", "Content-Length": "163", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:43:20 GMT", + "Date": "Mon, 12 Jul 2021 21:54:59 GMT", "Expires": "-1", "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-7077?api-version=2021-04-01", "Pragma": "no-cache", - "request-id": "6cebf9c8-5903-477e-b468-77dfe26e06ff", + "request-id": "1552b4ce-c9ff-4486-bad2-915bc8a6c1d8", "Retry-After": "10", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", "x-ba-restapi": "1.0.3.1627", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "6cebf9c8-5903-477e-b468-77dfe26e06ff", + "x-ms-correlation-request-id": "1552b4ce-c9ff-4486-bad2-915bc8a6c1d8", "x-ms-ratelimit-remaining-tenant-reads": "11987", - "x-ms-request-id": "westus2:6cebf9c8-5903-477e-b468-77dfe26e06ff", - "x-ms-routing-request-id": "WESTUS2:20210712T024320Z:6cebf9c8-5903-477e-b468-77dfe26e06ff" + "x-ms-request-id": "westus2:1552b4ce-c9ff-4486-bad2-915bc8a6c1d8", + "x-ms-routing-request-id": "WESTUS2:20210712T215459Z:1552b4ce-c9ff-4486-bad2-915bc8a6c1d8" }, "ResponseBody": { "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077", @@ -602,8 +602,8 @@ "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-156e72bd0a64d14ab6310bad014bc808-6883dbda3ee94b46-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-17b2a62abf4a3b439134f9a1b5d937bb-44e0408a8d10734d-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210712.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "01fdc23bf9d8889deddbcbb6b5284e0e", "x-ms-return-client-request-id": "true" }, @@ -612,23 +612,23 @@ "ResponseHeaders": { "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", "Cache-Control": "no-cache", - "client-request-id": "f9db5676-e0c7-4eb2-80bc-bf04fa06e46b", + "client-request-id": "72c40b2b-6a41-4433-b06a-6a5596dc3563", "Content-Length": "163", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:43:21 GMT", + "Date": "Mon, 12 Jul 2021 21:55:00 GMT", "Expires": "-1", "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-7077?api-version=2021-04-01", "Pragma": "no-cache", - "request-id": "f9db5676-e0c7-4eb2-80bc-bf04fa06e46b", + "request-id": "72c40b2b-6a41-4433-b06a-6a5596dc3563", "Retry-After": "10", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", "x-ba-restapi": "1.0.3.1627", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "f9db5676-e0c7-4eb2-80bc-bf04fa06e46b", + "x-ms-correlation-request-id": "72c40b2b-6a41-4433-b06a-6a5596dc3563", "x-ms-ratelimit-remaining-tenant-reads": "11986", - "x-ms-request-id": "westus2:f9db5676-e0c7-4eb2-80bc-bf04fa06e46b", - "x-ms-routing-request-id": "WESTUS2:20210712T024322Z:f9db5676-e0c7-4eb2-80bc-bf04fa06e46b" + "x-ms-request-id": "westus2:72c40b2b-6a41-4433-b06a-6a5596dc3563", + "x-ms-routing-request-id": "WESTUS2:20210712T215500Z:72c40b2b-6a41-4433-b06a-6a5596dc3563" }, "ResponseBody": { "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077", @@ -641,8 +641,8 @@ "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-156e72bd0a64d14ab6310bad014bc808-85c40418a172cf44-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-17b2a62abf4a3b439134f9a1b5d937bb-c168f3dba8bae24d-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210712.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "d3ce0d68fbc293e3629622851be74f3c", "x-ms-return-client-request-id": "true" }, @@ -651,23 +651,23 @@ "ResponseHeaders": { "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", "Cache-Control": "no-cache", - "client-request-id": "3cede3da-4d40-4253-b44b-5df6d98916b2", + "client-request-id": "eac1b54d-7927-400e-99cb-c1e6e8620306", "Content-Length": "163", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:43:22 GMT", + "Date": "Mon, 12 Jul 2021 21:55:01 GMT", "Expires": "-1", "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-7077?api-version=2021-04-01", "Pragma": "no-cache", - "request-id": "3cede3da-4d40-4253-b44b-5df6d98916b2", + "request-id": "eac1b54d-7927-400e-99cb-c1e6e8620306", "Retry-After": "10", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", "x-ba-restapi": "1.0.3.1627", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "3cede3da-4d40-4253-b44b-5df6d98916b2", + "x-ms-correlation-request-id": "eac1b54d-7927-400e-99cb-c1e6e8620306", "x-ms-ratelimit-remaining-tenant-reads": "11985", - "x-ms-request-id": "westus2:3cede3da-4d40-4253-b44b-5df6d98916b2", - "x-ms-routing-request-id": "WESTUS2:20210712T024323Z:3cede3da-4d40-4253-b44b-5df6d98916b2" + "x-ms-request-id": "westus2:eac1b54d-7927-400e-99cb-c1e6e8620306", + "x-ms-routing-request-id": "WESTUS2:20210712T215501Z:eac1b54d-7927-400e-99cb-c1e6e8620306" }, "ResponseBody": { "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077", @@ -680,8 +680,8 @@ "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-156e72bd0a64d14ab6310bad014bc808-7dc273c429faa14f-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-17b2a62abf4a3b439134f9a1b5d937bb-2da009a5ba8deb4b-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210712.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "a636e2a34a85e0a48e5fd366d2742494", "x-ms-return-client-request-id": "true" }, @@ -690,23 +690,23 @@ "ResponseHeaders": { "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", "Cache-Control": "no-cache", - "client-request-id": "c54f23b3-21fc-4922-884f-d87cbd8a1a91", + "client-request-id": "1688e1e5-d3a7-4d8e-b6eb-eb7dfdc8556e", "Content-Length": "163", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:43:23 GMT", + "Date": "Mon, 12 Jul 2021 21:55:02 GMT", "Expires": "-1", "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-7077?api-version=2021-04-01", "Pragma": "no-cache", - "request-id": "c54f23b3-21fc-4922-884f-d87cbd8a1a91", + "request-id": "1688e1e5-d3a7-4d8e-b6eb-eb7dfdc8556e", "Retry-After": "10", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", "x-ba-restapi": "1.0.3.1627", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "c54f23b3-21fc-4922-884f-d87cbd8a1a91", + "x-ms-correlation-request-id": "1688e1e5-d3a7-4d8e-b6eb-eb7dfdc8556e", "x-ms-ratelimit-remaining-tenant-reads": "11984", - "x-ms-request-id": "westus2:c54f23b3-21fc-4922-884f-d87cbd8a1a91", - "x-ms-routing-request-id": "WESTUS2:20210712T024324Z:c54f23b3-21fc-4922-884f-d87cbd8a1a91" + "x-ms-request-id": "westus2:1688e1e5-d3a7-4d8e-b6eb-eb7dfdc8556e", + "x-ms-routing-request-id": "WESTUS2:20210712T215502Z:1688e1e5-d3a7-4d8e-b6eb-eb7dfdc8556e" }, "ResponseBody": { "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077", @@ -719,8 +719,8 @@ "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-156e72bd0a64d14ab6310bad014bc808-668feda69b70de40-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-17b2a62abf4a3b439134f9a1b5d937bb-121c66209bd70742-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210712.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "1847601339473ff9de6a9f41d6176c06", "x-ms-return-client-request-id": "true" }, @@ -729,23 +729,23 @@ "ResponseHeaders": { "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", "Cache-Control": "no-cache", - "client-request-id": "db216db5-7e50-494b-abca-cc966a0a77c8", + "client-request-id": "63d27ed6-68ed-4c80-a9c3-18fa73504e2e", "Content-Length": "163", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:43:24 GMT", + "Date": "Mon, 12 Jul 2021 21:55:03 GMT", "Expires": "-1", "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-7077?api-version=2021-04-01", "Pragma": "no-cache", - "request-id": "db216db5-7e50-494b-abca-cc966a0a77c8", + "request-id": "63d27ed6-68ed-4c80-a9c3-18fa73504e2e", "Retry-After": "10", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", "x-ba-restapi": "1.0.3.1627", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "db216db5-7e50-494b-abca-cc966a0a77c8", + "x-ms-correlation-request-id": "63d27ed6-68ed-4c80-a9c3-18fa73504e2e", "x-ms-ratelimit-remaining-tenant-reads": "11983", - "x-ms-request-id": "westus2:db216db5-7e50-494b-abca-cc966a0a77c8", - "x-ms-routing-request-id": "WESTUS2:20210712T024325Z:db216db5-7e50-494b-abca-cc966a0a77c8" + "x-ms-request-id": "westus2:63d27ed6-68ed-4c80-a9c3-18fa73504e2e", + "x-ms-routing-request-id": "WESTUS2:20210712T215504Z:63d27ed6-68ed-4c80-a9c3-18fa73504e2e" }, "ResponseBody": { "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077", @@ -758,8 +758,8 @@ "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-156e72bd0a64d14ab6310bad014bc808-d853754aae36bc4b-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-17b2a62abf4a3b439134f9a1b5d937bb-0a830d83d0ca514e-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210712.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "d2138e8ba8f21e8868ee4563287dc0ed", "x-ms-return-client-request-id": "true" }, @@ -768,23 +768,23 @@ "ResponseHeaders": { "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", "Cache-Control": "no-cache", - "client-request-id": "90700064-6e1a-4318-9c16-15079e782b64", + "client-request-id": "5111001e-43c2-4e5f-bfd1-670f753b117f", "Content-Length": "163", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:43:25 GMT", + "Date": "Mon, 12 Jul 2021 21:55:05 GMT", "Expires": "-1", "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-7077?api-version=2021-04-01", "Pragma": "no-cache", - "request-id": "90700064-6e1a-4318-9c16-15079e782b64", + "request-id": "5111001e-43c2-4e5f-bfd1-670f753b117f", "Retry-After": "10", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", "x-ba-restapi": "1.0.3.1627", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "90700064-6e1a-4318-9c16-15079e782b64", + "x-ms-correlation-request-id": "5111001e-43c2-4e5f-bfd1-670f753b117f", "x-ms-ratelimit-remaining-tenant-reads": "11982", - "x-ms-request-id": "westus2:90700064-6e1a-4318-9c16-15079e782b64", - "x-ms-routing-request-id": "WESTUS2:20210712T024326Z:90700064-6e1a-4318-9c16-15079e782b64" + "x-ms-request-id": "westus2:5111001e-43c2-4e5f-bfd1-670f753b117f", + "x-ms-routing-request-id": "WESTUS2:20210712T215505Z:5111001e-43c2-4e5f-bfd1-670f753b117f" }, "ResponseBody": { "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077", @@ -797,8 +797,8 @@ "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-156e72bd0a64d14ab6310bad014bc808-a6bec7a3908ae24f-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-17b2a62abf4a3b439134f9a1b5d937bb-bce55e0cc8edf743-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210712.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "ba728e72379f6af5e9f6c71baa630977", "x-ms-return-client-request-id": "true" }, @@ -807,23 +807,23 @@ "ResponseHeaders": { "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", "Cache-Control": "no-cache", - "client-request-id": "31dcc41e-aebd-4789-a48d-c6d89f95d808", + "client-request-id": "db9cfccd-ff08-4ae4-ab15-35c44da5455d", "Content-Length": "163", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:43:27 GMT", + "Date": "Mon, 12 Jul 2021 21:55:06 GMT", "Expires": "-1", "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-7077?api-version=2021-04-01", "Pragma": "no-cache", - "request-id": "31dcc41e-aebd-4789-a48d-c6d89f95d808", + "request-id": "db9cfccd-ff08-4ae4-ab15-35c44da5455d", "Retry-After": "10", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", "x-ba-restapi": "1.0.3.1627", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "31dcc41e-aebd-4789-a48d-c6d89f95d808", + "x-ms-correlation-request-id": "db9cfccd-ff08-4ae4-ab15-35c44da5455d", "x-ms-ratelimit-remaining-tenant-reads": "11981", - "x-ms-request-id": "westus2:31dcc41e-aebd-4789-a48d-c6d89f95d808", - "x-ms-routing-request-id": "WESTUS2:20210712T024327Z:31dcc41e-aebd-4789-a48d-c6d89f95d808" + "x-ms-request-id": "westus2:db9cfccd-ff08-4ae4-ab15-35c44da5455d", + "x-ms-routing-request-id": "WESTUS2:20210712T215506Z:db9cfccd-ff08-4ae4-ab15-35c44da5455d" }, "ResponseBody": { "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077", @@ -836,8 +836,8 @@ "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-156e72bd0a64d14ab6310bad014bc808-bf8919ac43d3f14d-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-17b2a62abf4a3b439134f9a1b5d937bb-1d575347b9921b4b-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210712.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "43daccf252616aa1d828af58f4961761", "x-ms-return-client-request-id": "true" }, @@ -846,23 +846,23 @@ "ResponseHeaders": { "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", "Cache-Control": "no-cache", - "client-request-id": "d20b5285-a315-4d58-a617-a1dd9edd0ba3", + "client-request-id": "f7d0f086-6f0f-4c74-8bbd-7026dc22d0dc", "Content-Length": "163", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:43:28 GMT", + "Date": "Mon, 12 Jul 2021 21:55:07 GMT", "Expires": "-1", "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-7077?api-version=2021-04-01", "Pragma": "no-cache", - "request-id": "d20b5285-a315-4d58-a617-a1dd9edd0ba3", + "request-id": "f7d0f086-6f0f-4c74-8bbd-7026dc22d0dc", "Retry-After": "10", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", "x-ba-restapi": "1.0.3.1627", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "d20b5285-a315-4d58-a617-a1dd9edd0ba3", + "x-ms-correlation-request-id": "f7d0f086-6f0f-4c74-8bbd-7026dc22d0dc", "x-ms-ratelimit-remaining-tenant-reads": "11980", - "x-ms-request-id": "westus2:d20b5285-a315-4d58-a617-a1dd9edd0ba3", - "x-ms-routing-request-id": "WESTUS2:20210712T024328Z:d20b5285-a315-4d58-a617-a1dd9edd0ba3" + "x-ms-request-id": "westus2:f7d0f086-6f0f-4c74-8bbd-7026dc22d0dc", + "x-ms-routing-request-id": "WESTUS2:20210712T215507Z:f7d0f086-6f0f-4c74-8bbd-7026dc22d0dc" }, "ResponseBody": { "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077", @@ -875,108 +875,30 @@ "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-156e72bd0a64d14ab6310bad014bc808-9473d1e511140b42-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-17b2a62abf4a3b439134f9a1b5d937bb-2c3e8ac7e0887248-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210712.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "48cfb2a9b1a4536699a8e8fbe16c7305", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", - "Cache-Control": "no-cache", - "client-request-id": "041daf8c-ba34-44cd-8c72-fe1dff84def0", - "Content-Length": "163", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:43:29 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-7077?api-version=2021-04-01", - "Pragma": "no-cache", - "request-id": "041daf8c-ba34-44cd-8c72-fe1dff84def0", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "x-ba-restapi": "1.0.3.1627", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "041daf8c-ba34-44cd-8c72-fe1dff84def0", - "x-ms-ratelimit-remaining-tenant-reads": "11979", - "x-ms-request-id": "westus2:041daf8c-ba34-44cd-8c72-fe1dff84def0", - "x-ms-routing-request-id": "WESTUS2:20210712T024329Z:041daf8c-ba34-44cd-8c72-fe1dff84def0" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077", - "name": "mgmt-group-7077", - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-156e72bd0a64d14ab6310bad014bc808-95d9d934f116934d-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "5b70cee57da21f8bec08e277889c7552", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", - "Cache-Control": "no-cache", - "client-request-id": "1644065f-4f62-4eb5-9755-b95878c9e4b3", - "Content-Length": "163", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:43:30 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/mgmt-group-7077?api-version=2021-04-01", - "Pragma": "no-cache", - "request-id": "1644065f-4f62-4eb5-9755-b95878c9e4b3", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "x-ba-restapi": "1.0.3.1627", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "1644065f-4f62-4eb5-9755-b95878c9e4b3", - "x-ms-ratelimit-remaining-tenant-reads": "11978", - "x-ms-request-id": "westus2:1644065f-4f62-4eb5-9755-b95878c9e4b3", - "x-ms-routing-request-id": "WESTUS2:20210712T024331Z:1644065f-4f62-4eb5-9755-b95878c9e4b3" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077", - "name": "mgmt-group-7077", - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-156e72bd0a64d14ab6310bad014bc808-0437e347af0a6442-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "f87266dfc09341d26687aab969a6896b", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "client-request-id": "9b60e11f-a03b-4313-aa02-c6843a2a0111", + "client-request-id": "84e60f72-c163-4af7-a865-2b5bc214696d", "Content-Length": "382", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:43:31 GMT", + "Date": "Mon, 12 Jul 2021 21:55:08 GMT", "Expires": "-1", "Pragma": "no-cache", - "request-id": "9b60e11f-a03b-4313-aa02-c6843a2a0111", + "request-id": "84e60f72-c163-4af7-a865-2b5bc214696d", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", "x-ba-restapi": "1.0.3.1627", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "9b60e11f-a03b-4313-aa02-c6843a2a0111", - "x-ms-ratelimit-remaining-tenant-reads": "11977", - "x-ms-request-id": "westus2:9b60e11f-a03b-4313-aa02-c6843a2a0111", - "x-ms-routing-request-id": "WESTUS2:20210712T024332Z:9b60e11f-a03b-4313-aa02-c6843a2a0111" + "x-ms-correlation-request-id": "84e60f72-c163-4af7-a865-2b5bc214696d", + "x-ms-ratelimit-remaining-tenant-reads": "11979", + "x-ms-request-id": "westus2:84e60f72-c163-4af7-a865-2b5bc214696d", + "x-ms-routing-request-id": "WESTUS2:20210712T215508Z:84e60f72-c163-4af7-a865-2b5bc214696d" }, "ResponseBody": { "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/mgmt-group-7077", @@ -986,8 +908,8 @@ "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "displayName": "mgmt-group-7077", "details": { - "version": 2, - "updatedTime": "2021-07-12T02:43:14.2182916Z", + "version": 3, + "updatedTime": "2021-07-12T21:54:52.9694307Z", "updatedBy": "3b10dae3-28cf-49a7-a8df-8fbae3e77f27" } } @@ -998,30 +920,30 @@ "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-156e72bd0a64d14ab6310bad014bc808-90fa71ee6063dd4d-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "2673a9b5bb262bbe26af5c9ccfefcafd", + "traceparent": "00-17b2a62abf4a3b439134f9a1b5d937bb-d4358a639be4d748-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210712.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "5b70cee57da21f8bec08e277889c7552", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "client-request-id": "c8adfe12-3f69-46da-985d-cc7e1513e168", + "client-request-id": "153a8b2e-2833-48c8-a418-a79f001fea62", "Content-Length": "565", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:43:32 GMT", + "Date": "Mon, 12 Jul 2021 21:55:08 GMT", "Expires": "-1", "Pragma": "no-cache", - "request-id": "c8adfe12-3f69-46da-985d-cc7e1513e168", + "request-id": "153a8b2e-2833-48c8-a418-a79f001fea62", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", "x-ba-restapi": "1.0.3.1627", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "c8adfe12-3f69-46da-985d-cc7e1513e168", - "x-ms-ratelimit-remaining-tenant-reads": "11976", - "x-ms-request-id": "westus2:c8adfe12-3f69-46da-985d-cc7e1513e168", - "x-ms-routing-request-id": "WESTUS2:20210712T024332Z:c8adfe12-3f69-46da-985d-cc7e1513e168" + "x-ms-correlation-request-id": "153a8b2e-2833-48c8-a418-a79f001fea62", + "x-ms-ratelimit-remaining-tenant-reads": "11978", + "x-ms-request-id": "westus2:153a8b2e-2833-48c8-a418-a79f001fea62", + "x-ms-routing-request-id": "WESTUS2:20210712T215508Z:153a8b2e-2833-48c8-a418-a79f001fea62" }, "ResponseBody": { "id": "/providers/Microsoft.Management/managementGroups/mgmt-group-7077", @@ -1031,8 +953,8 @@ "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "displayName": "mgmt-group-7077", "details": { - "version": 2, - "updatedTime": "2021-07-12T02:43:14.2182916Z", + "version": 3, + "updatedTime": "2021-07-12T21:54:52.9694307Z", "updatedBy": "3b10dae3-28cf-49a7-a8df-8fbae3e77f27", "parent": { "id": "/providers/Microsoft.Management/managementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47", @@ -1049,30 +971,30 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-252bf25ec911bc498e57e0468bfd8500-ef23327e8f5e704f-00", - "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210711.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "7a1b95327afa2471fb2ff51bd3d2b645", + "traceparent": "00-3464c22358153f428758fcaea0cfad6b-3047fa47b4f96242-00", + "User-Agent": "azsdk-net-ResourceManager.Core/1.0.0-alpha.20210712.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "f87266dfc09341d26687aab969a6896b", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "client-request-id": "48cd24b7-e5fd-44c2-89bc-142c1fa0ef11", + "client-request-id": "253b9c14-9900-4a6e-a2a3-a40fce0db682", "Content-Length": "565", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 12 Jul 2021 02:43:32 GMT", + "Date": "Mon, 12 Jul 2021 21:55:08 GMT", "Expires": "-1", "Pragma": "no-cache", - "request-id": "48cd24b7-e5fd-44c2-89bc-142c1fa0ef11", + "request-id": "253b9c14-9900-4a6e-a2a3-a40fce0db682", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", "x-ba-restapi": "1.0.3.1627", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "48cd24b7-e5fd-44c2-89bc-142c1fa0ef11", - "x-ms-ratelimit-remaining-tenant-reads": "11975", - "x-ms-request-id": "westus2:48cd24b7-e5fd-44c2-89bc-142c1fa0ef11", - "x-ms-routing-request-id": "WESTUS2:20210712T024332Z:48cd24b7-e5fd-44c2-89bc-142c1fa0ef11" + "x-ms-correlation-request-id": "253b9c14-9900-4a6e-a2a3-a40fce0db682", + "x-ms-ratelimit-remaining-tenant-reads": "11977", + "x-ms-request-id": "westus2:253b9c14-9900-4a6e-a2a3-a40fce0db682", + "x-ms-routing-request-id": "WESTUS2:20210712T215509Z:253b9c14-9900-4a6e-a2a3-a40fce0db682" }, "ResponseBody": { "id": "/providers/Microsoft.Management/managementGroups/mgmt-group-7077", @@ -1082,8 +1004,8 @@ "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "displayName": "mgmt-group-7077", "details": { - "version": 2, - "updatedTime": "2021-07-12T02:43:14.2182916Z", + "version": 3, + "updatedTime": "2021-07-12T21:54:52.9694307Z", "updatedBy": "3b10dae3-28cf-49a7-a8df-8fbae3e77f27", "parent": { "id": "/providers/Microsoft.Management/managementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47",