From 3a1f85e2391b47481e82cad3f73b50fb1d616f28 Mon Sep 17 00:00:00 2001 From: Thomas Dolan Date: Mon, 10 Jan 2022 14:07:15 -0800 Subject: [PATCH 01/13] Updated version number for azure-mgmt-managementgroups sdk --- src/azure-cli/requirements.py3.Darwin.txt | 2 +- src/azure-cli/requirements.py3.Linux.txt | 2 +- src/azure-cli/requirements.py3.windows.txt | 2 +- src/azure-cli/setup.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/azure-cli/requirements.py3.Darwin.txt b/src/azure-cli/requirements.py3.Darwin.txt index bb4db2315ff..c127dcec2fb 100644 --- a/src/azure-cli/requirements.py3.Darwin.txt +++ b/src/azure-cli/requirements.py3.Darwin.txt @@ -54,7 +54,7 @@ azure-mgmt-iothubprovisioningservices==1.0.0 azure-mgmt-keyvault==9.3.0 azure-mgmt-kusto==0.3.0 azure-mgmt-loganalytics==12.0.0 -azure-mgmt-managementgroups==0.2.0 +azure-mgmt-managementgroups==1.0.0 azure-mgmt-maps==2.0.0 azure-mgmt-marketplaceordering==1.1.0 azure-mgmt-media==7.0.0 diff --git a/src/azure-cli/requirements.py3.Linux.txt b/src/azure-cli/requirements.py3.Linux.txt index 7c7e493cd34..6025291a71f 100644 --- a/src/azure-cli/requirements.py3.Linux.txt +++ b/src/azure-cli/requirements.py3.Linux.txt @@ -54,7 +54,7 @@ azure-mgmt-iothubprovisioningservices==1.0.0 azure-mgmt-keyvault==9.3.0 azure-mgmt-kusto==0.3.0 azure-mgmt-loganalytics==12.0.0 -azure-mgmt-managementgroups==0.2.0 +azure-mgmt-managementgroups==1.0.0 azure-mgmt-maps==2.0.0 azure-mgmt-marketplaceordering==1.1.0 azure-mgmt-media==7.0.0 diff --git a/src/azure-cli/requirements.py3.windows.txt b/src/azure-cli/requirements.py3.windows.txt index f3667dc75a1..af2c0103d4a 100644 --- a/src/azure-cli/requirements.py3.windows.txt +++ b/src/azure-cli/requirements.py3.windows.txt @@ -54,7 +54,7 @@ azure-mgmt-iothubprovisioningservices==1.0.0 azure-mgmt-keyvault==9.3.0 azure-mgmt-kusto==0.3.0 azure-mgmt-loganalytics==12.0.0 -azure-mgmt-managementgroups==0.2.0 +azure-mgmt-managementgroups==1.0.0 azure-mgmt-maps==2.0.0 azure-mgmt-marketplaceordering==1.1.0 azure-mgmt-media==7.0.0 diff --git a/src/azure-cli/setup.py b/src/azure-cli/setup.py index 5c1063114c5..dbe7ed86d71 100644 --- a/src/azure-cli/setup.py +++ b/src/azure-cli/setup.py @@ -99,7 +99,7 @@ 'azure-mgmt-kusto~=0.3.0', 'azure-mgmt-loganalytics~=12.0.0', 'azure-mgmt-managedservices~=1.0', - 'azure-mgmt-managementgroups~=0.1', + 'azure-mgmt-managementgroups~=1.0.0', 'azure-mgmt-maps~=2.0.0', 'azure-mgmt-marketplaceordering==1.1.0', 'azure-mgmt-media~=7.0', From 3471e7628811e7ba374b83b97b6238f63fa95570 Mon Sep 17 00:00:00 2001 From: Thomas Dolan Date: Tue, 11 Jan 2022 13:23:40 -0800 Subject: [PATCH 02/13] Updated exception handler file to resolve errors in pipeline --- .../azure/cli/command_modules/resource/_exception_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/azure-cli/azure/cli/command_modules/resource/_exception_handler.py b/src/azure-cli/azure/cli/command_modules/resource/_exception_handler.py index 67957a57c1b..592bf2bf53b 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/_exception_handler.py +++ b/src/azure-cli/azure/cli/command_modules/resource/_exception_handler.py @@ -7,7 +7,7 @@ def managementgroups_exception_handler(ex): - from azure.mgmt.managementgroups.models import ErrorResponseException + from azure.core.exceptions import HttpResponseError if isinstance(ex, ErrorResponseException): if ex.error.error: raise CLIError(ex.error.error) From 2f7690c8884270d174bb3b8f9c292e5fb57b66f6 Mon Sep 17 00:00:00 2001 From: Thomas Dolan Date: Wed, 12 Jan 2022 10:58:01 -0800 Subject: [PATCH 03/13] Re-ran some tests in live mode --- .../cli/command_modules/resource/custom.py | 9 +- ...t_create_delete_group_managementgroup.yaml | 273 +++------ .../test_create_managementgroup.yaml | 216 ++++--- ...eate_managementgroup_with_displayname.yaml | 214 ++++--- ...ntgroup_with_displayname_and_parentid.yaml | 578 ++++++++++++++---- .../test_list_managementgroups.yaml | 41 +- .../recordings/test_show_managementgroup.yaml | 551 +++++++++++------ .../tests/latest/test_managmentgroups.py | 60 +- 8 files changed, 1174 insertions(+), 768 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/resource/custom.py b/src/azure-cli/azure/cli/command_modules/resource/custom.py index cc19b4ff6ab..7d7e031a0d3 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/custom.py +++ b/src/azure-cli/azure/cli/command_modules/resource/custom.py @@ -2882,8 +2882,7 @@ def cli_managementgroups_group_create( name=group_name, display_name=display_name, details=create_mgmt_grp_details) - return client.create_or_update(group_name, create_mgmt_grp_request) - + return client.begin_create_or_update(group_name, create_mgmt_grp_request) def cli_managementgroups_group_update_custom_func( instance, @@ -2909,21 +2908,21 @@ def cli_managementgroups_group_update_set( def cli_managementgroups_group_delete(cmd, client, group_name, no_register=False): if not no_register: _register_rp(cmd.cli_ctx) - return client.delete(group_name) + return client.begin_delete(group_name) def cli_managementgroups_subscription_add( cmd, client, group_name, subscription): subscription_id = _get_subscription_id_from_subscription( cmd.cli_ctx, subscription) - return client.create(group_name, subscription_id) + return client.begin_create(group_name, subscription_id) def cli_managementgroups_subscription_remove( cmd, client, group_name, subscription): subscription_id = _get_subscription_id_from_subscription( cmd.cli_ctx, subscription) - return client.delete(group_name, subscription_id) + return client.begin_delete(group_name, subscription_id) # region Locks diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_delete_group_managementgroup.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_delete_group_managementgroup.yaml index 4f08dba838a..9b8b521f5ec 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_delete_group_managementgroup.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_delete_group_managementgroup.yaml @@ -12,27 +12,27 @@ interactions: - keep-alive Content-Length: - '0' + Content-Type: + - application/json ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:19:58 GMT + - Tue, 11 Jan 2022 22:52:00 GMT expires: - '-1' pragma: @@ -64,24 +64,22 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:20:08 GMT + - Tue, 11 Jan 2022 22:52:10 GMT expires: - '-1' pragma: @@ -111,188 +109,49 @@ interactions: Content-Length: - '67' Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - --name - User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2018-03-01-preview - response: - body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}' - headers: - cache-control: - - no-cache - content-length: - - '172' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 18 Dec 2020 17:20:08 GMT - expires: - - '-1' - location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2018-03-01-preview - pragma: - - no-cache - request-id: - - f196c2c2-1525-497b-8757-c2db59b8945b - strict-transport-security: - - max-age=31536000; includeSubDomains - x-ba-restapi: - - 1.0.3.1589 - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-tenant-writes: - - '1199' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - account management-group create - Connection: - - keep-alive ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2018-03-01-preview - response: - body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"Running"}' - headers: - cache-control: - - no-cache - content-length: - - '169' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 18 Dec 2020 17:20:19 GMT - expires: - - '-1' - location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2018-03-01-preview - pragma: - - no-cache - request-id: - - 7686c349-3465-4dcf-a480-4369930cc4cb - strict-transport-security: - - max-age=31536000; includeSubDomains - x-ba-restapi: - - 1.0.3.1589 - x-content-type-options: - - nosniff - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - account management-group create - Connection: - - keep-alive - ParameterSetName: - - --name - User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2018-03-01-preview - response: - body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"Running"}' - headers: - cache-control: - - no-cache - content-length: - - '169' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 18 Dec 2020 17:20:29 GMT - expires: - - '-1' - location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2018-03-01-preview - pragma: - - no-cache - request-id: - - 9af8761f-1a90-46f4-bf29-a3d2a8f358e6 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-ba-restapi: - - 1.0.3.1589 - x-content-type-options: - - nosniff - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - account management-group create - Connection: - - keep-alive - ParameterSetName: - - --name - User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2018-03-01-preview + - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"01a4073e-87c8-47cd-aafc-1439b4b5ea2c","displayName":"TestCliDisplayName","details":{"version":1,"updatedTime":"2020-12-18T17:20:19.8516731Z","updatedBy":"5310aa29-9a44-4cbc-adb3-6347a539537e","parent":{"id":"/providers/Microsoft.Management/managementGroups/01a4073e-87c8-47cd-aafc-1439b4b5ea2c","name":"01a4073e-87c8-47cd-aafc-1439b4b5ea2c","displayName":"Tenant - Root Group"}}}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":1,"updatedTime":"2022-01-11T22:51:25.7418933Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + Management Group"}}}}' headers: cache-control: - no-cache content-length: - - '575' + - '541' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:20:41 GMT + - Tue, 11 Jan 2022 22:52:11 GMT expires: - '-1' pragma: - no-cache request-id: - - 1f50ac84-c26a-4dd3-a8f4-550148a47612 + - d575d050-1914-4d47-a9d6-d4fa27f9bfc5 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-writes: + - '1199' status: code: 200 message: OK @@ -309,27 +168,27 @@ interactions: - keep-alive Content-Length: - '0' + Content-Type: + - application/json ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:20:42 GMT + - Tue, 11 Jan 2022 22:52:12 GMT expires: - '-1' pragma: @@ -361,24 +220,22 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:20:52 GMT + - Tue, 11 Jan 2022 22:52:22 GMT expires: - '-1' pragma: @@ -410,38 +267,42 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}' headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 cache-control: - no-cache content-length: - - '172' + - '161' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:20:53 GMT + - Tue, 11 Jan 2022 22:52:23 GMT expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroup?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroup?api-version=2021-04-01 pragma: - no-cache request-id: - - c15a5af7-a989-4f20-9ea7-b9b90de21ff8 + - 49ec8c6a-1e5d-4111-8fc8-08813b59257e + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' x-ms-ratelimit-remaining-tenant-deletes: - '14999' status: @@ -451,7 +312,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -461,36 +322,38 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"Succeeded"}' + string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded"}' headers: cache-control: - no-cache content-length: - - '171' + - '159' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:21:04 GMT + - Tue, 11 Jan 2022 22:52:34 GMT expires: - '-1' pragma: - no-cache request-id: - - c21abdea-b704-4cbd-a7e5-7a30a43b10b6 + - b0dcb027-62ab-4aa5-abda-65ba77ad92d5 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff status: diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_managementgroup.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_managementgroup.yaml index a965c4274be..521bd3e52f3 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_managementgroup.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_managementgroup.yaml @@ -12,27 +12,27 @@ interactions: - keep-alive Content-Length: - '0' + Content-Type: + - application/json ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 20:53:19 GMT + - Tue, 11 Jan 2022 23:58:37 GMT expires: - '-1' pragma: @@ -64,24 +64,22 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 20:53:30 GMT + - Tue, 11 Jan 2022 23:58:46 GMT expires: - '-1' pragma: @@ -111,42 +109,46 @@ interactions: Content-Length: - '67' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: PUT - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}' headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 cache-control: - no-cache content-length: - - '172' + - '161' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 20:53:30 GMT + - Tue, 11 Jan 2022 23:58:47 GMT expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2021-04-01 pragma: - no-cache request-id: - - 1d29c3f0-9ca8-4de5-9827-235a4d0a6c10 + - 35eca4cd-7819-425f-b3db-64f901b2eecb + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' x-ms-ratelimit-remaining-tenant-writes: - '1199' status: @@ -156,7 +158,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -166,44 +168,52 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"Running"}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Running"}' headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 cache-control: - no-cache content-length: - - '169' + - '157' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 20:53:41 GMT + - Tue, 11 Jan 2022 23:58:57 GMT expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2021-04-01 pragma: - no-cache request-id: - - 23f52684-334a-4f84-bcba-361d1f3b6da5 + - b52395fb-b6d0-4c0c-b2d8-a70c79686dc5 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff status: - code: 202 - message: Accepted + code: 200 + message: OK - request: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -213,44 +223,48 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"Running"}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":10,"updatedTime":"2022-01-11T23:58:53.4289876Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache content-length: - - '169' + - '374' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 20:53:51 GMT + - Tue, 11 Jan 2022 23:59:09 GMT expires: - '-1' - location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2018-03-01-preview pragma: - no-cache request-id: - - bfffd261-6eb6-4a1a-adc3-7a1e7586dc37 + - 48fcc0ec-5bf1-4c4e-bb95-171a384c7508 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff status: - code: 202 - message: Accepted + code: 200 + message: OK - request: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -260,37 +274,39 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"01a4073e-87c8-47cd-aafc-1439b4b5ea2c","displayName":"testcligroup","details":{"version":5,"updatedTime":"2020-12-18T20:53:40.6924348Z","updatedBy":"5310aa29-9a44-4cbc-adb3-6347a539537e","parent":{"id":"/providers/Microsoft.Management/managementGroups/01a4073e-87c8-47cd-aafc-1439b4b5ea2c","name":"01a4073e-87c8-47cd-aafc-1439b4b5ea2c","displayName":"Tenant - Root Group"}}}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":10,"updatedTime":"2022-01-11T23:58:53.4289876Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + Management Group"}}}}' headers: cache-control: - no-cache content-length: - - '569' + - '542' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 20:54:02 GMT + - Tue, 11 Jan 2022 23:59:09 GMT expires: - '-1' pragma: - no-cache request-id: - - de99e685-065d-4a1f-a28b-8dfbf27e4231 + - ca3872bf-f7af-4c1a-afef-831744963fff + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff status: @@ -309,27 +325,27 @@ interactions: - keep-alive Content-Length: - '0' + Content-Type: + - application/json ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 20:54:04 GMT + - Tue, 11 Jan 2022 23:59:10 GMT expires: - '-1' pragma: @@ -343,7 +359,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 200 message: OK @@ -361,24 +377,22 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 20:54:14 GMT + - Tue, 11 Jan 2022 23:59:20 GMT expires: - '-1' pragma: @@ -410,38 +424,42 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}' headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 cache-control: - no-cache content-length: - - '172' + - '161' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 20:54:16 GMT + - Tue, 11 Jan 2022 23:59:21 GMT expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroup?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroup?api-version=2021-04-01 pragma: - no-cache request-id: - - 24da035c-d598-419b-8e20-bfd9338885fd + - 3956e028-4d60-4c1a-b582-acdbaecc4055 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' x-ms-ratelimit-remaining-tenant-deletes: - '14999' status: @@ -451,7 +469,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -461,36 +479,38 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"Succeeded"}' + string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded"}' headers: cache-control: - no-cache content-length: - - '171' + - '159' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 20:54:26 GMT + - Tue, 11 Jan 2022 23:59:32 GMT expires: - '-1' pragma: - no-cache request-id: - - d5ed836d-3c64-491f-acd2-ace387aaa128 + - 3911b2ec-dc21-4646-b5ee-7cb365f8c28c + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff status: diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_managementgroup_with_displayname.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_managementgroup_with_displayname.yaml index c85316554af..891a0845b10 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_managementgroup_with_displayname.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_managementgroup_with_displayname.yaml @@ -12,27 +12,27 @@ interactions: - keep-alive Content-Length: - '0' + Content-Type: + - application/json ParameterSetName: - --name --display-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:19:58 GMT + - Tue, 11 Jan 2022 23:27:33 GMT expires: - '-1' pragma: @@ -64,24 +64,22 @@ interactions: ParameterSetName: - --name --display-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:20:08 GMT + - Tue, 11 Jan 2022 23:27:44 GMT expires: - '-1' pragma: @@ -112,42 +110,46 @@ interactions: Content-Length: - '104' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - --name --display-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: PUT - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}' headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 cache-control: - no-cache content-length: - - '172' + - '161' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:20:09 GMT + - Tue, 11 Jan 2022 23:27:45 GMT expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2021-04-01 pragma: - no-cache request-id: - - 05a4a996-fff0-4985-9ac7-af05ce0742d6 + - d608cc0b-d3c3-4440-86d3-ad80565b57bc + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' x-ms-ratelimit-remaining-tenant-writes: - '1199' status: @@ -157,7 +159,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -167,44 +169,52 @@ interactions: ParameterSetName: - --name --display-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"Running"}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Running"}' headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 cache-control: - no-cache content-length: - - '169' + - '157' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:20:19 GMT + - Tue, 11 Jan 2022 23:27:55 GMT expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2021-04-01 pragma: - no-cache request-id: - - fe29f628-2e1a-4f6e-92ac-6e678877404d + - 94aa009a-84af-4a69-8741-c7789826b442 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff status: - code: 202 - message: Accepted + code: 200 + message: OK - request: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -214,44 +224,48 @@ interactions: ParameterSetName: - --name --display-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"Running"}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"TestCliDisplayName","details":{"version":7,"updatedTime":"2022-01-11T23:27:50.6166433Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache content-length: - - '169' + - '379' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:20:30 GMT + - Tue, 11 Jan 2022 23:28:06 GMT expires: - '-1' - location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2018-03-01-preview pragma: - no-cache request-id: - - 186bd01c-6c99-4f5b-99f5-66224dcc6052 + - d5246059-5892-42ce-8a3f-04555015e9bf + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff status: - code: 202 - message: Accepted + code: 200 + message: OK - request: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -261,37 +275,39 @@ interactions: ParameterSetName: - --name --display-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"01a4073e-87c8-47cd-aafc-1439b4b5ea2c","displayName":"TestCliDisplayName","details":{"version":1,"updatedTime":"2020-12-18T17:20:19.8516731Z","updatedBy":"5310aa29-9a44-4cbc-adb3-6347a539537e","parent":{"id":"/providers/Microsoft.Management/managementGroups/01a4073e-87c8-47cd-aafc-1439b4b5ea2c","name":"01a4073e-87c8-47cd-aafc-1439b4b5ea2c","displayName":"Tenant - Root Group"}}}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"TestCliDisplayName","details":{"version":7,"updatedTime":"2022-01-11T23:27:50.6166433Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + Management Group"}}}}' headers: cache-control: - no-cache content-length: - - '575' + - '547' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:20:41 GMT + - Tue, 11 Jan 2022 23:28:06 GMT expires: - '-1' pragma: - no-cache request-id: - - 404f4ec3-68e4-46ee-856f-1a63f42e4c20 + - c32f77d3-61a6-44d5-bdad-a633bddb4e92 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff status: @@ -310,27 +326,27 @@ interactions: - keep-alive Content-Length: - '0' + Content-Type: + - application/json ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:20:42 GMT + - Tue, 11 Jan 2022 23:28:07 GMT expires: - '-1' pragma: @@ -362,24 +378,22 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:20:52 GMT + - Tue, 11 Jan 2022 23:28:17 GMT expires: - '-1' pragma: @@ -411,38 +425,42 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}' headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 cache-control: - no-cache content-length: - - '172' + - '161' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:20:53 GMT + - Tue, 11 Jan 2022 23:28:18 GMT expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroup?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroup?api-version=2021-04-01 pragma: - no-cache request-id: - - 6b5b9c97-6e1e-4619-aa23-c49f26838fd2 + - 0435ac13-ea86-4ab5-b16c-37c0d1506340 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' x-ms-ratelimit-remaining-tenant-deletes: - '14999' status: @@ -452,7 +470,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -462,36 +480,38 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"Succeeded"}' + string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded"}' headers: cache-control: - no-cache content-length: - - '171' + - '159' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:21:03 GMT + - Tue, 11 Jan 2022 23:28:29 GMT expires: - '-1' pragma: - no-cache request-id: - - 1e7a95f2-5983-4138-9df1-7c57f9c3a970 + - 321f306a-7426-41b4-ad3e-c91a73fe4f2c + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff status: diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_managementgroup_with_displayname_and_parentid.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_managementgroup_with_displayname_and_parentid.yaml index 5d3f732d8f7..e3eb4d36e0c 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_managementgroup_with_displayname_and_parentid.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_managementgroup_with_displayname_and_parentid.yaml @@ -12,27 +12,27 @@ interactions: - keep-alive Content-Length: - '0' + Content-Type: + - application/json ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:18:29 GMT + - Tue, 11 Jan 2022 23:16:28 GMT expires: - '-1' pragma: @@ -64,24 +64,22 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:18:39 GMT + - Tue, 11 Jan 2022 23:16:39 GMT expires: - '-1' pragma: @@ -111,47 +109,206 @@ interactions: Content-Length: - '67' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: PUT - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"01a4073e-87c8-47cd-aafc-1439b4b5ea2c","displayName":"testcligroup","details":{"version":6,"updatedTime":"2020-12-18T21:01:39.5910028Z","updatedBy":"5310aa29-9a44-4cbc-adb3-6347a539537e","parent":{"id":"/providers/Microsoft.Management/managementGroups/01a4073e-87c8-47cd-aafc-1439b4b5ea2c","name":"01a4073e-87c8-47cd-aafc-1439b4b5ea2c","displayName":"Tenant - Root Group"}}}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}' headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 cache-control: - no-cache content-length: - - '548' + - '161' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:18:40 GMT + - Tue, 11 Jan 2022 23:16:40 GMT expires: - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2021-04-01 pragma: - no-cache request-id: - - c037d88c-b2b3-48a4-8cff-da6e0ab24c22 + - a89140d7-a3b1-4a7a-b896-a000af96f1ec + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Running"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '157' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 11 Jan 2022 23:16:50 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 9e097f52-5930-43df-94aa-6124d36e3ee5 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":5,"updatedTime":"2022-01-11T23:16:45.9670093Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + headers: + cache-control: + - no-cache + content-length: + - '373' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 11 Jan 2022 23:17:00 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - d0204045-6602-40b1-9fd4-75c1be041ed1 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":5,"updatedTime":"2022-01-11T23:16:45.9670093Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + Management Group"}}}}' + headers: + cache-control: + - no-cache + content-length: + - '541' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 11 Jan 2022 23:17:00 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - dabd64fb-da0c-4925-b5a7-a6ac0d321bdd + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 x-content-type-options: - nosniff - x-ms-ratelimit-remaining-tenant-writes: - - '1199' status: code: 200 message: OK @@ -168,27 +325,27 @@ interactions: - keep-alive Content-Length: - '0' + Content-Type: + - application/json ParameterSetName: - --name --display-name --parent User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:18:41 GMT + - Tue, 11 Jan 2022 23:17:02 GMT expires: - '-1' pragma: @@ -220,24 +377,22 @@ interactions: ParameterSetName: - --name --display-name --parent User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:18:51 GMT + - Tue, 11 Jan 2022 23:17:12 GMT expires: - '-1' pragma: @@ -268,46 +423,205 @@ interactions: Content-Length: - '188' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - --name --display-name --parent User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: PUT - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '171' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 11 Jan 2022 23:17:14 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroupchild?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 792f0922-252c-4d8e-b858-e5279f0499c5 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name --display-name --parent + User-Agent: + - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroupchild","properties":{"tenantId":"01a4073e-87c8-47cd-aafc-1439b4b5ea2c","displayName":"testcligroupchildDisplayName","details":{"version":6,"updatedTime":"2020-12-18T21:18:52.6063407Z","updatedBy":"5310aa29-9a44-4cbc-adb3-6347a539537e","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","name":"testcligroup","displayName":"testcligroup"}}}}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild","name":"testcligroupchild","status":"Running"}' headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 cache-control: - no-cache content-length: - - '521' + - '167' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:18:57 GMT + - Tue, 11 Jan 2022 23:17:24 GMT expires: - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroupchild?api-version=2021-04-01 pragma: - no-cache request-id: - - 3823f92b-46cf-4298-9d3b-3da736a5007c + - 64fa83aa-3b95-4c6d-83c9-a84f6057b213 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name --display-name --parent + User-Agent: + - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild","name":"testcligroupchild","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchildDisplayName","details":{"version":3,"updatedTime":"2022-01-11T23:17:19.5635307Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + headers: + cache-control: + - no-cache + content-length: + - '399' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 11 Jan 2022 23:17:34 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 347e9cea-8504-4a78-973c-c09c7c5cd5f1 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name --display-name --parent + User-Agent: + - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchildDisplayName","details":{"version":3,"updatedTime":"2022-01-11T23:17:19.5635307Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","name":"testcligroup","displayName":"testcligroup"}}}}' + headers: + cache-control: + - no-cache + content-length: + - '510' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 11 Jan 2022 23:17:35 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - edf0d702-af4e-4be3-87fa-324f331f0f2e + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 x-content-type-options: - nosniff - x-ms-ratelimit-remaining-tenant-writes: - - '1199' status: code: 200 message: OK @@ -324,27 +638,27 @@ interactions: - keep-alive Content-Length: - '0' + Content-Type: + - application/json ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:18:57 GMT + - Tue, 11 Jan 2022 23:17:36 GMT expires: - '-1' pragma: @@ -358,7 +672,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 200 message: OK @@ -376,24 +690,22 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:19:08 GMT + - Tue, 11 Jan 2022 23:17:46 GMT expires: - '-1' pragma: @@ -425,38 +737,42 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroupchild","status":"NotStarted"}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","status":"NotStarted"}' headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 cache-control: - no-cache content-length: - - '182' + - '171' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:19:10 GMT + - Tue, 11 Jan 2022 23:17:47 GMT expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroupchild?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroupchild?api-version=2021-04-01 pragma: - no-cache request-id: - - 1e40413c-07f2-4632-8994-aa66a07ed182 + - a099e0f8-870d-462c-b1fa-977d606e95df + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' x-ms-ratelimit-remaining-tenant-deletes: - '14999' status: @@ -466,7 +782,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -476,36 +792,38 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroupchild?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroupchild","status":"Succeeded"}' + string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroupchild","name":"testcligroupchild","status":"Succeeded"}' headers: cache-control: - no-cache content-length: - - '181' + - '169' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:19:20 GMT + - Tue, 11 Jan 2022 23:17:57 GMT expires: - '-1' pragma: - no-cache request-id: - - 48ff0e0a-e174-4ed8-9069-6958e505cca0 + - 42a4b71c-7860-43f7-9705-1bd78e5ca487 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff status: @@ -524,27 +842,27 @@ interactions: - keep-alive Content-Length: - '0' + Content-Type: + - application/json ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:19:22 GMT + - Tue, 11 Jan 2022 23:17:58 GMT expires: - '-1' pragma: @@ -576,24 +894,22 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:19:32 GMT + - Tue, 11 Jan 2022 23:18:09 GMT expires: - '-1' pragma: @@ -625,38 +941,42 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}' headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 cache-control: - no-cache content-length: - - '172' + - '161' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:19:33 GMT + - Tue, 11 Jan 2022 23:18:11 GMT expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroup?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroup?api-version=2021-04-01 pragma: - no-cache request-id: - - 8b432147-283a-498e-a0b8-78be5898aa02 + - ddfe64b1-92af-462f-a0ab-e898be38534b + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' x-ms-ratelimit-remaining-tenant-deletes: - '14999' status: @@ -666,7 +986,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -676,36 +996,38 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"Succeeded"}' + string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded"}' headers: cache-control: - no-cache content-length: - - '171' + - '159' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:19:43 GMT + - Tue, 11 Jan 2022 23:18:21 GMT expires: - '-1' pragma: - no-cache request-id: - - 03f6c37c-3eea-47d7-96e3-03b054ef5ed2 + - 0c5bab8c-7c22-4da2-892e-81ce3dccb35c + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff status: diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_list_managementgroups.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_list_managementgroups.yaml index 7a4e8aad2fd..7757f6d349f 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_list_managementgroups.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_list_managementgroups.yaml @@ -15,21 +15,22 @@ interactions: Content-Type: - application/json User-Agent: - - AZURECLI/2.26.0 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2498' + - '2624' content-type: - application/json; charset=utf-8 date: - - Mon, 12 Jul 2021 02:02:54 GMT + - Tue, 11 Jan 2022 23:23:07 GMT expires: - '-1' pragma: @@ -59,21 +60,22 @@ interactions: Connection: - keep-alive User-Agent: - - AZURECLI/2.26.0 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2498' + - '2624' content-type: - application/json; charset=utf-8 date: - - Mon, 12 Jul 2021 02:03:04 GMT + - Tue, 11 Jan 2022 23:23:17 GMT expires: - '-1' pragma: @@ -101,38 +103,39 @@ interactions: Connection: - keep-alive User-Agent: - - python/3.8.3 (Windows-10-10.0.18362-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.26.0 - accept-language: - - en-US + - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups?api-version=2021-04-01 response: body: - string: '{"value":[{"id":"/providers/Microsoft.Management/managementGroups/azure-cli-management-groupaajqn4nyqvxs6x","type":"/providers/Microsoft.Management/managementGroups","name":"azure-cli-management-groupaajqn4nyqvxs6x","properties":{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","displayName":"azure-cli-management-groupaajqn4nyqvxs6x"}}],"@nextLink":null}' + string: '{"value":[{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","type":"Microsoft.Management/managementGroups","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + Management Group"}},{"id":"/providers/Microsoft.Management/managementGroups/mg-name","type":"Microsoft.Management/managementGroups","name":"mg-name","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"mg-display-name"}},{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup"}},{"id":"/providers/Microsoft.Management/managementGroups/testMG","type":"Microsoft.Management/managementGroups","name":"testMG","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testMG"}},{"id":"/providers/Microsoft.Management/managementGroups/testMG2","type":"Microsoft.Management/managementGroups","name":"testMG2","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testMG2"}},{"id":"/providers/Microsoft.Management/managementGroups/testMG3","type":"Microsoft.Management/managementGroups","name":"testMG3","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testMG3"}},{"id":"/providers/Microsoft.Management/managementGroups/testMG4","type":"Microsoft.Management/managementGroups","name":"testMG4","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testMG4"}},{"id":"/providers/Microsoft.Management/managementGroups/thomasdolanTestMG","type":"Microsoft.Management/managementGroups","name":"thomasdolanTestMG","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"thomasdolanTestMG"}}],"@nextLink":null}' headers: cache-control: - no-cache content-length: - - '357' + - '1902' content-type: - application/json; charset=utf-8 date: - - Mon, 12 Jul 2021 02:03:05 GMT + - Tue, 11 Jan 2022 23:23:18 GMT expires: - '-1' pragma: - no-cache request-id: - - 1a4b69a5-a838-4bf1-89dd-4302d4939bac + - 8117c992-d920-4d3a-af1e-97b148aa26ce + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-ba-restapi: - - 1.0.3.1627 + - 1.0.3.2425 x-content-type-options: - nosniff status: diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_show_managementgroup.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_show_managementgroup.yaml index 79b4c9f61ef..45aa91bc7d3 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_show_managementgroup.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_show_managementgroup.yaml @@ -12,27 +12,27 @@ interactions: - keep-alive Content-Length: - '0' + Content-Type: + - application/json ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:21:05 GMT + - Tue, 11 Jan 2022 23:40:36 GMT expires: - '-1' pragma: @@ -64,24 +64,22 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:21:15 GMT + - Tue, 11 Jan 2022 23:40:47 GMT expires: - '-1' pragma: @@ -111,42 +109,46 @@ interactions: Content-Length: - '71' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: PUT - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup1","status":"NotStarted"}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"Microsoft.Management/managementGroups","name":"testcligetgroup1","status":"NotStarted"}' headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 cache-control: - no-cache content-length: - - '180' + - '169' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:21:15 GMT + - Tue, 11 Jan 2022 23:40:47 GMT expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup1?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup1?api-version=2021-04-01 pragma: - no-cache request-id: - - baa4f4c8-8742-400a-81fa-d0507115cd21 + - 886f6ad8-9a40-40de-a1e1-0dbdb6a03029 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' x-ms-ratelimit-remaining-tenant-writes: - '1199' status: @@ -156,7 +158,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -166,44 +168,52 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup1?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup1","status":"Running"}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1","name":"testcligetgroup1","status":"Running"}' headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 cache-control: - no-cache content-length: - - '177' + - '165' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:21:26 GMT + - Tue, 11 Jan 2022 23:40:58 GMT expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup1?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup1?api-version=2021-04-01 pragma: - no-cache request-id: - - 230abccd-fa07-49f1-b958-1122b37f506c + - 011fdda8-f51f-4b85-a5b2-98c1ca6bddb3 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff status: - code: 202 - message: Accepted + code: 200 + message: OK - request: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -213,44 +223,48 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup1?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup1","status":"Running"}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1","name":"testcligetgroup1","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup1","details":{"version":3,"updatedTime":"2022-01-11T23:40:53.2407474Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache content-length: - - '177' + - '385' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:21:36 GMT + - Tue, 11 Jan 2022 23:41:08 GMT expires: - '-1' - location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup1?api-version=2018-03-01-preview pragma: - no-cache request-id: - - 951c9b76-9eee-49a9-b036-ddd2a4870e8f + - ae77591a-8d03-4a05-b5f2-829bc6236782 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff status: - code: 202 - message: Accepted + code: 200 + message: OK - request: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -260,37 +274,39 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup1?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup1","status":"Succeeded","properties":{"tenantId":"01a4073e-87c8-47cd-aafc-1439b4b5ea2c","displayName":"testcligetgroup1","details":{"version":1,"updatedTime":"2020-12-18T17:21:24.6461191Z","updatedBy":"5310aa29-9a44-4cbc-adb3-6347a539537e","parent":{"id":"/providers/Microsoft.Management/managementGroups/01a4073e-87c8-47cd-aafc-1439b4b5ea2c","name":"01a4073e-87c8-47cd-aafc-1439b4b5ea2c","displayName":"Tenant - Root Group"}}}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"Microsoft.Management/managementGroups","name":"testcligetgroup1","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup1","details":{"version":3,"updatedTime":"2022-01-11T23:40:53.2407474Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + Management Group"}}}}' headers: cache-control: - no-cache content-length: - - '581' + - '553' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:21:47 GMT + - Tue, 11 Jan 2022 23:41:08 GMT expires: - '-1' pragma: - no-cache request-id: - - 4ede1288-a59e-4eac-8f02-1970df978a87 + - 15262cee-1e44-4f14-8222-707990a4f8bb + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff status: @@ -309,27 +325,27 @@ interactions: - keep-alive Content-Length: - '0' + Content-Type: + - application/json ParameterSetName: - --name --parent User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:21:48 GMT + - Tue, 11 Jan 2022 23:41:10 GMT expires: - '-1' pragma: @@ -361,24 +377,22 @@ interactions: ParameterSetName: - --name --parent User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:21:58 GMT + - Tue, 11 Jan 2022 23:41:20 GMT expires: - '-1' pragma: @@ -409,46 +423,205 @@ interactions: Content-Length: - '144' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - --name --parent User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: PUT - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup2?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup2?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"Microsoft.Management/managementGroups","name":"testcligetgroup2","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '169' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 11 Jan 2022 23:41:21 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup2?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - e7fc2288-6230-4639-863b-9741a89e716b + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup2","properties":{"tenantId":"01a4073e-87c8-47cd-aafc-1439b4b5ea2c","displayName":"testcligetgroup2","details":{"version":1,"updatedTime":"2020-12-18T17:21:49.4799238Z","updatedBy":"5310aa29-9a44-4cbc-adb3-6347a539537e","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","name":"testcligetgroup1","displayName":"testcligetgroup1"}}}}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2","name":"testcligetgroup2","status":"Running"}' headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2?api-version=2021-04-01 cache-control: - no-cache content-length: - - '519' + - '165' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:22:00 GMT + - Tue, 11 Jan 2022 23:41:31 GMT expires: - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup2?api-version=2021-04-01 pragma: - no-cache request-id: - - 80ad0b6a-2cba-4dff-9345-d3202da617f4 + - b52472a4-78c0-408a-8b80-ca0fdc92cf5a + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2","name":"testcligetgroup2","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup2","details":{"version":3,"updatedTime":"2022-01-11T23:41:26.1320318Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + headers: + cache-control: + - no-cache + content-length: + - '385' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 11 Jan 2022 23:41:42 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 11dedae1-6d30-44f3-ade3-7ae4bbb65d18 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup2?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"Microsoft.Management/managementGroups","name":"testcligetgroup2","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup2","details":{"version":3,"updatedTime":"2022-01-11T23:41:26.1320318Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","name":"testcligetgroup1","displayName":"testcligetgroup1"}}}}' + headers: + cache-control: + - no-cache + content-length: + - '508' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 11 Jan 2022 23:41:42 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 5f2ed199-4959-476d-b5ee-0c41c4099511 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 x-content-type-options: - nosniff - x-ms-ratelimit-remaining-tenant-writes: - - '1199' status: code: 200 message: OK @@ -465,27 +638,27 @@ interactions: - keep-alive Content-Length: - '0' + Content-Type: + - application/json ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:22:00 GMT + - Tue, 11 Jan 2022 23:41:43 GMT expires: - '-1' pragma: @@ -499,7 +672,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 200 message: OK @@ -517,24 +690,22 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:22:10 GMT + - Tue, 11 Jan 2022 23:41:53 GMT expires: - '-1' pragma: @@ -564,38 +735,38 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup2?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup2?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup2","properties":{"tenantId":"01a4073e-87c8-47cd-aafc-1439b4b5ea2c","displayName":"testcligetgroup2","details":{"version":1,"updatedTime":"2020-12-18T17:21:49.4799238Z","updatedBy":"5310aa29-9a44-4cbc-adb3-6347a539537e","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","name":"testcligetgroup1","displayName":"testcligetgroup1"}}}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"Microsoft.Management/managementGroups","name":"testcligetgroup2","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup2","details":{"version":3,"updatedTime":"2022-01-11T23:41:26.1320318Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","name":"testcligetgroup1","displayName":"testcligetgroup1"}}}}' headers: cache-control: - no-cache content-length: - - '519' + - '508' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:22:11 GMT + - Tue, 11 Jan 2022 23:41:53 GMT expires: - '-1' pragma: - no-cache request-id: - - c0deba99-db0b-45d6-af38-225ef4ccd97e + - 116d3d40-7376-4977-bb98-d71852fd9551 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff status: @@ -614,27 +785,27 @@ interactions: - keep-alive Content-Length: - '0' + Content-Type: + - application/json ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:22:11 GMT + - Tue, 11 Jan 2022 23:41:54 GMT expires: - '-1' pragma: @@ -666,24 +837,22 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:22:22 GMT + - Tue, 11 Jan 2022 23:42:05 GMT expires: - '-1' pragma: @@ -715,38 +884,42 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup2?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup2?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup2","status":"NotStarted"}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"Microsoft.Management/managementGroups","name":"testcligetgroup2","status":"NotStarted"}' headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup2?api-version=2021-04-01 cache-control: - no-cache content-length: - - '180' + - '169' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:22:23 GMT + - Tue, 11 Jan 2022 23:42:06 GMT expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup2?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup2?api-version=2021-04-01 pragma: - no-cache request-id: - - d695a896-9857-45b5-9e8e-dc1548def1a3 + - 2f5e717d-1cff-4b0d-a128-037b0d0e229f + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' x-ms-ratelimit-remaining-tenant-deletes: - '14999' status: @@ -756,7 +929,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -766,36 +939,38 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup2?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup2?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup2","status":"Succeeded"}' + string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup2","name":"testcligetgroup2","status":"Succeeded"}' headers: cache-control: - no-cache content-length: - - '179' + - '167' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:22:33 GMT + - Tue, 11 Jan 2022 23:42:16 GMT expires: - '-1' pragma: - no-cache request-id: - - bcad1aed-7cd0-4c88-b3fb-a8d54e7b2731 + - 8e0ed3b2-5105-4b01-85ef-184f2e845cfa + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff status: @@ -814,27 +989,27 @@ interactions: - keep-alive Content-Length: - '0' + Content-Type: + - application/json ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:22:34 GMT + - Tue, 11 Jan 2022 23:42:18 GMT expires: - '-1' pragma: @@ -866,24 +1041,22 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:22:44 GMT + - Tue, 11 Jan 2022 23:42:28 GMT expires: - '-1' pragma: @@ -915,38 +1088,42 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup1","status":"NotStarted"}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"Microsoft.Management/managementGroups","name":"testcligetgroup1","status":"NotStarted"}' headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 cache-control: - no-cache content-length: - - '180' + - '169' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:22:46 GMT + - Tue, 11 Jan 2022 23:42:29 GMT expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup1?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup1?api-version=2021-04-01 pragma: - no-cache request-id: - - e384e8ac-136e-4371-9daf-0d7a997c5b3e + - 2cbd0dae-9da1-4b41-aac9-948f702446d8 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' x-ms-ratelimit-remaining-tenant-deletes: - '14999' status: @@ -956,7 +1133,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -966,36 +1143,38 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 + (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup1?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup1","status":"Succeeded"}' + string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup1","name":"testcligetgroup1","status":"Succeeded"}' headers: cache-control: - no-cache content-length: - - '179' + - '167' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:22:56 GMT + - Tue, 11 Jan 2022 23:42:39 GMT expires: - '-1' pragma: - no-cache request-id: - - f241acd1-018b-46f3-ac5f-2e0d533c090b + - 85e42daf-9bfd-4151-939f-684fc35d3957 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff status: diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/test_managmentgroups.py b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/test_managmentgroups.py index 06aed6f41bd..b03ded0e63a 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/test_managmentgroups.py +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/test_managmentgroups.py @@ -6,7 +6,6 @@ from azure.cli.testsdk import ScenarioTest, record_only -@record_only() class AzureManagementGroupsScenarioTest(ScenarioTest): def test_list_managementgroups(self): managementgroups_list = self.cmd( @@ -20,7 +19,7 @@ def test_list_managementgroups(self): self.assertIsNotNone(managementgroups_list[0]["tenantId"]) self.assertEqual( managementgroups_list[0]["type"], - "/providers/Microsoft.Management/managementGroups") + "Microsoft.Management/managementGroups") def test_show_managementgroup(self): self.cmd('account management-group create --name testcligetgroup1') @@ -52,7 +51,7 @@ def test_show_managementgroup(self): self.assertIsNotNone(managementgroup_get["tenantId"]) self.assertEqual( managementgroup_get["type"], - "/providers/Microsoft.Management/managementGroups") + "Microsoft.Management/managementGroups") def test_show_managementgroup_with_expand(self): self.cmd('account management-group create --name testcligetgroup1') @@ -169,28 +168,28 @@ def test_create_managementgroup(self): self.cmd('account management-group delete --name ' + name) self.assertIsNotNone(managementgroup_create) - self.assertIsNotNone(managementgroup_create["properties"]["details"]) + self.assertIsNotNone(managementgroup_create["details"]) self.assertEqual( managementgroup_create["id"], "/providers/Microsoft.Management/managementGroups/" + name) self.assertEqual(managementgroup_create["name"], name) self.assertEqual( - managementgroup_create["properties"]["displayName"], + managementgroup_create["displayName"], displayName) self.assertEqual( - managementgroup_create["properties"]["details"]["parent"]["displayName"], - "Tenant Root Group") + managementgroup_create["details"]["parent"]["displayName"], + "Root Management Group") self.assertEqual( - managementgroup_create["properties"]["details"]["parent"]["id"], + managementgroup_create["details"]["parent"]["id"], "/providers/Microsoft.Management/managementGroups/" + - managementgroup_create["properties"]["tenantId"]) + managementgroup_create["tenantId"]) self.assertEqual( - managementgroup_create["properties"]["details"]["parent"]["name"], - managementgroup_create["properties"]["tenantId"]) - self.assertIsNotNone(managementgroup_create["properties"]["tenantId"]) + managementgroup_create["details"]["parent"]["name"], + managementgroup_create["tenantId"]) + self.assertIsNotNone(managementgroup_create["tenantId"]) self.assertEqual( managementgroup_create["type"], - "/providers/Microsoft.Management/managementGroups") + "Microsoft.Management/managementGroups") def test_create_managementgroup_with_displayname(self): name = "testcligroup" @@ -203,28 +202,28 @@ def test_create_managementgroup_with_displayname(self): self.cmd('account management-group delete --name ' + name) self.assertIsNotNone(managementgroup_create) - self.assertIsNotNone(managementgroup_create["properties"]["details"]) + self.assertIsNotNone(managementgroup_create["details"]) self.assertEqual( managementgroup_create["id"], "/providers/Microsoft.Management/managementGroups/" + name) self.assertEqual(managementgroup_create["name"], name) self.assertEqual( - managementgroup_create["properties"]["displayName"], + managementgroup_create["displayName"], displayName) self.assertEqual( - managementgroup_create["properties"]["details"]["parent"]["displayName"], - "Tenant Root Group") + managementgroup_create["details"]["parent"]["displayName"], + "Root Management Group") self.assertEqual( - managementgroup_create["properties"]["details"]["parent"]["id"], + managementgroup_create["details"]["parent"]["id"], "/providers/Microsoft.Management/managementGroups/" + - managementgroup_create["properties"]["tenantId"]) + managementgroup_create["tenantId"]) self.assertEqual( - managementgroup_create["properties"]["details"]["parent"]["name"], - managementgroup_create["properties"]["tenantId"]) - self.assertIsNotNone(managementgroup_create["properties"]["tenantId"]) + managementgroup_create["details"]["parent"]["name"], + managementgroup_create["tenantId"]) + self.assertIsNotNone(managementgroup_create["tenantId"]) self.assertEqual( managementgroup_create["type"], - "/providers/Microsoft.Management/managementGroups") + "Microsoft.Management/managementGroups") def test_create_managementgroup_with_parentid(self): name = "testcligroupchild" @@ -280,27 +279,27 @@ def test_create_managementgroup_with_displayname_and_parentid(self): self.cmd('account management-group delete --name ' + parentName) self.assertIsNotNone(managementgroup_create) - self.assertIsNotNone(managementgroup_create["properties"]["details"]) + self.assertIsNotNone(managementgroup_create["details"]) self.assertEqual( managementgroup_create["id"], "/providers/Microsoft.Management/managementGroups/" + name) self.assertEqual(managementgroup_create["name"], name) self.assertEqual( - managementgroup_create["properties"]["displayName"], + managementgroup_create["displayName"], displayName) self.assertEqual( - managementgroup_create["properties"]["details"]["parent"]["displayName"], + managementgroup_create["details"]["parent"]["displayName"], parentName) self.assertEqual( - managementgroup_create["properties"]["details"]["parent"]["id"], + managementgroup_create["details"]["parent"]["id"], parentId) self.assertEqual( - managementgroup_create["properties"]["details"]["parent"]["name"], + managementgroup_create["details"]["parent"]["name"], parentName) - self.assertIsNotNone(managementgroup_create["properties"]["tenantId"]) + self.assertIsNotNone(managementgroup_create["tenantId"]) self.assertEqual( managementgroup_create["type"], - "/providers/Microsoft.Management/managementGroups") + "Microsoft.Management/managementGroups") def test_update_managementgroup_with_displayname(self): name = "testcligroup" @@ -347,6 +346,7 @@ def test_update_managementgroup_with_parentid(self): name + ' --parent ' + parentId).get_output_in_json() + print(managementgroup_update) self.cmd('account management-group delete --name ' + name) self.cmd('account management-group delete --name ' + parentName) From f6bcc41549853415f65f282f5e2f66d0b9667041 Mon Sep 17 00:00:00 2001 From: Thomas Dolan Date: Wed, 12 Jan 2022 14:28:27 -0800 Subject: [PATCH 04/13] Modified the update method for managementgroups and re-ran tests in live mode --- .../cli/command_modules/resource/commands.py | 19 +- .../cli/command_modules/resource/custom.py | 6 +- ..._create_managementgroup_with_parentid.yaml | 483 ++++++---- ...test_show_managementgroup_with_expand.yaml | 860 +++++++++++++----- ...nagementgroup_with_expand_and_recurse.yaml | 859 ++++++++--------- ...date_managementgroup_with_displayname.yaml | 330 ++++--- ...ntgroup_with_displayname_and_parentid.yaml | 534 ++++++----- ..._update_managementgroup_with_parentid.yaml | 522 ++++++----- .../tests/latest/test_managmentgroups.py | 32 +- 9 files changed, 2297 insertions(+), 1348 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/resource/commands.py b/src/azure-cli/azure/cli/command_modules/resource/commands.py index e94b984ba3d..040454224a8 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/commands.py +++ b/src/azure-cli/azure/cli/command_modules/resource/commands.py @@ -459,15 +459,16 @@ def load_command_table(self, _): g.custom_show_command('show', 'cli_managementgroups_group_show') g.custom_command('create', 'cli_managementgroups_group_create') g.custom_command('delete', 'cli_managementgroups_group_delete') - g.generic_update_command( - 'update', - getter_name='cli_managementgroups_group_update_get', - getter_type=resource_managementgroups_update_type, - setter_name='cli_managementgroups_group_update_set', - setter_type=resource_managementgroups_update_type, - custom_func_name='cli_managementgroups_group_update_custom_func', - custom_func_type=resource_managementgroups_update_type, - exception_handler=managementgroups_exception_handler) + g.custom_command('update', 'cli_managementgroups_group_create') + #g.generic_update_command( + #'update', + #getter_name='cli_managementgroups_group_update_get', + #getter_type=resource_managementgroups_update_type, + #setter_name='cli_managementgroups_group_update_set', + #setter_type=resource_managementgroups_update_type, + #custom_func_name='cli_managementgroups_group_update_custom_func', + #custom_func_type=resource_managementgroups_update_type, + #exception_handler=managementgroups_exception_handler) with self.command_group('account management-group subscription', resource_managementgroups_subscriptions_sdk, client_factory=cf_management_group_subscriptions) as g: g.custom_command('add', 'cli_managementgroups_subscription_add') diff --git a/src/azure-cli/azure/cli/command_modules/resource/custom.py b/src/azure-cli/azure/cli/command_modules/resource/custom.py index 7d7e031a0d3..5f9d6b34a63 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/custom.py +++ b/src/azure-cli/azure/cli/command_modules/resource/custom.py @@ -2888,15 +2888,15 @@ def cli_managementgroups_group_update_custom_func( instance, display_name=None, parent_id=None): - parent_id = _get_parent_id_from_parent(parent_id) + parent_group_id = _get_parent_id_from_parent(parent_id) instance.display_name = display_name - instance.parent_id = parent_id + instance.parent_group_id = parent_group_id return instance def cli_managementgroups_group_update_get(): from azure.mgmt.managementgroups.models import PatchManagementGroupRequest - update_parameters = PatchManagementGroupRequest(display_name=None, parent_id=None) + update_parameters = PatchManagementGroupRequest(display_name=None, parent_group_id=None) return update_parameters diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_managementgroup_with_parentid.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_managementgroup_with_parentid.yaml index e2421c891ca..f56234603db 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_managementgroup_with_parentid.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_managementgroup_with_parentid.yaml @@ -12,27 +12,26 @@ interactions: - keep-alive Content-Length: - '0' + Content-Type: + - application/json ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:21:05 GMT + - Wed, 12 Jan 2022 21:28:47 GMT expires: - '-1' pragma: @@ -64,24 +63,21 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:21:15 GMT + - Wed, 12 Jan 2022 21:28:56 GMT expires: - '-1' pragma: @@ -111,44 +107,47 @@ interactions: Content-Length: - '67' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}' headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 cache-control: - no-cache content-length: - - '172' + - '161' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:21:16 GMT + - Wed, 12 Jan 2022 21:28:58 GMT expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2021-04-01 pragma: - no-cache request-id: - - 062bdcb8-8a54-4a47-9e63-85968ebbca20 + - b5255b72-144a-47a3-8f39-07f8b1e6c15c + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' x-ms-ratelimit-remaining-tenant-writes: - - '1199' + - '1198' status: code: 202 message: Accepted @@ -156,7 +155,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -166,44 +165,51 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"Running"}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Running"}' headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 cache-control: - no-cache content-length: - - '169' + - '157' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:21:27 GMT + - Wed, 12 Jan 2022 21:29:07 GMT expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2021-04-01 pragma: - no-cache request-id: - - 724c9079-a3d4-43fa-88e7-930389dd61c7 + - a5029415-6cd3-472a-9fbb-61b2784dae8b + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff status: - code: 202 - message: Accepted + code: 200 + message: OK - request: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -213,44 +219,47 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"Running"}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":28,"updatedTime":"2022-01-12T21:29:03.2221149Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache content-length: - - '169' + - '374' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:21:37 GMT + - Wed, 12 Jan 2022 21:29:18 GMT expires: - '-1' - location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2018-03-01-preview pragma: - no-cache request-id: - - 3c8016c5-4b74-40ae-8cb3-eeb8a4592164 + - 976855cf-c6b3-45fc-b0ba-48cb783dd685 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff status: - code: 202 - message: Accepted + code: 200 + message: OK - request: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -260,37 +269,38 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"01a4073e-87c8-47cd-aafc-1439b4b5ea2c","displayName":"testcligroup","details":{"version":2,"updatedTime":"2020-12-18T17:21:23.541732Z","updatedBy":"5310aa29-9a44-4cbc-adb3-6347a539537e","parent":{"id":"/providers/Microsoft.Management/managementGroups/01a4073e-87c8-47cd-aafc-1439b4b5ea2c","name":"01a4073e-87c8-47cd-aafc-1439b4b5ea2c","displayName":"Tenant - Root Group"}}}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":28,"updatedTime":"2022-01-12T21:29:03.2221149Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + Management Group"}}}}' headers: cache-control: - no-cache content-length: - - '568' + - '542' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:21:48 GMT + - Wed, 12 Jan 2022 21:29:18 GMT expires: - '-1' pragma: - no-cache request-id: - - 3adf04ab-9500-400e-bcfe-c464993e8792 + - c54a3cbf-a990-4d65-95e0-12bc0882a85b + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff status: @@ -309,27 +319,26 @@ interactions: - keep-alive Content-Length: - '0' + Content-Type: + - application/json ParameterSetName: - --name --parent User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:21:48 GMT + - Wed, 12 Jan 2022 21:29:20 GMT expires: - '-1' pragma: @@ -361,24 +370,21 @@ interactions: ParameterSetName: - --name --parent User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:21:58 GMT + - Wed, 12 Jan 2022 21:29:30 GMT expires: - '-1' pragma: @@ -409,46 +415,201 @@ interactions: Content-Length: - '141' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - --name --parent User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '171' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 12 Jan 2022 21:29:31 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroupchild?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 35bfa9cd-8664-4ca8-958f-575ad8e34453 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroupchild","properties":{"tenantId":"01a4073e-87c8-47cd-aafc-1439b4b5ea2c","displayName":"testcligroupchild","details":{"version":2,"updatedTime":"2020-12-18T17:22:00.0624992Z","updatedBy":"5310aa29-9a44-4cbc-adb3-6347a539537e","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","name":"testcligroup","displayName":"testcligroup"}}}}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild","name":"testcligroupchild","status":"Running"}' headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 cache-control: - no-cache content-length: - - '510' + - '167' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:22:04 GMT + - Wed, 12 Jan 2022 21:29:41 GMT expires: - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroupchild?api-version=2021-04-01 pragma: - no-cache request-id: - - 37604396-4729-4680-8b40-561a1daa9f11 + - 791bad85-1aef-4b2e-aac5-1692653bbc03 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild","name":"testcligroupchild","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":29,"updatedTime":"2022-01-12T21:29:37.4343814Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + headers: + cache-control: + - no-cache + content-length: + - '389' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 12 Jan 2022 21:29:51 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 38bf5cd1-2b4b-47c5-b429-89e29872c15f + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":29,"updatedTime":"2022-01-12T21:29:37.4343814Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","name":"testcligroup","displayName":"testcligroup"}}}}' + headers: + cache-control: + - no-cache + content-length: + - '500' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 12 Jan 2022 21:29:52 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - f881d460-86c8-4095-81d8-88f9fa0c2712 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 x-content-type-options: - nosniff - x-ms-ratelimit-remaining-tenant-writes: - - '1199' status: code: 200 message: OK @@ -465,27 +626,26 @@ interactions: - keep-alive Content-Length: - '0' + Content-Type: + - application/json ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:22:05 GMT + - Wed, 12 Jan 2022 21:29:53 GMT expires: - '-1' pragma: @@ -517,24 +677,21 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:22:16 GMT + - Wed, 12 Jan 2022 21:30:03 GMT expires: - '-1' pragma: @@ -566,38 +723,41 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroupchild","status":"NotStarted"}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","status":"NotStarted"}' headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 cache-control: - no-cache content-length: - - '182' + - '171' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:22:16 GMT + - Wed, 12 Jan 2022 21:30:04 GMT expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroupchild?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroupchild?api-version=2021-04-01 pragma: - no-cache request-id: - - 83127d93-3d3c-4391-87dc-fab616240c99 + - af8ffc88-42eb-489c-adc3-72f8805c9319 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' x-ms-ratelimit-remaining-tenant-deletes: - '14999' status: @@ -607,7 +767,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -617,36 +777,37 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroupchild?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroupchild","status":"Succeeded"}' + string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroupchild","name":"testcligroupchild","status":"Succeeded"}' headers: cache-control: - no-cache content-length: - - '181' + - '169' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:22:27 GMT + - Wed, 12 Jan 2022 21:30:14 GMT expires: - '-1' pragma: - no-cache request-id: - - bccd5003-8659-4db2-93d8-0c102a3493ce + - a7f9bba6-20b3-4168-a719-346d6c5bb46a + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff status: @@ -665,27 +826,26 @@ interactions: - keep-alive Content-Length: - '0' + Content-Type: + - application/json ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:22:28 GMT + - Wed, 12 Jan 2022 21:30:16 GMT expires: - '-1' pragma: @@ -717,24 +877,21 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:22:38 GMT + - Wed, 12 Jan 2022 21:30:26 GMT expires: - '-1' pragma: @@ -766,38 +923,41 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}' headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 cache-control: - no-cache content-length: - - '172' + - '161' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:22:39 GMT + - Wed, 12 Jan 2022 21:30:27 GMT expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroup?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroup?api-version=2021-04-01 pragma: - no-cache request-id: - - 36d1332d-fe9d-4591-ac55-a91380529ad5 + - 7ac9c1f9-5e16-467e-b632-cd40ec1746e9 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' x-ms-ratelimit-remaining-tenant-deletes: - '14999' status: @@ -807,7 +967,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -817,36 +977,37 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"Succeeded"}' + string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded"}' headers: cache-control: - no-cache content-length: - - '171' + - '159' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:22:50 GMT + - Wed, 12 Jan 2022 21:30:37 GMT expires: - '-1' pragma: - no-cache request-id: - - 947225cd-1051-40f4-86cb-c83f12804d85 + - 7a95a3db-50bb-4522-9315-d9c23312d26f + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff status: diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_show_managementgroup_with_expand.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_show_managementgroup_with_expand.yaml index f799ed5c20d..cd462ac6ec2 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_show_managementgroup_with_expand.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_show_managementgroup_with_expand.yaml @@ -12,27 +12,26 @@ interactions: - keep-alive Content-Length: - '0' + Content-Type: + - application/json ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:19:53 GMT + - Wed, 12 Jan 2022 21:49:02 GMT expires: - '-1' pragma: @@ -64,24 +63,21 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:20:05 GMT + - Wed, 12 Jan 2022 21:49:12 GMT expires: - '-1' pragma: @@ -111,35 +107,87 @@ interactions: Content-Length: - '71' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"Microsoft.Management/managementGroups","name":"testcligetgroup1","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '169' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 12 Jan 2022 21:49:14 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup1?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - ce4cb3da-2483-42d0-99ab-d9e49c7205a9 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2426 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup1","properties":{"tenantId":"01a4073e-87c8-47cd-aafc-1439b4b5ea2c","displayName":"testcligetgroup1","details":{"version":3,"updatedTime":"2020-12-18T21:03:15.6013813Z","updatedBy":"5310aa29-9a44-4cbc-adb3-6347a539537e","parent":{"id":"/providers/Microsoft.Management/managementGroups/01a4073e-87c8-47cd-aafc-1439b4b5ea2c","name":"01a4073e-87c8-47cd-aafc-1439b4b5ea2c","displayName":"Tenant - Root Group"}}}}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1","name":"testcligetgroup1","status":"Running"}' headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 cache-control: - no-cache content-length: - - '560' + - '165' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:20:05 GMT + - Wed, 12 Jan 2022 21:49:24 GMT expires: - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup1?api-version=2021-04-01 pragma: - no-cache request-id: - - 9f80c4d8-23df-4198-b8af-d2fa19753d95 + - ebab473a-556e-4139-8222-3cc6337e8f20 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -147,11 +195,106 @@ interactions: vary: - Accept-Encoding,Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2426 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1","name":"testcligetgroup1","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup1","details":{"version":6,"updatedTime":"2022-01-12T21:49:20.2123892Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + headers: + cache-control: + - no-cache + content-length: + - '385' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 12 Jan 2022 21:49:35 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 2ff333b1-2d20-4209-9c21-37d48b71b725 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-ba-restapi: + - 1.0.3.2426 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"Microsoft.Management/managementGroups","name":"testcligetgroup1","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup1","details":{"version":6,"updatedTime":"2022-01-12T21:49:20.2123892Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + Management Group"}}}}' + headers: + cache-control: + - no-cache + content-length: + - '553' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 12 Jan 2022 21:49:35 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 5438d734-d578-45c0-b40f-e134583e52a4 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-ba-restapi: + - 1.0.3.2426 x-content-type-options: - nosniff - x-ms-ratelimit-remaining-tenant-writes: - - '1199' status: code: 200 message: OK @@ -168,27 +311,26 @@ interactions: - keep-alive Content-Length: - '0' + Content-Type: + - application/json ParameterSetName: - --name --parent User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:20:05 GMT + - Wed, 12 Jan 2022 21:49:36 GMT expires: - '-1' pragma: @@ -220,24 +362,21 @@ interactions: ParameterSetName: - --name --parent User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:20:15 GMT + - Wed, 12 Jan 2022 21:49:46 GMT expires: - '-1' pragma: @@ -268,46 +407,201 @@ interactions: Content-Length: - '144' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - --name --parent User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup2?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup2?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"Microsoft.Management/managementGroups","name":"testcligetgroup2","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '169' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 12 Jan 2022 21:49:47 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup2?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - f015e5fc-b441-46d6-872f-862f924bb927 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup2","properties":{"tenantId":"01a4073e-87c8-47cd-aafc-1439b4b5ea2c","displayName":"testcligetgroup2","details":{"version":3,"updatedTime":"2020-12-18T21:16:03.9295771Z","updatedBy":"5310aa29-9a44-4cbc-adb3-6347a539537e","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","name":"testcligetgroup1","displayName":"testcligetgroup1"}}}}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2","name":"testcligetgroup2","status":"Running"}' headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2?api-version=2021-04-01 cache-control: - no-cache content-length: - - '519' + - '165' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:20:17 GMT + - Wed, 12 Jan 2022 21:49:57 GMT expires: - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup2?api-version=2021-04-01 pragma: - no-cache request-id: - - d8cd1134-249f-47dc-859f-fdc8b247d9f0 + - d66877dd-f1d4-4769-9a3f-19a92a7d8b3a + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2","name":"testcligetgroup2","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup2","details":{"version":6,"updatedTime":"2022-01-12T21:49:53.8185481Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + headers: + cache-control: + - no-cache + content-length: + - '385' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 12 Jan 2022 21:50:08 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 4fa19046-b24c-4e2c-b0f6-c7e85ef66fa0 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup2?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"Microsoft.Management/managementGroups","name":"testcligetgroup2","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup2","details":{"version":6,"updatedTime":"2022-01-12T21:49:53.8185481Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","name":"testcligetgroup1","displayName":"testcligetgroup1"}}}}' + headers: + cache-control: + - no-cache + content-length: + - '508' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 12 Jan 2022 21:50:08 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 7e0a47fe-0d89-4c5f-8735-539170dfeaa2 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 x-content-type-options: - nosniff - x-ms-ratelimit-remaining-tenant-writes: - - '1199' status: code: 200 message: OK @@ -324,27 +618,26 @@ interactions: - keep-alive Content-Length: - '0' + Content-Type: + - application/json ParameterSetName: - --name --parent User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:20:16 GMT + - Wed, 12 Jan 2022 21:50:10 GMT expires: - '-1' pragma: @@ -376,24 +669,21 @@ interactions: ParameterSetName: - --name --parent User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:20:28 GMT + - Wed, 12 Jan 2022 21:50:20 GMT expires: - '-1' pragma: @@ -424,46 +714,201 @@ interactions: Content-Length: - '144' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - --name --parent User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup3?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup3?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup3","type":"Microsoft.Management/managementGroups","name":"testcligetgroup3","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup3?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '169' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 12 Jan 2022 21:50:21 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup3?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 44c8b16e-2e15-4b75-aed5-a2e90f8827a8 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup3?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup3","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup3","properties":{"tenantId":"01a4073e-87c8-47cd-aafc-1439b4b5ea2c","displayName":"testcligetgroup3","details":{"version":2,"updatedTime":"2020-12-18T21:16:44.5320505Z","updatedBy":"5310aa29-9a44-4cbc-adb3-6347a539537e","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","name":"testcligetgroup2","displayName":"testcligetgroup2"}}}}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup3","name":"testcligetgroup3","status":"Running"}' headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup3?api-version=2021-04-01 cache-control: - no-cache content-length: - - '519' + - '165' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:20:28 GMT + - Wed, 12 Jan 2022 21:50:31 GMT expires: - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup3?api-version=2021-04-01 pragma: - no-cache request-id: - - 419f1178-4832-439e-b962-037718df0331 + - f652a3cb-85fd-44bd-b2bd-60882e174681 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup3?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup3","name":"testcligetgroup3","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup3","details":{"version":3,"updatedTime":"2022-01-12T21:50:27.1084083Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + headers: + cache-control: + - no-cache + content-length: + - '385' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 12 Jan 2022 21:50:41 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 815a6620-74df-4194-b380-663662410550 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup3?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup3","type":"Microsoft.Management/managementGroups","name":"testcligetgroup3","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup3","details":{"version":3,"updatedTime":"2022-01-12T21:50:27.1084083Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","name":"testcligetgroup2","displayName":"testcligetgroup2"}}}}' + headers: + cache-control: + - no-cache + content-length: + - '508' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 12 Jan 2022 21:50:42 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 4acc22d8-e515-4d69-a89a-8c39acd6d179 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 x-content-type-options: - nosniff - x-ms-ratelimit-remaining-tenant-writes: - - '1199' status: code: 200 message: OK @@ -480,27 +925,26 @@ interactions: - keep-alive Content-Length: - '0' + Content-Type: + - application/json ParameterSetName: - --name --expand User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:20:29 GMT + - Wed, 12 Jan 2022 21:50:43 GMT expires: - '-1' pragma: @@ -532,24 +976,21 @@ interactions: ParameterSetName: - --name --expand User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:20:39 GMT + - Wed, 12 Jan 2022 21:50:53 GMT expires: - '-1' pragma: @@ -579,38 +1020,37 @@ interactions: ParameterSetName: - --name --expand User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup2?api-version=2018-03-01-preview&$expand=children&$recurse=false + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup2?api-version=2021-04-01&$expand=children&$recurse=false response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup2","properties":{"tenantId":"01a4073e-87c8-47cd-aafc-1439b4b5ea2c","displayName":"testcligetgroup2","details":{"version":3,"updatedTime":"2020-12-18T21:16:03.9295771Z","updatedBy":"5310aa29-9a44-4cbc-adb3-6347a539537e","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","name":"testcligetgroup1","displayName":"testcligetgroup1"}},"children":[{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup3","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup3","displayName":"testcligetgroup3"}]}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"Microsoft.Management/managementGroups","name":"testcligetgroup2","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup2","details":{"version":6,"updatedTime":"2022-01-12T21:49:53.8185481Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","name":"testcligetgroup1","displayName":"testcligetgroup1"}},"children":[{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup3","type":"Microsoft.Management/managementGroups","name":"testcligetgroup3","displayName":"testcligetgroup3"}]}}' headers: cache-control: - no-cache content-length: - - '724' + - '702' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:20:40 GMT + - Wed, 12 Jan 2022 21:50:54 GMT expires: - '-1' pragma: - no-cache request-id: - - 2288c2ee-e5bf-413a-a5e7-8ee6fd314784 + - 7440059d-12d2-4bca-8f8c-ed41aeda18c8 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff status: @@ -629,27 +1069,26 @@ interactions: - keep-alive Content-Length: - '0' + Content-Type: + - application/json ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:20:40 GMT + - Wed, 12 Jan 2022 21:50:55 GMT expires: - '-1' pragma: @@ -681,24 +1120,21 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:20:50 GMT + - Wed, 12 Jan 2022 21:51:05 GMT expires: - '-1' pragma: @@ -730,38 +1166,39 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup3?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup3?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup3","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup3","status":"NotStarted"}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup3","type":"Microsoft.Management/managementGroups","name":"testcligetgroup3","status":"NotStarted"}' headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup3?api-version=2021-04-01 cache-control: - no-cache content-length: - - '180' + - '169' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:20:51 GMT + - Wed, 12 Jan 2022 21:51:06 GMT expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup3?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup3?api-version=2021-04-01 pragma: - no-cache request-id: - - ceed486b-8af5-4dd6-bc84-c9f9090f6ef6 + - f9bc37ce-5e38-40e9-8273-71a47ed422e5 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2426 x-content-type-options: - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' x-ms-ratelimit-remaining-tenant-deletes: - '14999' status: @@ -771,7 +1208,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -781,28 +1218,27 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup3?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup3?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup3","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup3","status":"Succeeded"}' + string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup3","name":"testcligetgroup3","status":"Succeeded"}' headers: cache-control: - no-cache content-length: - - '179' + - '167' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:21:02 GMT + - Wed, 12 Jan 2022 21:51:16 GMT expires: - '-1' pragma: - no-cache request-id: - - c9cb79cb-4e0c-4970-bf36-a6eb82402e7e + - 616f26b8-1d35-4b8e-8fd9-9dbcd9441860 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -810,7 +1246,7 @@ interactions: vary: - Accept-Encoding,Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2426 x-content-type-options: - nosniff status: @@ -829,27 +1265,26 @@ interactions: - keep-alive Content-Length: - '0' + Content-Type: + - application/json ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:21:04 GMT + - Wed, 12 Jan 2022 21:51:18 GMT expires: - '-1' pragma: @@ -881,24 +1316,21 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:21:14 GMT + - Wed, 12 Jan 2022 21:51:28 GMT expires: - '-1' pragma: @@ -930,40 +1362,41 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup2?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup2?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup2","status":"NotStarted"}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"Microsoft.Management/managementGroups","name":"testcligetgroup2","status":"NotStarted"}' headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup2?api-version=2021-04-01 cache-control: - no-cache content-length: - - '180' + - '169' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:21:15 GMT + - Wed, 12 Jan 2022 21:51:29 GMT expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup2?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup2?api-version=2021-04-01 pragma: - no-cache request-id: - - 6eccd162-96c0-49a2-ac9a-9cfe72ad9884 + - b77de0f0-cb5d-4c36-8815-496e862c0a26 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2426 x-content-type-options: - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '58' x-ms-ratelimit-remaining-tenant-deletes: - - '14999' + - '14998' status: code: 202 message: Accepted @@ -971,7 +1404,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -981,28 +1414,27 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup2?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup2?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup2","status":"Succeeded"}' + string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup2","name":"testcligetgroup2","status":"Succeeded"}' headers: cache-control: - no-cache content-length: - - '179' + - '167' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:21:26 GMT + - Wed, 12 Jan 2022 21:51:39 GMT expires: - '-1' pragma: - no-cache request-id: - - 795c4c55-c220-4e53-a1e8-3b1a9083cf78 + - bda289c1-2fdf-430c-9f48-79718cd5dee1 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -1010,7 +1442,7 @@ interactions: vary: - Accept-Encoding,Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2426 x-content-type-options: - nosniff status: @@ -1029,27 +1461,26 @@ interactions: - keep-alive Content-Length: - '0' + Content-Type: + - application/json ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:21:27 GMT + - Wed, 12 Jan 2022 21:51:39 GMT expires: - '-1' pragma: @@ -1081,24 +1512,21 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:21:37 GMT + - Wed, 12 Jan 2022 21:51:49 GMT expires: - '-1' pragma: @@ -1130,40 +1558,43 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup1","status":"NotStarted"}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"Microsoft.Management/managementGroups","name":"testcligetgroup1","status":"NotStarted"}' headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 cache-control: - no-cache content-length: - - '180' + - '169' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:21:38 GMT + - Wed, 12 Jan 2022 21:51:52 GMT expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup1?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup1?api-version=2021-04-01 pragma: - no-cache request-id: - - 0e5c000b-7557-4d1d-a561-6595f39f2017 + - e462c047-8fa2-4bcd-a27f-423189452536 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' x-ms-ratelimit-remaining-tenant-deletes: - - '14999' + - '14998' status: code: 202 message: Accepted @@ -1171,7 +1602,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -1181,36 +1612,37 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup1?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup1","status":"Succeeded"}' + string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup1","name":"testcligetgroup1","status":"Succeeded"}' headers: cache-control: - no-cache content-length: - - '179' + - '167' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:21:48 GMT + - Wed, 12 Jan 2022 21:52:02 GMT expires: - '-1' pragma: - no-cache request-id: - - 65ad3eb7-0bef-4e15-838d-c29cfac4ca4c + - bc0dfab6-8656-409b-a313-dbae039f207a + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff status: diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_show_managementgroup_with_expand_and_recurse.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_show_managementgroup_with_expand_and_recurse.yaml index cfc671b3a59..78f61bc899a 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_show_managementgroup_with_expand_and_recurse.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_show_managementgroup_with_expand_and_recurse.yaml @@ -12,27 +12,26 @@ interactions: - keep-alive Content-Length: - '0' + Content-Type: + - application/json ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:22:57 GMT + - Wed, 12 Jan 2022 21:41:20 GMT expires: - '-1' pragma: @@ -46,7 +45,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 200 message: OK @@ -64,24 +63,21 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:23:08 GMT + - Wed, 12 Jan 2022 21:41:31 GMT expires: - '-1' pragma: @@ -111,42 +107,45 @@ interactions: Content-Length: - '71' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup1","status":"NotStarted"}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"Microsoft.Management/managementGroups","name":"testcligetgroup1","status":"NotStarted"}' headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 cache-control: - no-cache content-length: - - '180' + - '169' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:23:09 GMT + - Wed, 12 Jan 2022 21:41:32 GMT expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup1?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup1?api-version=2021-04-01 pragma: - no-cache request-id: - - 95dd6500-b168-4899-94b3-30dd49c33cbd + - 140aa45f-7f56-45fa-86a2-dcaa4915d95c + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' x-ms-ratelimit-remaining-tenant-writes: - '1199' status: @@ -156,7 +155,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -166,44 +165,51 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup1?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup1","status":"Running"}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1","name":"testcligetgroup1","status":"Running"}' headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 cache-control: - no-cache content-length: - - '177' + - '165' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:23:19 GMT + - Wed, 12 Jan 2022 21:41:42 GMT expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup1?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup1?api-version=2021-04-01 pragma: - no-cache request-id: - - e82e4961-f728-4d04-8cc2-fc2843c3256d + - 548462ed-e1b8-46d0-b880-190809acbd9d + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff status: - code: 202 - message: Accepted + code: 200 + message: OK - request: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -213,44 +219,47 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup1?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup1","status":"Running"}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1","name":"testcligetgroup1","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup1","details":{"version":5,"updatedTime":"2022-01-12T21:41:37.9339498Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache content-length: - - '177' + - '385' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:23:30 GMT + - Wed, 12 Jan 2022 21:41:54 GMT expires: - '-1' - location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup1?api-version=2018-03-01-preview pragma: - no-cache request-id: - - e360c19c-53ed-4f58-96ee-649c4e9aa521 + - d3ed7ecb-e24c-4644-bded-ee0135c3d0b6 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff status: - code: 202 - message: Accepted + code: 200 + message: OK - request: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -260,37 +269,38 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup1?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup1","status":"Succeeded","properties":{"tenantId":"01a4073e-87c8-47cd-aafc-1439b4b5ea2c","displayName":"testcligetgroup1","details":{"version":2,"updatedTime":"2020-12-18T17:23:18.8018023Z","updatedBy":"5310aa29-9a44-4cbc-adb3-6347a539537e","parent":{"id":"/providers/Microsoft.Management/managementGroups/01a4073e-87c8-47cd-aafc-1439b4b5ea2c","name":"01a4073e-87c8-47cd-aafc-1439b4b5ea2c","displayName":"Tenant - Root Group"}}}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"Microsoft.Management/managementGroups","name":"testcligetgroup1","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup1","details":{"version":5,"updatedTime":"2022-01-12T21:41:37.9339498Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + Management Group"}}}}' headers: cache-control: - no-cache content-length: - - '581' + - '553' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:23:40 GMT + - Wed, 12 Jan 2022 21:41:54 GMT expires: - '-1' pragma: - no-cache request-id: - - 5996d7e3-9e3b-4988-80fa-f78200410bcc + - bf15cd34-23aa-4460-8ce4-e689fb51dfd9 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff status: @@ -309,27 +319,26 @@ interactions: - keep-alive Content-Length: - '0' + Content-Type: + - application/json ParameterSetName: - --name --parent User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:23:41 GMT + - Wed, 12 Jan 2022 21:41:54 GMT expires: - '-1' pragma: @@ -361,24 +370,21 @@ interactions: ParameterSetName: - --name --parent User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:23:52 GMT + - Wed, 12 Jan 2022 21:42:04 GMT expires: - '-1' pragma: @@ -409,44 +415,47 @@ interactions: Content-Length: - '144' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - --name --parent User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup2?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup2?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup2","status":"NotStarted"}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"Microsoft.Management/managementGroups","name":"testcligetgroup2","status":"NotStarted"}' headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2?api-version=2021-04-01 cache-control: - no-cache content-length: - - '180' + - '169' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:23:53 GMT + - Wed, 12 Jan 2022 21:42:06 GMT expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup2?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup2?api-version=2021-04-01 pragma: - no-cache request-id: - - fdb247e2-bfb7-4abe-9636-ee81284af34b + - 102b9f4f-1f15-436d-b3ac-7e5d02fd51c9 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' x-ms-ratelimit-remaining-tenant-writes: - - '1198' + - '1199' status: code: 202 message: Accepted @@ -454,7 +463,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -464,44 +473,51 @@ interactions: ParameterSetName: - --name --parent User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup2?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup2","status":"Running"}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2","name":"testcligetgroup2","status":"Running"}' headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2?api-version=2021-04-01 cache-control: - no-cache content-length: - - '177' + - '165' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:24:04 GMT + - Wed, 12 Jan 2022 21:42:16 GMT expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup2?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup2?api-version=2021-04-01 pragma: - no-cache request-id: - - 4bc4e09e-d5e5-475e-9ee9-b49f419752f0 + - 470a18b0-4348-46dc-875f-1ef95d751ff5 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff status: - code: 202 - message: Accepted + code: 200 + message: OK - request: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -511,44 +527,47 @@ interactions: ParameterSetName: - --name --parent User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup2?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup2","status":"Running"}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2","name":"testcligetgroup2","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup2","details":{"version":5,"updatedTime":"2022-01-12T21:42:11.7786786Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache content-length: - - '177' + - '385' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:24:14 GMT + - Wed, 12 Jan 2022 21:42:27 GMT expires: - '-1' - location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup2?api-version=2018-03-01-preview pragma: - no-cache request-id: - - 2ef27d72-7083-487c-8edd-0ba809cb20e9 + - 9ff69ea3-e579-4d75-a369-79d55db1c324 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff status: - code: 202 - message: Accepted + code: 200 + message: OK - request: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -558,36 +577,37 @@ interactions: ParameterSetName: - --name --parent User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup2?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup2?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup2","status":"Succeeded","properties":{"tenantId":"01a4073e-87c8-47cd-aafc-1439b4b5ea2c","displayName":"testcligetgroup2","details":{"version":2,"updatedTime":"2020-12-18T17:24:03.890985Z","updatedBy":"5310aa29-9a44-4cbc-adb3-6347a539537e","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","name":"testcligetgroup1","displayName":"testcligetgroup1"}}}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"Microsoft.Management/managementGroups","name":"testcligetgroup2","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup2","details":{"version":5,"updatedTime":"2022-01-12T21:42:11.7786786Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","name":"testcligetgroup1","displayName":"testcligetgroup1"}}}}' headers: cache-control: - no-cache content-length: - - '539' + - '508' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:24:25 GMT + - Wed, 12 Jan 2022 21:42:27 GMT expires: - '-1' pragma: - no-cache request-id: - - b1c28199-1614-4a88-b444-ff7826f2d481 + - 6a7087b7-a973-4f2f-9961-dd87aec7e22f + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff status: @@ -606,27 +626,26 @@ interactions: - keep-alive Content-Length: - '0' + Content-Type: + - application/json ParameterSetName: - --name --parent User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:24:26 GMT + - Wed, 12 Jan 2022 21:42:28 GMT expires: - '-1' pragma: @@ -658,24 +677,21 @@ interactions: ParameterSetName: - --name --parent User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:24:36 GMT + - Wed, 12 Jan 2022 21:42:39 GMT expires: - '-1' pragma: @@ -706,42 +722,45 @@ interactions: Content-Length: - '144' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - --name --parent User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup3?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup3?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup3","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup3","status":"NotStarted"}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup3","type":"Microsoft.Management/managementGroups","name":"testcligetgroup3","status":"NotStarted"}' headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup3?api-version=2021-04-01 cache-control: - no-cache content-length: - - '180' + - '169' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:24:37 GMT + - Wed, 12 Jan 2022 21:42:39 GMT expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup3?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup3?api-version=2021-04-01 pragma: - no-cache request-id: - - 2f19cb5c-b20c-44c5-895a-c982c654c8e2 + - 08b1d58d-7fd7-4511-b67a-8d1f65886b51 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' x-ms-ratelimit-remaining-tenant-writes: - '1199' status: @@ -751,7 +770,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -761,44 +780,51 @@ interactions: ParameterSetName: - --name --parent User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup3?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup3?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup3","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup3","status":"Running"}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup3","name":"testcligetgroup3","status":"Running"}' headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup3?api-version=2021-04-01 cache-control: - no-cache content-length: - - '177' + - '165' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:24:48 GMT + - Wed, 12 Jan 2022 21:42:49 GMT expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup3?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup3?api-version=2021-04-01 pragma: - no-cache request-id: - - 3d250ec0-7748-4906-bc5c-0bea95d87b7c + - 9ec81c7e-fba2-4e51-8adb-e351c2ed80b9 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff status: - code: 202 - message: Accepted + code: 200 + message: OK - request: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -808,44 +834,47 @@ interactions: ParameterSetName: - --name --parent User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup3?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup3?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup3","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup3","status":"Running"}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup3","name":"testcligetgroup3","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup3","details":{"version":2,"updatedTime":"2022-01-12T21:42:45.2968591Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache content-length: - - '177' + - '385' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:24:58 GMT + - Wed, 12 Jan 2022 21:43:00 GMT expires: - '-1' - location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup3?api-version=2018-03-01-preview pragma: - no-cache request-id: - - 9a97e615-0a2e-4fc7-a0a1-9b2beeab07fb + - c3cd9b12-b967-4f5d-822c-146f252cdef7 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff status: - code: 202 - message: Accepted + code: 200 + message: OK - request: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -855,36 +884,37 @@ interactions: ParameterSetName: - --name --parent User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup3?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup3?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup3","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup3","status":"Succeeded","properties":{"tenantId":"01a4073e-87c8-47cd-aafc-1439b4b5ea2c","displayName":"testcligetgroup3","details":{"version":1,"updatedTime":"2020-12-18T17:24:44.524422Z","updatedBy":"5310aa29-9a44-4cbc-adb3-6347a539537e","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","name":"testcligetgroup2","displayName":"testcligetgroup2"}}}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup3","type":"Microsoft.Management/managementGroups","name":"testcligetgroup3","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup3","details":{"version":2,"updatedTime":"2022-01-12T21:42:45.2968591Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","name":"testcligetgroup2","displayName":"testcligetgroup2"}}}}' headers: cache-control: - no-cache content-length: - - '539' + - '508' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:25:09 GMT + - Wed, 12 Jan 2022 21:43:00 GMT expires: - '-1' pragma: - no-cache request-id: - - d051cca7-542a-4852-8cbf-1d0d3f5734fc + - 54eb2739-c452-4f37-8310-20838f67c4f3 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff status: @@ -903,27 +933,26 @@ interactions: - keep-alive Content-Length: - '0' + Content-Type: + - application/json ParameterSetName: - --name --parent User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:25:11 GMT + - Wed, 12 Jan 2022 21:43:01 GMT expires: - '-1' pragma: @@ -937,7 +966,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1196' status: code: 200 message: OK @@ -955,24 +984,21 @@ interactions: ParameterSetName: - --name --parent User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:25:21 GMT + - Wed, 12 Jan 2022 21:43:11 GMT expires: - '-1' pragma: @@ -1003,42 +1029,45 @@ interactions: Content-Length: - '144' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - --name --parent User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup4?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup4?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup4","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup4","status":"NotStarted"}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup4","type":"Microsoft.Management/managementGroups","name":"testcligetgroup4","status":"NotStarted"}' headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup4?api-version=2021-04-01 cache-control: - no-cache content-length: - - '180' + - '169' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:25:21 GMT + - Wed, 12 Jan 2022 21:43:13 GMT expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup4?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup4?api-version=2021-04-01 pragma: - no-cache request-id: - - 310aef06-c9b6-4db6-b9af-f01f03c8d16c + - 286c682c-33f2-47d4-804b-271b3c68184f + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' x-ms-ratelimit-remaining-tenant-writes: - '1199' status: @@ -1048,7 +1077,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -1058,44 +1087,51 @@ interactions: ParameterSetName: - --name --parent User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup4?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup4?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup4","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup4","status":"Running"}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup4","name":"testcligetgroup4","status":"Running"}' headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup4?api-version=2021-04-01 cache-control: - no-cache content-length: - - '177' + - '165' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:25:31 GMT + - Wed, 12 Jan 2022 21:43:23 GMT expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup4?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup4?api-version=2021-04-01 pragma: - no-cache request-id: - - 3ab2f299-ef78-470e-b0ae-e0db96953a4b + - 504bafd9-61d6-48b8-8bfd-91078117a63f + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff status: - code: 202 - message: Accepted + code: 200 + message: OK - request: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -1105,44 +1141,47 @@ interactions: ParameterSetName: - --name --parent User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup4?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup4?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup4","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup4","status":"Running"}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup4","name":"testcligetgroup4","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup4","details":{"version":2,"updatedTime":"2022-01-12T21:43:18.4376931Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache content-length: - - '177' + - '385' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:25:43 GMT + - Wed, 12 Jan 2022 21:43:34 GMT expires: - '-1' - location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup4?api-version=2018-03-01-preview pragma: - no-cache request-id: - - e5c04878-87ba-4629-986f-111730a7cee6 + - 263afca8-be72-429e-95a2-0babc9fd0419 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff status: - code: 202 - message: Accepted + code: 200 + message: OK - request: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -1152,36 +1191,37 @@ interactions: ParameterSetName: - --name --parent User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup4?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup4?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup4","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup4","status":"Succeeded","properties":{"tenantId":"01a4073e-87c8-47cd-aafc-1439b4b5ea2c","displayName":"testcligetgroup4","details":{"version":1,"updatedTime":"2020-12-18T17:25:30.1811008Z","updatedBy":"5310aa29-9a44-4cbc-adb3-6347a539537e","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup3","name":"testcligetgroup3","displayName":"testcligetgroup3"}}}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup4","type":"Microsoft.Management/managementGroups","name":"testcligetgroup4","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup4","details":{"version":2,"updatedTime":"2022-01-12T21:43:18.4376931Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup3","name":"testcligetgroup3","displayName":"testcligetgroup3"}}}}' headers: cache-control: - no-cache content-length: - - '540' + - '508' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:25:53 GMT + - Wed, 12 Jan 2022 21:43:34 GMT expires: - '-1' pragma: - no-cache request-id: - - ed60915f-2304-4f8f-870e-f7fda0e61d60 + - 2c8fa35f-ec29-433f-9b5a-523045427123 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff status: @@ -1200,27 +1240,26 @@ interactions: - keep-alive Content-Length: - '0' + Content-Type: + - application/json ParameterSetName: - --name --expand --recurse User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:25:54 GMT + - Wed, 12 Jan 2022 21:43:35 GMT expires: - '-1' pragma: @@ -1234,7 +1273,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 200 message: OK @@ -1252,24 +1291,21 @@ interactions: ParameterSetName: - --name --expand --recurse User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:26:04 GMT + - Wed, 12 Jan 2022 21:43:45 GMT expires: - '-1' pragma: @@ -1299,38 +1335,37 @@ interactions: ParameterSetName: - --name --expand --recurse User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup2?api-version=2018-03-01-preview&$expand=children&$recurse=true + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup2?api-version=2021-04-01&$expand=children&$recurse=true response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup2","properties":{"tenantId":"01a4073e-87c8-47cd-aafc-1439b4b5ea2c","displayName":"testcligetgroup2","details":{"version":0,"updatedTime":"0001-01-01T00:00:00","updatedBy":null,"parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","name":"testcligetgroup1","displayName":"testcligetgroup1"}},"children":[{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup3","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup3","displayName":"testcligetgroup3","children":[{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup4","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup4","displayName":"testcligetgroup4"}]}]}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"Microsoft.Management/managementGroups","name":"testcligetgroup2","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup2","details":{"version":0,"updatedTime":"0001-01-01T00:00:00","updatedBy":null,"parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","name":"testcligetgroup1","displayName":"testcligetgroup1"}},"children":[{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup3","type":"Microsoft.Management/managementGroups","name":"testcligetgroup3","displayName":"testcligetgroup3","children":[{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup4","type":"Microsoft.Management/managementGroups","name":"testcligetgroup4","displayName":"testcligetgroup4"}]}]}}' headers: cache-control: - no-cache content-length: - - '886' + - '853' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:26:05 GMT + - Wed, 12 Jan 2022 21:43:46 GMT expires: - '-1' pragma: - no-cache request-id: - - 75bbbd40-29c6-4723-88df-8d669ea41e2d + - 4686a4cc-a502-4f69-b319-9d0db570084f + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff status: @@ -1349,27 +1384,26 @@ interactions: - keep-alive Content-Length: - '0' + Content-Type: + - application/json ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:26:06 GMT + - Wed, 12 Jan 2022 21:43:46 GMT expires: - '-1' pragma: @@ -1383,7 +1417,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 200 message: OK @@ -1401,24 +1435,21 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:26:16 GMT + - Wed, 12 Jan 2022 21:43:57 GMT expires: - '-1' pragma: @@ -1450,38 +1481,41 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup4?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup4?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup4","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup4","status":"NotStarted"}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup4","type":"Microsoft.Management/managementGroups","name":"testcligetgroup4","status":"NotStarted"}' headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup4?api-version=2021-04-01 cache-control: - no-cache content-length: - - '180' + - '169' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:26:17 GMT + - Wed, 12 Jan 2022 21:43:58 GMT expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup4?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup4?api-version=2021-04-01 pragma: - no-cache request-id: - - 2e3a7b9b-9140-42e6-a2cb-d8656cbb0b0e + - cae2e61f-2626-4d2b-8ac5-375bfd48eeb6 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' x-ms-ratelimit-remaining-tenant-deletes: - '14999' status: @@ -1491,7 +1525,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -1501,36 +1535,37 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup4?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup4?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup4","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup4","status":"Succeeded"}' + string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup4","name":"testcligetgroup4","status":"Succeeded"}' headers: cache-control: - no-cache content-length: - - '179' + - '167' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:26:28 GMT + - Wed, 12 Jan 2022 21:44:08 GMT expires: - '-1' pragma: - no-cache request-id: - - 1623f4f6-0042-416e-9987-47a05d5d657b + - 57587ab8-564d-4423-98f5-1ffd71402bb6 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff status: @@ -1549,27 +1584,26 @@ interactions: - keep-alive Content-Length: - '0' + Content-Type: + - application/json ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:26:29 GMT + - Wed, 12 Jan 2022 21:44:09 GMT expires: - '-1' pragma: @@ -1601,24 +1635,21 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:26:39 GMT + - Wed, 12 Jan 2022 21:44:19 GMT expires: - '-1' pragma: @@ -1650,38 +1681,41 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup3?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup3?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup3","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup3","status":"NotStarted"}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup3","type":"Microsoft.Management/managementGroups","name":"testcligetgroup3","status":"NotStarted"}' headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup3?api-version=2021-04-01 cache-control: - no-cache content-length: - - '180' + - '169' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:26:40 GMT + - Wed, 12 Jan 2022 21:44:20 GMT expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup3?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup3?api-version=2021-04-01 pragma: - no-cache request-id: - - 8b1c24a1-f2ed-4a09-9090-8882945f35fb + - 87aa21e5-5f2a-4ad5-ba1b-84162fde1576 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' x-ms-ratelimit-remaining-tenant-deletes: - '14999' status: @@ -1691,7 +1725,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -1701,36 +1735,37 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup3?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup3?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup3","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup3","status":"Succeeded"}' + string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup3","name":"testcligetgroup3","status":"Succeeded"}' headers: cache-control: - no-cache content-length: - - '179' + - '167' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:26:51 GMT + - Wed, 12 Jan 2022 21:44:30 GMT expires: - '-1' pragma: - no-cache request-id: - - 956db46a-1666-4020-8288-6c86d2fbf561 + - 259291f1-b79d-431c-960a-885ed08afad6 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff status: @@ -1749,27 +1784,26 @@ interactions: - keep-alive Content-Length: - '0' + Content-Type: + - application/json ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:26:52 GMT + - Wed, 12 Jan 2022 21:44:31 GMT expires: - '-1' pragma: @@ -1801,24 +1835,21 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:27:02 GMT + - Wed, 12 Jan 2022 21:44:41 GMT expires: - '-1' pragma: @@ -1850,38 +1881,39 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup2?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup2?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup2","status":"NotStarted"}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"Microsoft.Management/managementGroups","name":"testcligetgroup2","status":"NotStarted"}' headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup2?api-version=2021-04-01 cache-control: - no-cache content-length: - - '180' + - '169' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:27:04 GMT + - Wed, 12 Jan 2022 21:44:44 GMT expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup2?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup2?api-version=2021-04-01 pragma: - no-cache request-id: - - 2fcd0351-dafb-4404-9c54-2c706c3b7f50 + - a3cce76f-4153-422a-8d24-94042c140631 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2426 x-content-type-options: - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' x-ms-ratelimit-remaining-tenant-deletes: - '14999' status: @@ -1891,7 +1923,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -1901,28 +1933,27 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup2?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup2?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup2","status":"Succeeded"}' + string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup2","name":"testcligetgroup2","status":"Succeeded"}' headers: cache-control: - no-cache content-length: - - '179' + - '167' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:27:14 GMT + - Wed, 12 Jan 2022 21:44:54 GMT expires: - '-1' pragma: - no-cache request-id: - - 2f146791-fcf9-43fb-974a-1201a23fc727 + - a92d2e76-795d-4e38-aa9d-6e75f9683dcf strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -1930,7 +1961,7 @@ interactions: vary: - Accept-Encoding,Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2426 x-content-type-options: - nosniff status: @@ -1949,27 +1980,26 @@ interactions: - keep-alive Content-Length: - '0' + Content-Type: + - application/json ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:27:16 GMT + - Wed, 12 Jan 2022 21:44:54 GMT expires: - '-1' pragma: @@ -2001,24 +2031,21 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:27:26 GMT + - Wed, 12 Jan 2022 21:45:04 GMT expires: - '-1' pragma: @@ -2050,38 +2077,41 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup1","status":"NotStarted"}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"Microsoft.Management/managementGroups","name":"testcligetgroup1","status":"NotStarted"}' headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 cache-control: - no-cache content-length: - - '180' + - '169' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:27:27 GMT + - Wed, 12 Jan 2022 21:45:07 GMT expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup1?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup1?api-version=2021-04-01 pragma: - no-cache request-id: - - 50f0113d-dcbb-4592-978d-de489b5fc17b + - 25f8eb03-838c-4089-a2e5-72032eb06830 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' x-ms-ratelimit-remaining-tenant-deletes: - '14999' status: @@ -2091,7 +2121,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -2101,36 +2131,37 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup1?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup1","status":"Succeeded"}' + string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup1","name":"testcligetgroup1","status":"Succeeded"}' headers: cache-control: - no-cache content-length: - - '179' + - '167' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:27:37 GMT + - Wed, 12 Jan 2022 21:45:17 GMT expires: - '-1' pragma: - no-cache request-id: - - f6840593-b903-4a2a-81d8-022024dacc6f + - 1863b692-2bf0-4991-bf1e-fff4c06910b1 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff status: diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_update_managementgroup_with_displayname.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_update_managementgroup_with_displayname.yaml index 07313570970..f8470055d8d 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_update_managementgroup_with_displayname.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_update_managementgroup_with_displayname.yaml @@ -12,27 +12,26 @@ interactions: - keep-alive Content-Length: - '0' + Content-Type: + - application/json ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:22:52 GMT + - Wed, 12 Jan 2022 21:55:06 GMT expires: - '-1' pragma: @@ -64,24 +63,21 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:23:02 GMT + - Wed, 12 Jan 2022 21:55:16 GMT expires: - '-1' pragma: @@ -111,42 +107,45 @@ interactions: Content-Length: - '67' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}' headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 cache-control: - no-cache content-length: - - '172' + - '161' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:23:03 GMT + - Wed, 12 Jan 2022 21:55:17 GMT expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2021-04-01 pragma: - no-cache request-id: - - 7c71d57f-c40f-431e-b414-eeaed3041b2d + - 05914c57-a6a7-42c1-b5ae-9c0563e703bf + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' x-ms-ratelimit-remaining-tenant-writes: - '1199' status: @@ -156,7 +155,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -166,44 +165,51 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"Running"}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Running"}' headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 cache-control: - no-cache content-length: - - '169' + - '157' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:23:13 GMT + - Wed, 12 Jan 2022 21:55:27 GMT expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2021-04-01 pragma: - no-cache request-id: - - 64670074-c245-4779-9fc0-2f1489ab9950 + - fb557985-fe91-4500-ac5f-98daaf77f49a + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff status: - code: 202 - message: Accepted + code: 200 + message: OK - request: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -213,44 +219,47 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"Running"}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":31,"updatedTime":"2022-01-12T21:55:23.0579706Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache content-length: - - '169' + - '374' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:23:24 GMT + - Wed, 12 Jan 2022 21:55:38 GMT expires: - '-1' - location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2018-03-01-preview pragma: - no-cache request-id: - - a76f0c07-34a3-48de-be42-f5a198e3e978 + - c2f85c80-a820-4965-ab21-779669c8d8c0 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff status: - code: 202 - message: Accepted + code: 200 + message: OK - request: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -260,44 +269,138 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"01a4073e-87c8-47cd-aafc-1439b4b5ea2c","displayName":"testcligroup","details":{"version":3,"updatedTime":"2020-12-18T17:23:12.0833851Z","updatedBy":"5310aa29-9a44-4cbc-adb3-6347a539537e","parent":{"id":"/providers/Microsoft.Management/managementGroups/01a4073e-87c8-47cd-aafc-1439b4b5ea2c","name":"01a4073e-87c8-47cd-aafc-1439b4b5ea2c","displayName":"Tenant - Root Group"}}}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":31,"updatedTime":"2022-01-12T21:55:23.0579706Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + Management Group"}}}}' headers: cache-control: - no-cache content-length: - - '569' + - '542' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:23:35 GMT + - Wed, 12 Jan 2022 21:55:38 GMT expires: - '-1' pragma: - no-cache request-id: - - 7a5c428b-274a-4395-af6d-3d1562be186f + - dc2659f3-0862-48f8-8d30-799f1eff5507 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff status: code: 200 message: OK - request: - body: '{"displayName": "testcligroupDisplayName"}' + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group update + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + ParameterSetName: + - --name --display-name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '2624' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 12 Jan 2022 21:55:39 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group update + Connection: + - keep-alive + ParameterSetName: + - --name --display-name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '2624' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 12 Jan 2022 21:55:49 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"name": "testcligroup", "properties": {"displayName": "testcligroupDisplayName", + "details": {"parent": {}}}}' headers: Accept: - application/json @@ -310,47 +413,48 @@ interactions: Connection: - keep-alive Content-Length: - - '42' + - '109' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - --name --display-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US - method: PATCH - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2018-03-01-preview + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"01a4073e-87c8-47cd-aafc-1439b4b5ea2c","displayName":"testcligroupDisplayName","details":{"version":4,"updatedTime":"2020-12-18T17:23:36.9297038Z","updatedBy":"5310aa29-9a44-4cbc-adb3-6347a539537e","parent":{"id":"/providers/Microsoft.Management/managementGroups/01a4073e-87c8-47cd-aafc-1439b4b5ea2c","name":"01a4073e-87c8-47cd-aafc-1439b4b5ea2c","displayName":"Tenant - Root Group"}}}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupDisplayName","details":{"version":32,"updatedTime":"2022-01-12T21:55:50.5575789Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + Management Group"}}}}' headers: cache-control: - no-cache content-length: - - '559' + - '553' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:23:42 GMT + - Wed, 12 Jan 2022 21:55:52 GMT expires: - '-1' pragma: - no-cache request-id: - - a093b51b-8387-4655-8807-e293cd94e4ad + - 438858a9-2074-4a27-ad34-020e43c5b484 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' x-ms-ratelimit-remaining-tenant-writes: - '1199' status: @@ -369,27 +473,26 @@ interactions: - keep-alive Content-Length: - '0' + Content-Type: + - application/json ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:23:42 GMT + - Wed, 12 Jan 2022 21:55:53 GMT expires: - '-1' pragma: @@ -421,24 +524,21 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:23:52 GMT + - Wed, 12 Jan 2022 21:56:03 GMT expires: - '-1' pragma: @@ -470,38 +570,41 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}' headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 cache-control: - no-cache content-length: - - '172' + - '161' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:23:54 GMT + - Wed, 12 Jan 2022 21:56:03 GMT expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroup?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroup?api-version=2021-04-01 pragma: - no-cache request-id: - - 4f43cd89-ce5a-4138-bbe8-ec42a8897dd8 + - 4226cbbb-5bd6-497a-9221-48a7287fb112 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' x-ms-ratelimit-remaining-tenant-deletes: - '14999' status: @@ -511,7 +614,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -521,36 +624,37 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"Succeeded"}' + string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded"}' headers: cache-control: - no-cache content-length: - - '171' + - '159' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 17:24:04 GMT + - Wed, 12 Jan 2022 21:56:14 GMT expires: - '-1' pragma: - no-cache request-id: - - 7ef7507e-1d35-4e21-aa58-67326f791323 + - 5492ab16-0372-41db-ae25-5288fc52d929 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff status: diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_update_managementgroup_with_displayname_and_parentid.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_update_managementgroup_with_displayname_and_parentid.yaml index a4f9596932d..4cb804c57ea 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_update_managementgroup_with_displayname_and_parentid.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_update_managementgroup_with_displayname_and_parentid.yaml @@ -12,27 +12,26 @@ interactions: - keep-alive Content-Length: - '0' + Content-Type: + - application/json ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:21:50 GMT + - Wed, 12 Jan 2022 22:00:32 GMT expires: - '-1' pragma: @@ -64,24 +63,21 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:22:00 GMT + - Wed, 12 Jan 2022 22:00:42 GMT expires: - '-1' pragma: @@ -111,42 +107,45 @@ interactions: Content-Length: - '67' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}' headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 cache-control: - no-cache content-length: - - '172' + - '161' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:22:01 GMT + - Wed, 12 Jan 2022 22:00:42 GMT expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2021-04-01 pragma: - no-cache request-id: - - 2c824348-35a2-4d6e-adf4-c6f64e40e14f + - be002a9c-b857-4306-95aa-2234d0f09c85 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' x-ms-ratelimit-remaining-tenant-writes: - '1199' status: @@ -156,7 +155,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -166,44 +165,51 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"Running"}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Running"}' headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 cache-control: - no-cache content-length: - - '169' + - '157' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:22:12 GMT + - Wed, 12 Jan 2022 22:00:53 GMT expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2021-04-01 pragma: - no-cache request-id: - - 9ab966a0-6deb-4d36-9c83-a3b28ab23344 + - 891fa5e3-d772-4ba9-a3b4-4b25b4556de2 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff status: - code: 202 - message: Accepted + code: 200 + message: OK - request: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -213,44 +219,47 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"Running"}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":34,"updatedTime":"2022-01-12T22:00:48.1897635Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache content-length: - - '169' + - '374' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:22:22 GMT + - Wed, 12 Jan 2022 22:01:03 GMT expires: - '-1' - location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2018-03-01-preview pragma: - no-cache request-id: - - e7e1e5db-6ca2-430d-a487-0ae3c593a074 + - a5a8aa36-4039-49dd-b37e-d528249cceda + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff status: - code: 202 - message: Accepted + code: 200 + message: OK - request: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -260,37 +269,38 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"01a4073e-87c8-47cd-aafc-1439b4b5ea2c","displayName":"testcligroup","details":{"version":7,"updatedTime":"2020-12-18T21:22:08.1900084Z","updatedBy":"5310aa29-9a44-4cbc-adb3-6347a539537e","parent":{"id":"/providers/Microsoft.Management/managementGroups/01a4073e-87c8-47cd-aafc-1439b4b5ea2c","name":"01a4073e-87c8-47cd-aafc-1439b4b5ea2c","displayName":"Tenant - Root Group"}}}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":34,"updatedTime":"2022-01-12T22:00:48.1897635Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + Management Group"}}}}' headers: cache-control: - no-cache content-length: - - '569' + - '542' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:22:32 GMT + - Wed, 12 Jan 2022 22:01:04 GMT expires: - '-1' pragma: - no-cache request-id: - - 600bece3-0dc6-4c88-81b2-0b9ed432b703 + - d9fce3f4-a69b-42c5-9b38-da67d7defa0a + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff status: @@ -309,27 +319,26 @@ interactions: - keep-alive Content-Length: - '0' + Content-Type: + - application/json ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:22:34 GMT + - Wed, 12 Jan 2022 22:01:04 GMT expires: - '-1' pragma: @@ -361,24 +370,21 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:22:44 GMT + - Wed, 12 Jan 2022 22:01:14 GMT expires: - '-1' pragma: @@ -408,42 +414,45 @@ interactions: Content-Length: - '72' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroupchild","status":"NotStarted"}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","status":"NotStarted"}' headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 cache-control: - no-cache content-length: - - '182' + - '171' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:22:45 GMT + - Wed, 12 Jan 2022 22:01:15 GMT expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroupchild?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroupchild?api-version=2021-04-01 pragma: - no-cache request-id: - - c7385ef1-d82b-4a08-a7a8-3e464107a3b2 + - cf8c292e-ccd5-4399-b88e-258d2de19607 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' x-ms-ratelimit-remaining-tenant-writes: - '1199' status: @@ -453,7 +462,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -463,44 +472,51 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroupchild?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroupchild","status":"Running"}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild","name":"testcligroupchild","status":"Running"}' headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 cache-control: - no-cache content-length: - - '179' + - '167' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:22:56 GMT + - Wed, 12 Jan 2022 22:01:25 GMT expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroupchild?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroupchild?api-version=2021-04-01 pragma: - no-cache request-id: - - 46fb9d90-d79c-4ccd-bc5a-e7064e9a47b2 + - 528b5d02-9549-4720-b3cb-3a105942c1e4 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff status: - code: 202 - message: Accepted + code: 200 + message: OK - request: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -510,44 +526,47 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroupchild?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroupchild","status":"Running"}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild","name":"testcligroupchild","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":32,"updatedTime":"2022-01-12T22:01:21.1985673Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache content-length: - - '179' + - '389' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:23:06 GMT + - Wed, 12 Jan 2022 22:01:36 GMT expires: - '-1' - location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroupchild?api-version=2018-03-01-preview pragma: - no-cache request-id: - - 517604c1-7480-4471-95d0-fe4be5a4f356 + - 292f9b2b-8912-4891-8f16-2188f2d0185a + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff status: - code: 202 - message: Accepted + code: 200 + message: OK - request: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -557,44 +576,138 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroupchild?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroupchild","status":"Succeeded","properties":{"tenantId":"01a4073e-87c8-47cd-aafc-1439b4b5ea2c","displayName":"testcligroupchild","details":{"version":7,"updatedTime":"2020-12-18T21:22:53.3493002Z","updatedBy":"5310aa29-9a44-4cbc-adb3-6347a539537e","parent":{"id":"/providers/Microsoft.Management/managementGroups/01a4073e-87c8-47cd-aafc-1439b4b5ea2c","name":"01a4073e-87c8-47cd-aafc-1439b4b5ea2c","displayName":"Tenant - Root Group"}}}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":32,"updatedTime":"2022-01-12T22:01:21.1985673Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + Management Group"}}}}' headers: cache-control: - no-cache content-length: - - '584' + - '557' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:23:17 GMT + - Wed, 12 Jan 2022 22:01:36 GMT expires: - '-1' pragma: - no-cache request-id: - - 2c5e8b3f-bd72-46e4-99a9-4a0707913b32 + - 2fee15da-b7d8-4104-ae6d-83083588b192 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group update + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + ParameterSetName: + - --name --display-name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '2624' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 12 Jan 2022 22:01:38 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group update + Connection: + - keep-alive + ParameterSetName: + - --name --display-name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '2624' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 12 Jan 2022 22:01:48 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding x-content-type-options: - nosniff status: code: 200 message: OK - request: - body: '{"displayName": "testcligroupchild", "parentId": "/providers/Microsoft.Management/managementGroups/testcligroup"}' + body: '{"name": "testcligroupchild", "properties": {"displayName": "testcligroupchild", + "details": {"parent": {"id": "/providers/Microsoft.Management/managementGroups/testcligroup"}}}}' headers: Accept: - application/json @@ -607,46 +720,47 @@ interactions: Connection: - keep-alive Content-Length: - - '113' + - '177' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - --name --display-name --parent User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US - method: PATCH - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2018-03-01-preview + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroupchild","properties":{"tenantId":"01a4073e-87c8-47cd-aafc-1439b4b5ea2c","displayName":"testcligroupchild","details":{"version":8,"updatedTime":"2020-12-18T21:23:19.0291489Z","updatedBy":"5310aa29-9a44-4cbc-adb3-6347a539537e","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","name":"testcligroup","displayName":"testcligroup"}}}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":33,"updatedTime":"2022-01-12T22:01:49.8345441Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","name":"testcligroup","displayName":"testcligroup"}}}}' headers: cache-control: - no-cache content-length: - - '510' + - '500' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:23:24 GMT + - Wed, 12 Jan 2022 22:01:50 GMT expires: - '-1' pragma: - no-cache request-id: - - 86500f9e-b45c-4e9e-8259-0b0c022a217f + - b1d2b7a4-235c-4e72-b157-c7a0049b9521 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' x-ms-ratelimit-remaining-tenant-writes: - '1199' status: @@ -665,27 +779,26 @@ interactions: - keep-alive Content-Length: - '0' + Content-Type: + - application/json ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:23:24 GMT + - Wed, 12 Jan 2022 22:01:51 GMT expires: - '-1' pragma: @@ -717,24 +830,21 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:23:34 GMT + - Wed, 12 Jan 2022 22:02:01 GMT expires: - '-1' pragma: @@ -766,38 +876,41 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroupchild","status":"NotStarted"}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","status":"NotStarted"}' headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 cache-control: - no-cache content-length: - - '182' + - '171' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:23:36 GMT + - Wed, 12 Jan 2022 22:02:04 GMT expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroupchild?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroupchild?api-version=2021-04-01 pragma: - no-cache request-id: - - 9c253e7c-e067-4b0d-a2e8-baf8c2874583 + - 40360d33-cf84-4ece-b548-0eb53babc485 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' x-ms-ratelimit-remaining-tenant-deletes: - '14999' status: @@ -807,7 +920,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -817,36 +930,37 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroupchild?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroupchild","status":"Succeeded"}' + string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroupchild","name":"testcligroupchild","status":"Succeeded"}' headers: cache-control: - no-cache content-length: - - '181' + - '169' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:23:46 GMT + - Wed, 12 Jan 2022 22:02:14 GMT expires: - '-1' pragma: - no-cache request-id: - - ed796853-95e8-4a9e-84cb-8281ce42b595 + - 9bb05409-7069-4d90-a14c-e34728be5edc + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff status: @@ -865,27 +979,26 @@ interactions: - keep-alive Content-Length: - '0' + Content-Type: + - application/json ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:23:48 GMT + - Wed, 12 Jan 2022 22:02:15 GMT expires: - '-1' pragma: @@ -899,7 +1012,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 200 message: OK @@ -917,24 +1030,21 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:23:58 GMT + - Wed, 12 Jan 2022 22:02:25 GMT expires: - '-1' pragma: @@ -966,38 +1076,41 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}' headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 cache-control: - no-cache content-length: - - '172' + - '161' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:23:59 GMT + - Wed, 12 Jan 2022 22:02:26 GMT expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroup?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroup?api-version=2021-04-01 pragma: - no-cache request-id: - - 2b2877a3-635f-4e1b-b3de-28a96a4229bd + - a7ac8343-5fdd-40ed-9df2-196aeadc78b2 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '58' x-ms-ratelimit-remaining-tenant-deletes: - '14999' status: @@ -1007,7 +1120,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -1017,36 +1130,37 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"Succeeded"}' + string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded"}' headers: cache-control: - no-cache content-length: - - '171' + - '159' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:24:09 GMT + - Wed, 12 Jan 2022 22:02:36 GMT expires: - '-1' pragma: - no-cache request-id: - - d531db1e-6ad9-4afa-9d42-52b4670b1e4e + - 91093d7a-33b4-4f8a-94b8-dfde4921cf5f + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff status: diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_update_managementgroup_with_parentid.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_update_managementgroup_with_parentid.yaml index bceeddb737c..d3a26754a1d 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_update_managementgroup_with_parentid.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_update_managementgroup_with_parentid.yaml @@ -12,27 +12,26 @@ interactions: - keep-alive Content-Length: - '0' + Content-Type: + - application/json ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:24:10 GMT + - Wed, 12 Jan 2022 21:17:04 GMT expires: - '-1' pragma: @@ -64,24 +63,21 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:24:21 GMT + - Wed, 12 Jan 2022 21:17:14 GMT expires: - '-1' pragma: @@ -111,42 +107,43 @@ interactions: Content-Length: - '67' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}' headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 cache-control: - no-cache content-length: - - '172' + - '161' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:24:22 GMT + - Wed, 12 Jan 2022 21:17:16 GMT expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2021-04-01 pragma: - no-cache request-id: - - b8029ed0-acde-4a7e-9c47-0febd9deaf10 + - 037434f0-bb93-4eac-a113-1ce233ee2916 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2426 x-content-type-options: - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' x-ms-ratelimit-remaining-tenant-writes: - '1199' status: @@ -156,7 +153,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -166,44 +163,49 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"Running"}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Running"}' headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 cache-control: - no-cache content-length: - - '169' + - '157' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:24:32 GMT + - Wed, 12 Jan 2022 21:17:26 GMT expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2021-04-01 pragma: - no-cache request-id: - - e66f535d-b31d-4756-b304-bf4e555581e4 + - 29a1d286-0f74-4935-bdb4-dd68686b28cc strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2426 x-content-type-options: - nosniff status: - code: 202 - message: Accepted + code: 200 + message: OK - request: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -213,44 +215,45 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"Running"}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":25,"updatedTime":"2022-01-12T21:17:21.5536554Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache content-length: - - '169' + - '374' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:24:43 GMT + - Wed, 12 Jan 2022 21:17:36 GMT expires: - '-1' - location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2018-03-01-preview pragma: - no-cache request-id: - - 66b9a47c-212a-4b9c-8b89-9e004465a530 + - eb3491fd-d52f-4666-84b0-f9ff72cf40ea strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2426 x-content-type-options: - nosniff status: - code: 202 - message: Accepted + code: 200 + message: OK - request: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -260,29 +263,28 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"01a4073e-87c8-47cd-aafc-1439b4b5ea2c","displayName":"testcligroup","details":{"version":8,"updatedTime":"2020-12-18T21:24:31.0475959Z","updatedBy":"5310aa29-9a44-4cbc-adb3-6347a539537e","parent":{"id":"/providers/Microsoft.Management/managementGroups/01a4073e-87c8-47cd-aafc-1439b4b5ea2c","name":"01a4073e-87c8-47cd-aafc-1439b4b5ea2c","displayName":"Tenant - Root Group"}}}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":25,"updatedTime":"2022-01-12T21:17:21.5536554Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + Management Group"}}}}' headers: cache-control: - no-cache content-length: - - '569' + - '542' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:24:53 GMT + - Wed, 12 Jan 2022 21:17:36 GMT expires: - '-1' pragma: - no-cache request-id: - - c6e85aef-0129-479e-bfee-99eb740c2534 + - 264ff7f6-cbc8-491d-af99-5e870b573fd8 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -290,7 +292,7 @@ interactions: vary: - Accept-Encoding,Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2426 x-content-type-options: - nosniff status: @@ -309,27 +311,26 @@ interactions: - keep-alive Content-Length: - '0' + Content-Type: + - application/json ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:24:54 GMT + - Wed, 12 Jan 2022 21:17:38 GMT expires: - '-1' pragma: @@ -361,24 +362,21 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:25:05 GMT + - Wed, 12 Jan 2022 21:17:48 GMT expires: - '-1' pragma: @@ -408,42 +406,45 @@ interactions: Content-Length: - '72' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroupchild","status":"NotStarted"}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","status":"NotStarted"}' headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 cache-control: - no-cache content-length: - - '182' + - '171' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:25:06 GMT + - Wed, 12 Jan 2022 21:17:49 GMT expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroupchild?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroupchild?api-version=2021-04-01 pragma: - no-cache request-id: - - bdff91fd-1a4f-4a19-b197-be28bd293cb6 + - 952d9b02-5df2-4d5a-8683-7c86044deaed + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' x-ms-ratelimit-remaining-tenant-writes: - '1199' status: @@ -453,7 +454,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -463,44 +464,51 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroupchild?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroupchild","status":"Running"}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild","name":"testcligroupchild","status":"Running"}' headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 cache-control: - no-cache content-length: - - '179' + - '167' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:25:16 GMT + - Wed, 12 Jan 2022 21:17:59 GMT expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroupchild?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroupchild?api-version=2021-04-01 pragma: - no-cache request-id: - - 3fbc39a5-2cfc-4df1-86bf-eb43e23f9114 + - ecb2b421-050b-4623-868b-a20b84d491a1 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff status: - code: 202 - message: Accepted + code: 200 + message: OK - request: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -510,44 +518,47 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroupchild?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroupchild","status":"Running"}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild","name":"testcligroupchild","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":25,"updatedTime":"2022-01-12T21:17:54.7598244Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache content-length: - - '179' + - '389' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:25:27 GMT + - Wed, 12 Jan 2022 21:18:10 GMT expires: - '-1' - location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroupchild?api-version=2018-03-01-preview pragma: - no-cache request-id: - - 5be45599-229b-40da-ae0c-7ac91a68d95b + - ae9a5151-0b8c-419e-810c-babd17767981 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff status: - code: 202 - message: Accepted + code: 200 + message: OK - request: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -557,44 +568,138 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroupchild?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroupchild","status":"Succeeded","properties":{"tenantId":"01a4073e-87c8-47cd-aafc-1439b4b5ea2c","displayName":"testcligroupchild","details":{"version":9,"updatedTime":"2020-12-18T21:25:12.8749728Z","updatedBy":"5310aa29-9a44-4cbc-adb3-6347a539537e","parent":{"id":"/providers/Microsoft.Management/managementGroups/01a4073e-87c8-47cd-aafc-1439b4b5ea2c","name":"01a4073e-87c8-47cd-aafc-1439b4b5ea2c","displayName":"Tenant - Root Group"}}}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":25,"updatedTime":"2022-01-12T21:17:54.7598244Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + Management Group"}}}}' headers: cache-control: - no-cache content-length: - - '584' + - '557' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:25:38 GMT + - Wed, 12 Jan 2022 21:18:10 GMT expires: - '-1' pragma: - no-cache request-id: - - 889bcc91-d83e-4581-a416-559228aaa02c + - c6ccea62-97aa-48f6-8bf5-2cf80ca4da03 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff status: code: 200 message: OK - request: - body: '{"parentId": "/providers/Microsoft.Management/managementGroups/testcligroup"}' + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group update + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '2624' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 12 Jan 2022 21:18:12 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group update + Connection: + - keep-alive + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '2624' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 12 Jan 2022 21:18:22 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"name": "testcligroupchild", "properties": {"details": {"parent": {"id": + "/providers/Microsoft.Management/managementGroups/testcligroup"}}}}' headers: Accept: - application/json @@ -607,46 +712,47 @@ interactions: Connection: - keep-alive Content-Length: - - '77' + - '141' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - --name --parent User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US - method: PATCH - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2018-03-01-preview + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroupchild","properties":{"tenantId":"01a4073e-87c8-47cd-aafc-1439b4b5ea2c","displayName":"testcligroupchild","details":{"version":10,"updatedTime":"2020-12-18T21:25:39.7712261Z","updatedBy":"5310aa29-9a44-4cbc-adb3-6347a539537e","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","name":"testcligroup","displayName":"testcligroup"}}}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":26,"updatedTime":"2022-01-12T21:18:23.2765671Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","name":"testcligroup","displayName":"testcligroup"}}}}' headers: cache-control: - no-cache content-length: - - '511' + - '500' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:25:44 GMT + - Wed, 12 Jan 2022 21:18:25 GMT expires: - '-1' pragma: - no-cache request-id: - - 44a461f3-4778-4ade-ac9e-e9e1c5f4c653 + - a38c197c-f5f6-440b-a6a3-7c1d0d81d0cd + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' x-ms-ratelimit-remaining-tenant-writes: - '1199' status: @@ -665,27 +771,26 @@ interactions: - keep-alive Content-Length: - '0' + Content-Type: + - application/json ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:25:45 GMT + - Wed, 12 Jan 2022 21:18:26 GMT expires: - '-1' pragma: @@ -717,24 +822,21 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:25:55 GMT + - Wed, 12 Jan 2022 21:18:36 GMT expires: - '-1' pragma: @@ -766,38 +868,41 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroupchild","status":"NotStarted"}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","status":"NotStarted"}' headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 cache-control: - no-cache content-length: - - '182' + - '171' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:25:57 GMT + - Wed, 12 Jan 2022 21:18:37 GMT expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroupchild?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroupchild?api-version=2021-04-01 pragma: - no-cache request-id: - - 762b4297-8049-4775-b58b-66f5b71de9ce + - 5296f33b-c92c-4745-8ad2-9722248753f9 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' x-ms-ratelimit-remaining-tenant-deletes: - '14999' status: @@ -807,7 +912,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -817,36 +922,37 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroupchild?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroupchild","status":"Succeeded"}' + string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroupchild","name":"testcligroupchild","status":"Succeeded"}' headers: cache-control: - no-cache content-length: - - '181' + - '169' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:26:07 GMT + - Wed, 12 Jan 2022 21:18:47 GMT expires: - '-1' pragma: - no-cache request-id: - - 2482f122-cb72-48ea-b222-bbe21d692122 + - ecd0c4fe-f11f-4593-8865-3334ba653cce + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff status: @@ -865,27 +971,26 @@ interactions: - keep-alive Content-Length: - '0' + Content-Type: + - application/json ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:26:08 GMT + - Wed, 12 Jan 2022 21:18:49 GMT expires: - '-1' pragma: @@ -917,24 +1022,21 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '2381' + - '2624' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:26:18 GMT + - Wed, 12 Jan 2022 21:18:59 GMT expires: - '-1' pragma: @@ -966,38 +1068,41 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}' headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 cache-control: - no-cache content-length: - - '172' + - '161' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:26:19 GMT + - Wed, 12 Jan 2022 21:19:00 GMT expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroup?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroup?api-version=2021-04-01 pragma: - no-cache request-id: - - d80ef048-d56c-44e8-85e0-aa95c74931a3 + - 34f42b93-4af3-41ad-a763-ce6a93d3ac7b + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '58' x-ms-ratelimit-remaining-tenant-deletes: - '14999' status: @@ -1007,7 +1112,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -1017,36 +1122,37 @@ interactions: ParameterSetName: - --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"Succeeded"}' + string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded"}' headers: cache-control: - no-cache content-length: - - '171' + - '159' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 21:26:30 GMT + - Wed, 12 Jan 2022 21:19:11 GMT expires: - '-1' pragma: - no-cache request-id: - - e5875db5-d88a-4b61-af2a-e09fabe668bb + - 014fc9c6-358f-4f2a-8662-ef03e3ba7450 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-ba-restapi: - - 1.0.3.1589 + - 1.0.3.2425 x-content-type-options: - nosniff status: diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/test_managmentgroups.py b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/test_managmentgroups.py index b03ded0e63a..da52043274f 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/test_managmentgroups.py +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/test_managmentgroups.py @@ -85,13 +85,13 @@ def test_show_managementgroup_with_expand(self): self.assertIsNotNone(managementgroup_get["tenantId"]) self.assertEqual( managementgroup_get["type"], - "/providers/Microsoft.Management/managementGroups") + "Microsoft.Management/managementGroups") self.assertEqual( managementgroup_get["children"][0]["id"], "/providers/Microsoft.Management/managementGroups/testcligetgroup3") self.assertEqual( managementgroup_get["children"][0]["type"], - "/providers/Microsoft.Management/managementGroups") + "Microsoft.Management/managementGroups") self.assertEqual( managementgroup_get["children"][0]["displayName"], "testcligetgroup3") @@ -133,13 +133,13 @@ def test_show_managementgroup_with_expand_and_recurse(self): self.assertIsNotNone(managementgroup_get["tenantId"]) self.assertEqual( managementgroup_get["type"], - "/providers/Microsoft.Management/managementGroups") + "Microsoft.Management/managementGroups") self.assertEqual( managementgroup_get["children"][0]["id"], "/providers/Microsoft.Management/managementGroups/testcligetgroup3") self.assertEqual( managementgroup_get["children"][0]["type"], - "/providers/Microsoft.Management/managementGroups") + "Microsoft.Management/managementGroups") self.assertEqual( managementgroup_get["children"][0]["displayName"], "testcligetgroup3") @@ -151,7 +151,7 @@ def test_show_managementgroup_with_expand_and_recurse(self): "/providers/Microsoft.Management/managementGroups/testcligetgroup4") self.assertEqual( managementgroup_get["children"][0]["children"][0]["type"], - "/providers/Microsoft.Management/managementGroups") + "Microsoft.Management/managementGroups") self.assertEqual( managementgroup_get["children"][0]["children"][0]["displayName"], "testcligetgroup4") @@ -240,27 +240,27 @@ def test_create_managementgroup_with_parentid(self): self.cmd('account management-group delete --name ' + parentName) self.assertIsNotNone(managementgroup_create) - self.assertIsNotNone(managementgroup_create["properties"]["details"]) + self.assertIsNotNone(managementgroup_create["details"]) self.assertEqual( managementgroup_create["id"], "/providers/Microsoft.Management/managementGroups/" + name) self.assertEqual(managementgroup_create["name"], name) self.assertEqual( - managementgroup_create["properties"]["displayName"], + managementgroup_create["displayName"], displayName) self.assertEqual( - managementgroup_create["properties"]["details"]["parent"]["displayName"], + managementgroup_create["details"]["parent"]["displayName"], parentName) self.assertEqual( - managementgroup_create["properties"]["details"]["parent"]["id"], + managementgroup_create["details"]["parent"]["id"], parentId) self.assertEqual( - managementgroup_create["properties"]["details"]["parent"]["name"], + managementgroup_create["details"]["parent"]["name"], parentName) - self.assertIsNotNone(managementgroup_create["properties"]["tenantId"]) + self.assertIsNotNone(managementgroup_create["tenantId"]) self.assertEqual( managementgroup_create["type"], - "/providers/Microsoft.Management/managementGroups") + "Microsoft.Management/managementGroups") def test_create_managementgroup_with_displayname_and_parentid(self): name = "testcligroupchild" @@ -321,7 +321,7 @@ def test_update_managementgroup_with_displayname(self): self.assertEqual(managementgroup_update["displayName"], displayName) self.assertEqual( managementgroup_update["details"]["parent"]["displayName"], - "Tenant Root Group") + "Root Management Group") self.assertEqual( managementgroup_update["details"]["parent"]["id"], "/providers/Microsoft.Management/managementGroups/" + @@ -332,7 +332,7 @@ def test_update_managementgroup_with_displayname(self): self.assertIsNotNone(managementgroup_update["tenantId"]) self.assertEqual( managementgroup_update["type"], - "/providers/Microsoft.Management/managementGroups") + "Microsoft.Management/managementGroups") def test_update_managementgroup_with_parentid(self): name = "testcligroupchild" @@ -369,7 +369,7 @@ def test_update_managementgroup_with_parentid(self): self.assertIsNotNone(managementgroup_update["tenantId"]) self.assertEqual( managementgroup_update["type"], - "/providers/Microsoft.Management/managementGroups") + "Microsoft.Management/managementGroups") def test_update_managementgroup_with_displayname_and_parentid(self): name = "testcligroupchild" @@ -407,7 +407,7 @@ def test_update_managementgroup_with_displayname_and_parentid(self): self.assertIsNotNone(managementgroup_update["tenantId"]) self.assertEqual( managementgroup_update["type"], - "/providers/Microsoft.Management/managementGroups") + "Microsoft.Management/managementGroups") def test_create_delete_group_managementgroup(self): self.cmd('account management-group create --name testcligroup') From 734090ec639ce5c12f69bb4ac3ded01bbc2fd374 Mon Sep 17 00:00:00 2001 From: Thomas Dolan Date: Thu, 20 Jan 2022 22:33:29 -0800 Subject: [PATCH 05/13] Ran tests in latest and 2019_03_01 Profile --- ...t_create_delete_group_managementgroup.yaml | 657 ++-- .../test_create_managementgroup.yaml | 657 ++-- ...eate_managementgroup_with_displayname.yaml | 657 ++-- ...ntgroup_with_displayname_and_parentid.yaml | 1313 +++++--- ..._create_managementgroup_with_parentid.yaml | 1313 +++++--- .../test_list_managementgroups.yaml | 181 +- .../recordings/test_show_managementgroup.yaml | 1376 +++++--- ...test_show_managementgroup_with_expand.yaml | 2200 +++++++++---- ...nagementgroup_with_expand_and_recurse.yaml | 2822 ++++++++++++----- ...date_managementgroup_with_displayname.yaml | 821 +++-- ...ntgroup_with_displayname_and_parentid.yaml | 1552 ++++++--- ..._update_managementgroup_with_parentid.yaml | 1497 ++++++--- .../hybrid_2019_03_01/test_managmentgroups.py | 169 +- ...t_create_delete_group_managementgroup.yaml | 209 +- .../test_create_managementgroup.yaml | 212 +- ...eate_managementgroup_with_displayname.yaml | 70 +- ...ntgroup_with_displayname_and_parentid.yaml | 196 +- ..._create_managementgroup_with_parentid.yaml | 88 +- .../test_list_managementgroups.yaml | 23 +- .../recordings/test_show_managementgroup.yaml | 367 +-- ...test_show_managementgroup_with_expand.yaml | 410 +-- ...nagementgroup_with_expand_and_recurse.yaml | 230 +- ...date_managementgroup_with_displayname.yaml | 54 +- ...ntgroup_with_displayname_and_parentid.yaml | 244 +- ..._update_managementgroup_with_parentid.yaml | 112 +- .../tests/latest/test_managmentgroups.py | 66 +- 26 files changed, 11539 insertions(+), 5957 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_create_delete_group_managementgroup.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_create_delete_group_managementgroup.yaml index b13ab024698..31ba0e8e058 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_create_delete_group_managementgroup.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_create_delete_group_managementgroup.yaml @@ -2,243 +2,504 @@ interactions: - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - Content-Length: ['0'] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:08:17 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 00:05:22 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:08:28 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 00:05:32 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: '{"name": "testcligroup", "properties": {"details": {"parent": {}}}}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Cache-Control: [no-cache] - CommandName: [account management-group create] - Connection: [keep-alive] - Content-Length: ['67'] - Content-Type: [application/json; charset=utf-8] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '67' + Content-Type: + - application/json + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '161' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 00:05:34 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 0b56d8b1-1fb0-4265-bf80-c42f3fc1108f + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Running"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '157' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 00:05:44 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 3015367d-88d2-4754-94f0-713e43e97011 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}'} - headers: - cache-control: [no-cache] - content-length: ['172'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:08:29 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2018-03-01-preview'] - pragma: [no-cache] - request-id: [2ebeb2db-e5c7-4372-acd0-8dd6ca080998] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-tenant-writes: ['1199'] - x-powered-by: [ASP.NET] - status: {code: 202, message: Accepted} + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":117,"updatedTime":"2022-01-21T00:05:40.4317291Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + headers: + cache-control: + - no-cache + content-length: + - '375' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 00:05:55 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 25a2037e-2aa3-41da-bf49-e760c9b932c5 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","displayName":"testcligroup","details":{"version":4,"updatedTime":"2019-02-28T00:08:37.0575148Z","updatedBy":"8427ce23-08f2-4510-b6e2-99644db7f94e","parent":{"id":"/providers/Microsoft.Management/managementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47","name":"72f988bf-86f1-41af-91ab-2d7cd011db47","displayName":"72f988bf-86f1-41af-91ab-2d7cd011db47"}}}}'} - headers: - cache-control: [no-cache] - content-length: ['588'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:08:40 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [67cf3bf8-c509-4b9c-b002-d74849f7e15d] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":117,"updatedTime":"2022-01-21T00:05:40.4317291Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + Management Group"}}}}' + headers: + cache-control: + - no-cache + content-length: + - '543' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 00:05:55 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 379f9c41-68cf-4bb9-afd4-d31c94710d2b + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - Content-Length: ['0'] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:08:42 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 00:05:56 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:08:52 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 00:06:06 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Cache-Control: [no-cache] - CommandName: [account management-group delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}'} - headers: - cache-control: [no-cache] - content-length: ['172'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:08:55 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroup?api-version=2018-03-01-preview'] - pragma: [no-cache] - request-id: [d34732cb-14a2-44ab-943c-04c3ec08dbe9] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-tenant-deletes: ['14999'] - x-powered-by: [ASP.NET] - status: {code: 202, message: Accepted} + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '161' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 00:06:08 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroup?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - de8031e8-61c8-44a4-8221-c9d174c9b2c1 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-deletes: + - '14999' + status: + code: 202 + message: Accepted - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"Succeeded"}'} - headers: - cache-control: [no-cache] - content-length: ['171'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:09:04 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [d1dbdc15-ef94-4f97-9cbc-8a58d4fd280f] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '159' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 00:06:18 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 22293d11-b153-48d8-8d9a-e8446dda61db + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_create_managementgroup.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_create_managementgroup.yaml index 4b7990942d4..dbac6d2390c 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_create_managementgroup.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_create_managementgroup.yaml @@ -2,243 +2,504 @@ interactions: - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - Content-Length: ['0'] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:21:19 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:47:11 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:21:30 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:47:22 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: '{"name": "testcligroup", "properties": {"details": {"parent": {}}}}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Cache-Control: [no-cache] - CommandName: [account management-group create] - Connection: [keep-alive] - Content-Length: ['67'] - Content-Type: [application/json; charset=utf-8] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '67' + Content-Type: + - application/json + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '161' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:47:23 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 2030ddf0-4a48-453e-9183-57673317f136 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Running"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '157' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:47:33 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 4dc7b010-ffb4-495c-999f-803711939ef5 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}'} - headers: - cache-control: [no-cache] - content-length: ['172'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:21:31 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2018-03-01-preview'] - pragma: [no-cache] - request-id: [61cd5a40-6d97-4c8e-9a22-f4616f677037] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-tenant-writes: ['1199'] - x-powered-by: [ASP.NET] - status: {code: 202, message: Accepted} + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":121,"updatedTime":"2022-01-21T05:47:28.601083Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + headers: + cache-control: + - no-cache + content-length: + - '374' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:47:43 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - bedc9df4-cf60-4529-8bef-d2d1ffed91ca + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","displayName":"testcligroup","details":{"version":9,"updatedTime":"2019-02-28T00:21:35.828261Z","updatedBy":"8427ce23-08f2-4510-b6e2-99644db7f94e","parent":{"id":"/providers/Microsoft.Management/managementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47","name":"72f988bf-86f1-41af-91ab-2d7cd011db47","displayName":"72f988bf-86f1-41af-91ab-2d7cd011db47"}}}}'} - headers: - cache-control: [no-cache] - content-length: ['587'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:21:42 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [4f1c774f-eae5-4f84-a31b-c15887da9864] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":121,"updatedTime":"2022-01-21T05:47:28.601083Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + Management Group"}}}}' + headers: + cache-control: + - no-cache + content-length: + - '542' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:47:43 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 64862e71-dbe5-4231-aa58-00a5e8d5dda9 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - Content-Length: ['0'] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:21:44 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:47:45 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:21:54 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:47:55 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Cache-Control: [no-cache] - CommandName: [account management-group delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}'} - headers: - cache-control: [no-cache] - content-length: ['172'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:21:57 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroup?api-version=2018-03-01-preview'] - pragma: [no-cache] - request-id: [c98b3c87-859d-4179-a025-853dcaa46631] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-tenant-deletes: ['14999'] - x-powered-by: [ASP.NET] - status: {code: 202, message: Accepted} + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '161' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:47:56 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroup?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - f6c81e22-85f2-4c92-b82b-015f72eea3eb + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-deletes: + - '14999' + status: + code: 202 + message: Accepted - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"Succeeded"}'} - headers: - cache-control: [no-cache] - content-length: ['171'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:22:07 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [aeddb889-8766-4eab-ab75-2b23143e3982] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '159' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:48:06 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 6dd8da44-a4c6-4462-b391-71fa3aef0627 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_create_managementgroup_with_displayname.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_create_managementgroup_with_displayname.yaml index afc39dd01e6..4e269ca7987 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_create_managementgroup_with_displayname.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_create_managementgroup_with_displayname.yaml @@ -2,244 +2,505 @@ interactions: - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - Content-Length: ['0'] - ParameterSetName: [--name --display-name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name --display-name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:20:09 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 00:36:10 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - ParameterSetName: [--name --display-name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name --display-name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:20:19 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 00:36:20 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: '{"name": "testcligroup", "properties": {"displayName": "TestCliDisplayName", "details": {"parent": {}}}}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Cache-Control: [no-cache] - CommandName: [account management-group create] - Connection: [keep-alive] - Content-Length: ['104'] - Content-Type: [application/json; charset=utf-8] - ParameterSetName: [--name --display-name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '104' + Content-Type: + - application/json + ParameterSetName: + - --name --display-name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '161' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 00:36:21 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - fd4c6067-272e-4cdd-93ac-d8ca83f46baf + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name --display-name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Running"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '157' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 00:36:31 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 93731888-88b1-4d3a-b2b9-bf99b226baf4 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name --display-name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}'} - headers: - cache-control: [no-cache] - content-length: ['172'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:20:20 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2018-03-01-preview'] - pragma: [no-cache] - request-id: [732b6e14-b4bf-4e27-bce6-b57b235919ba] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-tenant-writes: ['1198'] - x-powered-by: [ASP.NET] - status: {code: 202, message: Accepted} + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"TestCliDisplayName","details":{"version":118,"updatedTime":"2022-01-21T00:36:27.0305551Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + headers: + cache-control: + - no-cache + content-length: + - '381' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 00:36:42 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - fc63b1cd-ebb7-4067-be0a-e94700609b35 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - ParameterSetName: [--name --display-name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name --display-name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","displayName":"TestCliDisplayName","details":{"version":8,"updatedTime":"2019-02-28T00:20:23.7171921Z","updatedBy":"8427ce23-08f2-4510-b6e2-99644db7f94e","parent":{"id":"/providers/Microsoft.Management/managementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47","name":"72f988bf-86f1-41af-91ab-2d7cd011db47","displayName":"72f988bf-86f1-41af-91ab-2d7cd011db47"}}}}'} - headers: - cache-control: [no-cache] - content-length: ['594'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:20:30 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [2df0461c-b447-4bc1-ab84-9d55e875fc23] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"TestCliDisplayName","details":{"version":118,"updatedTime":"2022-01-21T00:36:27.0305551Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + Management Group"}}}}' + headers: + cache-control: + - no-cache + content-length: + - '549' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 00:36:42 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - fc8e87f7-e6b9-432b-bccf-21f414c5574c + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - Content-Length: ['0'] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:20:32 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 00:36:44 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:20:43 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 00:36:54 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Cache-Control: [no-cache] - CommandName: [account management-group delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}'} - headers: - cache-control: [no-cache] - content-length: ['172'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:21:07 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroup?api-version=2018-03-01-preview'] - pragma: [no-cache] - request-id: [a51d110f-dcca-4913-b899-b94d4b08668f] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-tenant-deletes: ['14999'] - x-powered-by: [ASP.NET] - status: {code: 202, message: Accepted} + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '161' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 00:36:56 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroup?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 59b270e8-a975-4757-93d8-71045158c201 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-deletes: + - '14999' + status: + code: 202 + message: Accepted - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"Succeeded"}'} - headers: - cache-control: [no-cache] - content-length: ['171'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:21:17 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [b27850d7-3a93-4600-813a-aababdeffd33] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '159' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 00:37:06 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 8f2edf3d-3ef1-4a8e-9b77-368fd4fafa60 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_create_managementgroup_with_displayname_and_parentid.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_create_managementgroup_with_displayname_and_parentid.yaml index 561687c9eb7..6b82ab87c7a 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_create_managementgroup_with_displayname_and_parentid.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_create_managementgroup_with_displayname_and_parentid.yaml @@ -2,486 +2,1007 @@ interactions: - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - Content-Length: ['0'] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:16:38 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 00:00:45 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:16:48 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 00:00:55 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: '{"name": "testcligroup", "properties": {"details": {"parent": {}}}}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Cache-Control: [no-cache] - CommandName: [account management-group create] - Connection: [keep-alive] - Content-Length: ['67'] - Content-Type: [application/json; charset=utf-8] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '67' + Content-Type: + - application/json + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}'} - headers: - cache-control: [no-cache] - content-length: ['172'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:16:50 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2018-03-01-preview'] - pragma: [no-cache] - request-id: [fbf0fd42-f6af-4fa7-a32f-1785c29af3e4] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-tenant-writes: ['1199'] - x-powered-by: [ASP.NET] - status: {code: 202, message: Accepted} + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '161' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 00:00:57 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - f06cef7d-f66e-4909-b279-3471491cb135 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 202 + message: Accepted - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","displayName":"testcligroup","details":{"version":6,"updatedTime":"2019-02-28T00:16:53.7893179Z","updatedBy":"8427ce23-08f2-4510-b6e2-99644db7f94e","parent":{"id":"/providers/Microsoft.Management/managementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47","name":"72f988bf-86f1-41af-91ab-2d7cd011db47","displayName":"72f988bf-86f1-41af-91ab-2d7cd011db47"}}}}'} - headers: - cache-control: [no-cache] - content-length: ['588'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:17:00 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [8540a1fe-d7e9-4f4c-8e51-a7d831eb897f] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Running"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '157' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 00:01:07 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 25b1c9dc-4b95-4eb1-ae41-e1e89828c124 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - Content-Length: ['0'] - ParameterSetName: [--name --display-name --parent] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":116,"updatedTime":"2022-01-21T00:01:03.2602151Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + headers: + cache-control: + - no-cache + content-length: + - '375' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 00:01:17 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 04769ba0-42ff-4a7c-9775-4bcaa0710381 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":116,"updatedTime":"2022-01-21T00:01:03.2602151Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + Management Group"}}}}' + headers: + cache-control: + - no-cache + content-length: + - '543' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 00:01:17 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 04b19f99-a810-417c-bd75-d2f36e473931 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name --display-name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:17:02 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 00:01:18 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - ParameterSetName: [--name --display-name --parent] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name --display-name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:17:13 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 00:01:28 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: '{"name": "testcligroupchild", "properties": {"displayName": "testcligroupchildDisplayName", "details": {"parent": {"id": "/providers/Microsoft.Management/managementGroups/testcligroup"}}}}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Cache-Control: [no-cache] - CommandName: [account management-group create] - Connection: [keep-alive] - Content-Length: ['188'] - Content-Type: [application/json; charset=utf-8] - ParameterSetName: [--name --display-name --parent] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '188' + Content-Type: + - application/json + ParameterSetName: + - --name --display-name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '171' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 00:01:30 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroupchild?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 3ee6e982-8d8c-4b08-a85d-a9f12dada6a0 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name --display-name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild","name":"testcligroupchild","status":"Running"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '167' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 00:01:40 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroupchild?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - bd4b3b66-a055-4c80-ad4c-292c6365ed2f + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name --display-name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroupchild","status":"NotStarted"}'} - headers: - cache-control: [no-cache] - content-length: ['182'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:17:14 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroupchild?api-version=2018-03-01-preview'] - pragma: [no-cache] - request-id: [0617f425-dd7d-4ea6-9d64-375b57238a4d] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-tenant-writes: ['1199'] - x-powered-by: [ASP.NET] - status: {code: 202, message: Accepted} + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild","name":"testcligroupchild","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchildDisplayName","details":{"version":81,"updatedTime":"2022-01-21T00:01:37.2390579Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + headers: + cache-control: + - no-cache + content-length: + - '400' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 00:01:51 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 048e75a2-f370-4eb2-a0d8-115f318f6b21 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - ParameterSetName: [--name --display-name --parent] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name --display-name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroupchild?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroupchild","status":"Succeeded","properties":{"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","displayName":"testcligroupchildDisplayName","details":{"version":4,"updatedTime":"2019-02-28T00:17:19.4486426Z","updatedBy":"8427ce23-08f2-4510-b6e2-99644db7f94e","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","name":"testcligroup","displayName":"testcligroup"}}}}'} - headers: - cache-control: [no-cache] - content-length: ['542'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:17:25 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [ed2128f5-51a2-42f6-9098-092578c1224f] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchildDisplayName","details":{"version":81,"updatedTime":"2022-01-21T00:01:37.2390579Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","name":"testcligroup","displayName":"testcligroup"}}}}' + headers: + cache-control: + - no-cache + content-length: + - '511' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 00:01:51 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - d335dec0-dab5-4a55-8d56-82434b072a4d + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - Content-Length: ['0'] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:17:28 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 00:01:52 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:17:38 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 00:02:02 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Cache-Control: [no-cache] - CommandName: [account management-group delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroupchild","status":"NotStarted"}'} - headers: - cache-control: [no-cache] - content-length: ['182'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:17:41 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroupchild?api-version=2018-03-01-preview'] - pragma: [no-cache] - request-id: [f806e149-fa87-49b8-91f0-26b715ccc910] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-tenant-deletes: ['14998'] - x-powered-by: [ASP.NET] - status: {code: 202, message: Accepted} + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '171' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 00:02:03 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroupchild?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 7d6bec2b-322e-40af-be77-084f4b9911d1 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-deletes: + - '14999' + status: + code: 202 + message: Accepted - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroupchild?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroupchild","status":"Succeeded"}'} - headers: - cache-control: [no-cache] - content-length: ['181'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:17:51 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [65fd8724-441c-4fcb-b682-bb86734ab7cd] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroupchild","name":"testcligroupchild","status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '169' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 00:02:13 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 2286d379-7d82-43f8-a047-cd466d1aa7be + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - Content-Length: ['0'] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:17:53 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 00:02:14 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:18:03 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 00:02:25 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Cache-Control: [no-cache] - CommandName: [account management-group delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}'} - headers: - cache-control: [no-cache] - content-length: ['172'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:18:06 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroup?api-version=2018-03-01-preview'] - pragma: [no-cache] - request-id: [06cdad41-a1c6-47fd-9115-34ae77c3d1b4] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-tenant-deletes: ['14999'] - x-powered-by: [ASP.NET] - status: {code: 202, message: Accepted} + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '161' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 00:02:26 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroup?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - a9fae5fa-d0a2-4485-9aa9-caa9da635512 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-deletes: + - '14999' + status: + code: 202 + message: Accepted - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"Succeeded"}'} - headers: - cache-control: [no-cache] - content-length: ['171'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:18:16 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [cdb8d8bb-a3a5-4400-acf2-e7cdf0ce3f05] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '159' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 00:02:36 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 57134119-3589-495d-ac15-c53d4d7d1579 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_create_managementgroup_with_parentid.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_create_managementgroup_with_parentid.yaml index 4b6db1b9c4e..13eae1fd085 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_create_managementgroup_with_parentid.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_create_managementgroup_with_parentid.yaml @@ -2,486 +2,1007 @@ interactions: - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - Content-Length: ['0'] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:14:57 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:48:40 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:15:07 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:48:50 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: '{"name": "testcligroup", "properties": {"details": {"parent": {}}}}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Cache-Control: [no-cache] - CommandName: [account management-group create] - Connection: [keep-alive] - Content-Length: ['67'] - Content-Type: [application/json; charset=utf-8] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '67' + Content-Type: + - application/json + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}'} - headers: - cache-control: [no-cache] - content-length: ['172'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:15:09 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2018-03-01-preview'] - pragma: [no-cache] - request-id: [23faa991-dcab-4b6c-8389-ec551c892ad6] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-tenant-writes: ['1198'] - x-powered-by: [ASP.NET] - status: {code: 202, message: Accepted} + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '161' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:48:50 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - ea14f650-f327-4a76-b779-9890244fb96e + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 202 + message: Accepted - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","displayName":"testcligroup","details":{"version":5,"updatedTime":"2019-02-28T00:15:14.0716337Z","updatedBy":"8427ce23-08f2-4510-b6e2-99644db7f94e","parent":{"id":"/providers/Microsoft.Management/managementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47","name":"72f988bf-86f1-41af-91ab-2d7cd011db47","displayName":"72f988bf-86f1-41af-91ab-2d7cd011db47"}}}}'} - headers: - cache-control: [no-cache] - content-length: ['588'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:15:19 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [bdf3d909-8a66-4ecf-b242-13f28ef748d9] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Running"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '157' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:49:01 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 620a4521-3708-4e35-a01b-28d257aefac8 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - Content-Length: ['0'] - ParameterSetName: [--name --parent] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":122,"updatedTime":"2022-01-21T05:48:57.1882617Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + headers: + cache-control: + - no-cache + content-length: + - '375' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:49:11 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - d411ddf0-696d-401e-863d-d4b2ffb58c50 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":122,"updatedTime":"2022-01-21T05:48:57.1882617Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + Management Group"}}}}' + headers: + cache-control: + - no-cache + content-length: + - '543' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:49:12 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - cd445153-760c-4121-b7e1-4926ea05db47 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:15:22 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:49:13 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - ParameterSetName: [--name --parent] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:15:32 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:49:23 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: '{"name": "testcligroupchild", "properties": {"details": {"parent": {"id": "/providers/Microsoft.Management/managementGroups/testcligroup"}}}}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Cache-Control: [no-cache] - CommandName: [account management-group create] - Connection: [keep-alive] - Content-Length: ['141'] - Content-Type: [application/json; charset=utf-8] - ParameterSetName: [--name --parent] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '141' + Content-Type: + - application/json + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '171' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:49:24 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroupchild?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 133d04a4-a6fe-4480-a4c8-cbf3579cf60e + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild","name":"testcligroupchild","status":"Running"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '167' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:49:35 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroupchild?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 132048bb-1fe8-44f0-8fef-058d9122bde6 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroupchild","status":"NotStarted"}'} - headers: - cache-control: [no-cache] - content-length: ['182'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:15:33 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroupchild?api-version=2018-03-01-preview'] - pragma: [no-cache] - request-id: [28f9179a-1949-47bc-8b85-fc80b8578975] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-tenant-writes: ['1198'] - x-powered-by: [ASP.NET] - status: {code: 202, message: Accepted} + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild","name":"testcligroupchild","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":84,"updatedTime":"2022-01-21T05:49:29.838533Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + headers: + cache-control: + - no-cache + content-length: + - '388' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:49:45 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 63b65a7d-19e9-4d48-9e20-6ab38b2c3572 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - ParameterSetName: [--name --parent] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroupchild?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroupchild","status":"Succeeded","properties":{"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","displayName":"testcligroupchild","details":{"version":3,"updatedTime":"2019-02-28T00:15:41.5363782Z","updatedBy":"8427ce23-08f2-4510-b6e2-99644db7f94e","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","name":"testcligroup","displayName":"testcligroup"}}}}'} - headers: - cache-control: [no-cache] - content-length: ['531'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:15:43 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [34e207ed-bac1-445a-a87a-fe9e9c75071e] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":84,"updatedTime":"2022-01-21T05:49:29.838533Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","name":"testcligroup","displayName":"testcligroup"}}}}' + headers: + cache-control: + - no-cache + content-length: + - '499' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:49:46 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 5282523f-4bba-40e0-861c-4d28c035f7c0 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - Content-Length: ['0'] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:15:47 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:49:47 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:15:57 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:49:57 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Cache-Control: [no-cache] - CommandName: [account management-group delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroupchild","status":"NotStarted"}'} - headers: - cache-control: [no-cache] - content-length: ['182'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:16:00 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroupchild?api-version=2018-03-01-preview'] - pragma: [no-cache] - request-id: [49ca373c-dfcb-40c5-ab58-d1816d3c6698] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-tenant-deletes: ['14998'] - x-powered-by: [ASP.NET] - status: {code: 202, message: Accepted} + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '171' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:49:58 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroupchild?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - a1f32b57-1949-474c-aa5f-cd33e3642675 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-deletes: + - '14999' + status: + code: 202 + message: Accepted - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroupchild?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroupchild","status":"Succeeded"}'} - headers: - cache-control: [no-cache] - content-length: ['181'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:16:10 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [ed56c7ce-193b-4a6f-ac2d-b6e732289062] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroupchild","name":"testcligroupchild","status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '169' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:50:08 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 3efb030d-c781-4aa4-9179-c9ea5b1d7180 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - Content-Length: ['0'] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:16:13 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:50:09 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:16:23 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:50:20 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Cache-Control: [no-cache] - CommandName: [account management-group delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}'} - headers: - cache-control: [no-cache] - content-length: ['172'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:16:25 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroup?api-version=2018-03-01-preview'] - pragma: [no-cache] - request-id: [fd413bb7-b59e-45bd-a453-23c02897df2b] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-tenant-deletes: ['14999'] - x-powered-by: [ASP.NET] - status: {code: 202, message: Accepted} + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '161' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:50:20 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroup?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - d8422eaf-c9b4-49f6-a173-c1d2bfddaa4f + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-deletes: + - '14999' + status: + code: 202 + message: Accepted - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"Succeeded"}'} - headers: - cache-control: [no-cache] - content-length: ['171'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:16:35 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [2db7282f-9e57-42c4-aae2-ce265910f5cf] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '159' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:50:31 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 741dd0af-89fd-4ad1-90d9-5ccfca5a5cfd + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_list_managementgroups.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_list_managementgroups.yaml index fa96820a45a..898764e91e1 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_list_managementgroups.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_list_managementgroups.yaml @@ -2,85 +2,138 @@ interactions: - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group list] - Connection: [keep-alive] - Content-Length: ['0'] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group list + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:02:29 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 00:00:05 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group list] - Connection: [keep-alive] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group list + Connection: + - keep-alive + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:02:39 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 00:00:15 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Cache-Control: [no-cache] - CommandName: [account management-group list] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group list + Connection: + - keep-alive + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups?api-version=2021-04-01 response: - body: {string: '{"error":{"code":"AuthorizationFailed","message":"The client ''viananth@microsoft.com'' - with object id ''8427ce23-08f2-4510-b6e2-99644db7f94e'' does not have authorization - to perform action ''Microsoft.Management/managementGroups/read'' over scope - ''/providers/Microsoft.Management''."}}'} + body: + string: '{"value":[{"id":"/providers/Microsoft.Management/managementGroups/azure-cli-managementaizr2dd4fz","type":"Microsoft.Management/managementGroups","name":"azure-cli-managementaizr2dd4fz","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"azure-cli-managementaizr2dd4fz"}},{"id":"/providers/Microsoft.Management/managementGroups/azure-cli-managementb4osamcwmj","type":"Microsoft.Management/managementGroups","name":"azure-cli-managementb4osamcwmj","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"azure-cli-managementb4osamcwmj"}},{"id":"/providers/Microsoft.Management/managementGroups/azure-cli-management-groupm2apk2ydbnxvjc","type":"Microsoft.Management/managementGroups","name":"azure-cli-management-groupm2apk2ydbnxvjc","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"azure-cli-management-groupm2apk2ydbnxvjc"}},{"id":"/providers/Microsoft.Management/managementGroups/azure-cli-management-groupnforubwtqei527","type":"Microsoft.Management/managementGroups","name":"azure-cli-management-groupnforubwtqei527","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"azure-cli-management-groupnforubwtqei527"}},{"id":"/providers/Microsoft.Management/managementGroups/azure-cli-managementz5v4ynfco4","type":"Microsoft.Management/managementGroups","name":"azure-cli-managementz5v4ynfco4","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"azure-cli-managementz5v4ynfco4"}},{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","type":"Microsoft.Management/managementGroups","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + Management Group"}},{"id":"/providers/Microsoft.Management/managementGroups/cli-test-mgmt-groupeg2st77efvn","type":"Microsoft.Management/managementGroups","name":"cli-test-mgmt-groupeg2st77efvn","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"cli-test-mgmt-groupeg2st77efvn"}},{"id":"/providers/Microsoft.Management/managementGroups/cli-test-mgmt-groupsoe7y63ziif","type":"Microsoft.Management/managementGroups","name":"cli-test-mgmt-groupsoe7y63ziif","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"cli-test-mgmt-groupsoe7y63ziif"}},{"id":"/providers/Microsoft.Management/managementGroups/testMG3","type":"Microsoft.Management/managementGroups","name":"testMG3","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testMG3"}},{"id":"/providers/Microsoft.Management/managementGroups/testMG4","type":"Microsoft.Management/managementGroups","name":"testMG4","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testMG4"}},{"id":"/providers/Microsoft.Management/managementGroups/thomasdolanTestMG","type":"Microsoft.Management/managementGroups","name":"thomasdolanTestMG","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"thomasdolanTestMG"}}],"@nextLink":null}' headers: - cache-control: [no-cache] - connection: [close] - content-length: ['279'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:02:41 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-failure-cause: [gateway] - status: {code: 403, message: Forbidden} + cache-control: + - no-cache + content-length: + - '3082' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 00:00:16 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 49db846b-1566-4137-b4d5-54bf382c6284 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_show_managementgroup.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_show_managementgroup.yaml index 7d7f78eef24..cac56520d3f 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_show_managementgroup.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_show_managementgroup.yaml @@ -2,575 +2,995 @@ interactions: - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - Content-Length: ['0'] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:12:44 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:54:41 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:12:54 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:54:51 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: - body: '{"name": "testcligetgroup1", "properties": {"details": {"parent": {}}}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Cache-Control: [no-cache] - CommandName: [account management-group create] - Connection: [keep-alive] - Content-Length: ['71'] - Content-Type: [application/json; charset=utf-8] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + body: '{"name": "testcligetgroup", "properties": {"details": {"parent": {}}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '70' + Content-Type: + - application/json + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup1","status":"NotStarted"}'} - headers: - cache-control: [no-cache] - content-length: ['180'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:12:56 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup1?api-version=2018-03-01-preview'] - pragma: [no-cache] - request-id: [0778a5ba-a337-400c-b847-b9fa42c6462b] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-tenant-writes: ['1198'] - x-powered-by: [ASP.NET] - status: {code: 202, message: Accepted} + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup","type":"Microsoft.Management/managementGroups","name":"testcligetgroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup","details":{"version":9,"updatedTime":"2022-01-21T05:53:01.2347389Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + Management Group"}}}}' + headers: + cache-control: + - no-cache + content-length: + - '550' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:54:52 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 22babe80-008d-4af9-82f5-3f0357af2f9d + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup1?api-version=2018-03-01-preview - response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup1","status":"Succeeded","properties":{"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","displayName":"testcligetgroup1","details":{"version":3,"updatedTime":"2019-02-28T00:13:01.4566267Z","updatedBy":"8427ce23-08f2-4510-b6e2-99644db7f94e","parent":{"id":"/providers/Microsoft.Management/managementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47","name":"72f988bf-86f1-41af-91ab-2d7cd011db47","displayName":"72f988bf-86f1-41af-91ab-2d7cd011db47"}}}}'} - headers: - cache-control: [no-cache] - content-length: ['600'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:13:06 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [d68371d5-eae8-4db1-bee9-3ec364c0649c] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - Content-Length: ['0'] - ParameterSetName: [--name --parent] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:13:09 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:54:53 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - ParameterSetName: [--name --parent] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:13:19 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:55:03 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: - body: '{"name": "testcligetgroup2", "properties": {"details": {"parent": {"id": - "/providers/Microsoft.Management/managementGroups/testcligetgroup1"}}}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Cache-Control: [no-cache] - CommandName: [account management-group create] - Connection: [keep-alive] - Content-Length: ['144'] - Content-Type: [application/json; charset=utf-8] - ParameterSetName: [--name --parent] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + body: '{"name": "testcligetgroup1", "properties": {"details": {"parent": {"id": + "/providers/Microsoft.Management/managementGroups/testcligetgroup"}}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '143' + Content-Type: + - application/json + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup2?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"Microsoft.Management/managementGroups","name":"testcligetgroup1","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '169' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:55:04 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup1?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - b7bdc28e-c1e8-4784-9b35-5fe0bc356c3e + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1","name":"testcligetgroup1","status":"Running"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '165' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:55:14 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup1?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 0a339e9c-3802-4126-b771-01efbcab3e1f + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup2","status":"NotStarted"}'} - headers: - cache-control: [no-cache] - content-length: ['180'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:13:21 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup2?api-version=2018-03-01-preview'] - pragma: [no-cache] - request-id: [fdcf6abd-76eb-4860-8b72-e3ced3c27317] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-tenant-writes: ['1198'] - x-powered-by: [ASP.NET] - status: {code: 202, message: Accepted} + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1","name":"testcligetgroup1","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup1","details":{"version":22,"updatedTime":"2022-01-21T05:55:09.414743Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + headers: + cache-control: + - no-cache + content-length: + - '385' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:55:25 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 7a6df3af-df61-4541-b76d-747626431447 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - ParameterSetName: [--name --parent] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup2?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup2","status":"Succeeded","properties":{"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","displayName":"testcligetgroup2","details":{"version":3,"updatedTime":"2019-02-28T00:13:25.0020653Z","updatedBy":"8427ce23-08f2-4510-b6e2-99644db7f94e","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","name":"testcligetgroup1","displayName":"testcligetgroup1"}}}}'} - headers: - cache-control: [no-cache] - content-length: ['540'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:13:31 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [735a8b3b-696f-48d6-89e2-75b282149af0] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"Microsoft.Management/managementGroups","name":"testcligetgroup1","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup1","details":{"version":22,"updatedTime":"2022-01-21T05:55:09.414743Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup","name":"testcligetgroup","displayName":"testcligetgroup"}}}}' + headers: + cache-control: + - no-cache + content-length: + - '505' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:55:25 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - e1bfcb90-17bb-46d8-ae60-c3ff399aa8cf + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group show] - Connection: [keep-alive] - Content-Length: ['0'] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group show + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:13:34 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:55:27 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group show] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group show + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:13:44 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:55:37 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Cache-Control: [no-cache] - CommandName: [account management-group show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group show + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup2?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup2","properties":{"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","displayName":"testcligetgroup2","details":{"version":3,"updatedTime":"2019-02-28T00:13:25.0020653Z","updatedBy":"8427ce23-08f2-4510-b6e2-99644db7f94e","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","name":"testcligetgroup1","displayName":"testcligetgroup1"}}}}'} - headers: - cache-control: [no-cache] - content-length: ['519'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:13:45 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [fdb289ce-3e25-4489-ab22-99a4ffbc52d0] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"Microsoft.Management/managementGroups","name":"testcligetgroup1","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup1","details":{"version":22,"updatedTime":"2022-01-21T05:55:09.414743Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup","name":"testcligetgroup","displayName":"testcligetgroup"}}}}' + headers: + cache-control: + - no-cache + content-length: + - '505' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:55:37 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 5035557c-1126-423a-8ff3-d02746cb5c0c + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - Content-Length: ['0'] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:13:47 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:55:38 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:13:57 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:55:48 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Cache-Control: [no-cache] - CommandName: [account management-group delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup2?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup2","status":"NotStarted"}'} - headers: - cache-control: [no-cache] - content-length: ['180'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:14:18 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup2?api-version=2018-03-01-preview'] - pragma: [no-cache] - request-id: [0023f281-3efc-4560-83f8-108fe1e7bda2] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-tenant-deletes: ['14999'] - x-powered-by: [ASP.NET] - status: {code: 202, message: Accepted} + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"Microsoft.Management/managementGroups","name":"testcligetgroup1","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '169' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:55:53 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup1?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 4d7ce93e-7f18-4c96-bc52-517f34266227 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-deletes: + - '14999' + status: + code: 202 + message: Accepted - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup2?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup2","status":"Succeeded"}'} - headers: - cache-control: [no-cache] - content-length: ['179'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:14:28 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [63ac5ee7-da89-4c0f-9ec7-b8cdfb752f6e] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup1","name":"testcligetgroup1","status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '167' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:56:03 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 22eca3a3-9e4c-4716-b447-a00894284ccc + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - Content-Length: ['0'] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:14:31 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:56:05 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:14:41 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:56:14 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Cache-Control: [no-cache] - CommandName: [account management-group delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup1","status":"NotStarted"}'} - headers: - cache-control: [no-cache] - content-length: ['180'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:14:43 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup1?api-version=2018-03-01-preview'] - pragma: [no-cache] - request-id: [ae922f41-9a8f-47e9-a5a7-59c2bd490879] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-tenant-deletes: ['14999'] - x-powered-by: [ASP.NET] - status: {code: 202, message: Accepted} + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup","type":"Microsoft.Management/managementGroups","name":"testcligetgroup","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '167' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:56:16 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 2d1ec6bd-15f9-4d50-8645-fa9988261b08 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-deletes: + - '14999' + status: + code: 202 + message: Accepted - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup1?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup1","status":"Succeeded"}'} - headers: - cache-control: [no-cache] - content-length: ['179'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:14:54 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [64801e9f-9294-463c-9da0-37e99e35cb0c] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup","name":"testcligetgroup","status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '165' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:56:26 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - cbe5abb1-eee0-4b6d-9cde-3f42d5f73f4d + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_show_managementgroup_with_expand.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_show_managementgroup_with_expand.yaml index 1e656a5d94f..946c9413eb7 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_show_managementgroup_with_expand.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_show_managementgroup_with_expand.yaml @@ -2,818 +2,1652 @@ interactions: - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - Content-Length: ['0'] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:02:44 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:01:23 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:02:53 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: '{"name": "testcligetgroup1", "properties": {"details": {"parent": {}}}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Cache-Control: [no-cache] - CommandName: [account management-group create] - Connection: [keep-alive] - Content-Length: ['71'] - Content-Type: [application/json; charset=utf-8] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:01:33 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"name": "testcligetgroup", "properties": {"details": {"parent": {}}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '70' + Content-Type: + - application/json + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2018-03-01-preview - response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup1","status":"NotStarted"}'} - headers: - cache-control: [no-cache] - content-length: ['180'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:02:54 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup1?api-version=2018-03-01-preview'] - pragma: [no-cache] - request-id: [b9afce34-21c7-4911-9c73-5a04496e5a60] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-tenant-writes: ['1199'] - x-powered-by: [ASP.NET] - status: {code: 202, message: Accepted} + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup","type":"Microsoft.Management/managementGroups","name":"testcligetgroup","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '167' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:01:34 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 4945e36f-6039-4aa2-a770-a4a58e5d4fc7 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup","name":"testcligetgroup","status":"Running"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '163' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:01:44 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - b9110781-8cbe-4472-8374-bc06f3a9b9c2 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup","name":"testcligetgroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup","details":{"version":10,"updatedTime":"2022-01-21T06:01:40.1327349Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + headers: + cache-control: + - no-cache + content-length: + - '383' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:01:55 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 2515af9f-0097-493d-b2da-786d9648ccc7 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup1?api-version=2018-03-01-preview - response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup1","status":"Succeeded","properties":{"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","displayName":"testcligetgroup1","details":{"version":1,"updatedTime":"2019-02-28T00:02:59.1221142Z","updatedBy":"8427ce23-08f2-4510-b6e2-99644db7f94e","parent":{"id":"/providers/Microsoft.Management/managementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47","name":"72f988bf-86f1-41af-91ab-2d7cd011db47","displayName":"72f988bf-86f1-41af-91ab-2d7cd011db47"}}}}'} - headers: - cache-control: [no-cache] - content-length: ['600'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:03:06 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [dae95509-26da-49f0-888e-4195505fb069] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup","type":"Microsoft.Management/managementGroups","name":"testcligetgroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup","details":{"version":10,"updatedTime":"2022-01-21T06:01:40.1327349Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + Management Group"}}}}' + headers: + cache-control: + - no-cache + content-length: + - '551' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:01:55 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 38d72ec0-e489-48a5-bba8-edb287ff9671 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - Content-Length: ['0'] - ParameterSetName: [--name --parent] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:03:07 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:01:57 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - ParameterSetName: [--name --parent] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:03:18 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:02:08 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: - body: '{"name": "testcligetgroup2", "properties": {"details": {"parent": {"id": - "/providers/Microsoft.Management/managementGroups/testcligetgroup1"}}}}' + body: '{"name": "testcligetgroup1", "properties": {"details": {"parent": {"id": + "/providers/Microsoft.Management/managementGroups/testcligetgroup"}}}}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Cache-Control: [no-cache] - CommandName: [account management-group create] - Connection: [keep-alive] - Content-Length: ['144'] - Content-Type: [application/json; charset=utf-8] - ParameterSetName: [--name --parent] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '143' + Content-Type: + - application/json + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup2?api-version=2018-03-01-preview - response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup2","status":"NotStarted"}'} - headers: - cache-control: [no-cache] - content-length: ['180'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:03:19 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup2?api-version=2018-03-01-preview'] - pragma: [no-cache] - request-id: [98adb9f7-fb4f-4097-a4f5-b50e0769f9eb] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-tenant-writes: ['1199'] - x-powered-by: [ASP.NET] - status: {code: 202, message: Accepted} + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"Microsoft.Management/managementGroups","name":"testcligetgroup1","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '169' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:02:09 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup1?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 6eb6db89-a153-4302-8cdd-90bc0e23e035 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1","name":"testcligetgroup1","status":"Running"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '165' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:02:19 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup1?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 700b14c8-46db-4f6c-a8b1-26796318e7c9 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1","name":"testcligetgroup1","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup1","details":{"version":24,"updatedTime":"2022-01-21T06:02:16.0159623Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + headers: + cache-control: + - no-cache + content-length: + - '386' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:02:30 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 462ec200-1243-478d-8f4b-861bdb22ee79 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - ParameterSetName: [--name --parent] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup2?api-version=2018-03-01-preview - response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup2","status":"Succeeded","properties":{"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","displayName":"testcligetgroup2","details":{"version":1,"updatedTime":"2019-02-28T00:03:24.6572791Z","updatedBy":"8427ce23-08f2-4510-b6e2-99644db7f94e","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","name":"testcligetgroup1","displayName":"testcligetgroup1"}}}}'} - headers: - cache-control: [no-cache] - content-length: ['540'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:03:30 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [716bd7d8-d5b2-40f7-805b-4c29a37b0f55] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"Microsoft.Management/managementGroups","name":"testcligetgroup1","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup1","details":{"version":24,"updatedTime":"2022-01-21T06:02:16.0159623Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup","name":"testcligetgroup","displayName":"testcligetgroup"}}}}' + headers: + cache-control: + - no-cache + content-length: + - '506' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:02:30 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 03be6520-e078-49d6-8b6b-9820af235842 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - Content-Length: ['0'] - ParameterSetName: [--name --parent] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:03:33 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:02:32 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - ParameterSetName: [--name --parent] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:03:43 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: '{"name": "testcligetgroup3", "properties": {"details": {"parent": {"id": - "/providers/Microsoft.Management/managementGroups/testcligetgroup2"}}}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Cache-Control: [no-cache] - CommandName: [account management-group create] - Connection: [keep-alive] - Content-Length: ['144'] - Content-Type: [application/json; charset=utf-8] - ParameterSetName: [--name --parent] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:02:42 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"name": "testcligetgroup2", "properties": {"details": {"parent": {"id": + "/providers/Microsoft.Management/managementGroups/testcligetgroup1"}}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '144' + Content-Type: + - application/json + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup3?api-version=2018-03-01-preview - response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup3","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup3","status":"NotStarted"}'} - headers: - cache-control: [no-cache] - content-length: ['180'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:03:44 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup3?api-version=2018-03-01-preview'] - pragma: [no-cache] - request-id: [2627fc6b-8dc0-449a-b70a-018e22244c53] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-tenant-writes: ['1199'] - x-powered-by: [ASP.NET] - status: {code: 202, message: Accepted} + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup2?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"Microsoft.Management/managementGroups","name":"testcligetgroup2","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '169' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:02:43 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup2?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - f451522c-c891-4781-a570-84569446c30f + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2","name":"testcligetgroup2","status":"Running"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '165' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:02:53 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup2?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - eceed59b-8bf4-4c60-9813-eebab2e9812c + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - ParameterSetName: [--name --parent] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup3?api-version=2018-03-01-preview - response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup3","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup3","status":"Succeeded","properties":{"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","displayName":"testcligetgroup3","details":{"version":1,"updatedTime":"2019-02-28T00:03:48.8098082Z","updatedBy":"8427ce23-08f2-4510-b6e2-99644db7f94e","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","name":"testcligetgroup2","displayName":"testcligetgroup2"}}}}'} - headers: - cache-control: [no-cache] - content-length: ['540'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:03:55 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [58d52ad8-1acb-4244-82ca-ff8dfe9ad194] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2","name":"testcligetgroup2","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup2","details":{"version":19,"updatedTime":"2022-01-21T06:02:49.7577153Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + headers: + cache-control: + - no-cache + content-length: + - '386' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:03:04 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - cbb79438-e067-42d8-8bbe-4fa916b38221 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group show] - Connection: [keep-alive] - Content-Length: ['0'] - ParameterSetName: [--name --expand] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup2?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"Microsoft.Management/managementGroups","name":"testcligetgroup2","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup2","details":{"version":19,"updatedTime":"2022-01-21T06:02:49.7577153Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","name":"testcligetgroup1","displayName":"testcligetgroup1"}}}}' + headers: + cache-control: + - no-cache + content-length: + - '509' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:03:04 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 58df5c6e-c37f-4493-82ef-de9d3e1e251c + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group show + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name --expand + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:03:59 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:03:06 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group show] - Connection: [keep-alive] - ParameterSetName: [--name --expand] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group show + Connection: + - keep-alive + ParameterSetName: + - --name --expand + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:04:09 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:03:16 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Cache-Control: [no-cache] - CommandName: [account management-group show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - ParameterSetName: [--name --expand] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group show + Connection: + - keep-alive + ParameterSetName: + - --name --expand + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup2?$expand=children&api-version=2018-03-01-preview&$recurse=false - response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup2","properties":{"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","displayName":"testcligetgroup2","details":{"version":1,"updatedTime":"2019-02-28T00:03:24.6572791Z","updatedBy":"8427ce23-08f2-4510-b6e2-99644db7f94e","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","name":"testcligetgroup1","displayName":"testcligetgroup1"}},"children":[{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup3","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup3","displayName":"testcligetgroup3"}]}}'} - headers: - cache-control: [no-cache] - content-length: ['724'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:04:10 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [ea0488a2-e91a-4f72-88f2-d0f9d4091e68] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2021-04-01&$expand=children&$recurse=false + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"Microsoft.Management/managementGroups","name":"testcligetgroup1","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup1","details":{"version":24,"updatedTime":"2022-01-21T06:02:16.0159623Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup","name":"testcligetgroup","displayName":"testcligetgroup"}},"children":[{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"Microsoft.Management/managementGroups","name":"testcligetgroup2","displayName":"testcligetgroup2"}]}}' + headers: + cache-control: + - no-cache + content-length: + - '700' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:03:16 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - ac119dd2-0522-45a7-99be-2a841ec32e4b + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - Content-Length: ['0'] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:04:12 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:03:17 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:04:23 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:03:27 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Cache-Control: [no-cache] - CommandName: [account management-group delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup3?api-version=2018-03-01-preview - response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup3","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup3","status":"NotStarted"}'} - headers: - cache-control: [no-cache] - content-length: ['180'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:04:25 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup3?api-version=2018-03-01-preview'] - pragma: [no-cache] - request-id: [99c21713-0c2c-42e1-995f-f8a09df998d0] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-tenant-deletes: ['14999'] - x-powered-by: [ASP.NET] - status: {code: 202, message: Accepted} + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup2?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"Microsoft.Management/managementGroups","name":"testcligetgroup2","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup2?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '169' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:03:29 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup2?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - d9124b70-23a2-404e-b8e0-1f1033d7c603 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-deletes: + - '14999' + status: + code: 202 + message: Accepted - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup3?api-version=2018-03-01-preview - response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup3","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup3","status":"Succeeded"}'} - headers: - cache-control: [no-cache] - content-length: ['179'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:04:35 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [2c5d23d6-605d-41b1-a57c-81723a1bc8c2] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup2?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup2","name":"testcligetgroup2","status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '167' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:03:40 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - ed05dc4b-b463-4cdb-b093-46d439a3536c + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - Content-Length: ['0'] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:04:38 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:03:41 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:04:48 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:03:51 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Cache-Control: [no-cache] - CommandName: [account management-group delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup2?api-version=2018-03-01-preview - response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup2","status":"NotStarted"}'} - headers: - cache-control: [no-cache] - content-length: ['180'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:04:50 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup2?api-version=2018-03-01-preview'] - pragma: [no-cache] - request-id: [9b615e30-46b6-48f8-a05d-e4cd958c7c32] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-tenant-deletes: ['14999'] - x-powered-by: [ASP.NET] - status: {code: 202, message: Accepted} + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"Microsoft.Management/managementGroups","name":"testcligetgroup1","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '169' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:03:52 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup1?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 17d5013b-12b4-4772-8ce4-98da08f4d1bc + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-deletes: + - '14999' + status: + code: 202 + message: Accepted - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup2?api-version=2018-03-01-preview - response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup2","status":"Succeeded"}'} - headers: - cache-control: [no-cache] - content-length: ['179'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:05:01 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [e3bfd78e-627e-486a-8a80-bef1207e2927] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup1","name":"testcligetgroup1","status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '167' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:04:02 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 2386cf55-e788-42f4-a6e4-b8dc4daa81c8 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - Content-Length: ['0'] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:05:04 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:04:03 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:05:14 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:04:13 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Cache-Control: [no-cache] - CommandName: [account management-group delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2018-03-01-preview - response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup1","status":"NotStarted"}'} - headers: - cache-control: [no-cache] - content-length: ['180'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:05:17 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup1?api-version=2018-03-01-preview'] - pragma: [no-cache] - request-id: [0d32be6f-2b3e-4e73-9ebb-94ab60e5ce01] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-tenant-deletes: ['14999'] - x-powered-by: [ASP.NET] - status: {code: 202, message: Accepted} + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup","type":"Microsoft.Management/managementGroups","name":"testcligetgroup","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '167' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:04:15 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - c8a71db7-7c53-42e0-b049-63593ecb20fe + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-deletes: + - '14999' + status: + code: 202 + message: Accepted - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup1?api-version=2018-03-01-preview - response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup1","status":"Succeeded"}'} - headers: - cache-control: [no-cache] - content-length: ['179'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:05:27 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [1819e734-42c6-4f8d-9579-898ccb40d15a] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup","name":"testcligetgroup","status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '165' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:04:25 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - d8f89446-7307-4221-b651-0005fccf8833 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_show_managementgroup_with_expand_and_recurse.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_show_managementgroup_with_expand_and_recurse.yaml index b2b157631d5..a7da4341899 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_show_managementgroup_with_expand_and_recurse.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_show_managementgroup_with_expand_and_recurse.yaml @@ -2,1061 +2,2155 @@ interactions: - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - Content-Length: ['0'] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:09:07 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:56:53 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:09:18 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:57:03 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: '{"name": "testcligetgroup1", "properties": {"details": {"parent": {}}}}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Cache-Control: [no-cache] - CommandName: [account management-group create] - Connection: [keep-alive] - Content-Length: ['71'] - Content-Type: [application/json; charset=utf-8] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '71' + Content-Type: + - application/json + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup1","status":"NotStarted"}'} - headers: - cache-control: [no-cache] - content-length: ['180'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:09:19 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup1?api-version=2018-03-01-preview'] - pragma: [no-cache] - request-id: [298ca91a-4dc1-4f91-84bf-975af290c47b] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-tenant-writes: ['1199'] - x-powered-by: [ASP.NET] - status: {code: 202, message: Accepted} + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"Microsoft.Management/managementGroups","name":"testcligetgroup1","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '169' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:57:04 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup1?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 4db8340b-bee1-4787-af2a-6d5ad3b5eed9 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 202 + message: Accepted - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup1?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup1","status":"Succeeded","properties":{"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","displayName":"testcligetgroup1","details":{"version":2,"updatedTime":"2019-02-28T00:09:24.8900251Z","updatedBy":"8427ce23-08f2-4510-b6e2-99644db7f94e","parent":{"id":"/providers/Microsoft.Management/managementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47","name":"72f988bf-86f1-41af-91ab-2d7cd011db47","displayName":"72f988bf-86f1-41af-91ab-2d7cd011db47"}}}}'} - headers: - cache-control: [no-cache] - content-length: ['600'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:09:29 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [3f9b03db-2d5f-4a33-9164-ac78eb775153] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1","name":"testcligetgroup1","status":"Running"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '165' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:57:14 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup1?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 33066e9d-fe79-43ae-8cf4-93cacc67dcad + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - Content-Length: ['0'] - ParameterSetName: [--name --parent] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1","name":"testcligetgroup1","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup1","details":{"version":23,"updatedTime":"2022-01-21T05:57:10.226183Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + headers: + cache-control: + - no-cache + content-length: + - '385' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:57:25 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 41754aee-2fad-4753-b6f4-b9aef61bbaca + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"Microsoft.Management/managementGroups","name":"testcligetgroup1","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup1","details":{"version":23,"updatedTime":"2022-01-21T05:57:10.226183Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + Management Group"}}}}' + headers: + cache-control: + - no-cache + content-length: + - '553' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:57:25 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - a81bcd72-1814-4e6c-9421-0cac87f5d7ec + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:09:32 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:57:26 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - ParameterSetName: [--name --parent] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:09:42 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:57:36 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: '{"name": "testcligetgroup2", "properties": {"details": {"parent": {"id": "/providers/Microsoft.Management/managementGroups/testcligetgroup1"}}}}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Cache-Control: [no-cache] - CommandName: [account management-group create] - Connection: [keep-alive] - Content-Length: ['144'] - Content-Type: [application/json; charset=utf-8] - ParameterSetName: [--name --parent] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '144' + Content-Type: + - application/json + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup2?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup2?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"Microsoft.Management/managementGroups","name":"testcligetgroup2","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '169' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:57:38 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup2?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 33ac6a1b-b274-492e-8a6b-eef2c766fc78 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2","name":"testcligetgroup2","status":"Running"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '165' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:57:48 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup2?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - f6744c5e-c453-4743-a9ce-c2057c06fc53 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup2","status":"NotStarted"}'} - headers: - cache-control: [no-cache] - content-length: ['180'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:09:44 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup2?api-version=2018-03-01-preview'] - pragma: [no-cache] - request-id: [3589d846-5855-409c-a541-fbcb09774ac8] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-tenant-writes: ['1199'] - x-powered-by: [ASP.NET] - status: {code: 202, message: Accepted} + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2","name":"testcligetgroup2","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup2","details":{"version":18,"updatedTime":"2022-01-21T05:57:43.331189Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + headers: + cache-control: + - no-cache + content-length: + - '385' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:57:59 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 09736214-c17b-4be0-a4cd-a6bf1c6bf85f + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - ParameterSetName: [--name --parent] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup2?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup2?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup2","status":"Succeeded","properties":{"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","displayName":"testcligetgroup2","details":{"version":2,"updatedTime":"2019-02-28T00:09:49.0112246Z","updatedBy":"8427ce23-08f2-4510-b6e2-99644db7f94e","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","name":"testcligetgroup1","displayName":"testcligetgroup1"}}}}'} - headers: - cache-control: [no-cache] - content-length: ['540'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:09:55 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [4d6dec8e-12da-4295-a909-2dac8148fdf4] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"Microsoft.Management/managementGroups","name":"testcligetgroup2","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup2","details":{"version":18,"updatedTime":"2022-01-21T05:57:43.331189Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","name":"testcligetgroup1","displayName":"testcligetgroup1"}}}}' + headers: + cache-control: + - no-cache + content-length: + - '508' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:57:59 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 4df566fe-d693-4ce7-937b-19264f9cc42c + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - Content-Length: ['0'] - ParameterSetName: [--name --parent] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:09:57 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:58:00 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - ParameterSetName: [--name --parent] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:10:07 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:58:10 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: '{"name": "testcligetgroup3", "properties": {"details": {"parent": {"id": "/providers/Microsoft.Management/managementGroups/testcligetgroup2"}}}}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Cache-Control: [no-cache] - CommandName: [account management-group create] - Connection: [keep-alive] - Content-Length: ['144'] - Content-Type: [application/json; charset=utf-8] - ParameterSetName: [--name --parent] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '144' + Content-Type: + - application/json + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup3?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup3?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup3","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup3","status":"NotStarted"}'} - headers: - cache-control: [no-cache] - content-length: ['180'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:10:09 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup3?api-version=2018-03-01-preview'] - pragma: [no-cache] - request-id: [dc04d129-b454-4a20-97d5-7eb3a57a7572] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-tenant-writes: ['1199'] - x-powered-by: [ASP.NET] - status: {code: 202, message: Accepted} + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup3","type":"Microsoft.Management/managementGroups","name":"testcligetgroup3","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup3?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '169' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:58:12 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup3?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - ab980bb2-eef0-49d4-b48b-6b0ad5f0f60c + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 202 + message: Accepted - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - ParameterSetName: [--name --parent] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup3?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup3?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup3","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup3","status":"Succeeded","properties":{"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","displayName":"testcligetgroup3","details":{"version":2,"updatedTime":"2019-02-28T00:10:13.7088585Z","updatedBy":"8427ce23-08f2-4510-b6e2-99644db7f94e","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","name":"testcligetgroup2","displayName":"testcligetgroup2"}}}}'} - headers: - cache-control: [no-cache] - content-length: ['540'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:10:19 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [688acfb7-4a07-422a-abfb-4f8e86c56519] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup3","name":"testcligetgroup3","status":"Running"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup3?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '165' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:58:22 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup3?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 9bf43175-bb53-4b59-86ac-9161595bd36e + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - Content-Length: ['0'] - ParameterSetName: [--name --parent] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup3?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup3","name":"testcligetgroup3","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup3","details":{"version":9,"updatedTime":"2022-01-21T05:58:17.2396376Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + headers: + cache-control: + - no-cache + content-length: + - '385' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:58:32 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 71cbbdce-8185-4d05-a3de-4d8a56d011c5 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup3?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup3","type":"Microsoft.Management/managementGroups","name":"testcligetgroup3","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup3","details":{"version":9,"updatedTime":"2022-01-21T05:58:17.2396376Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","name":"testcligetgroup2","displayName":"testcligetgroup2"}}}}' + headers: + cache-control: + - no-cache + content-length: + - '508' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:58:32 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 68fe5fcc-f58e-4703-903e-ab066e2b2e26 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:10:22 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:58:33 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - ParameterSetName: [--name --parent] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:10:32 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:58:44 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: '{"name": "testcligetgroup4", "properties": {"details": {"parent": {"id": "/providers/Microsoft.Management/managementGroups/testcligetgroup3"}}}}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Cache-Control: [no-cache] - CommandName: [account management-group create] - Connection: [keep-alive] - Content-Length: ['144'] - Content-Type: [application/json; charset=utf-8] - ParameterSetName: [--name --parent] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '144' + Content-Type: + - application/json + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup4?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup4?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup4","type":"Microsoft.Management/managementGroups","name":"testcligetgroup4","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup4?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '169' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:58:45 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup4?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - a59cc3d4-4960-4062-96d1-2afcd386825e + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup4?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup4","name":"testcligetgroup4","status":"Running"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup4?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '165' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:58:55 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup4?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 42beb84a-a8b2-49af-8be1-af4ab4fece8a + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup4?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup4","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup4","status":"NotStarted"}'} - headers: - cache-control: [no-cache] - content-length: ['180'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:10:33 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup4?api-version=2018-03-01-preview'] - pragma: [no-cache] - request-id: [4d1b2bc5-af9e-4bf7-9aa3-b9038957d4c7] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-tenant-writes: ['1199'] - x-powered-by: [ASP.NET] - status: {code: 202, message: Accepted} + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup4","name":"testcligetgroup4","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup4","details":{"version":6,"updatedTime":"2022-01-21T05:58:51.3850621Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + headers: + cache-control: + - no-cache + content-length: + - '385' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:59:05 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - b241966d-f680-4caa-b825-d7aa7b51f97d + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - ParameterSetName: [--name --parent] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup4?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup4?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup4","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup4","status":"Succeeded","properties":{"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","displayName":"testcligetgroup4","details":{"version":1,"updatedTime":"2019-02-28T00:10:39.8240696Z","updatedBy":"8427ce23-08f2-4510-b6e2-99644db7f94e","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup3","name":"testcligetgroup3","displayName":"testcligetgroup3"}}}}'} - headers: - cache-control: [no-cache] - content-length: ['540'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:10:44 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [e3452f64-0098-4b00-b556-861a9b5e1582] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup4","type":"Microsoft.Management/managementGroups","name":"testcligetgroup4","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup4","details":{"version":6,"updatedTime":"2022-01-21T05:58:51.3850621Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup3","name":"testcligetgroup3","displayName":"testcligetgroup3"}}}}' + headers: + cache-control: + - no-cache + content-length: + - '508' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:59:05 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 4f7e7a3b-5ca2-4170-89dc-4437f6496810 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group show] - Connection: [keep-alive] - Content-Length: ['0'] - ParameterSetName: [--name --expand --recurse] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group show + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name --expand --recurse + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:10:48 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:59:07 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group show] - Connection: [keep-alive] - ParameterSetName: [--name --expand --recurse] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group show + Connection: + - keep-alive + ParameterSetName: + - --name --expand --recurse + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:10:58 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:59:17 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Cache-Control: [no-cache] - CommandName: [account management-group show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - ParameterSetName: [--name --expand --recurse] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group show + Connection: + - keep-alive + ParameterSetName: + - --name --expand --recurse + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup2?$expand=children&api-version=2018-03-01-preview&$recurse=true + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup2?api-version=2021-04-01&$expand=children&$recurse=true response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup2","properties":{"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","displayName":"testcligetgroup2","details":{"version":0,"updatedTime":"0001-01-01T00:00:00","updatedBy":null,"parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","name":"testcligetgroup1","displayName":"testcligetgroup1"}},"children":[{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup3","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup3","displayName":"testcligetgroup3","children":[{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup4","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup4","displayName":"testcligetgroup4"}]}]}}'} - headers: - cache-control: [no-cache] - content-length: ['886'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:11:00 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [fa6f454a-4586-44aa-8c72-aae2a002f806] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"Microsoft.Management/managementGroups","name":"testcligetgroup2","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup2","details":{"version":0,"updatedTime":"0001-01-01T00:00:00","updatedBy":null,"parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","name":"testcligetgroup1","displayName":"testcligetgroup1"}},"children":[{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup3","type":"Microsoft.Management/managementGroups","name":"testcligetgroup3","displayName":"testcligetgroup3","children":[{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup4","type":"Microsoft.Management/managementGroups","name":"testcligetgroup4","displayName":"testcligetgroup4"}]}]}}' + headers: + cache-control: + - no-cache + content-length: + - '853' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:59:17 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - b22a9890-eec4-4293-90a2-ecb86c69f6aa + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - Content-Length: ['0'] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:11:02 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:59:19 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:11:12 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:59:29 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Cache-Control: [no-cache] - CommandName: [account management-group delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup4?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup4?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup4","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup4","status":"NotStarted"}'} - headers: - cache-control: [no-cache] - content-length: ['180'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:11:14 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup4?api-version=2018-03-01-preview'] - pragma: [no-cache] - request-id: [a1634e05-bf99-4c94-991f-5838be77f0e3] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-tenant-deletes: ['14999'] - x-powered-by: [ASP.NET] - status: {code: 202, message: Accepted} + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup4","type":"Microsoft.Management/managementGroups","name":"testcligetgroup4","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup4?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '169' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:59:30 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup4?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 55a91783-2ebb-4b8e-8754-a174ed0084fc + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-deletes: + - '14999' + status: + code: 202 + message: Accepted - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup4?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup4?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup4","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup4","status":"Succeeded"}'} - headers: - cache-control: [no-cache] - content-length: ['179'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:11:25 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [fe90b661-3ead-4c08-9e0b-944ee9479448] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup4","name":"testcligetgroup4","status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '167' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:59:40 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - d4507697-bf7b-49f1-8a06-768dc121d442 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - Content-Length: ['0'] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:11:27 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:59:41 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:11:37 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:59:51 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Cache-Control: [no-cache] - CommandName: [account management-group delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup3?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup3?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup3","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup3","status":"NotStarted"}'} - headers: - cache-control: [no-cache] - content-length: ['180'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:11:39 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup3?api-version=2018-03-01-preview'] - pragma: [no-cache] - request-id: [068ad9c1-e4fa-4698-8792-9153af7143ac] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-tenant-deletes: ['14999'] - x-powered-by: [ASP.NET] - status: {code: 202, message: Accepted} + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup3","type":"Microsoft.Management/managementGroups","name":"testcligetgroup3","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup3?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '169' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 05:59:54 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup3?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - b47e2e48-beaa-41a4-8fdf-81d26c9eaeda + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-deletes: + - '14999' + status: + code: 202 + message: Accepted - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup3?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup3?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup3","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup3","status":"Succeeded"}'} - headers: - cache-control: [no-cache] - content-length: ['179'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:11:49 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [43307f17-fbae-4ead-8353-0eb164cb280f] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup3","name":"testcligetgroup3","status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '167' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:00:04 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - a58b0a5c-eacb-4e20-934c-50e855b98601 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - Content-Length: ['0'] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:11:53 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:00:06 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:12:02 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:00:16 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Cache-Control: [no-cache] - CommandName: [account management-group delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup2?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup2?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup2","status":"NotStarted"}'} - headers: - cache-control: [no-cache] - content-length: ['180'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:12:06 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup2?api-version=2018-03-01-preview'] - pragma: [no-cache] - request-id: [16ae7653-7997-42b1-9d37-581e35010cab] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-tenant-deletes: ['14999'] - x-powered-by: [ASP.NET] - status: {code: 202, message: Accepted} + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"Microsoft.Management/managementGroups","name":"testcligetgroup2","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup2?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '169' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:00:17 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup2?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - d473d43c-10f1-495d-ba94-38d2f25ce8ec + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-deletes: + - '14999' + status: + code: 202 + message: Accepted - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup2?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup2?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup2","status":"Succeeded"}'} - headers: - cache-control: [no-cache] - content-length: ['179'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:12:16 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [487c1cf5-fd1a-4d5e-8780-a10a22c76aae] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup2","name":"testcligetgroup2","status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '167' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:00:27 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 59d8976a-b2f3-4e4d-893e-9c510428e8c1 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - Content-Length: ['0'] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:12:18 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:00:28 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:12:29 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:00:38 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Cache-Control: [no-cache] - CommandName: [account management-group delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup1","status":"NotStarted"}'} - headers: - cache-control: [no-cache] - content-length: ['180'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:12:31 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup1?api-version=2018-03-01-preview'] - pragma: [no-cache] - request-id: [cf441d94-8446-4057-96d5-0d870a3d75c6] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-tenant-deletes: ['14997'] - x-powered-by: [ASP.NET] - status: {code: 202, message: Accepted} + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"Microsoft.Management/managementGroups","name":"testcligetgroup1","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '169' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:00:39 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup1?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - fc8849ec-4d1f-4545-93a8-f437c8c6c92e + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '58' + x-ms-ratelimit-remaining-tenant-deletes: + - '14999' + status: + code: 202 + message: Accepted - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup1?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"/providers/Microsoft.Management/managementGroups","name":"testcligetgroup1","status":"Succeeded"}'} - headers: - cache-control: [no-cache] - content-length: ['179'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:12:41 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [f8b7ad5c-1a59-4d44-8f55-1d76b1da7949] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup1","name":"testcligetgroup1","status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '167' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:00:49 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - a6407eed-e12e-4f05-aba6-95d705507684 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_update_managementgroup_with_displayname.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_update_managementgroup_with_displayname.yaml index 1b00a321706..a0df72052fd 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_update_managementgroup_with_displayname.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_update_managementgroup_with_displayname.yaml @@ -2,279 +2,656 @@ interactions: - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - Content-Length: ['0'] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:05:31 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:07:54 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:05:41 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:08:04 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: '{"name": "testcligroup", "properties": {"details": {"parent": {}}}}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Cache-Control: [no-cache] - CommandName: [account management-group create] - Connection: [keep-alive] - Content-Length: ['67'] - Content-Type: [application/json; charset=utf-8] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '67' + Content-Type: + - application/json + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}'} + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}' headers: - cache-control: [no-cache] - content-length: ['172'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:05:42 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2018-03-01-preview'] - pragma: [no-cache] - request-id: [3dbd1ac7-96a3-448c-98fa-66815dfe452d] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-tenant-writes: ['1199'] - x-powered-by: [ASP.NET] - status: {code: 202, message: Accepted} + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '161' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:08:06 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 022fa1c4-b2b9-401d-a34c-ca74f5aee64d + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 202 + message: Accepted - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","displayName":"testcligroup","details":{"version":1,"updatedTime":"2019-02-28T00:05:46.7877599Z","updatedBy":"8427ce23-08f2-4510-b6e2-99644db7f94e","parent":{"id":"/providers/Microsoft.Management/managementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47","name":"72f988bf-86f1-41af-91ab-2d7cd011db47","displayName":"72f988bf-86f1-41af-91ab-2d7cd011db47"}}}}'} + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Running"}' headers: - cache-control: [no-cache] - content-length: ['588'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:05:53 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [e9d160a8-c339-404e-98d0-c52d33e2a09f] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '157' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:08:16 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 579a903d-7ba6-434b-88c7-965d01213ea7 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: - body: '{"displayName": "testcligroupDisplayName"}' + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":124,"updatedTime":"2022-01-21T06:08:12.3748247Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + headers: + cache-control: + - no-cache + content-length: + - '375' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:08:26 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 6ff3b320-8f51-4cdd-8e44-9280de58636b + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Cache-Control: [no-cache] - CommandName: [account management-group update] - Connection: [keep-alive] - Content-Length: ['42'] - Content-Type: [application/json; charset=utf-8] - ParameterSetName: [--name --display-name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] - method: PATCH - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2018-03-01-preview + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":124,"updatedTime":"2022-01-21T06:08:12.3748247Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + Management Group"}}}}' + headers: + cache-control: + - no-cache + content-length: + - '543' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:08:26 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 77722be4-1251-43c1-b869-b0d2aa1ccf00 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group update + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name --display-name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2018-05-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:08:27 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group update + Connection: + - keep-alive + ParameterSetName: + - --name --display-name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2018-05-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:08:38 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"name": "testcligroup", "properties": {"displayName": "testcligroupDisplayName", + "details": {"parent": {}}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group update + Connection: + - keep-alive + Content-Length: + - '109' + Content-Type: + - application/json + ParameterSetName: + - --name --display-name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","displayName":"testcligroupDisplayName","details":{"version":2,"updatedTime":"2019-02-28T00:05:54.1829308Z","updatedBy":"8427ce23-08f2-4510-b6e2-99644db7f94e","parent":{"id":"/providers/Microsoft.Management/managementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47","name":"72f988bf-86f1-41af-91ab-2d7cd011db47","displayName":"72f988bf-86f1-41af-91ab-2d7cd011db47"}}}}'} + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupDisplayName","details":{"version":125,"updatedTime":"2022-01-21T06:08:38.7258544Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + Management Group"}}}}' headers: - cache-control: [no-cache] - content-length: ['578'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:05:57 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [6babf72c-62fc-41c3-93d3-d011972f2c97] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-tenant-writes: ['1199'] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} + cache-control: + - no-cache + content-length: + - '554' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:08:40 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 58f53917-29bb-4584-993d-884c4796757f + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - Content-Length: ['0'] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:05:59 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:08:40 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:06:10 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:08:51 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Cache-Control: [no-cache] - CommandName: [account management-group delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}'} + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}' headers: - cache-control: [no-cache] - content-length: ['172'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:06:12 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroup?api-version=2018-03-01-preview'] - pragma: [no-cache] - request-id: [db39448c-414b-406a-818d-07129a15db26] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-tenant-deletes: ['14998'] - x-powered-by: [ASP.NET] - status: {code: 202, message: Accepted} + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '161' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:08:52 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroup?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 563b2abd-b73d-4538-a23c-89c875fda3d5 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-deletes: + - '14999' + status: + code: 202 + message: Accepted - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"Succeeded"}'} + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded"}' headers: - cache-control: [no-cache] - content-length: ['171'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:06:22 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [ca25218c-bbed-4019-9ec1-877611db577e] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} + cache-control: + - no-cache + content-length: + - '159' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:09:02 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 04718091-b275-4a2d-be59-22637dba9f12 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_update_managementgroup_with_displayname_and_parentid.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_update_managementgroup_with_displayname_and_parentid.yaml index 2b4634d677b..0f7e724c849 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_update_managementgroup_with_displayname_and_parentid.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_update_managementgroup_with_displayname_and_parentid.yaml @@ -2,522 +2,1212 @@ interactions: - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - Content-Length: ['0'] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:18:20 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:05:02 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:18:30 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:05:12 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: '{"name": "testcligroup", "properties": {"details": {"parent": {}}}}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Cache-Control: [no-cache] - CommandName: [account management-group create] - Connection: [keep-alive] - Content-Length: ['67'] - Content-Type: [application/json; charset=utf-8] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '67' + Content-Type: + - application/json + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '161' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:05:13 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - dc77d267-bc9b-4ba0-9d6c-c23e42768a34 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}'} - headers: - cache-control: [no-cache] - content-length: ['172'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:18:31 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2018-03-01-preview'] - pragma: [no-cache] - request-id: [dcc2c563-2511-416f-b775-d5b317b6c431] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-tenant-writes: ['1199'] - x-powered-by: [ASP.NET] - status: {code: 202, message: Accepted} + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Running"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '157' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:05:23 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 9359672d-345a-43fb-a60f-177894a2b326 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":123,"updatedTime":"2022-01-21T06:05:19.1755325Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + headers: + cache-control: + - no-cache + content-length: + - '375' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:05:34 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 0bf930a7-ac0a-4c16-a8bc-e93044f4ad9e + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","displayName":"testcligroup","details":{"version":7,"updatedTime":"2019-02-28T00:18:34.6557996Z","updatedBy":"8427ce23-08f2-4510-b6e2-99644db7f94e","parent":{"id":"/providers/Microsoft.Management/managementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47","name":"72f988bf-86f1-41af-91ab-2d7cd011db47","displayName":"72f988bf-86f1-41af-91ab-2d7cd011db47"}}}}'} - headers: - cache-control: [no-cache] - content-length: ['588'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:18:41 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [302cfd52-06d2-4381-bd72-e2baae5d4cff] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":123,"updatedTime":"2022-01-21T06:05:19.1755325Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + Management Group"}}}}' + headers: + cache-control: + - no-cache + content-length: + - '543' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:05:34 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - f6d16769-e3b8-4837-a61c-fe07526835a0 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - Content-Length: ['0'] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:18:44 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:05:35 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:18:54 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:05:45 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: '{"name": "testcligroupchild", "properties": {"details": {"parent": {}}}}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Cache-Control: [no-cache] - CommandName: [account management-group create] - Connection: [keep-alive] - Content-Length: ['72'] - Content-Type: [application/json; charset=utf-8] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '72' + Content-Type: + - application/json + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '171' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:05:46 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroupchild?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 1b89c371-b844-4a5a-b464-59d73a38c406 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroupchild","status":"NotStarted"}'} - headers: - cache-control: [no-cache] - content-length: ['182'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:18:55 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroupchild?api-version=2018-03-01-preview'] - pragma: [no-cache] - request-id: [a10958b8-49ff-4d0f-bac3-30849c51cf5b] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-tenant-writes: ['1199'] - x-powered-by: [ASP.NET] - status: {code: 202, message: Accepted} + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild","name":"testcligroupchild","status":"Running"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '167' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:05:56 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroupchild?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - dc27cb83-ac07-4491-ae1e-e036edcc1b6a + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroupchild?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroupchild","status":"Succeeded","properties":{"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","displayName":"testcligroupchild","details":{"version":5,"updatedTime":"2019-02-28T00:19:01.8353579Z","updatedBy":"8427ce23-08f2-4510-b6e2-99644db7f94e","parent":{"id":"/providers/Microsoft.Management/managementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47","name":"72f988bf-86f1-41af-91ab-2d7cd011db47","displayName":"72f988bf-86f1-41af-91ab-2d7cd011db47"}}}}'} - headers: - cache-control: [no-cache] - content-length: ['603'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:19:05 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [5e16a77a-ad53-4bb1-8df3-72777731b40b] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild","name":"testcligroupchild","status":"Running"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '167' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:06:06 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroupchild?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 99da2350-d059-49b6-adc2-6e821be4ec86 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: - body: '{"parentId": "/providers/Microsoft.Management/managementGroups/testcligroup", - "displayName": "testcligroupchild"}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Cache-Control: [no-cache] - CommandName: [account management-group update] - Connection: [keep-alive] - Content-Length: ['113'] - Content-Type: [application/json; charset=utf-8] - ParameterSetName: [--name --display-name --parent] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] - method: PATCH - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2018-03-01-preview + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroupchild","properties":{"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","displayName":"testcligroupchild","details":{"version":6,"updatedTime":"2019-02-28T00:19:08.2792619Z","updatedBy":"8427ce23-08f2-4510-b6e2-99644db7f94e","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","name":"testcligroup","displayName":"testcligroup"}}}}'} - headers: - cache-control: [no-cache] - content-length: ['510'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:19:13 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [b60ad108-d46b-4f02-924e-93f066854f59] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-tenant-writes: ['1197'] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild","name":"testcligroupchild","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":85,"updatedTime":"2022-01-21T06:05:53.7211051Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + headers: + cache-control: + - no-cache + content-length: + - '389' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:06:17 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 3ba49333-8a3a-4b73-9120-a2a371810666 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - Content-Length: ['0'] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":85,"updatedTime":"2022-01-21T06:05:53.7211051Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + Management Group"}}}}' + headers: + cache-control: + - no-cache + content-length: + - '557' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:06:17 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 2e245809-8458-41c6-a624-f0d894862748 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group update + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name --display-name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:19:16 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:06:18 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group update + Connection: + - keep-alive + ParameterSetName: + - --name --display-name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:19:26 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:06:29 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"name": "testcligroupchild", "properties": {"displayName": "testcligroupchild", + "details": {"parent": {"id": "/providers/Microsoft.Management/managementGroups/testcligroup"}}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group update + Connection: + - keep-alive + Content-Length: + - '177' + Content-Type: + - application/json + ParameterSetName: + - --name --display-name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":86,"updatedTime":"2022-01-21T06:06:30.811747Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","name":"testcligroup","displayName":"testcligroup"}}}}' + headers: + cache-control: + - no-cache + content-length: + - '499' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:06:32 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 34129798-e80b-4108-8ca4-bb3d0a5d08f4 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Cache-Control: [no-cache] - CommandName: [account management-group delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2018-05-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:06:32 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2018-05-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:06:42 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroupchild","status":"NotStarted"}'} - headers: - cache-control: [no-cache] - content-length: ['182'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:19:28 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroupchild?api-version=2018-03-01-preview'] - pragma: [no-cache] - request-id: [c048ea85-d607-453c-86de-22721634184b] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-tenant-deletes: ['14999'] - x-powered-by: [ASP.NET] - status: {code: 202, message: Accepted} + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '171' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:06:44 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroupchild?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - c9fb1037-2dc2-40ef-b1a4-a9f4c187c46a + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-deletes: + - '14999' + status: + code: 202 + message: Accepted - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroupchild?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroupchild","status":"Succeeded"}'} - headers: - cache-control: [no-cache] - content-length: ['181'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:19:39 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [4a5329e9-99af-40eb-b649-7203f92dfd47] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroupchild","name":"testcligroupchild","status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '169' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:06:55 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 388b3129-185b-44c0-85ec-d1edfb768088 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - Content-Length: ['0'] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:19:42 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:06:56 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:19:53 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:07:05 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Cache-Control: [no-cache] - CommandName: [account management-group delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}'} - headers: - cache-control: [no-cache] - content-length: ['172'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:19:56 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroup?api-version=2018-03-01-preview'] - pragma: [no-cache] - request-id: [cc00cf89-3b39-4ef2-9f89-bf669ce7f945] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-tenant-deletes: ['14999'] - x-powered-by: [ASP.NET] - status: {code: 202, message: Accepted} + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '161' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:07:07 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroup?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - bce69e2d-1b58-4c18-b5e0-b8c4bdcbe069 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-deletes: + - '14999' + status: + code: 202 + message: Accepted - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"Succeeded"}'} - headers: - cache-control: [no-cache] - content-length: ['171'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:20:06 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [cb191e05-b6f8-4cf8-9e98-0132b1a37821] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '159' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 06:07:17 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 7dd58c10-b42c-49aa-8a75-a3c9c2010014 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_update_managementgroup_with_parentid.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_update_managementgroup_with_parentid.yaml index 28af31c1793..4783b89cd04 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_update_managementgroup_with_parentid.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_update_managementgroup_with_parentid.yaml @@ -2,521 +2,1158 @@ interactions: - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - Content-Length: ['0'] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:06:25 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 01:32:03 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:06:36 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 01:32:13 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: '{"name": "testcligroup", "properties": {"details": {"parent": {}}}}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Cache-Control: [no-cache] - CommandName: [account management-group create] - Connection: [keep-alive] - Content-Length: ['67'] - Content-Type: [application/json; charset=utf-8] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '67' + Content-Type: + - application/json + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}'} - headers: - cache-control: [no-cache] - content-length: ['172'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:06:36 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2018-03-01-preview'] - pragma: [no-cache] - request-id: [0dfa6e57-c4fa-49d0-8330-c27af39bbbdd] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-tenant-writes: ['1198'] - x-powered-by: [ASP.NET] - status: {code: 202, message: Accepted} + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '161' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 01:32:14 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 2bfcb753-458b-431b-8cb9-44eed463fb0a + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 202 + message: Accepted - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","displayName":"testcligroup","details":{"version":3,"updatedTime":"2019-02-28T00:06:42.0997055Z","updatedBy":"8427ce23-08f2-4510-b6e2-99644db7f94e","parent":{"id":"/providers/Microsoft.Management/managementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47","name":"72f988bf-86f1-41af-91ab-2d7cd011db47","displayName":"72f988bf-86f1-41af-91ab-2d7cd011db47"}}}}'} - headers: - cache-control: [no-cache] - content-length: ['588'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:06:47 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [de3ca0d6-7072-45a8-8ca7-76bfe497119a] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Running"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '157' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 01:32:24 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - d85f93bb-6224-436b-a21a-b0cfef4de8d4 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - Content-Length: ['0'] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":120,"updatedTime":"2022-01-21T01:32:19.9889805Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + headers: + cache-control: + - no-cache + content-length: + - '375' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 01:32:35 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 03062f9f-db78-45e1-a4e5-c7cb7d96de0b + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":120,"updatedTime":"2022-01-21T01:32:19.9889805Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + Management Group"}}}}' + headers: + cache-control: + - no-cache + content-length: + - '543' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 01:32:35 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 722635aa-4a6c-4f49-b781-522af63d8d84 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:06:50 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 01:32:36 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:07:00 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 01:32:46 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: '{"name": "testcligroupchild", "properties": {"details": {"parent": {}}}}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Cache-Control: [no-cache] - CommandName: [account management-group create] - Connection: [keep-alive] - Content-Length: ['72'] - Content-Type: [application/json; charset=utf-8] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '72' + Content-Type: + - application/json + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroupchild","status":"NotStarted"}'} - headers: - cache-control: [no-cache] - content-length: ['182'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:07:01 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroupchild?api-version=2018-03-01-preview'] - pragma: [no-cache] - request-id: [fdc04eda-7ad7-4607-bd33-aaf1436f41d9] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-tenant-writes: ['1199'] - x-powered-by: [ASP.NET] - status: {code: 202, message: Accepted} + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '171' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 01:32:48 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroupchild?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 17c8dc82-990f-43be-9f81-c18c1fd5cda0 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 202 + message: Accepted - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group create] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroupchild?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroupchild","status":"Succeeded","properties":{"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","displayName":"testcligroupchild","details":{"version":1,"updatedTime":"2019-02-28T00:07:05.5689933Z","updatedBy":"8427ce23-08f2-4510-b6e2-99644db7f94e","parent":{"id":"/providers/Microsoft.Management/managementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47","name":"72f988bf-86f1-41af-91ab-2d7cd011db47","displayName":"72f988bf-86f1-41af-91ab-2d7cd011db47"}}}}'} - headers: - cache-control: [no-cache] - content-length: ['603'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:07:12 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [9ddaabd6-6051-4c69-8e35-5b1ed06c8bea] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild","name":"testcligroupchild","status":"Running"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '167' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 01:32:58 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroupchild?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - fb8a7d61-8124-41e3-ba70-5a37ef356158 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: - body: '{"parentId": "/providers/Microsoft.Management/managementGroups/testcligroup"}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Cache-Control: [no-cache] - CommandName: [account management-group update] - Connection: [keep-alive] - Content-Length: ['77'] - Content-Type: [application/json; charset=utf-8] - ParameterSetName: [--name --parent] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] - method: PATCH - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2018-03-01-preview + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroupchild","properties":{"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","displayName":"testcligroupchild","details":{"version":2,"updatedTime":"2019-02-28T00:07:13.8300763Z","updatedBy":"8427ce23-08f2-4510-b6e2-99644db7f94e","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","name":"testcligroup","displayName":"testcligroup"}}}}'} - headers: - cache-control: [no-cache] - content-length: ['510'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:07:24 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [1c786843-53f6-4301-baca-6bda701ff691] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-tenant-writes: ['1199'] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild","name":"testcligroupchild","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":82,"updatedTime":"2022-01-21T01:32:55.9928803Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + headers: + cache-control: + - no-cache + content-length: + - '389' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 01:33:09 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 2340ae2d-cd11-4bb2-8f04-936d41618cc7 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - Content-Length: ['0'] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":82,"updatedTime":"2022-01-21T01:32:55.9928803Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + Management Group"}}}}' + headers: + cache-control: + - no-cache + content-length: + - '557' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 01:33:09 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 0b3a6f13-6e90-4a3f-bff6-b11d28cfac64 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group update + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2018-05-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 01:33:10 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group update + Connection: + - keep-alive + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2018-05-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 01:33:19 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"name": "testcligroupchild", "properties": {"details": {"parent": {"id": + "/providers/Microsoft.Management/managementGroups/testcligroup"}}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group update + Connection: + - keep-alive + Content-Length: + - '141' + Content-Type: + - application/json + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":83,"updatedTime":"2022-01-21T01:33:21.5343626Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","name":"testcligroup","displayName":"testcligroup"}}}}' + headers: + cache-control: + - no-cache + content-length: + - '500' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 01:33:23 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 2e4e9f98-7a4a-419b-b401-a0160f95f153 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:07:26 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 01:33:23 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:07:36 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 01:33:33 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Cache-Control: [no-cache] - CommandName: [account management-group delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroupchild","status":"NotStarted"}'} - headers: - cache-control: [no-cache] - content-length: ['182'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:07:38 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroupchild?api-version=2018-03-01-preview'] - pragma: [no-cache] - request-id: [4eab4901-b4ef-4fd0-8373-566a5866d913] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-tenant-deletes: ['14999'] - x-powered-by: [ASP.NET] - status: {code: 202, message: Accepted} + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '171' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 01:33:35 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroupchild?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 392dacd9-6562-4a38-b7ff-d875afcd1c6e + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-deletes: + - '14999' + status: + code: 202 + message: Accepted - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroupchild?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroupchild","status":"Succeeded"}'} - headers: - cache-control: [no-cache] - content-length: ['181'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:07:48 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [4774502b-7c26-48c8-ac96-58231779bb74] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroupchild","name":"testcligroupchild","status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '169' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 01:33:45 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 6ea67f3b-073e-4165-9e8a-f92e13d48c6f + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - Content-Length: ['0'] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:07:52 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 01:33:46 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1468'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:08:02 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' + headers: + cache-control: + - no-cache + content-length: + - '2360' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 01:33:56 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Cache-Control: [no-cache] - CommandName: [account management-group delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}'} - headers: - cache-control: [no-cache] - content-length: ['172'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:08:04 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroup?api-version=2018-03-01-preview'] - pragma: [no-cache] - request-id: [9d27c173-9f48-4211-96d9-3721c01a0e34] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-tenant-deletes: ['14999'] - x-powered-by: [ASP.NET] - status: {code: 202, message: Accepted} + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '161' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 01:33:58 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroup?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - b5b7bdba-c680-45ac-b234-d4bf76a62b37 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-deletes: + - '14999' + status: + code: 202 + message: Accepted - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [account management-group delete] - Connection: [keep-alive] - ParameterSetName: [--name] - User-Agent: [python/3.5.2 (Windows-10-10.0.17763-SP0) msrest/0.6.2 msrest_azure/0.4.34 - azure-mgmt-managementgroups/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroup?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","status":"Succeeded"}'} - headers: - cache-control: [no-cache] - content-length: ['171'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 28 Feb 2019 00:08:14 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [46b4be77-0f75-4a18-856f-a23cc1fe602b] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: ['Accept-Encoding,Accept-Encoding'] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.1286] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '159' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 21 Jan 2022 01:34:08 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 2cc27080-70c1-4032-8b32-37bdc979dbf3 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/test_managmentgroups.py b/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/test_managmentgroups.py index 7951cdab547..8c1cb4fedd3 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/test_managmentgroups.py +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/test_managmentgroups.py @@ -4,88 +4,107 @@ # -------------------------------------------------------------------------------------------- from azure.cli.testsdk import ScenarioTest, record_only +import pytest - -@record_only() +@pytest.mark.custom_mark class AzureManagementGroupsScenarioTest(ScenarioTest): + + #@pytest.mark.custom_mark + def test_list_managementgroups(self): + managementgroups_list = self.cmd( + 'account management-group list').get_output_in_json() + self.assertIsNotNone(managementgroups_list) + self.assertTrue(len(managementgroups_list) > 0) + self.assertIsNotNone(managementgroups_list[0]["displayName"]) + self.assertTrue(managementgroups_list[0]["id"].startswith( + "/providers/Microsoft.Management/managementGroups/")) + self.assertIsNotNone(managementgroups_list[0]["name"]) + self.assertIsNotNone(managementgroups_list[0]["tenantId"]) + self.assertEqual( + managementgroups_list[0]["type"], + "Microsoft.Management/managementGroups") + + #@pytest.mark.custom_mark1 def test_show_managementgroup(self): - self.cmd('account management-group create --name testcligetgroup1') - self.cmd('account management-group create --name testcligetgroup2 --parent /providers/Microsoft.Management/managementGroups/testcligetgroup1') + self.cmd('account management-group create --name testcligetgroup') + self.cmd('account management-group create --name testcligetgroup1 --parent /providers/Microsoft.Management/managementGroups/testcligetgroup') managementgroup_get = self.cmd( - 'account management-group show --name testcligetgroup2').get_output_in_json() - self.cmd('account management-group delete --name testcligetgroup2') + 'account management-group show --name testcligetgroup1').get_output_in_json() self.cmd('account management-group delete --name testcligetgroup1') + self.cmd('account management-group delete --name testcligetgroup') self.assertIsNotNone(managementgroup_get) self.assertIsNone(managementgroup_get["children"]) self.assertIsNotNone(managementgroup_get["details"]) self.assertEqual( managementgroup_get["id"], - "/providers/Microsoft.Management/managementGroups/testcligetgroup2") - self.assertEqual(managementgroup_get["name"], "testcligetgroup2") + "/providers/Microsoft.Management/managementGroups/testcligetgroup1") + self.assertEqual(managementgroup_get["name"], "testcligetgroup1") self.assertEqual( managementgroup_get["displayName"], - "testcligetgroup2") + "testcligetgroup1") self.assertEqual( managementgroup_get["details"]["parent"]["displayName"], - "testcligetgroup1") + "testcligetgroup") self.assertEqual( managementgroup_get["details"]["parent"]["id"], - "/providers/Microsoft.Management/managementGroups/testcligetgroup1") + "/providers/Microsoft.Management/managementGroups/testcligetgroup") self.assertEqual( managementgroup_get["details"]["parent"]["name"], - "testcligetgroup1") + "testcligetgroup") self.assertIsNotNone(managementgroup_get["tenantId"]) self.assertEqual( managementgroup_get["type"], - "/providers/Microsoft.Management/managementGroups") + "Microsoft.Management/managementGroups") + #@pytest.mark.custom_mark1 def test_show_managementgroup_with_expand(self): - self.cmd('account management-group create --name testcligetgroup1') - self.cmd('account management-group create --name testcligetgroup2 --parent testcligetgroup1') - self.cmd('account management-group create --name testcligetgroup3 --parent /providers/Microsoft.Management/managementGroups/testcligetgroup2') + self.cmd('account management-group create --name testcligetgroup') + self.cmd('account management-group create --name testcligetgroup1 --parent testcligetgroup') + self.cmd('account management-group create --name testcligetgroup2 --parent /providers/Microsoft.Management/managementGroups/testcligetgroup1') managementgroup_get = self.cmd( - 'account management-group show --name testcligetgroup2 --expand').get_output_in_json() - self.cmd('account management-group delete --name testcligetgroup3') + 'account management-group show --name testcligetgroup1 --expand').get_output_in_json() self.cmd('account management-group delete --name testcligetgroup2') self.cmd('account management-group delete --name testcligetgroup1') + self.cmd('account management-group delete --name testcligetgroup') self.assertIsNotNone(managementgroup_get) self.assertIsNotNone(managementgroup_get["children"]) self.assertIsNotNone(managementgroup_get["details"]) self.assertEqual( managementgroup_get["id"], - "/providers/Microsoft.Management/managementGroups/testcligetgroup2") - self.assertEqual(managementgroup_get["name"], "testcligetgroup2") + "/providers/Microsoft.Management/managementGroups/testcligetgroup1") + self.assertEqual(managementgroup_get["name"], "testcligetgroup1") self.assertEqual( managementgroup_get["displayName"], - "testcligetgroup2") + "testcligetgroup1") self.assertEqual( managementgroup_get["details"]["parent"]["displayName"], - "testcligetgroup1") + "testcligetgroup") self.assertEqual( managementgroup_get["details"]["parent"]["id"], - "/providers/Microsoft.Management/managementGroups/testcligetgroup1") + "/providers/Microsoft.Management/managementGroups/testcligetgroup") self.assertEqual( managementgroup_get["details"]["parent"]["name"], - "testcligetgroup1") + "testcligetgroup") self.assertIsNotNone(managementgroup_get["tenantId"]) self.assertEqual( managementgroup_get["type"], - "/providers/Microsoft.Management/managementGroups") + "Microsoft.Management/managementGroups") self.assertEqual( managementgroup_get["children"][0]["id"], - "/providers/Microsoft.Management/managementGroups/testcligetgroup3") + "/providers/Microsoft.Management/managementGroups/testcligetgroup2") self.assertEqual( managementgroup_get["children"][0]["type"], - "/providers/Microsoft.Management/managementGroups") + "Microsoft.Management/managementGroups") self.assertEqual( managementgroup_get["children"][0]["displayName"], - "testcligetgroup3") + "testcligetgroup2") self.assertEqual( managementgroup_get["children"][0]["name"], - "testcligetgroup3") + "testcligetgroup2") + #@pytest.mark.custom_mark1 def test_show_managementgroup_with_expand_and_recurse(self): self.cmd('account management-group create --name testcligetgroup1') self.cmd('account management-group create --name testcligetgroup2 --parent /providers/Microsoft.Management/managementGroups/testcligetgroup1') @@ -120,13 +139,13 @@ def test_show_managementgroup_with_expand_and_recurse(self): self.assertIsNotNone(managementgroup_get["tenantId"]) self.assertEqual( managementgroup_get["type"], - "/providers/Microsoft.Management/managementGroups") + "Microsoft.Management/managementGroups") self.assertEqual( managementgroup_get["children"][0]["id"], "/providers/Microsoft.Management/managementGroups/testcligetgroup3") self.assertEqual( managementgroup_get["children"][0]["type"], - "/providers/Microsoft.Management/managementGroups") + "Microsoft.Management/managementGroups") self.assertEqual( managementgroup_get["children"][0]["displayName"], "testcligetgroup3") @@ -138,14 +157,15 @@ def test_show_managementgroup_with_expand_and_recurse(self): "/providers/Microsoft.Management/managementGroups/testcligetgroup4") self.assertEqual( managementgroup_get["children"][0]["children"][0]["type"], - "/providers/Microsoft.Management/managementGroups") + "Microsoft.Management/managementGroups") self.assertEqual( managementgroup_get["children"][0]["children"][0]["displayName"], "testcligetgroup4") self.assertEqual( managementgroup_get["children"][0]["children"][0]["name"], "testcligetgroup4") - + + #@pytest.mark.custom_mark1 def test_create_managementgroup(self): name = "testcligroup" displayName = "testcligroup" @@ -155,26 +175,30 @@ def test_create_managementgroup(self): self.cmd('account management-group delete --name ' + name) self.assertIsNotNone(managementgroup_create) - self.assertIsNotNone(managementgroup_create["properties"]["details"]) + self.assertIsNotNone(managementgroup_create["details"]) self.assertEqual( managementgroup_create["id"], "/providers/Microsoft.Management/managementGroups/" + name) self.assertEqual(managementgroup_create["name"], name) self.assertEqual( - managementgroup_create["properties"]["displayName"], + managementgroup_create["displayName"], displayName) self.assertEqual( - managementgroup_create["properties"]["details"]["parent"]["id"], + managementgroup_create["details"]["parent"]["displayName"], + "Root Management Group") + self.assertEqual( + managementgroup_create["details"]["parent"]["id"], "/providers/Microsoft.Management/managementGroups/" + - managementgroup_create["properties"]["tenantId"]) + managementgroup_create["tenantId"]) self.assertEqual( - managementgroup_create["properties"]["details"]["parent"]["name"], - managementgroup_create["properties"]["tenantId"]) - self.assertIsNotNone(managementgroup_create["properties"]["tenantId"]) + managementgroup_create["details"]["parent"]["name"], + managementgroup_create["tenantId"]) + self.assertIsNotNone(managementgroup_create["tenantId"]) self.assertEqual( managementgroup_create["type"], - "/providers/Microsoft.Management/managementGroups") + "Microsoft.Management/managementGroups") + #@pytest.mark.custom_mark1 def test_create_managementgroup_with_displayname(self): name = "testcligroup" displayName = "TestCliDisplayName" @@ -186,26 +210,30 @@ def test_create_managementgroup_with_displayname(self): self.cmd('account management-group delete --name ' + name) self.assertIsNotNone(managementgroup_create) - self.assertIsNotNone(managementgroup_create["properties"]["details"]) + self.assertIsNotNone(managementgroup_create["details"]) self.assertEqual( managementgroup_create["id"], "/providers/Microsoft.Management/managementGroups/" + name) self.assertEqual(managementgroup_create["name"], name) self.assertEqual( - managementgroup_create["properties"]["displayName"], + managementgroup_create["displayName"], displayName) self.assertEqual( - managementgroup_create["properties"]["details"]["parent"]["id"], + managementgroup_create["details"]["parent"]["displayName"], + "Root Management Group") + self.assertEqual( + managementgroup_create["details"]["parent"]["id"], "/providers/Microsoft.Management/managementGroups/" + - managementgroup_create["properties"]["tenantId"]) + managementgroup_create["tenantId"]) self.assertEqual( - managementgroup_create["properties"]["details"]["parent"]["name"], - managementgroup_create["properties"]["tenantId"]) - self.assertIsNotNone(managementgroup_create["properties"]["tenantId"]) + managementgroup_create["details"]["parent"]["name"], + managementgroup_create["tenantId"]) + self.assertIsNotNone(managementgroup_create["tenantId"]) self.assertEqual( managementgroup_create["type"], - "/providers/Microsoft.Management/managementGroups") + "Microsoft.Management/managementGroups") + #@pytest.mark.custom_mark def test_create_managementgroup_with_parentid(self): name = "testcligroupchild" displayName = "testcligroupchild" @@ -221,28 +249,29 @@ def test_create_managementgroup_with_parentid(self): self.cmd('account management-group delete --name ' + parentName) self.assertIsNotNone(managementgroup_create) - self.assertIsNotNone(managementgroup_create["properties"]["details"]) + self.assertIsNotNone(managementgroup_create["details"]) self.assertEqual( managementgroup_create["id"], "/providers/Microsoft.Management/managementGroups/" + name) self.assertEqual(managementgroup_create["name"], name) self.assertEqual( - managementgroup_create["properties"]["displayName"], + managementgroup_create["displayName"], displayName) self.assertEqual( - managementgroup_create["properties"]["details"]["parent"]["displayName"], + managementgroup_create["details"]["parent"]["displayName"], parentName) self.assertEqual( - managementgroup_create["properties"]["details"]["parent"]["id"], + managementgroup_create["details"]["parent"]["id"], parentId) self.assertEqual( - managementgroup_create["properties"]["details"]["parent"]["name"], + managementgroup_create["details"]["parent"]["name"], parentName) - self.assertIsNotNone(managementgroup_create["properties"]["tenantId"]) + self.assertIsNotNone(managementgroup_create["tenantId"]) self.assertEqual( managementgroup_create["type"], - "/providers/Microsoft.Management/managementGroups") + "Microsoft.Management/managementGroups") + #@pytest.mark.custom_mark1 def test_create_managementgroup_with_displayname_and_parentid(self): name = "testcligroupchild" displayName = "testcligroupchildDisplayName" @@ -260,28 +289,29 @@ def test_create_managementgroup_with_displayname_and_parentid(self): self.cmd('account management-group delete --name ' + parentName) self.assertIsNotNone(managementgroup_create) - self.assertIsNotNone(managementgroup_create["properties"]["details"]) + self.assertIsNotNone(managementgroup_create["details"]) self.assertEqual( managementgroup_create["id"], "/providers/Microsoft.Management/managementGroups/" + name) self.assertEqual(managementgroup_create["name"], name) self.assertEqual( - managementgroup_create["properties"]["displayName"], + managementgroup_create["displayName"], displayName) self.assertEqual( - managementgroup_create["properties"]["details"]["parent"]["displayName"], + managementgroup_create["details"]["parent"]["displayName"], parentName) self.assertEqual( - managementgroup_create["properties"]["details"]["parent"]["id"], + managementgroup_create["details"]["parent"]["id"], parentId) self.assertEqual( - managementgroup_create["properties"]["details"]["parent"]["name"], + managementgroup_create["details"]["parent"]["name"], parentName) - self.assertIsNotNone(managementgroup_create["properties"]["tenantId"]) + self.assertIsNotNone(managementgroup_create["tenantId"]) self.assertEqual( managementgroup_create["type"], - "/providers/Microsoft.Management/managementGroups") + "Microsoft.Management/managementGroups") + #@pytest.mark.custom_mark def test_update_managementgroup_with_displayname(self): name = "testcligroup" displayName = "testcligroupDisplayName" @@ -300,6 +330,9 @@ def test_update_managementgroup_with_displayname(self): "/providers/Microsoft.Management/managementGroups/" + name) self.assertEqual(managementgroup_update["name"], name) self.assertEqual(managementgroup_update["displayName"], displayName) + self.assertEqual( + managementgroup_update["details"]["parent"]["displayName"], + "Root Management Group") self.assertEqual( managementgroup_update["details"]["parent"]["id"], "/providers/Microsoft.Management/managementGroups/" + @@ -310,8 +343,9 @@ def test_update_managementgroup_with_displayname(self): self.assertIsNotNone(managementgroup_update["tenantId"]) self.assertEqual( managementgroup_update["type"], - "/providers/Microsoft.Management/managementGroups") + "Microsoft.Management/managementGroups") + #@pytest.mark.custom_mark1 def test_update_managementgroup_with_parentid(self): name = "testcligroupchild" displayName = "testcligroupchild" @@ -324,6 +358,7 @@ def test_update_managementgroup_with_parentid(self): name + ' --parent ' + parentId).get_output_in_json() + print(managementgroup_update) self.cmd('account management-group delete --name ' + name) self.cmd('account management-group delete --name ' + parentName) @@ -346,8 +381,9 @@ def test_update_managementgroup_with_parentid(self): self.assertIsNotNone(managementgroup_update["tenantId"]) self.assertEqual( managementgroup_update["type"], - "/providers/Microsoft.Management/managementGroups") + "Microsoft.Management/managementGroups") + #@pytest.mark.custom_mark1 def test_update_managementgroup_with_displayname_and_parentid(self): name = "testcligroupchild" displayName = "testcligroupchild" @@ -384,8 +420,9 @@ def test_update_managementgroup_with_displayname_and_parentid(self): self.assertIsNotNone(managementgroup_update["tenantId"]) self.assertEqual( managementgroup_update["type"], - "/providers/Microsoft.Management/managementGroups") + "Microsoft.Management/managementGroups") + #@pytest.mark.custom_mark1 def test_create_delete_group_managementgroup(self): self.cmd('account management-group create --name testcligroup') self.cmd('account management-group delete --name testcligroup') diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_delete_group_managementgroup.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_delete_group_managementgroup.yaml index 9b8b521f5ec..2b12e6a6492 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_delete_group_managementgroup.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_delete_group_managementgroup.yaml @@ -17,8 +17,7 @@ interactions: ParameterSetName: - --name User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: @@ -32,7 +31,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 22:52:00 GMT + - Thu, 20 Jan 2022 22:07:56 GMT expires: - '-1' pragma: @@ -46,7 +45,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 200 message: OK @@ -64,8 +63,7 @@ interactions: ParameterSetName: - --name User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: @@ -79,7 +77,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 22:52:10 GMT + - Thu, 20 Jan 2022 22:08:06 GMT expires: - '-1' pragma: @@ -113,29 +111,186 @@ interactions: ParameterSetName: - --name User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":1,"updatedTime":"2022-01-11T22:51:25.7418933Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '161' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 20 Jan 2022 22:08:07 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 4557eb31-a656-41d4-8bdb-c69987bfd850 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Running"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '157' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 20 Jan 2022 22:08:17 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 0fa15707-d615-4bfe-94fd-0c5d637a6841 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":111,"updatedTime":"2022-01-20T22:08:12.7920935Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + headers: + cache-control: + - no-cache + content-length: + - '375' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 20 Jan 2022 22:08:28 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - e2a30348-c635-4b6c-b1f7-11f5534671db + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":111,"updatedTime":"2022-01-20T22:08:12.7920935Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root Management Group"}}}}' headers: cache-control: - no-cache content-length: - - '541' + - '543' content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 22:52:11 GMT + - Thu, 20 Jan 2022 22:08:28 GMT expires: - '-1' pragma: - no-cache request-id: - - d575d050-1914-4d47-a9d6-d4fa27f9bfc5 + - 55089ff6-e696-4bb3-875d-aaa45c2ad117 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -148,10 +303,6 @@ interactions: - 1.0.3.2425 x-content-type-options: - nosniff - x-ms-ratelimit-remaining-managementgroups-requests: - - '59' - x-ms-ratelimit-remaining-tenant-writes: - - '1199' status: code: 200 message: OK @@ -173,8 +324,7 @@ interactions: ParameterSetName: - --name User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: @@ -188,7 +338,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 22:52:12 GMT + - Thu, 20 Jan 2022 22:08:29 GMT expires: - '-1' pragma: @@ -220,8 +370,7 @@ interactions: ParameterSetName: - --name User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: @@ -235,7 +384,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 22:52:22 GMT + - Thu, 20 Jan 2022 22:08:40 GMT expires: - '-1' pragma: @@ -267,8 +416,7 @@ interactions: ParameterSetName: - --name User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: @@ -284,7 +432,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 22:52:23 GMT + - Thu, 20 Jan 2022 22:08:42 GMT expires: - '-1' location: @@ -292,7 +440,7 @@ interactions: pragma: - no-cache request-id: - - 49ec8c6a-1e5d-4111-8fc8-08813b59257e + - 928c9094-c7ff-4246-810c-6792d0388b18 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -322,8 +470,7 @@ interactions: ParameterSetName: - --name User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: @@ -337,13 +484,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 22:52:34 GMT + - Thu, 20 Jan 2022 22:08:52 GMT expires: - '-1' pragma: - no-cache request-id: - - b0dcb027-62ab-4aa5-abda-65ba77ad92d5 + - 8a0a00b8-14e5-4e1a-8287-84975c4f9976 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_managementgroup.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_managementgroup.yaml index 521bd3e52f3..7a2a8618e9d 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_managementgroup.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_managementgroup.yaml @@ -17,8 +17,7 @@ interactions: ParameterSetName: - --name User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: @@ -32,7 +31,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:58:37 GMT + - Thu, 20 Jan 2022 22:05:22 GMT expires: - '-1' pragma: @@ -64,8 +63,7 @@ interactions: ParameterSetName: - --name User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: @@ -79,7 +77,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:58:46 GMT + - Thu, 20 Jan 2022 22:05:32 GMT expires: - '-1' pragma: @@ -113,190 +111,28 @@ interactions: ParameterSetName: - --name User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}' - headers: - azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 - cache-control: - - no-cache - content-length: - - '161' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 11 Jan 2022 23:58:47 GMT - expires: - - '-1' - location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2021-04-01 - pragma: - - no-cache - request-id: - - 35eca4cd-7819-425f-b3db-64f901b2eecb - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-ba-restapi: - - 1.0.3.2425 - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-managementgroups-requests: - - '59' - x-ms-ratelimit-remaining-tenant-writes: - - '1199' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - account management-group create - Connection: - - keep-alive - ParameterSetName: - - --name - User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 - response: - body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Running"}' - headers: - azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 - cache-control: - - no-cache - content-length: - - '157' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 11 Jan 2022 23:58:57 GMT - expires: - - '-1' - location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2021-04-01 - pragma: - - no-cache - request-id: - - b52395fb-b6d0-4c0c-b2d8-a70c79686dc5 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-ba-restapi: - - 1.0.3.2425 - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - account management-group create - Connection: - - keep-alive - ParameterSetName: - - --name - User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 - response: - body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":10,"updatedTime":"2022-01-11T23:58:53.4289876Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' - headers: - cache-control: - - no-cache - content-length: - - '374' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 11 Jan 2022 23:59:09 GMT - expires: - - '-1' - pragma: - - no-cache - request-id: - - 48fcc0ec-5bf1-4c4e-bb95-171a384c7508 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-ba-restapi: - - 1.0.3.2425 - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - account management-group create - Connection: - - keep-alive - ParameterSetName: - - --name - User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 - response: - body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":10,"updatedTime":"2022-01-11T23:58:53.4289876Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":110,"updatedTime":"2022-01-20T22:04:11.9852265Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root Management Group"}}}}' headers: cache-control: - no-cache content-length: - - '542' + - '543' content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:59:09 GMT + - Thu, 20 Jan 2022 22:05:32 GMT expires: - '-1' pragma: - no-cache request-id: - - ca3872bf-f7af-4c1a-afef-831744963fff + - 6cd5133a-2bc8-443b-b3c4-6def4b8163c2 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -309,6 +145,10 @@ interactions: - 1.0.3.2425 x-content-type-options: - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-writes: + - '1199' status: code: 200 message: OK @@ -330,8 +170,7 @@ interactions: ParameterSetName: - --name User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: @@ -345,7 +184,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:59:10 GMT + - Thu, 20 Jan 2022 22:05:34 GMT expires: - '-1' pragma: @@ -359,7 +198,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 200 message: OK @@ -377,8 +216,7 @@ interactions: ParameterSetName: - --name User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: @@ -392,7 +230,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:59:20 GMT + - Thu, 20 Jan 2022 22:05:44 GMT expires: - '-1' pragma: @@ -424,8 +262,7 @@ interactions: ParameterSetName: - --name User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: @@ -441,7 +278,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:59:21 GMT + - Thu, 20 Jan 2022 22:05:45 GMT expires: - '-1' location: @@ -449,7 +286,7 @@ interactions: pragma: - no-cache request-id: - - 3956e028-4d60-4c1a-b582-acdbaecc4055 + - b93518d0-1314-462d-baab-154e646beac4 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -479,8 +316,7 @@ interactions: ParameterSetName: - --name User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: @@ -494,13 +330,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:59:32 GMT + - Thu, 20 Jan 2022 22:05:56 GMT expires: - '-1' pragma: - no-cache request-id: - - 3911b2ec-dc21-4646-b5ee-7cb365f8c28c + - f0202118-cbd8-4c32-b85b-82ad130cf932 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_managementgroup_with_displayname.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_managementgroup_with_displayname.yaml index 891a0845b10..a16641723c1 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_managementgroup_with_displayname.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_managementgroup_with_displayname.yaml @@ -17,8 +17,7 @@ interactions: ParameterSetName: - --name --display-name User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: @@ -32,7 +31,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:27:33 GMT + - Thu, 20 Jan 2022 22:10:48 GMT expires: - '-1' pragma: @@ -64,8 +63,7 @@ interactions: ParameterSetName: - --name --display-name User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: @@ -79,7 +77,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:27:44 GMT + - Thu, 20 Jan 2022 22:10:58 GMT expires: - '-1' pragma: @@ -114,8 +112,7 @@ interactions: ParameterSetName: - --name --display-name User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: @@ -131,7 +128,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:27:45 GMT + - Thu, 20 Jan 2022 22:10:59 GMT expires: - '-1' location: @@ -139,7 +136,7 @@ interactions: pragma: - no-cache request-id: - - d608cc0b-d3c3-4440-86d3-ad80565b57bc + - 3a8bec5b-6bcd-4eae-bbc9-604c984c1541 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -169,8 +166,7 @@ interactions: ParameterSetName: - --name --display-name User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: @@ -186,7 +182,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:27:55 GMT + - Thu, 20 Jan 2022 22:11:09 GMT expires: - '-1' location: @@ -194,7 +190,7 @@ interactions: pragma: - no-cache request-id: - - 94aa009a-84af-4a69-8741-c7789826b442 + - 22778a62-f5d5-44b8-939a-fe6bbaf071f4 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -224,28 +220,27 @@ interactions: ParameterSetName: - --name --display-name User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"TestCliDisplayName","details":{"version":7,"updatedTime":"2022-01-11T23:27:50.6166433Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"TestCliDisplayName","details":{"version":112,"updatedTime":"2022-01-20T22:11:05.6797058Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache content-length: - - '379' + - '381' content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:28:06 GMT + - Thu, 20 Jan 2022 22:11:20 GMT expires: - '-1' pragma: - no-cache request-id: - - d5246059-5892-42ce-8a3f-04555015e9bf + - a423a5e0-3386-4890-b307-a1e4c276c09d server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -275,29 +270,28 @@ interactions: ParameterSetName: - --name --display-name User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"TestCliDisplayName","details":{"version":7,"updatedTime":"2022-01-11T23:27:50.6166433Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"TestCliDisplayName","details":{"version":112,"updatedTime":"2022-01-20T22:11:05.6797058Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root Management Group"}}}}' headers: cache-control: - no-cache content-length: - - '547' + - '549' content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:28:06 GMT + - Thu, 20 Jan 2022 22:11:20 GMT expires: - '-1' pragma: - no-cache request-id: - - c32f77d3-61a6-44d5-bdad-a633bddb4e92 + - dcb6c189-fbe7-484e-8675-97d81782795a server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -331,8 +325,7 @@ interactions: ParameterSetName: - --name User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: @@ -346,7 +339,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:28:07 GMT + - Thu, 20 Jan 2022 22:11:21 GMT expires: - '-1' pragma: @@ -378,8 +371,7 @@ interactions: ParameterSetName: - --name User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: @@ -393,7 +385,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:28:17 GMT + - Thu, 20 Jan 2022 22:11:31 GMT expires: - '-1' pragma: @@ -425,8 +417,7 @@ interactions: ParameterSetName: - --name User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: @@ -442,7 +433,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:28:18 GMT + - Thu, 20 Jan 2022 22:11:32 GMT expires: - '-1' location: @@ -450,7 +441,7 @@ interactions: pragma: - no-cache request-id: - - 0435ac13-ea86-4ab5-b16c-37c0d1506340 + - bb1b997e-eee0-49d4-8ec1-377cfbd7d770 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -480,8 +471,7 @@ interactions: ParameterSetName: - --name User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: @@ -495,13 +485,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:28:29 GMT + - Thu, 20 Jan 2022 22:11:42 GMT expires: - '-1' pragma: - no-cache request-id: - - 321f306a-7426-41b4-ad3e-c91a73fe4f2c + - ce9de3d1-e631-4c66-bd2c-f901cdeab2f5 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_managementgroup_with_displayname_and_parentid.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_managementgroup_with_displayname_and_parentid.yaml index e3eb4d36e0c..0ac1b30b518 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_managementgroup_with_displayname_and_parentid.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_managementgroup_with_displayname_and_parentid.yaml @@ -17,8 +17,7 @@ interactions: ParameterSetName: - --name User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: @@ -32,7 +31,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:16:28 GMT + - Thu, 20 Jan 2022 21:59:32 GMT expires: - '-1' pragma: @@ -64,8 +63,7 @@ interactions: ParameterSetName: - --name User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: @@ -79,7 +77,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:16:39 GMT + - Thu, 20 Jan 2022 21:59:42 GMT expires: - '-1' pragma: @@ -113,8 +111,7 @@ interactions: ParameterSetName: - --name User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: @@ -130,7 +127,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:16:40 GMT + - Thu, 20 Jan 2022 21:59:42 GMT expires: - '-1' location: @@ -138,7 +135,7 @@ interactions: pragma: - no-cache request-id: - - a89140d7-a3b1-4a7a-b896-a000af96f1ec + - bc4edfc6-2336-40d4-96d1-95c186aedaca server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -168,8 +165,7 @@ interactions: ParameterSetName: - --name User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: @@ -185,7 +181,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:16:50 GMT + - Thu, 20 Jan 2022 21:59:52 GMT expires: - '-1' location: @@ -193,7 +189,7 @@ interactions: pragma: - no-cache request-id: - - 9e097f52-5930-43df-94aa-6124d36e3ee5 + - edb2a8a6-b456-4839-b3d2-8c5dd544a21d server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -223,28 +219,81 @@ interactions: ParameterSetName: - --name User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":5,"updatedTime":"2022-01-11T23:16:45.9670093Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Running"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '157' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 20 Jan 2022 22:00:03 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - d663b4dd-7e20-468c-b60d-e3708c73cf11 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":109,"updatedTime":"2022-01-20T21:59:48.7860364Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache content-length: - - '373' + - '375' content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:17:00 GMT + - Thu, 20 Jan 2022 22:00:14 GMT expires: - '-1' pragma: - no-cache request-id: - - d0204045-6602-40b1-9fd4-75c1be041ed1 + - 615cc412-9427-4083-8b56-0ecae6dc8af1 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -274,29 +323,28 @@ interactions: ParameterSetName: - --name User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":5,"updatedTime":"2022-01-11T23:16:45.9670093Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":109,"updatedTime":"2022-01-20T21:59:48.7860364Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root Management Group"}}}}' headers: cache-control: - no-cache content-length: - - '541' + - '543' content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:17:00 GMT + - Thu, 20 Jan 2022 22:00:14 GMT expires: - '-1' pragma: - no-cache request-id: - - dabd64fb-da0c-4925-b5a7-a6ac0d321bdd + - 756854df-162e-4968-b20e-f1114d946fb4 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -330,8 +378,7 @@ interactions: ParameterSetName: - --name --display-name --parent User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: @@ -345,7 +392,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:17:02 GMT + - Thu, 20 Jan 2022 22:00:14 GMT expires: - '-1' pragma: @@ -377,8 +424,7 @@ interactions: ParameterSetName: - --name --display-name --parent User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: @@ -392,7 +438,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:17:12 GMT + - Thu, 20 Jan 2022 22:00:25 GMT expires: - '-1' pragma: @@ -427,8 +473,7 @@ interactions: ParameterSetName: - --name --display-name --parent User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2021-04-01 response: @@ -444,7 +489,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:17:14 GMT + - Thu, 20 Jan 2022 22:00:26 GMT expires: - '-1' location: @@ -452,7 +497,7 @@ interactions: pragma: - no-cache request-id: - - 792f0922-252c-4d8e-b858-e5279f0499c5 + - 615c3f3d-0dba-47ff-8a85-dfb1616b9d1f server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -482,8 +527,7 @@ interactions: ParameterSetName: - --name --display-name --parent User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 response: @@ -499,7 +543,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:17:24 GMT + - Thu, 20 Jan 2022 22:00:36 GMT expires: - '-1' location: @@ -507,7 +551,7 @@ interactions: pragma: - no-cache request-id: - - 64fa83aa-3b95-4c6d-83c9-a84f6057b213 + - b76df6ac-6790-4258-a1f7-4c3185f84f41 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -537,28 +581,27 @@ interactions: ParameterSetName: - --name --display-name --parent User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild","name":"testcligroupchild","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchildDisplayName","details":{"version":3,"updatedTime":"2022-01-11T23:17:19.5635307Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild","name":"testcligroupchild","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchildDisplayName","details":{"version":78,"updatedTime":"2022-01-20T22:00:31.6080426Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache content-length: - - '399' + - '400' content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:17:34 GMT + - Thu, 20 Jan 2022 22:00:46 GMT expires: - '-1' pragma: - no-cache request-id: - - 347e9cea-8504-4a78-973c-c09c7c5cd5f1 + - 5b48a8a2-f6cc-40ad-b8f3-eeff681fa5ae server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -588,28 +631,27 @@ interactions: ParameterSetName: - --name --display-name --parent User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchildDisplayName","details":{"version":3,"updatedTime":"2022-01-11T23:17:19.5635307Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","name":"testcligroup","displayName":"testcligroup"}}}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchildDisplayName","details":{"version":78,"updatedTime":"2022-01-20T22:00:31.6080426Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","name":"testcligroup","displayName":"testcligroup"}}}}' headers: cache-control: - no-cache content-length: - - '510' + - '511' content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:17:35 GMT + - Thu, 20 Jan 2022 22:00:46 GMT expires: - '-1' pragma: - no-cache request-id: - - edf0d702-af4e-4be3-87fa-324f331f0f2e + - de57d2f9-f46c-4f4f-84b3-c4e3ed60d88f server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -643,8 +685,7 @@ interactions: ParameterSetName: - --name User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: @@ -658,7 +699,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:17:36 GMT + - Thu, 20 Jan 2022 22:00:48 GMT expires: - '-1' pragma: @@ -672,7 +713,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1197' status: code: 200 message: OK @@ -690,8 +731,7 @@ interactions: ParameterSetName: - --name User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: @@ -705,7 +745,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:17:46 GMT + - Thu, 20 Jan 2022 22:00:57 GMT expires: - '-1' pragma: @@ -737,8 +777,7 @@ interactions: ParameterSetName: - --name User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2021-04-01 response: @@ -754,7 +793,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:17:47 GMT + - Thu, 20 Jan 2022 22:00:58 GMT expires: - '-1' location: @@ -762,7 +801,7 @@ interactions: pragma: - no-cache request-id: - - a099e0f8-870d-462c-b1fa-977d606e95df + - 4db4a98a-b68f-4996-8666-62c3d5f3bcab server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -792,8 +831,7 @@ interactions: ParameterSetName: - --name User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 response: @@ -807,13 +845,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:17:57 GMT + - Thu, 20 Jan 2022 22:01:10 GMT expires: - '-1' pragma: - no-cache request-id: - - 42a4b71c-7860-43f7-9705-1bd78e5ca487 + - 1ba77e1f-0799-4f6d-aa3c-dfd99ef6b808 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -847,8 +885,7 @@ interactions: ParameterSetName: - --name User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: @@ -862,7 +899,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:17:58 GMT + - Thu, 20 Jan 2022 22:01:11 GMT expires: - '-1' pragma: @@ -894,8 +931,7 @@ interactions: ParameterSetName: - --name User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: @@ -909,7 +945,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:18:09 GMT + - Thu, 20 Jan 2022 22:01:21 GMT expires: - '-1' pragma: @@ -941,8 +977,7 @@ interactions: ParameterSetName: - --name User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: @@ -958,7 +993,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:18:11 GMT + - Thu, 20 Jan 2022 22:01:22 GMT expires: - '-1' location: @@ -966,7 +1001,7 @@ interactions: pragma: - no-cache request-id: - - ddfe64b1-92af-462f-a0ab-e898be38534b + - ab6e491b-b553-4b66-aa30-30dd026e94e0 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -996,8 +1031,7 @@ interactions: ParameterSetName: - --name User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: @@ -1011,13 +1045,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:18:21 GMT + - Thu, 20 Jan 2022 22:01:32 GMT expires: - '-1' pragma: - no-cache request-id: - - 0c5bab8c-7c22-4da2-892e-81ce3dccb35c + - a07800e9-8667-4739-a236-54cb5cb5ab06 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_managementgroup_with_parentid.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_managementgroup_with_parentid.yaml index f56234603db..44342e1b362 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_managementgroup_with_parentid.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_managementgroup_with_parentid.yaml @@ -31,7 +31,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:28:47 GMT + - Thu, 20 Jan 2022 21:51:05 GMT expires: - '-1' pragma: @@ -45,7 +45,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1197' status: code: 200 message: OK @@ -77,7 +77,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:28:56 GMT + - Thu, 20 Jan 2022 21:51:15 GMT expires: - '-1' pragma: @@ -127,7 +127,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:28:58 GMT + - Thu, 20 Jan 2022 21:51:16 GMT expires: - '-1' location: @@ -135,7 +135,7 @@ interactions: pragma: - no-cache request-id: - - b5255b72-144a-47a3-8f39-07f8b1e6c15c + - 4fbdfafd-52ab-443c-b58b-ffa5a03c31a9 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -147,7 +147,7 @@ interactions: x-ms-ratelimit-remaining-managementgroups-requests: - '59' x-ms-ratelimit-remaining-tenant-writes: - - '1198' + - '1199' status: code: 202 message: Accepted @@ -181,7 +181,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:29:07 GMT + - Thu, 20 Jan 2022 21:51:26 GMT expires: - '-1' location: @@ -189,7 +189,7 @@ interactions: pragma: - no-cache request-id: - - a5029415-6cd3-472a-9fbb-61b2784dae8b + - 670765c7-4c7e-4958-b71f-b12b4bcf793c server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -224,22 +224,22 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":28,"updatedTime":"2022-01-12T21:29:03.2221149Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":107,"updatedTime":"2022-01-20T21:51:21.8666763Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache content-length: - - '374' + - '375' content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:29:18 GMT + - Thu, 20 Jan 2022 21:51:36 GMT expires: - '-1' pragma: - no-cache request-id: - - 976855cf-c6b3-45fc-b0ba-48cb783dd685 + - 3d4df397-cf30-4558-bc69-08740b3e5782 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -274,23 +274,23 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":28,"updatedTime":"2022-01-12T21:29:03.2221149Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":107,"updatedTime":"2022-01-20T21:51:21.8666763Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root Management Group"}}}}' headers: cache-control: - no-cache content-length: - - '542' + - '543' content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:29:18 GMT + - Thu, 20 Jan 2022 21:51:36 GMT expires: - '-1' pragma: - no-cache request-id: - - c54a3cbf-a990-4d65-95e0-12bc0882a85b + - 6adc480e-bdf9-4a3d-917f-99151cbedbe5 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -338,7 +338,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:29:20 GMT + - Thu, 20 Jan 2022 21:51:38 GMT expires: - '-1' pragma: @@ -352,7 +352,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1196' status: code: 200 message: OK @@ -384,7 +384,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:29:30 GMT + - Thu, 20 Jan 2022 21:51:48 GMT expires: - '-1' pragma: @@ -435,7 +435,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:29:31 GMT + - Thu, 20 Jan 2022 21:51:49 GMT expires: - '-1' location: @@ -443,7 +443,7 @@ interactions: pragma: - no-cache request-id: - - 35bfa9cd-8664-4ca8-958f-575ad8e34453 + - a98c666c-dbc9-4e17-8720-017e4baaaed1 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -455,7 +455,7 @@ interactions: x-ms-ratelimit-remaining-managementgroups-requests: - '59' x-ms-ratelimit-remaining-tenant-writes: - - '1199' + - '1198' status: code: 202 message: Accepted @@ -489,7 +489,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:29:41 GMT + - Thu, 20 Jan 2022 21:51:59 GMT expires: - '-1' location: @@ -497,7 +497,7 @@ interactions: pragma: - no-cache request-id: - - 791bad85-1aef-4b2e-aac5-1692653bbc03 + - 6074795d-3436-4e85-a510-b9c3bbd94c7f server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -532,7 +532,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild","name":"testcligroupchild","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":29,"updatedTime":"2022-01-12T21:29:37.4343814Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild","name":"testcligroupchild","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":75,"updatedTime":"2022-01-20T21:51:56.1316856Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache @@ -541,13 +541,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:29:51 GMT + - Thu, 20 Jan 2022 21:52:10 GMT expires: - '-1' pragma: - no-cache request-id: - - 38bf5cd1-2b4b-47c5-b429-89e29872c15f + - 40941bb4-6417-4278-ab4b-aaa70824f774 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -582,7 +582,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":29,"updatedTime":"2022-01-12T21:29:37.4343814Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","name":"testcligroup","displayName":"testcligroup"}}}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":75,"updatedTime":"2022-01-20T21:51:56.1316856Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","name":"testcligroup","displayName":"testcligroup"}}}}' headers: cache-control: - no-cache @@ -591,13 +591,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:29:52 GMT + - Thu, 20 Jan 2022 21:52:10 GMT expires: - '-1' pragma: - no-cache request-id: - - f881d460-86c8-4095-81d8-88f9fa0c2712 + - 7db10ce5-0469-429e-b43a-5d1d5957a13c server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -645,7 +645,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:29:53 GMT + - Thu, 20 Jan 2022 21:52:14 GMT expires: - '-1' pragma: @@ -659,7 +659,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1197' status: code: 200 message: OK @@ -691,7 +691,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:30:03 GMT + - Thu, 20 Jan 2022 21:52:24 GMT expires: - '-1' pragma: @@ -739,7 +739,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:30:04 GMT + - Thu, 20 Jan 2022 21:52:31 GMT expires: - '-1' location: @@ -747,7 +747,7 @@ interactions: pragma: - no-cache request-id: - - af8ffc88-42eb-489c-adc3-72f8805c9319 + - 50b87523-ba09-453b-9075-2f4fd4fbbdb1 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -791,13 +791,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:30:14 GMT + - Thu, 20 Jan 2022 21:52:42 GMT expires: - '-1' pragma: - no-cache request-id: - - a7f9bba6-20b3-4168-a719-346d6c5bb46a + - 753ba98e-1149-4026-bfc2-be973f3c2587 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -845,7 +845,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:30:16 GMT + - Thu, 20 Jan 2022 21:52:42 GMT expires: - '-1' pragma: @@ -859,7 +859,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 200 message: OK @@ -891,7 +891,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:30:26 GMT + - Thu, 20 Jan 2022 21:52:52 GMT expires: - '-1' pragma: @@ -939,7 +939,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:30:27 GMT + - Thu, 20 Jan 2022 21:52:54 GMT expires: - '-1' location: @@ -947,7 +947,7 @@ interactions: pragma: - no-cache request-id: - - 7ac9c1f9-5e16-467e-b632-cd40ec1746e9 + - 7e05dc5d-57eb-457f-8d14-2a2bca5bbfb2 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -991,13 +991,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:30:37 GMT + - Thu, 20 Jan 2022 21:53:04 GMT expires: - '-1' pragma: - no-cache request-id: - - 7a95a3db-50bb-4522-9315-d9c23312d26f + - 998429eb-a77c-4ded-8394-277370eebb3e server: - Microsoft-HTTPAPI/2.0 strict-transport-security: diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_list_managementgroups.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_list_managementgroups.yaml index 7757f6d349f..87cf93e5ed1 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_list_managementgroups.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_list_managementgroups.yaml @@ -15,8 +15,7 @@ interactions: Content-Type: - application/json User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: @@ -30,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:23:07 GMT + - Thu, 20 Jan 2022 21:49:06 GMT expires: - '-1' pragma: @@ -44,7 +43,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 200 message: OK @@ -60,8 +59,7 @@ interactions: Connection: - keep-alive User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: @@ -75,7 +73,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:23:17 GMT + - Thu, 20 Jan 2022 21:49:17 GMT expires: - '-1' pragma: @@ -103,29 +101,28 @@ interactions: Connection: - keep-alive User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/providers/Microsoft.Management/managementGroups?api-version=2021-04-01 response: body: string: '{"value":[{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","type":"Microsoft.Management/managementGroups","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root - Management Group"}},{"id":"/providers/Microsoft.Management/managementGroups/mg-name","type":"Microsoft.Management/managementGroups","name":"mg-name","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"mg-display-name"}},{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup"}},{"id":"/providers/Microsoft.Management/managementGroups/testMG","type":"Microsoft.Management/managementGroups","name":"testMG","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testMG"}},{"id":"/providers/Microsoft.Management/managementGroups/testMG2","type":"Microsoft.Management/managementGroups","name":"testMG2","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testMG2"}},{"id":"/providers/Microsoft.Management/managementGroups/testMG3","type":"Microsoft.Management/managementGroups","name":"testMG3","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testMG3"}},{"id":"/providers/Microsoft.Management/managementGroups/testMG4","type":"Microsoft.Management/managementGroups","name":"testMG4","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testMG4"}},{"id":"/providers/Microsoft.Management/managementGroups/thomasdolanTestMG","type":"Microsoft.Management/managementGroups","name":"thomasdolanTestMG","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"thomasdolanTestMG"}}],"@nextLink":null}' + Management Group"}},{"id":"/providers/Microsoft.Management/managementGroups/testMG3","type":"Microsoft.Management/managementGroups","name":"testMG3","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testMG3"}},{"id":"/providers/Microsoft.Management/managementGroups/testMG4","type":"Microsoft.Management/managementGroups","name":"testMG4","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testMG4"}},{"id":"/providers/Microsoft.Management/managementGroups/thomasdolanTestMG","type":"Microsoft.Management/managementGroups","name":"thomasdolanTestMG","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"thomasdolanTestMG"}}],"@nextLink":null}' headers: cache-control: - no-cache content-length: - - '1902' + - '1006' content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:23:18 GMT + - Thu, 20 Jan 2022 21:49:18 GMT expires: - '-1' pragma: - no-cache request-id: - - 8117c992-d920-4d3a-af1e-97b148aa26ce + - 6f123544-b0bf-4ea5-95bc-3e883e0f6ddb server: - Microsoft-HTTPAPI/2.0 strict-transport-security: diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_show_managementgroup.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_show_managementgroup.yaml index 45aa91bc7d3..46f36538c4d 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_show_managementgroup.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_show_managementgroup.yaml @@ -17,8 +17,7 @@ interactions: ParameterSetName: - --name User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: @@ -32,7 +31,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:40:36 GMT + - Thu, 20 Jan 2022 22:32:25 GMT expires: - '-1' pragma: @@ -64,8 +63,7 @@ interactions: ParameterSetName: - --name User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: @@ -79,7 +77,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:40:47 GMT + - Thu, 20 Jan 2022 22:32:35 GMT expires: - '-1' pragma: @@ -94,7 +92,7 @@ interactions: code: 200 message: OK - request: - body: '{"name": "testcligetgroup1", "properties": {"details": {"parent": {}}}}' + body: '{"name": "testcligetgroup", "properties": {"details": {"parent": {}}}}' headers: Accept: - application/json @@ -107,196 +105,34 @@ interactions: Connection: - keep-alive Content-Length: - - '71' + - '70' Content-Type: - application/json ParameterSetName: - --name User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2021-04-01 - response: - body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"Microsoft.Management/managementGroups","name":"testcligetgroup1","status":"NotStarted"}' - headers: - azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 - cache-control: - - no-cache - content-length: - - '169' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 11 Jan 2022 23:40:47 GMT - expires: - - '-1' - location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup1?api-version=2021-04-01 - pragma: - - no-cache - request-id: - - 886f6ad8-9a40-40de-a1e1-0dbdb6a03029 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-ba-restapi: - - 1.0.3.2425 - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-managementgroups-requests: - - '59' - x-ms-ratelimit-remaining-tenant-writes: - - '1199' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - account management-group create - Connection: - - keep-alive - ParameterSetName: - - --name - User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1","name":"testcligetgroup1","status":"Running"}' - headers: - azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 - cache-control: - - no-cache - content-length: - - '165' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 11 Jan 2022 23:40:58 GMT - expires: - - '-1' - location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup1?api-version=2021-04-01 - pragma: - - no-cache - request-id: - - 011fdda8-f51f-4b85-a5b2-98c1ca6bddb3 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-ba-restapi: - - 1.0.3.2425 - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - account management-group create - Connection: - - keep-alive - ParameterSetName: - - --name - User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 - response: - body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1","name":"testcligetgroup1","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup1","details":{"version":3,"updatedTime":"2022-01-11T23:40:53.2407474Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' - headers: - cache-control: - - no-cache - content-length: - - '385' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 11 Jan 2022 23:41:08 GMT - expires: - - '-1' - pragma: - - no-cache - request-id: - - ae77591a-8d03-4a05-b5f2-829bc6236782 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-ba-restapi: - - 1.0.3.2425 - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - account management-group create - Connection: - - keep-alive - ParameterSetName: - - --name - User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2021-04-01 - response: - body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"Microsoft.Management/managementGroups","name":"testcligetgroup1","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup1","details":{"version":3,"updatedTime":"2022-01-11T23:40:53.2407474Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup","type":"Microsoft.Management/managementGroups","name":"testcligetgroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup","details":{"version":7,"updatedTime":"2022-01-20T22:30:52.1255618Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root Management Group"}}}}' headers: cache-control: - no-cache content-length: - - '553' + - '550' content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:41:08 GMT + - Thu, 20 Jan 2022 22:32:36 GMT expires: - '-1' pragma: - no-cache request-id: - - 15262cee-1e44-4f14-8222-707990a4f8bb + - 64cde2e5-3b0f-4622-9731-77e8688f620c server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -309,6 +145,10 @@ interactions: - 1.0.3.2425 x-content-type-options: - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-writes: + - '1199' status: code: 200 message: OK @@ -330,8 +170,7 @@ interactions: ParameterSetName: - --name --parent User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: @@ -345,7 +184,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:41:10 GMT + - Thu, 20 Jan 2022 22:32:37 GMT expires: - '-1' pragma: @@ -377,8 +216,7 @@ interactions: ParameterSetName: - --name --parent User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: @@ -392,7 +230,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:41:20 GMT + - Thu, 20 Jan 2022 22:32:47 GMT expires: - '-1' pragma: @@ -407,8 +245,8 @@ interactions: code: 200 message: OK - request: - body: '{"name": "testcligetgroup2", "properties": {"details": {"parent": {"id": - "/providers/Microsoft.Management/managementGroups/testcligetgroup1"}}}}' + body: '{"name": "testcligetgroup1", "properties": {"details": {"parent": {"id": + "/providers/Microsoft.Management/managementGroups/testcligetgroup"}}}}' headers: Accept: - application/json @@ -421,22 +259,21 @@ interactions: Connection: - keep-alive Content-Length: - - '144' + - '143' Content-Type: - application/json ParameterSetName: - --name --parent User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup2?api-version=2021-04-01 + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"Microsoft.Management/managementGroups","name":"testcligetgroup2","status":"NotStarted"}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"Microsoft.Management/managementGroups","name":"testcligetgroup1","status":"NotStarted"}' headers: azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2?api-version=2021-04-01 + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 cache-control: - no-cache content-length: @@ -444,15 +281,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:41:21 GMT + - Thu, 20 Jan 2022 22:32:47 GMT expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup2?api-version=2021-04-01 + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup1?api-version=2021-04-01 pragma: - no-cache request-id: - - e7fc2288-6230-4639-863b-9741a89e716b + - 3e1f490c-1e62-4526-b910-180ba1065655 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -482,16 +319,15 @@ interactions: ParameterSetName: - --name --parent User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2?api-version=2021-04-01 + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2","name":"testcligetgroup2","status":"Running"}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1","name":"testcligetgroup1","status":"Running"}' headers: azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2?api-version=2021-04-01 + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 cache-control: - no-cache content-length: @@ -499,15 +335,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:41:31 GMT + - Thu, 20 Jan 2022 22:32:57 GMT expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup2?api-version=2021-04-01 + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup1?api-version=2021-04-01 pragma: - no-cache request-id: - - b52472a4-78c0-408a-8b80-ca0fdc92cf5a + - aed0f074-1470-4a4a-acbb-edc689e328e3 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -537,28 +373,27 @@ interactions: ParameterSetName: - --name --parent User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2?api-version=2021-04-01 + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2","name":"testcligetgroup2","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup2","details":{"version":3,"updatedTime":"2022-01-11T23:41:26.1320318Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1","name":"testcligetgroup1","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup1","details":{"version":20,"updatedTime":"2022-01-20T22:32:54.49124Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache content-length: - - '385' + - '384' content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:41:42 GMT + - Thu, 20 Jan 2022 22:33:08 GMT expires: - '-1' pragma: - no-cache request-id: - - 11dedae1-6d30-44f3-ade3-7ae4bbb65d18 + - a199466a-c7a5-4c28-8740-82981c861dd9 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -588,28 +423,27 @@ interactions: ParameterSetName: - --name --parent User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup2?api-version=2021-04-01 + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"Microsoft.Management/managementGroups","name":"testcligetgroup2","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup2","details":{"version":3,"updatedTime":"2022-01-11T23:41:26.1320318Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","name":"testcligetgroup1","displayName":"testcligetgroup1"}}}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"Microsoft.Management/managementGroups","name":"testcligetgroup1","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup1","details":{"version":20,"updatedTime":"2022-01-20T22:32:54.49124Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup","name":"testcligetgroup","displayName":"testcligetgroup"}}}}' headers: cache-control: - no-cache content-length: - - '508' + - '504' content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:41:42 GMT + - Thu, 20 Jan 2022 22:33:08 GMT expires: - '-1' pragma: - no-cache request-id: - - 5f2ed199-4959-476d-b5ee-0c41c4099511 + - 6228ac44-ecbe-4316-ba7d-ff8c135620f8 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -643,8 +477,7 @@ interactions: ParameterSetName: - --name User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: @@ -658,7 +491,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:41:43 GMT + - Thu, 20 Jan 2022 22:33:10 GMT expires: - '-1' pragma: @@ -672,7 +505,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 200 message: OK @@ -690,8 +523,7 @@ interactions: ParameterSetName: - --name User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: @@ -705,7 +537,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:41:53 GMT + - Thu, 20 Jan 2022 22:33:19 GMT expires: - '-1' pragma: @@ -735,28 +567,27 @@ interactions: ParameterSetName: - --name User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup2?api-version=2021-04-01 + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"Microsoft.Management/managementGroups","name":"testcligetgroup2","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup2","details":{"version":3,"updatedTime":"2022-01-11T23:41:26.1320318Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","name":"testcligetgroup1","displayName":"testcligetgroup1"}}}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"Microsoft.Management/managementGroups","name":"testcligetgroup1","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup1","details":{"version":20,"updatedTime":"2022-01-20T22:32:54.49124Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup","name":"testcligetgroup","displayName":"testcligetgroup"}}}}' headers: cache-control: - no-cache content-length: - - '508' + - '504' content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:41:53 GMT + - Thu, 20 Jan 2022 22:33:20 GMT expires: - '-1' pragma: - no-cache request-id: - - 116d3d40-7376-4977-bb98-d71852fd9551 + - 342ba574-01c6-46e7-b2c5-9dde5c7c6778 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -790,8 +621,7 @@ interactions: ParameterSetName: - --name User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: @@ -805,7 +635,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:41:54 GMT + - Thu, 20 Jan 2022 22:33:21 GMT expires: - '-1' pragma: @@ -837,8 +667,7 @@ interactions: ParameterSetName: - --name User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: @@ -852,7 +681,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:42:05 GMT + - Thu, 20 Jan 2022 22:33:31 GMT expires: - '-1' pragma: @@ -884,16 +713,15 @@ interactions: ParameterSetName: - --name User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup2?api-version=2021-04-01 + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"Microsoft.Management/managementGroups","name":"testcligetgroup2","status":"NotStarted"}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"Microsoft.Management/managementGroups","name":"testcligetgroup1","status":"NotStarted"}' headers: azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup2?api-version=2021-04-01 + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 cache-control: - no-cache content-length: @@ -901,15 +729,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:42:06 GMT + - Thu, 20 Jan 2022 22:33:33 GMT expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup2?api-version=2021-04-01 + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup1?api-version=2021-04-01 pragma: - no-cache request-id: - - 2f5e717d-1cff-4b0d-a128-037b0d0e229f + - e94c502a-eac4-4410-a98e-84b978697064 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -939,13 +767,12 @@ interactions: ParameterSetName: - --name User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup2?api-version=2021-04-01 + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup2","name":"testcligetgroup2","status":"Succeeded"}' + string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup1","name":"testcligetgroup1","status":"Succeeded"}' headers: cache-control: - no-cache @@ -954,13 +781,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:42:16 GMT + - Thu, 20 Jan 2022 22:33:43 GMT expires: - '-1' pragma: - no-cache request-id: - - 8e0ed3b2-5105-4b01-85ef-184f2e845cfa + - 3920b6c2-cd0a-46c6-b833-f448fb54c8ff server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -994,8 +821,7 @@ interactions: ParameterSetName: - --name User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 response: @@ -1009,7 +835,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:42:18 GMT + - Thu, 20 Jan 2022 22:33:44 GMT expires: - '-1' pragma: @@ -1023,7 +849,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 200 message: OK @@ -1041,8 +867,7 @@ interactions: ParameterSetName: - --name User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 response: @@ -1056,7 +881,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:42:28 GMT + - Thu, 20 Jan 2022 22:33:54 GMT expires: - '-1' pragma: @@ -1088,32 +913,31 @@ interactions: ParameterSetName: - --name User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2021-04-01 + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"Microsoft.Management/managementGroups","name":"testcligetgroup1","status":"NotStarted"}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup","type":"Microsoft.Management/managementGroups","name":"testcligetgroup","status":"NotStarted"}' headers: azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup?api-version=2021-04-01 cache-control: - no-cache content-length: - - '169' + - '167' content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:42:29 GMT + - Thu, 20 Jan 2022 22:33:55 GMT expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup1?api-version=2021-04-01 + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup?api-version=2021-04-01 pragma: - no-cache request-id: - - 2cbd0dae-9da1-4b41-aac9-948f702446d8 + - f8be9d42-8f8f-4a8f-9839-b9074db601e1 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1143,28 +967,27 @@ interactions: ParameterSetName: - --name User-Agent: - - AZURECLI/2.32.0 (MSI) azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 - (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup1","name":"testcligetgroup1","status":"Succeeded"}' + string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup","name":"testcligetgroup","status":"Succeeded"}' headers: cache-control: - no-cache content-length: - - '167' + - '165' content-type: - application/json; charset=utf-8 date: - - Tue, 11 Jan 2022 23:42:39 GMT + - Thu, 20 Jan 2022 22:34:06 GMT expires: - '-1' pragma: - no-cache request-id: - - 85e42daf-9bfd-4151-939f-684fc35d3957 + - d7999f78-dfba-45ae-9f7d-b7740b09a97f server: - Microsoft-HTTPAPI/2.0 strict-transport-security: diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_show_managementgroup_with_expand.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_show_managementgroup_with_expand.yaml index cd462ac6ec2..137d52ae516 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_show_managementgroup_with_expand.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_show_managementgroup_with_expand.yaml @@ -31,7 +31,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:49:02 GMT + - Thu, 20 Jan 2022 22:16:09 GMT expires: - '-1' pragma: @@ -45,7 +45,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 200 message: OK @@ -77,7 +77,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:49:12 GMT + - Thu, 20 Jan 2022 22:16:19 GMT expires: - '-1' pragma: @@ -92,7 +92,7 @@ interactions: code: 200 message: OK - request: - body: '{"name": "testcligetgroup1", "properties": {"details": {"parent": {}}}}' + body: '{"name": "testcligetgroup", "properties": {"details": {"parent": {}}}}' headers: Accept: - application/json @@ -105,7 +105,7 @@ interactions: Connection: - keep-alive Content-Length: - - '71' + - '70' Content-Type: - application/json ParameterSetName: @@ -113,188 +113,42 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2021-04-01 - response: - body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"Microsoft.Management/managementGroups","name":"testcligetgroup1","status":"NotStarted"}' - headers: - azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 - cache-control: - - no-cache - content-length: - - '169' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 12 Jan 2022 21:49:14 GMT - expires: - - '-1' - location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup1?api-version=2021-04-01 - pragma: - - no-cache - request-id: - - ce4cb3da-2483-42d0-99ab-d9e49c7205a9 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-ba-restapi: - - 1.0.3.2426 - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-managementgroups-requests: - - '59' - x-ms-ratelimit-remaining-tenant-writes: - - '1199' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - account management-group create - Connection: - - keep-alive - ParameterSetName: - - --name - User-Agent: - - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 - response: - body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1","name":"testcligetgroup1","status":"Running"}' - headers: - azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 - cache-control: - - no-cache - content-length: - - '165' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 12 Jan 2022 21:49:24 GMT - expires: - - '-1' - location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup1?api-version=2021-04-01 - pragma: - - no-cache - request-id: - - ebab473a-556e-4139-8222-3cc6337e8f20 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-ba-restapi: - - 1.0.3.2426 - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - account management-group create - Connection: - - keep-alive - ParameterSetName: - - --name - User-Agent: - - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 - response: - body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1","name":"testcligetgroup1","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup1","details":{"version":6,"updatedTime":"2022-01-12T21:49:20.2123892Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' - headers: - cache-control: - - no-cache - content-length: - - '385' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 12 Jan 2022 21:49:35 GMT - expires: - - '-1' - pragma: - - no-cache - request-id: - - 2ff333b1-2d20-4209-9c21-37d48b71b725 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-ba-restapi: - - 1.0.3.2426 - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - account management-group create - Connection: - - keep-alive - ParameterSetName: - - --name - User-Agent: - - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2021-04-01 + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"Microsoft.Management/managementGroups","name":"testcligetgroup1","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup1","details":{"version":6,"updatedTime":"2022-01-12T21:49:20.2123892Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup","type":"Microsoft.Management/managementGroups","name":"testcligetgroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup","details":{"version":5,"updatedTime":"2022-01-20T22:13:16.9943433Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root Management Group"}}}}' headers: cache-control: - no-cache content-length: - - '553' + - '550' content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:49:35 GMT + - Thu, 20 Jan 2022 22:16:20 GMT expires: - '-1' pragma: - no-cache request-id: - - 5438d734-d578-45c0-b40f-e134583e52a4 + - 174b76be-923f-4576-890d-f1363373b711 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-ba-restapi: - - 1.0.3.2426 + - 1.0.3.2425 x-content-type-options: - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-writes: + - '1197' status: code: 200 message: OK @@ -330,7 +184,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:49:36 GMT + - Thu, 20 Jan 2022 22:16:21 GMT expires: - '-1' pragma: @@ -376,7 +230,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:49:46 GMT + - Thu, 20 Jan 2022 22:16:31 GMT expires: - '-1' pragma: @@ -391,8 +245,8 @@ interactions: code: 200 message: OK - request: - body: '{"name": "testcligetgroup2", "properties": {"details": {"parent": {"id": - "/providers/Microsoft.Management/managementGroups/testcligetgroup1"}}}}' + body: '{"name": "testcligetgroup1", "properties": {"details": {"parent": {"id": + "/providers/Microsoft.Management/managementGroups/testcligetgroup"}}}}' headers: Accept: - application/json @@ -405,7 +259,7 @@ interactions: Connection: - keep-alive Content-Length: - - '144' + - '143' Content-Type: - application/json ParameterSetName: @@ -413,13 +267,13 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup2?api-version=2021-04-01 + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"Microsoft.Management/managementGroups","name":"testcligetgroup2","status":"NotStarted"}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"Microsoft.Management/managementGroups","name":"testcligetgroup1","status":"NotStarted"}' headers: azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2?api-version=2021-04-01 + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 cache-control: - no-cache content-length: @@ -427,15 +281,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:49:47 GMT + - Thu, 20 Jan 2022 22:16:33 GMT expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup2?api-version=2021-04-01 + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup1?api-version=2021-04-01 pragma: - no-cache request-id: - - f015e5fc-b441-46d6-872f-862f924bb927 + - a88c3fa1-b855-4921-b7ec-d29dd6069d96 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -447,7 +301,7 @@ interactions: x-ms-ratelimit-remaining-managementgroups-requests: - '59' x-ms-ratelimit-remaining-tenant-writes: - - '1199' + - '1198' status: code: 202 message: Accepted @@ -467,13 +321,13 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2?api-version=2021-04-01 + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2","name":"testcligetgroup2","status":"Running"}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1","name":"testcligetgroup1","status":"Running"}' headers: azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2?api-version=2021-04-01 + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 cache-control: - no-cache content-length: @@ -481,15 +335,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:49:57 GMT + - Thu, 20 Jan 2022 22:16:43 GMT expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup2?api-version=2021-04-01 + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup1?api-version=2021-04-01 pragma: - no-cache request-id: - - d66877dd-f1d4-4769-9a3f-19a92a7d8b3a + - 10593cc3-4f87-4d9f-9c68-7c1bc3435437 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -521,25 +375,25 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2?api-version=2021-04-01 + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2","name":"testcligetgroup2","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup2","details":{"version":6,"updatedTime":"2022-01-12T21:49:53.8185481Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1","name":"testcligetgroup1","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup1","details":{"version":17,"updatedTime":"2022-01-20T22:16:38.2294134Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache content-length: - - '385' + - '386' content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:50:08 GMT + - Thu, 20 Jan 2022 22:16:53 GMT expires: - '-1' pragma: - no-cache request-id: - - 4fa19046-b24c-4e2c-b0f6-c7e85ef66fa0 + - ebb1ad14-3b39-4d18-a472-1dd9942d9ec7 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -571,25 +425,25 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup2?api-version=2021-04-01 + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"Microsoft.Management/managementGroups","name":"testcligetgroup2","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup2","details":{"version":6,"updatedTime":"2022-01-12T21:49:53.8185481Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","name":"testcligetgroup1","displayName":"testcligetgroup1"}}}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"Microsoft.Management/managementGroups","name":"testcligetgroup1","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup1","details":{"version":17,"updatedTime":"2022-01-20T22:16:38.2294134Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup","name":"testcligetgroup","displayName":"testcligetgroup"}}}}' headers: cache-control: - no-cache content-length: - - '508' + - '506' content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:50:08 GMT + - Thu, 20 Jan 2022 22:16:53 GMT expires: - '-1' pragma: - no-cache request-id: - - 7e0a47fe-0d89-4c5f-8735-539170dfeaa2 + - 36d9a96d-d3a1-474d-8784-8fc314ba21b6 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -637,7 +491,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:50:10 GMT + - Thu, 20 Jan 2022 22:16:55 GMT expires: - '-1' pragma: @@ -683,7 +537,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:50:20 GMT + - Thu, 20 Jan 2022 22:17:05 GMT expires: - '-1' pragma: @@ -698,8 +552,8 @@ interactions: code: 200 message: OK - request: - body: '{"name": "testcligetgroup3", "properties": {"details": {"parent": {"id": - "/providers/Microsoft.Management/managementGroups/testcligetgroup2"}}}}' + body: '{"name": "testcligetgroup2", "properties": {"details": {"parent": {"id": + "/providers/Microsoft.Management/managementGroups/testcligetgroup1"}}}}' headers: Accept: - application/json @@ -720,13 +574,13 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup3?api-version=2021-04-01 + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup2?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup3","type":"Microsoft.Management/managementGroups","name":"testcligetgroup3","status":"NotStarted"}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"Microsoft.Management/managementGroups","name":"testcligetgroup2","status":"NotStarted"}' headers: azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup3?api-version=2021-04-01 + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2?api-version=2021-04-01 cache-control: - no-cache content-length: @@ -734,15 +588,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:50:21 GMT + - Thu, 20 Jan 2022 22:17:06 GMT expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup3?api-version=2021-04-01 + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup2?api-version=2021-04-01 pragma: - no-cache request-id: - - 44c8b16e-2e15-4b75-aed5-a2e90f8827a8 + - 592049b1-9102-4557-9d95-b761e2e8cdaa server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -754,7 +608,7 @@ interactions: x-ms-ratelimit-remaining-managementgroups-requests: - '59' x-ms-ratelimit-remaining-tenant-writes: - - '1199' + - '1197' status: code: 202 message: Accepted @@ -774,13 +628,13 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup3?api-version=2021-04-01 + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup3","name":"testcligetgroup3","status":"Running"}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2","name":"testcligetgroup2","status":"Running"}' headers: azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup3?api-version=2021-04-01 + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2?api-version=2021-04-01 cache-control: - no-cache content-length: @@ -788,15 +642,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:50:31 GMT + - Thu, 20 Jan 2022 22:17:16 GMT expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup3?api-version=2021-04-01 + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup2?api-version=2021-04-01 pragma: - no-cache request-id: - - f652a3cb-85fd-44bd-b2bd-60882e174681 + - cd43487c-6760-46ae-938a-523b66fb2469 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -828,25 +682,25 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup3?api-version=2021-04-01 + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup3","name":"testcligetgroup3","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup3","details":{"version":3,"updatedTime":"2022-01-12T21:50:27.1084083Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2","name":"testcligetgroup2","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup2","details":{"version":15,"updatedTime":"2022-01-20T22:17:11.5316866Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache content-length: - - '385' + - '386' content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:50:41 GMT + - Thu, 20 Jan 2022 22:17:27 GMT expires: - '-1' pragma: - no-cache request-id: - - 815a6620-74df-4194-b380-663662410550 + - 08608b47-30c5-4ae6-9b80-a2e64948b5de server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -878,25 +732,25 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup3?api-version=2021-04-01 + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup2?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup3","type":"Microsoft.Management/managementGroups","name":"testcligetgroup3","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup3","details":{"version":3,"updatedTime":"2022-01-12T21:50:27.1084083Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","name":"testcligetgroup2","displayName":"testcligetgroup2"}}}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"Microsoft.Management/managementGroups","name":"testcligetgroup2","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup2","details":{"version":15,"updatedTime":"2022-01-20T22:17:11.5316866Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","name":"testcligetgroup1","displayName":"testcligetgroup1"}}}}' headers: cache-control: - no-cache content-length: - - '508' + - '509' content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:50:42 GMT + - Thu, 20 Jan 2022 22:17:27 GMT expires: - '-1' pragma: - no-cache request-id: - - 4acc22d8-e515-4d69-a89a-8c39acd6d179 + - 4f630d56-65ca-42c2-b5ca-10a00080f778 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -944,7 +798,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:50:43 GMT + - Thu, 20 Jan 2022 22:17:27 GMT expires: - '-1' pragma: @@ -990,7 +844,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:50:53 GMT + - Thu, 20 Jan 2022 22:17:38 GMT expires: - '-1' pragma: @@ -1022,25 +876,25 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup2?api-version=2021-04-01&$expand=children&$recurse=false + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2021-04-01&$expand=children&$recurse=false response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"Microsoft.Management/managementGroups","name":"testcligetgroup2","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup2","details":{"version":6,"updatedTime":"2022-01-12T21:49:53.8185481Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","name":"testcligetgroup1","displayName":"testcligetgroup1"}},"children":[{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup3","type":"Microsoft.Management/managementGroups","name":"testcligetgroup3","displayName":"testcligetgroup3"}]}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"Microsoft.Management/managementGroups","name":"testcligetgroup1","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup1","details":{"version":17,"updatedTime":"2022-01-20T22:16:38.2294134Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup","name":"testcligetgroup","displayName":"testcligetgroup"}},"children":[{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"Microsoft.Management/managementGroups","name":"testcligetgroup2","displayName":"testcligetgroup2"}]}}' headers: cache-control: - no-cache content-length: - - '702' + - '700' content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:50:54 GMT + - Thu, 20 Jan 2022 22:17:39 GMT expires: - '-1' pragma: - no-cache request-id: - - 7440059d-12d2-4bca-8f8c-ed41aeda18c8 + - 204b6787-b254-48a7-b510-06f09ffa31e6 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1088,7 +942,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:50:55 GMT + - Thu, 20 Jan 2022 22:17:39 GMT expires: - '-1' pragma: @@ -1102,7 +956,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 200 message: OK @@ -1134,7 +988,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:51:05 GMT + - Thu, 20 Jan 2022 22:17:49 GMT expires: - '-1' pragma: @@ -1168,13 +1022,13 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup3?api-version=2021-04-01 + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup2?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup3","type":"Microsoft.Management/managementGroups","name":"testcligetgroup3","status":"NotStarted"}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"Microsoft.Management/managementGroups","name":"testcligetgroup2","status":"NotStarted"}' headers: azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup3?api-version=2021-04-01 + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup2?api-version=2021-04-01 cache-control: - no-cache content-length: @@ -1182,19 +1036,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:51:06 GMT + - Thu, 20 Jan 2022 22:17:51 GMT expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup3?api-version=2021-04-01 + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup2?api-version=2021-04-01 pragma: - no-cache request-id: - - f9bc37ce-5e38-40e9-8273-71a47ed422e5 + - c359a519-97a7-4b5c-86da-b7c8a17f9414 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.2426 + - 1.0.3.2425 x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: @@ -1220,10 +1076,10 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup3?api-version=2021-04-01 + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup2?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup3","name":"testcligetgroup3","status":"Succeeded"}' + string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup2","name":"testcligetgroup2","status":"Succeeded"}' headers: cache-control: - no-cache @@ -1232,21 +1088,23 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:51:16 GMT + - Thu, 20 Jan 2022 22:18:01 GMT expires: - '-1' pragma: - no-cache request-id: - - 616f26b8-1d35-4b8e-8fd9-9dbcd9441860 + - 76bd0fb5-2ac1-4c39-bdec-9e17cf3ebb39 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-ba-restapi: - - 1.0.3.2426 + - 1.0.3.2425 x-content-type-options: - nosniff status: @@ -1284,7 +1142,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:51:18 GMT + - Thu, 20 Jan 2022 22:18:02 GMT expires: - '-1' pragma: @@ -1330,7 +1188,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:51:28 GMT + - Thu, 20 Jan 2022 22:18:12 GMT expires: - '-1' pragma: @@ -1364,13 +1222,13 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup2?api-version=2021-04-01 + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"Microsoft.Management/managementGroups","name":"testcligetgroup2","status":"NotStarted"}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"Microsoft.Management/managementGroups","name":"testcligetgroup1","status":"NotStarted"}' headers: azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup2?api-version=2021-04-01 + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 cache-control: - no-cache content-length: @@ -1378,25 +1236,27 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:51:29 GMT + - Thu, 20 Jan 2022 22:18:13 GMT expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup2?api-version=2021-04-01 + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup1?api-version=2021-04-01 pragma: - no-cache request-id: - - b77de0f0-cb5d-4c36-8815-496e862c0a26 + - 517496c2-6d95-426a-8f40-9ca3dd7ef111 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.2426 + - 1.0.3.2425 x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: - - '58' + - '59' x-ms-ratelimit-remaining-tenant-deletes: - - '14998' + - '14999' status: code: 202 message: Accepted @@ -1416,10 +1276,10 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup2?api-version=2021-04-01 + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup2","name":"testcligetgroup2","status":"Succeeded"}' + string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup1","name":"testcligetgroup1","status":"Succeeded"}' headers: cache-control: - no-cache @@ -1428,21 +1288,23 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:51:39 GMT + - Thu, 20 Jan 2022 22:18:23 GMT expires: - '-1' pragma: - no-cache request-id: - - bda289c1-2fdf-430c-9f48-79718cd5dee1 + - e6586c18-12dc-407e-9b7d-d9ff65db730a + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-ba-restapi: - - 1.0.3.2426 + - 1.0.3.2425 x-content-type-options: - nosniff status: @@ -1480,7 +1342,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:51:39 GMT + - Thu, 20 Jan 2022 22:18:25 GMT expires: - '-1' pragma: @@ -1494,7 +1356,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 200 message: OK @@ -1526,7 +1388,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:51:49 GMT + - Thu, 20 Jan 2022 22:18:35 GMT expires: - '-1' pragma: @@ -1560,29 +1422,29 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2021-04-01 + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"Microsoft.Management/managementGroups","name":"testcligetgroup1","status":"NotStarted"}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup","type":"Microsoft.Management/managementGroups","name":"testcligetgroup","status":"NotStarted"}' headers: azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup?api-version=2021-04-01 cache-control: - no-cache content-length: - - '169' + - '167' content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:51:52 GMT + - Thu, 20 Jan 2022 22:18:35 GMT expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup1?api-version=2021-04-01 + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligetgroup?api-version=2021-04-01 pragma: - no-cache request-id: - - e462c047-8fa2-4bcd-a27f-423189452536 + - e01172c8-86f9-41b0-be3b-aced32c63c99 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1614,25 +1476,25 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup1","name":"testcligetgroup1","status":"Succeeded"}' + string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligetgroup","name":"testcligetgroup","status":"Succeeded"}' headers: cache-control: - no-cache content-length: - - '167' + - '165' content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:52:02 GMT + - Thu, 20 Jan 2022 22:18:45 GMT expires: - '-1' pragma: - no-cache request-id: - - bc0dfab6-8656-409b-a313-dbae039f207a + - 1c9503b9-c0f0-4400-a6b7-4555afdd4c26 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_show_managementgroup_with_expand_and_recurse.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_show_managementgroup_with_expand_and_recurse.yaml index 78f61bc899a..e959def34a2 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_show_managementgroup_with_expand_and_recurse.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_show_managementgroup_with_expand_and_recurse.yaml @@ -31,7 +31,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:41:20 GMT + - Thu, 20 Jan 2022 22:35:32 GMT expires: - '-1' pragma: @@ -77,7 +77,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:41:31 GMT + - Thu, 20 Jan 2022 22:35:42 GMT expires: - '-1' pragma: @@ -127,7 +127,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:41:32 GMT + - Thu, 20 Jan 2022 22:35:42 GMT expires: - '-1' location: @@ -135,7 +135,7 @@ interactions: pragma: - no-cache request-id: - - 140aa45f-7f56-45fa-86a2-dcaa4915d95c + - 7af0630f-02a8-4810-a456-8d12c3963df6 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -181,7 +181,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:41:42 GMT + - Thu, 20 Jan 2022 22:35:53 GMT expires: - '-1' location: @@ -189,7 +189,7 @@ interactions: pragma: - no-cache request-id: - - 548462ed-e1b8-46d0-b880-190809acbd9d + - a9d0df3f-8383-4d0a-9ed8-f7cf08bd1de8 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -224,7 +224,61 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1","name":"testcligetgroup1","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup1","details":{"version":5,"updatedTime":"2022-01-12T21:41:37.9339498Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1","name":"testcligetgroup1","status":"Running"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '165' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 20 Jan 2022 22:36:03 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup1?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 6abdffe7-dbba-497c-8eef-248247e43a6f + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1","name":"testcligetgroup1","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup1","details":{"version":21,"updatedTime":"2022-01-20T22:35:49.145399Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache @@ -233,13 +287,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:41:54 GMT + - Thu, 20 Jan 2022 22:36:14 GMT expires: - '-1' pragma: - no-cache request-id: - - d3ed7ecb-e24c-4644-bded-ee0135c3d0b6 + - 966bc560-bfbc-492c-be2e-3429f74ced73 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -274,7 +328,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"Microsoft.Management/managementGroups","name":"testcligetgroup1","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup1","details":{"version":5,"updatedTime":"2022-01-12T21:41:37.9339498Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"Microsoft.Management/managementGroups","name":"testcligetgroup1","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup1","details":{"version":21,"updatedTime":"2022-01-20T22:35:49.145399Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root Management Group"}}}}' headers: cache-control: @@ -284,13 +338,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:41:54 GMT + - Thu, 20 Jan 2022 22:36:14 GMT expires: - '-1' pragma: - no-cache request-id: - - bf15cd34-23aa-4460-8ce4-e689fb51dfd9 + - 467bc013-d992-4920-aeec-957a65000e51 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -338,7 +392,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:41:54 GMT + - Thu, 20 Jan 2022 22:36:16 GMT expires: - '-1' pragma: @@ -384,7 +438,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:42:04 GMT + - Thu, 20 Jan 2022 22:36:26 GMT expires: - '-1' pragma: @@ -435,7 +489,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:42:06 GMT + - Thu, 20 Jan 2022 22:36:26 GMT expires: - '-1' location: @@ -443,7 +497,7 @@ interactions: pragma: - no-cache request-id: - - 102b9f4f-1f15-436d-b3ac-7e5d02fd51c9 + - c3eb53b5-3dd4-4bf0-89c8-4b8b42c00db2 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -453,7 +507,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: - - '59' + - '58' x-ms-ratelimit-remaining-tenant-writes: - '1199' status: @@ -489,7 +543,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:42:16 GMT + - Thu, 20 Jan 2022 22:36:36 GMT expires: - '-1' location: @@ -497,7 +551,7 @@ interactions: pragma: - no-cache request-id: - - 470a18b0-4348-46dc-875f-1ef95d751ff5 + - 9e8b134e-3aca-4200-9f88-91ebb12597a6 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -532,22 +586,22 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2","name":"testcligetgroup2","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup2","details":{"version":5,"updatedTime":"2022-01-12T21:42:11.7786786Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2","name":"testcligetgroup2","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup2","details":{"version":17,"updatedTime":"2022-01-20T22:36:32.2740044Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache content-length: - - '385' + - '386' content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:42:27 GMT + - Thu, 20 Jan 2022 22:36:47 GMT expires: - '-1' pragma: - no-cache request-id: - - 9ff69ea3-e579-4d75-a369-79d55db1c324 + - d91db10f-3756-4491-b9e4-ba821da66a57 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -582,22 +636,22 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup2?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"Microsoft.Management/managementGroups","name":"testcligetgroup2","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup2","details":{"version":5,"updatedTime":"2022-01-12T21:42:11.7786786Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","name":"testcligetgroup1","displayName":"testcligetgroup1"}}}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"Microsoft.Management/managementGroups","name":"testcligetgroup2","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup2","details":{"version":17,"updatedTime":"2022-01-20T22:36:32.2740044Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","name":"testcligetgroup1","displayName":"testcligetgroup1"}}}}' headers: cache-control: - no-cache content-length: - - '508' + - '509' content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:42:27 GMT + - Thu, 20 Jan 2022 22:36:47 GMT expires: - '-1' pragma: - no-cache request-id: - - 6a7087b7-a973-4f2f-9961-dd87aec7e22f + - 3951f3c0-c87d-4a9a-8f31-d1a08343fc4e server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -645,7 +699,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:42:28 GMT + - Thu, 20 Jan 2022 22:36:48 GMT expires: - '-1' pragma: @@ -659,7 +713,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 200 message: OK @@ -691,7 +745,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:42:39 GMT + - Thu, 20 Jan 2022 22:36:58 GMT expires: - '-1' pragma: @@ -742,7 +796,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:42:39 GMT + - Thu, 20 Jan 2022 22:36:59 GMT expires: - '-1' location: @@ -750,7 +804,7 @@ interactions: pragma: - no-cache request-id: - - 08b1d58d-7fd7-4511-b67a-8d1f65886b51 + - be8ab314-dd62-4696-98f9-41a00c2afe8c server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -762,7 +816,7 @@ interactions: x-ms-ratelimit-remaining-managementgroups-requests: - '59' x-ms-ratelimit-remaining-tenant-writes: - - '1199' + - '1198' status: code: 202 message: Accepted @@ -796,7 +850,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:42:49 GMT + - Thu, 20 Jan 2022 22:37:10 GMT expires: - '-1' location: @@ -804,7 +858,7 @@ interactions: pragma: - no-cache request-id: - - 9ec81c7e-fba2-4e51-8adb-e351c2ed80b9 + - 3bbce24a-63ea-47c0-ab4b-f381ca44b923 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -839,7 +893,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup3?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup3","name":"testcligetgroup3","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup3","details":{"version":2,"updatedTime":"2022-01-12T21:42:45.2968591Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup3","name":"testcligetgroup3","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup3","details":{"version":8,"updatedTime":"2022-01-20T22:37:06.1341459Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache @@ -848,13 +902,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:43:00 GMT + - Thu, 20 Jan 2022 22:37:20 GMT expires: - '-1' pragma: - no-cache request-id: - - c3cd9b12-b967-4f5d-822c-146f252cdef7 + - 03222ebb-80d7-405b-9524-2acfd04a1397 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -889,7 +943,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup3?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup3","type":"Microsoft.Management/managementGroups","name":"testcligetgroup3","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup3","details":{"version":2,"updatedTime":"2022-01-12T21:42:45.2968591Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","name":"testcligetgroup2","displayName":"testcligetgroup2"}}}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup3","type":"Microsoft.Management/managementGroups","name":"testcligetgroup3","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup3","details":{"version":8,"updatedTime":"2022-01-20T22:37:06.1341459Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","name":"testcligetgroup2","displayName":"testcligetgroup2"}}}}' headers: cache-control: - no-cache @@ -898,13 +952,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:43:00 GMT + - Thu, 20 Jan 2022 22:37:20 GMT expires: - '-1' pragma: - no-cache request-id: - - 54eb2739-c452-4f37-8310-20838f67c4f3 + - d212c1b1-64b8-45ec-9266-51138f73aa07 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -952,7 +1006,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:43:01 GMT + - Thu, 20 Jan 2022 22:37:22 GMT expires: - '-1' pragma: @@ -966,7 +1020,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1196' + - '1198' status: code: 200 message: OK @@ -998,7 +1052,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:43:11 GMT + - Thu, 20 Jan 2022 22:37:32 GMT expires: - '-1' pragma: @@ -1049,7 +1103,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:43:13 GMT + - Thu, 20 Jan 2022 22:37:33 GMT expires: - '-1' location: @@ -1057,7 +1111,7 @@ interactions: pragma: - no-cache request-id: - - 286c682c-33f2-47d4-804b-271b3c68184f + - 90450b1c-8066-4059-8f58-4e8dd693c9f2 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1103,7 +1157,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:43:23 GMT + - Thu, 20 Jan 2022 22:37:43 GMT expires: - '-1' location: @@ -1111,7 +1165,7 @@ interactions: pragma: - no-cache request-id: - - 504bafd9-61d6-48b8-8bfd-91078117a63f + - 1964db4c-e9a7-4823-b5f0-8580d6e7bf74 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1146,7 +1200,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup4?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup4","name":"testcligetgroup4","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup4","details":{"version":2,"updatedTime":"2022-01-12T21:43:18.4376931Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup4","name":"testcligetgroup4","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup4","details":{"version":5,"updatedTime":"2022-01-20T22:37:40.0736042Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache @@ -1155,13 +1209,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:43:34 GMT + - Thu, 20 Jan 2022 22:37:54 GMT expires: - '-1' pragma: - no-cache request-id: - - 263afca8-be72-429e-95a2-0babc9fd0419 + - 79a3af05-6796-4a1c-8d43-dfab46fb6281 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1196,7 +1250,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup4?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup4","type":"Microsoft.Management/managementGroups","name":"testcligetgroup4","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup4","details":{"version":2,"updatedTime":"2022-01-12T21:43:18.4376931Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup3","name":"testcligetgroup3","displayName":"testcligetgroup3"}}}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup4","type":"Microsoft.Management/managementGroups","name":"testcligetgroup4","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup4","details":{"version":5,"updatedTime":"2022-01-20T22:37:40.0736042Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup3","name":"testcligetgroup3","displayName":"testcligetgroup3"}}}}' headers: cache-control: - no-cache @@ -1205,13 +1259,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:43:34 GMT + - Thu, 20 Jan 2022 22:37:54 GMT expires: - '-1' pragma: - no-cache request-id: - - 2c8fa35f-ec29-433f-9b5a-523045427123 + - 39fe7d63-2006-426e-ad65-095deedf8213 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1259,7 +1313,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:43:35 GMT + - Thu, 20 Jan 2022 22:37:56 GMT expires: - '-1' pragma: @@ -1305,7 +1359,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:43:45 GMT + - Thu, 20 Jan 2022 22:38:06 GMT expires: - '-1' pragma: @@ -1349,13 +1403,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:43:46 GMT + - Thu, 20 Jan 2022 22:38:07 GMT expires: - '-1' pragma: - no-cache request-id: - - 4686a4cc-a502-4f69-b319-9d0db570084f + - 4a6bb00a-87b1-4662-a046-4641e1c4a3e9 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1403,7 +1457,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:43:46 GMT + - Thu, 20 Jan 2022 22:38:08 GMT expires: - '-1' pragma: @@ -1449,7 +1503,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:43:57 GMT + - Thu, 20 Jan 2022 22:38:17 GMT expires: - '-1' pragma: @@ -1497,7 +1551,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:43:58 GMT + - Thu, 20 Jan 2022 22:38:18 GMT expires: - '-1' location: @@ -1505,7 +1559,7 @@ interactions: pragma: - no-cache request-id: - - cae2e61f-2626-4d2b-8ac5-375bfd48eeb6 + - ced0fee5-7555-4e1e-99d7-d255e59ca0b3 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1549,13 +1603,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:44:08 GMT + - Thu, 20 Jan 2022 22:38:28 GMT expires: - '-1' pragma: - no-cache request-id: - - 57587ab8-564d-4423-98f5-1ffd71402bb6 + - 53c553ca-4d9d-4089-840b-3f2d6850d5f8 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1603,7 +1657,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:44:09 GMT + - Thu, 20 Jan 2022 22:38:30 GMT expires: - '-1' pragma: @@ -1649,7 +1703,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:44:19 GMT + - Thu, 20 Jan 2022 22:38:40 GMT expires: - '-1' pragma: @@ -1697,7 +1751,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:44:20 GMT + - Thu, 20 Jan 2022 22:38:42 GMT expires: - '-1' location: @@ -1705,7 +1759,7 @@ interactions: pragma: - no-cache request-id: - - 87aa21e5-5f2a-4ad5-ba1b-84162fde1576 + - de789a6f-1577-4b7c-88df-f7cccc49fa7d server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1749,13 +1803,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:44:30 GMT + - Thu, 20 Jan 2022 22:38:52 GMT expires: - '-1' pragma: - no-cache request-id: - - 259291f1-b79d-431c-960a-885ed08afad6 + - 991514a5-9b74-4fea-99ba-5d239bb83b46 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1803,7 +1857,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:44:31 GMT + - Thu, 20 Jan 2022 22:38:53 GMT expires: - '-1' pragma: @@ -1817,7 +1871,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1197' status: code: 200 message: OK @@ -1849,7 +1903,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:44:41 GMT + - Thu, 20 Jan 2022 22:39:03 GMT expires: - '-1' pragma: @@ -1897,7 +1951,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:44:44 GMT + - Thu, 20 Jan 2022 22:39:05 GMT expires: - '-1' location: @@ -1905,11 +1959,13 @@ interactions: pragma: - no-cache request-id: - - a3cce76f-4153-422a-8d24-94042c140631 + - 5014e4fe-8c81-4ce2-842f-e680a616321a + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.2426 + - 1.0.3.2425 x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: @@ -1947,21 +2003,23 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:44:54 GMT + - Thu, 20 Jan 2022 22:39:15 GMT expires: - '-1' pragma: - no-cache request-id: - - a92d2e76-795d-4e38-aa9d-6e75f9683dcf + - 0046ba6c-f105-4f62-8491-8ce0467f7ef5 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-ba-restapi: - - 1.0.3.2426 + - 1.0.3.2425 x-content-type-options: - nosniff status: @@ -1999,7 +2057,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:44:54 GMT + - Thu, 20 Jan 2022 22:39:16 GMT expires: - '-1' pragma: @@ -2045,7 +2103,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:45:04 GMT + - Thu, 20 Jan 2022 22:39:26 GMT expires: - '-1' pragma: @@ -2093,7 +2151,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:45:07 GMT + - Thu, 20 Jan 2022 22:39:28 GMT expires: - '-1' location: @@ -2101,7 +2159,7 @@ interactions: pragma: - no-cache request-id: - - 25f8eb03-838c-4089-a2e5-72032eb06830 + - b6464761-b62c-4628-9254-55187abcf70a server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -2145,13 +2203,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:45:17 GMT + - Thu, 20 Jan 2022 22:39:38 GMT expires: - '-1' pragma: - no-cache request-id: - - 1863b692-2bf0-4991-bf1e-fff4c06910b1 + - 880a841b-c5c8-431c-a1e4-4db3e91cacb1 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_update_managementgroup_with_displayname.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_update_managementgroup_with_displayname.yaml index f8470055d8d..6c95685d472 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_update_managementgroup_with_displayname.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_update_managementgroup_with_displayname.yaml @@ -31,7 +31,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:55:06 GMT + - Thu, 20 Jan 2022 22:20:26 GMT expires: - '-1' pragma: @@ -77,7 +77,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:55:16 GMT + - Thu, 20 Jan 2022 22:20:36 GMT expires: - '-1' pragma: @@ -127,7 +127,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:55:17 GMT + - Thu, 20 Jan 2022 22:20:37 GMT expires: - '-1' location: @@ -135,7 +135,7 @@ interactions: pragma: - no-cache request-id: - - 05914c57-a6a7-42c1-b5ae-9c0563e703bf + - e3b39ccc-d09f-4f22-ab10-53e41064741c server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -181,7 +181,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:55:27 GMT + - Thu, 20 Jan 2022 22:20:47 GMT expires: - '-1' location: @@ -189,7 +189,7 @@ interactions: pragma: - no-cache request-id: - - fb557985-fe91-4500-ac5f-98daaf77f49a + - 8afcbd20-f74f-4e0f-a32f-0e061d9aea4b server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -224,22 +224,22 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":31,"updatedTime":"2022-01-12T21:55:23.0579706Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":113,"updatedTime":"2022-01-20T22:20:42.9801957Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache content-length: - - '374' + - '375' content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:55:38 GMT + - Thu, 20 Jan 2022 22:20:57 GMT expires: - '-1' pragma: - no-cache request-id: - - c2f85c80-a820-4965-ab21-779669c8d8c0 + - 5f6ef107-c365-4312-a2d8-162fb6522d6f server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -274,23 +274,23 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":31,"updatedTime":"2022-01-12T21:55:23.0579706Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":113,"updatedTime":"2022-01-20T22:20:42.9801957Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root Management Group"}}}}' headers: cache-control: - no-cache content-length: - - '542' + - '543' content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:55:38 GMT + - Thu, 20 Jan 2022 22:20:57 GMT expires: - '-1' pragma: - no-cache request-id: - - dc2659f3-0862-48f8-8d30-799f1eff5507 + - 4b75c469-01ad-40ee-b7c0-39fdd1ad2406 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -338,7 +338,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:55:39 GMT + - Thu, 20 Jan 2022 22:20:59 GMT expires: - '-1' pragma: @@ -352,7 +352,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 200 message: OK @@ -384,7 +384,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:55:49 GMT + - Thu, 20 Jan 2022 22:21:08 GMT expires: - '-1' pragma: @@ -424,23 +424,23 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupDisplayName","details":{"version":32,"updatedTime":"2022-01-12T21:55:50.5575789Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupDisplayName","details":{"version":114,"updatedTime":"2022-01-20T22:21:09.7798275Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root Management Group"}}}}' headers: cache-control: - no-cache content-length: - - '553' + - '554' content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:55:52 GMT + - Thu, 20 Jan 2022 22:21:11 GMT expires: - '-1' pragma: - no-cache request-id: - - 438858a9-2074-4a27-ad34-020e43c5b484 + - 9baef982-4d81-4ab9-a2cd-520aa4047a43 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -492,7 +492,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:55:53 GMT + - Thu, 20 Jan 2022 22:21:11 GMT expires: - '-1' pragma: @@ -538,7 +538,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:56:03 GMT + - Thu, 20 Jan 2022 22:21:21 GMT expires: - '-1' pragma: @@ -586,7 +586,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:56:03 GMT + - Thu, 20 Jan 2022 22:21:23 GMT expires: - '-1' location: @@ -594,7 +594,7 @@ interactions: pragma: - no-cache request-id: - - 4226cbbb-5bd6-497a-9221-48a7287fb112 + - b76bcdfc-fac3-4332-9fbc-d07a845275fc server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -638,13 +638,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:56:14 GMT + - Thu, 20 Jan 2022 22:21:33 GMT expires: - '-1' pragma: - no-cache request-id: - - 5492ab16-0372-41db-ae25-5288fc52d929 + - 13212366-6c59-49a4-b124-1efa53e5c387 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_update_managementgroup_with_displayname_and_parentid.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_update_managementgroup_with_displayname_and_parentid.yaml index 4cb804c57ea..c301e8e6084 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_update_managementgroup_with_displayname_and_parentid.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_update_managementgroup_with_displayname_and_parentid.yaml @@ -31,7 +31,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 22:00:32 GMT + - Thu, 20 Jan 2022 22:23:11 GMT expires: - '-1' pragma: @@ -77,7 +77,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 22:00:42 GMT + - Thu, 20 Jan 2022 22:23:21 GMT expires: - '-1' pragma: @@ -127,7 +127,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 22:00:42 GMT + - Thu, 20 Jan 2022 22:23:22 GMT expires: - '-1' location: @@ -135,7 +135,7 @@ interactions: pragma: - no-cache request-id: - - be002a9c-b857-4306-95aa-2234d0f09c85 + - 1ea333e9-24e3-4b52-89a3-b87be04e1dc0 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -181,7 +181,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 22:00:53 GMT + - Thu, 20 Jan 2022 22:23:33 GMT expires: - '-1' location: @@ -189,7 +189,7 @@ interactions: pragma: - no-cache request-id: - - 891fa5e3-d772-4ba9-a3b4-4b25b4556de2 + - 527c7e7a-24ce-4aad-8480-8d63da4d549c server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -224,7 +224,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":34,"updatedTime":"2022-01-12T22:00:48.1897635Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":115,"updatedTime":"2022-01-20T22:23:28.413331Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache @@ -233,13 +233,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 22:01:03 GMT + - Thu, 20 Jan 2022 22:23:43 GMT expires: - '-1' pragma: - no-cache request-id: - - a5a8aa36-4039-49dd-b37e-d528249cceda + - 1b2c2c4e-5ea5-4320-b0ea-2ec442c4a618 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -274,7 +274,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":34,"updatedTime":"2022-01-12T22:00:48.1897635Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":115,"updatedTime":"2022-01-20T22:23:28.413331Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root Management Group"}}}}' headers: cache-control: @@ -284,13 +284,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 22:01:04 GMT + - Thu, 20 Jan 2022 22:23:43 GMT expires: - '-1' pragma: - no-cache request-id: - - d9fce3f4-a69b-42c5-9b38-da67d7defa0a + - 88f8ab60-e199-4164-874f-e8aa1943a1af server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -338,7 +338,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 22:01:04 GMT + - Thu, 20 Jan 2022 22:23:44 GMT expires: - '-1' pragma: @@ -352,7 +352,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 200 message: OK @@ -384,7 +384,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 22:01:14 GMT + - Thu, 20 Jan 2022 22:23:54 GMT expires: - '-1' pragma: @@ -423,165 +423,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","status":"NotStarted"}' - headers: - azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 - cache-control: - - no-cache - content-length: - - '171' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 12 Jan 2022 22:01:15 GMT - expires: - - '-1' - location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroupchild?api-version=2021-04-01 - pragma: - - no-cache - request-id: - - cf8c292e-ccd5-4399-b88e-258d2de19607 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-ba-restapi: - - 1.0.3.2425 - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-managementgroups-requests: - - '59' - x-ms-ratelimit-remaining-tenant-writes: - - '1199' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - account management-group create - Connection: - - keep-alive - ParameterSetName: - - --name - User-Agent: - - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 - response: - body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild","name":"testcligroupchild","status":"Running"}' - headers: - azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 - cache-control: - - no-cache - content-length: - - '167' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 12 Jan 2022 22:01:25 GMT - expires: - - '-1' - location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroupchild?api-version=2021-04-01 - pragma: - - no-cache - request-id: - - 528b5d02-9549-4720-b3cb-3a105942c1e4 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-ba-restapi: - - 1.0.3.2425 - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - account management-group create - Connection: - - keep-alive - ParameterSetName: - - --name - User-Agent: - - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 - response: - body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild","name":"testcligroupchild","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":32,"updatedTime":"2022-01-12T22:01:21.1985673Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' - headers: - cache-control: - - no-cache - content-length: - - '389' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 12 Jan 2022 22:01:36 GMT - expires: - - '-1' - pragma: - - no-cache - request-id: - - 292f9b2b-8912-4891-8f16-2188f2d0185a - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-ba-restapi: - - 1.0.3.2425 - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - account management-group create - Connection: - - keep-alive - ParameterSetName: - - --name - User-Agent: - - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2021-04-01 - response: - body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":32,"updatedTime":"2022-01-12T22:01:21.1985673Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":79,"updatedTime":"2022-01-20T22:21:14.8728169Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root Management Group"}}}}' headers: cache-control: @@ -591,13 +433,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 22:01:36 GMT + - Thu, 20 Jan 2022 22:23:55 GMT expires: - '-1' pragma: - no-cache request-id: - - 2fee15da-b7d8-4104-ae6d-83083588b192 + - 8caa64cc-58c9-4538-950d-bf977b9926a8 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -610,6 +452,10 @@ interactions: - 1.0.3.2425 x-content-type-options: - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-writes: + - '1199' status: code: 200 message: OK @@ -645,7 +491,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 22:01:38 GMT + - Thu, 20 Jan 2022 22:23:56 GMT expires: - '-1' pragma: @@ -659,7 +505,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1197' status: code: 200 message: OK @@ -691,7 +537,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 22:01:48 GMT + - Thu, 20 Jan 2022 22:24:07 GMT expires: - '-1' pragma: @@ -731,7 +577,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":33,"updatedTime":"2022-01-12T22:01:49.8345441Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","name":"testcligroup","displayName":"testcligroup"}}}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":80,"updatedTime":"2022-01-20T22:24:08.3548677Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","name":"testcligroup","displayName":"testcligroup"}}}}' headers: cache-control: - no-cache @@ -740,13 +586,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 22:01:50 GMT + - Thu, 20 Jan 2022 22:24:09 GMT expires: - '-1' pragma: - no-cache request-id: - - b1d2b7a4-235c-4e72-b157-c7a0049b9521 + - f75cace6-d363-4875-9b05-f4b1250ecaab server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -760,9 +606,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: - - '59' + - '58' x-ms-ratelimit-remaining-tenant-writes: - - '1199' + - '1197' status: code: 200 message: OK @@ -798,7 +644,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 22:01:51 GMT + - Thu, 20 Jan 2022 22:24:10 GMT expires: - '-1' pragma: @@ -844,7 +690,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 22:02:01 GMT + - Thu, 20 Jan 2022 22:24:20 GMT expires: - '-1' pragma: @@ -892,7 +738,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 22:02:04 GMT + - Thu, 20 Jan 2022 22:24:21 GMT expires: - '-1' location: @@ -900,7 +746,7 @@ interactions: pragma: - no-cache request-id: - - 40360d33-cf84-4ece-b548-0eb53babc485 + - 549c55ba-0c5c-4143-b4a0-3437f8c25c2a server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -912,7 +758,7 @@ interactions: x-ms-ratelimit-remaining-managementgroups-requests: - '59' x-ms-ratelimit-remaining-tenant-deletes: - - '14999' + - '14997' status: code: 202 message: Accepted @@ -944,13 +790,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 22:02:14 GMT + - Thu, 20 Jan 2022 22:24:32 GMT expires: - '-1' pragma: - no-cache request-id: - - 9bb05409-7069-4d90-a14c-e34728be5edc + - 5da40ef6-8e77-46f2-8683-bd632d71e908 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -998,7 +844,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 22:02:15 GMT + - Thu, 20 Jan 2022 22:24:33 GMT expires: - '-1' pragma: @@ -1012,7 +858,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1197' status: code: 200 message: OK @@ -1044,7 +890,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 22:02:25 GMT + - Thu, 20 Jan 2022 22:24:43 GMT expires: - '-1' pragma: @@ -1092,7 +938,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 22:02:26 GMT + - Thu, 20 Jan 2022 22:24:43 GMT expires: - '-1' location: @@ -1100,7 +946,7 @@ interactions: pragma: - no-cache request-id: - - a7ac8343-5fdd-40ed-9df2-196aeadc78b2 + - 7cc5e645-e63a-4d76-8930-a6554406cbb5 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1110,7 +956,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: - - '58' + - '59' x-ms-ratelimit-remaining-tenant-deletes: - '14999' status: @@ -1144,13 +990,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 22:02:36 GMT + - Thu, 20 Jan 2022 22:24:54 GMT expires: - '-1' pragma: - no-cache request-id: - - 91093d7a-33b4-4f8a-94b8-dfde4921cf5f + - 9f03b890-d8c3-42e5-aa80-6aa89c8b834d server: - Microsoft-HTTPAPI/2.0 strict-transport-security: diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_update_managementgroup_with_parentid.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_update_managementgroup_with_parentid.yaml index d3a26754a1d..5fe37cfa2b9 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_update_managementgroup_with_parentid.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_update_managementgroup_with_parentid.yaml @@ -31,7 +31,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:17:04 GMT + - Thu, 20 Jan 2022 21:55:26 GMT expires: - '-1' pragma: @@ -77,7 +77,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:17:14 GMT + - Thu, 20 Jan 2022 21:55:36 GMT expires: - '-1' pragma: @@ -127,7 +127,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:17:16 GMT + - Thu, 20 Jan 2022 21:55:38 GMT expires: - '-1' location: @@ -135,11 +135,13 @@ interactions: pragma: - no-cache request-id: - - 037434f0-bb93-4eac-a113-1ce233ee2916 + - 0b6a040f-a30d-4315-8f8a-1662aee89910 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.2426 + - 1.0.3.2425 x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: @@ -179,7 +181,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:17:26 GMT + - Thu, 20 Jan 2022 21:55:48 GMT expires: - '-1' location: @@ -187,15 +189,17 @@ interactions: pragma: - no-cache request-id: - - 29a1d286-0f74-4935-bdb4-dd68686b28cc + - c950d195-fcb9-4602-9595-fc145bee0530 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-ba-restapi: - - 1.0.3.2426 + - 1.0.3.2425 x-content-type-options: - nosniff status: @@ -220,30 +224,32 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":25,"updatedTime":"2022-01-12T21:17:21.5536554Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":108,"updatedTime":"2022-01-20T21:55:42.9037651Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache content-length: - - '374' + - '375' content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:17:36 GMT + - Thu, 20 Jan 2022 21:55:58 GMT expires: - '-1' pragma: - no-cache request-id: - - eb3491fd-d52f-4666-84b0-f9ff72cf40ea + - 284a7989-70eb-450b-a8a3-c2fcf77061c0 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-ba-restapi: - - 1.0.3.2426 + - 1.0.3.2425 x-content-type-options: - nosniff status: @@ -268,31 +274,33 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":25,"updatedTime":"2022-01-12T21:17:21.5536554Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":108,"updatedTime":"2022-01-20T21:55:42.9037651Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root Management Group"}}}}' headers: cache-control: - no-cache content-length: - - '542' + - '543' content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:17:36 GMT + - Thu, 20 Jan 2022 21:55:58 GMT expires: - '-1' pragma: - no-cache request-id: - - 264ff7f6-cbc8-491d-af99-5e870b573fd8 + - fd4e2a6c-e240-4954-90cf-e8fe7df2b338 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-ba-restapi: - - 1.0.3.2426 + - 1.0.3.2425 x-content-type-options: - nosniff status: @@ -330,7 +338,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:17:38 GMT + - Thu, 20 Jan 2022 21:56:00 GMT expires: - '-1' pragma: @@ -376,7 +384,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:17:48 GMT + - Thu, 20 Jan 2022 21:56:10 GMT expires: - '-1' pragma: @@ -426,7 +434,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:17:49 GMT + - Thu, 20 Jan 2022 21:56:10 GMT expires: - '-1' location: @@ -434,7 +442,7 @@ interactions: pragma: - no-cache request-id: - - 952d9b02-5df2-4d5a-8683-7c86044deaed + - 655f5d4a-c026-4ea1-8cf5-30f29029b289 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -480,7 +488,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:17:59 GMT + - Thu, 20 Jan 2022 21:56:20 GMT expires: - '-1' location: @@ -488,7 +496,7 @@ interactions: pragma: - no-cache request-id: - - ecb2b421-050b-4623-868b-a20b84d491a1 + - 388da93c-028f-41fc-8e83-89b55d79d020 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -523,7 +531,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild","name":"testcligroupchild","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":25,"updatedTime":"2022-01-12T21:17:54.7598244Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild","name":"testcligroupchild","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":76,"updatedTime":"2022-01-20T21:56:16.7016999Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache @@ -532,13 +540,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:18:10 GMT + - Thu, 20 Jan 2022 21:56:31 GMT expires: - '-1' pragma: - no-cache request-id: - - ae9a5151-0b8c-419e-810c-babd17767981 + - 27274642-0dea-4c04-b664-03d4198c3c47 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -573,7 +581,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":25,"updatedTime":"2022-01-12T21:17:54.7598244Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":76,"updatedTime":"2022-01-20T21:56:16.7016999Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root Management Group"}}}}' headers: cache-control: @@ -583,13 +591,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:18:10 GMT + - Thu, 20 Jan 2022 21:56:31 GMT expires: - '-1' pragma: - no-cache request-id: - - c6ccea62-97aa-48f6-8bf5-2cf80ca4da03 + - 3117fd25-0cbc-497e-936b-fa5d0f63ec1d server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -637,7 +645,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:18:12 GMT + - Thu, 20 Jan 2022 21:56:33 GMT expires: - '-1' pragma: @@ -651,7 +659,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 200 message: OK @@ -683,7 +691,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:18:22 GMT + - Thu, 20 Jan 2022 21:56:42 GMT expires: - '-1' pragma: @@ -723,7 +731,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":26,"updatedTime":"2022-01-12T21:18:23.2765671Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","name":"testcligroup","displayName":"testcligroup"}}}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":77,"updatedTime":"2022-01-20T21:56:44.8361487Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","name":"testcligroup","displayName":"testcligroup"}}}}' headers: cache-control: - no-cache @@ -732,13 +740,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:18:25 GMT + - Thu, 20 Jan 2022 21:56:46 GMT expires: - '-1' pragma: - no-cache request-id: - - a38c197c-f5f6-440b-a6a3-7c1d0d81d0cd + - bd117a74-4b06-473e-a245-494346a4df55 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -790,7 +798,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:18:26 GMT + - Thu, 20 Jan 2022 21:56:47 GMT expires: - '-1' pragma: @@ -836,7 +844,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:18:36 GMT + - Thu, 20 Jan 2022 21:56:57 GMT expires: - '-1' pragma: @@ -884,7 +892,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:18:37 GMT + - Thu, 20 Jan 2022 21:56:58 GMT expires: - '-1' location: @@ -892,7 +900,7 @@ interactions: pragma: - no-cache request-id: - - 5296f33b-c92c-4745-8ad2-9722248753f9 + - a63e73bc-dcc8-4b2f-9074-f48b8c660918 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -936,13 +944,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:18:47 GMT + - Thu, 20 Jan 2022 21:57:08 GMT expires: - '-1' pragma: - no-cache request-id: - - ecd0c4fe-f11f-4593-8865-3334ba653cce + - 35152e03-34b2-4388-8d72-f8035b5fca43 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -990,7 +998,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:18:49 GMT + - Thu, 20 Jan 2022 21:57:09 GMT expires: - '-1' pragma: @@ -1036,7 +1044,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:18:59 GMT + - Thu, 20 Jan 2022 21:57:19 GMT expires: - '-1' pragma: @@ -1084,7 +1092,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:19:00 GMT + - Thu, 20 Jan 2022 21:57:21 GMT expires: - '-1' location: @@ -1092,7 +1100,7 @@ interactions: pragma: - no-cache request-id: - - 34f42b93-4af3-41ad-a763-ce6a93d3ac7b + - 11647efb-57bc-4fd4-bdf5-ed3ea2151608 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1102,7 +1110,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: - - '58' + - '59' x-ms-ratelimit-remaining-tenant-deletes: - '14999' status: @@ -1136,13 +1144,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 12 Jan 2022 21:19:11 GMT + - Thu, 20 Jan 2022 21:57:31 GMT expires: - '-1' pragma: - no-cache request-id: - - 014fc9c6-358f-4f2a-8662-ef03e3ba7450 + - 5c2819ed-4b35-4293-bfbc-940b235bd32f server: - Microsoft-HTTPAPI/2.0 strict-transport-security: diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/test_managmentgroups.py b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/test_managmentgroups.py index da52043274f..8c1cb4fedd3 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/test_managmentgroups.py +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/test_managmentgroups.py @@ -4,9 +4,12 @@ # -------------------------------------------------------------------------------------------- from azure.cli.testsdk import ScenarioTest, record_only +import pytest - +@pytest.mark.custom_mark class AzureManagementGroupsScenarioTest(ScenarioTest): + + #@pytest.mark.custom_mark def test_list_managementgroups(self): managementgroups_list = self.cmd( 'account management-group list').get_output_in_json() @@ -21,84 +24,87 @@ def test_list_managementgroups(self): managementgroups_list[0]["type"], "Microsoft.Management/managementGroups") + #@pytest.mark.custom_mark1 def test_show_managementgroup(self): - self.cmd('account management-group create --name testcligetgroup1') - self.cmd('account management-group create --name testcligetgroup2 --parent /providers/Microsoft.Management/managementGroups/testcligetgroup1') + self.cmd('account management-group create --name testcligetgroup') + self.cmd('account management-group create --name testcligetgroup1 --parent /providers/Microsoft.Management/managementGroups/testcligetgroup') managementgroup_get = self.cmd( - 'account management-group show --name testcligetgroup2').get_output_in_json() - self.cmd('account management-group delete --name testcligetgroup2') + 'account management-group show --name testcligetgroup1').get_output_in_json() self.cmd('account management-group delete --name testcligetgroup1') + self.cmd('account management-group delete --name testcligetgroup') self.assertIsNotNone(managementgroup_get) self.assertIsNone(managementgroup_get["children"]) self.assertIsNotNone(managementgroup_get["details"]) self.assertEqual( managementgroup_get["id"], - "/providers/Microsoft.Management/managementGroups/testcligetgroup2") - self.assertEqual(managementgroup_get["name"], "testcligetgroup2") + "/providers/Microsoft.Management/managementGroups/testcligetgroup1") + self.assertEqual(managementgroup_get["name"], "testcligetgroup1") self.assertEqual( managementgroup_get["displayName"], - "testcligetgroup2") + "testcligetgroup1") self.assertEqual( managementgroup_get["details"]["parent"]["displayName"], - "testcligetgroup1") + "testcligetgroup") self.assertEqual( managementgroup_get["details"]["parent"]["id"], - "/providers/Microsoft.Management/managementGroups/testcligetgroup1") + "/providers/Microsoft.Management/managementGroups/testcligetgroup") self.assertEqual( managementgroup_get["details"]["parent"]["name"], - "testcligetgroup1") + "testcligetgroup") self.assertIsNotNone(managementgroup_get["tenantId"]) self.assertEqual( managementgroup_get["type"], "Microsoft.Management/managementGroups") + #@pytest.mark.custom_mark1 def test_show_managementgroup_with_expand(self): - self.cmd('account management-group create --name testcligetgroup1') - self.cmd('account management-group create --name testcligetgroup2 --parent testcligetgroup1') - self.cmd('account management-group create --name testcligetgroup3 --parent /providers/Microsoft.Management/managementGroups/testcligetgroup2') + self.cmd('account management-group create --name testcligetgroup') + self.cmd('account management-group create --name testcligetgroup1 --parent testcligetgroup') + self.cmd('account management-group create --name testcligetgroup2 --parent /providers/Microsoft.Management/managementGroups/testcligetgroup1') managementgroup_get = self.cmd( - 'account management-group show --name testcligetgroup2 --expand').get_output_in_json() - self.cmd('account management-group delete --name testcligetgroup3') + 'account management-group show --name testcligetgroup1 --expand').get_output_in_json() self.cmd('account management-group delete --name testcligetgroup2') self.cmd('account management-group delete --name testcligetgroup1') + self.cmd('account management-group delete --name testcligetgroup') self.assertIsNotNone(managementgroup_get) self.assertIsNotNone(managementgroup_get["children"]) self.assertIsNotNone(managementgroup_get["details"]) self.assertEqual( managementgroup_get["id"], - "/providers/Microsoft.Management/managementGroups/testcligetgroup2") - self.assertEqual(managementgroup_get["name"], "testcligetgroup2") + "/providers/Microsoft.Management/managementGroups/testcligetgroup1") + self.assertEqual(managementgroup_get["name"], "testcligetgroup1") self.assertEqual( managementgroup_get["displayName"], - "testcligetgroup2") + "testcligetgroup1") self.assertEqual( managementgroup_get["details"]["parent"]["displayName"], - "testcligetgroup1") + "testcligetgroup") self.assertEqual( managementgroup_get["details"]["parent"]["id"], - "/providers/Microsoft.Management/managementGroups/testcligetgroup1") + "/providers/Microsoft.Management/managementGroups/testcligetgroup") self.assertEqual( managementgroup_get["details"]["parent"]["name"], - "testcligetgroup1") + "testcligetgroup") self.assertIsNotNone(managementgroup_get["tenantId"]) self.assertEqual( managementgroup_get["type"], "Microsoft.Management/managementGroups") self.assertEqual( managementgroup_get["children"][0]["id"], - "/providers/Microsoft.Management/managementGroups/testcligetgroup3") + "/providers/Microsoft.Management/managementGroups/testcligetgroup2") self.assertEqual( managementgroup_get["children"][0]["type"], "Microsoft.Management/managementGroups") self.assertEqual( managementgroup_get["children"][0]["displayName"], - "testcligetgroup3") + "testcligetgroup2") self.assertEqual( managementgroup_get["children"][0]["name"], - "testcligetgroup3") + "testcligetgroup2") + #@pytest.mark.custom_mark1 def test_show_managementgroup_with_expand_and_recurse(self): self.cmd('account management-group create --name testcligetgroup1') self.cmd('account management-group create --name testcligetgroup2 --parent /providers/Microsoft.Management/managementGroups/testcligetgroup1') @@ -158,7 +164,8 @@ def test_show_managementgroup_with_expand_and_recurse(self): self.assertEqual( managementgroup_get["children"][0]["children"][0]["name"], "testcligetgroup4") - + + #@pytest.mark.custom_mark1 def test_create_managementgroup(self): name = "testcligroup" displayName = "testcligroup" @@ -191,6 +198,7 @@ def test_create_managementgroup(self): managementgroup_create["type"], "Microsoft.Management/managementGroups") + #@pytest.mark.custom_mark1 def test_create_managementgroup_with_displayname(self): name = "testcligroup" displayName = "TestCliDisplayName" @@ -225,6 +233,7 @@ def test_create_managementgroup_with_displayname(self): managementgroup_create["type"], "Microsoft.Management/managementGroups") + #@pytest.mark.custom_mark def test_create_managementgroup_with_parentid(self): name = "testcligroupchild" displayName = "testcligroupchild" @@ -262,6 +271,7 @@ def test_create_managementgroup_with_parentid(self): managementgroup_create["type"], "Microsoft.Management/managementGroups") + #@pytest.mark.custom_mark1 def test_create_managementgroup_with_displayname_and_parentid(self): name = "testcligroupchild" displayName = "testcligroupchildDisplayName" @@ -301,6 +311,7 @@ def test_create_managementgroup_with_displayname_and_parentid(self): managementgroup_create["type"], "Microsoft.Management/managementGroups") + #@pytest.mark.custom_mark def test_update_managementgroup_with_displayname(self): name = "testcligroup" displayName = "testcligroupDisplayName" @@ -334,6 +345,7 @@ def test_update_managementgroup_with_displayname(self): managementgroup_update["type"], "Microsoft.Management/managementGroups") + #@pytest.mark.custom_mark1 def test_update_managementgroup_with_parentid(self): name = "testcligroupchild" displayName = "testcligroupchild" @@ -371,6 +383,7 @@ def test_update_managementgroup_with_parentid(self): managementgroup_update["type"], "Microsoft.Management/managementGroups") + #@pytest.mark.custom_mark1 def test_update_managementgroup_with_displayname_and_parentid(self): name = "testcligroupchild" displayName = "testcligroupchild" @@ -409,6 +422,7 @@ def test_update_managementgroup_with_displayname_and_parentid(self): managementgroup_update["type"], "Microsoft.Management/managementGroups") + #@pytest.mark.custom_mark1 def test_create_delete_group_managementgroup(self): self.cmd('account management-group create --name testcligroup') self.cmd('account management-group delete --name testcligroup') From d20bc4ecafe0de0f158000704952f7d4352ef8d1 Mon Sep 17 00:00:00 2001 From: Thomas Dolan Date: Fri, 21 Jan 2022 12:30:58 -0800 Subject: [PATCH 06/13] Re-ran tests in live mode under test_resource --- .../test_management_group_deployment.yaml | 27 +++++++++---------- .../test_management_group_level_what_if.yaml | 14 +++++----- ...test_resource_policy_management_group.yaml | 17 ++++++------ ...urce_policyexemption_management_group.yaml | 16 +++++------ ...t_resource_policyset_management_group.yaml | 16 +++++------ .../test_tenant_level_deployment.yaml | 20 +++++++------- .../recordings/test_tenant_level_what_if.yaml | 10 +++---- 7 files changed, 58 insertions(+), 62 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_management_group_deployment.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_management_group_deployment.yaml index 1cd5b9f7cc1..29efd98c944 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_management_group_deployment.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_management_group_deployment.yaml @@ -117,13 +117,13 @@ interactions: accept-language: - en-US method: PUT - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/azure-cli-management000002?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/azure-cli-management000002?api-version=2021-04-01 response: body: string: '{"id":"/providers/Microsoft.Management/managementGroups/azure-cli-management000002","type":"/providers/Microsoft.Management/managementGroups","name":"azure-cli-management000002","status":"NotStarted"}' headers: azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/azure-cli-management000002?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/azure-cli-management000002?api-version=2021-04-01 cache-control: - no-cache content-length: @@ -135,8 +135,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/azure-cli-management000002?api-version=2018-03-01-preview - pragma: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/azure-cli-management000002?api-version=2021-04-01 - no-cache request-id: - e05e4edb-50b4-465f-bc87-e9910646093e @@ -172,14 +171,13 @@ interactions: - python/3.10.0 (Windows-10-10.0.19043-SP0) msrest/0.6.21 msrest_azure/0.6.3 azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.31.0 method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/azure-cli-management000002?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/azure-cli-management000002?api-version=2021-04-01 response: body: string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/azure-cli-management000002","name":"azure-cli-management000002","status":"Running"}' headers: azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/azure-cli-management000002?api-version=2018-03-01-preview - cache-control: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/azure-cli-management000002?api-version=2021-04-01 - no-cache content-length: - '185' @@ -190,7 +188,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/azure-cli-management000002?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/azure-cli-management000002?api-version=2021-04-01 pragma: - no-cache request-id: @@ -227,7 +225,7 @@ interactions: - python/3.10.0 (Windows-10-10.0.19043-SP0) msrest/0.6.21 msrest_azure/0.6.3 azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.31.0 method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/azure-cli-management000002?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/azure-cli-management000002?api-version=2021-04-01 response: body: string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/azure-cli-management000002","name":"azure-cli-management000002","status":"Succeeded","properties":{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","displayName":"azure-cli-management000002","details":{"version":1,"updatedTime":"2021-12-27T08:43:32.0857849Z","updatedBy":"0b98dfb6-3b8c-40ae-a9c4-fd47d1741ef5"}}}' @@ -276,7 +274,7 @@ interactions: - python/3.10.0 (Windows-10-10.0.19043-SP0) msrest/0.6.21 msrest_azure/0.6.3 azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.31.0 method: GET - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/azure-cli-management000002?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/azure-cli-management000002?api-version=2021-04-01 response: body: string: '{"id":"/providers/Microsoft.Management/managementGroups/azure-cli-management000002","type":"/providers/Microsoft.Management/managementGroups","name":"azure-cli-management000002","properties":{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","displayName":"azure-cli-management000002","details":{"version":1,"updatedTime":"2021-12-27T08:43:32.0857849Z","updatedBy":"0b98dfb6-3b8c-40ae-a9c4-fd47d1741ef5","parent":{"id":"/providers/Microsoft.Management/managementGroups/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","name":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","displayName":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"}}}}' @@ -1559,13 +1557,13 @@ interactions: accept-language: - en-US method: DELETE - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/azure-cli-management000002?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/azure-cli-management000002?api-version=2021-04-01 response: body: string: '{"id":"/providers/Microsoft.Management/managementGroups/azure-cli-management000002","type":"/providers/Microsoft.Management/managementGroups","name":"azure-cli-management000002","status":"NotStarted"}' headers: azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/azure-cli-management000002?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/azure-cli-management000002?api-version=2021-04-01 cache-control: - no-cache content-length: @@ -1577,8 +1575,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/azure-cli-management000002?api-version=2018-03-01-preview - pragma: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/azure-cli-management000002?api-version=2021-04-01 - no-cache request-id: - 6646cdfd-32f8-4504-a5a0-0e20c615440e @@ -1614,7 +1611,7 @@ interactions: - python/3.10.0 (Windows-10-10.0.19043-SP0) msrest/0.6.21 msrest_azure/0.6.3 azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.31.0 method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/azure-cli-management000002?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/azure-cli-management000002?api-version=2021-04-01 response: body: string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/azure-cli-management000002","name":"azure-cli-management000002","status":"Succeeded"}' diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_management_group_level_what_if.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_management_group_level_what_if.yaml index e116b31c35c..56f9cbbce44 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_management_group_level_what_if.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_management_group_level_what_if.yaml @@ -117,7 +117,7 @@ interactions: accept-language: - en-US method: PUT - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/azure-cli-management000002?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/azure-cli-management000002?api-version=2021-04-01 response: body: string: '{"id":"/providers/Microsoft.Management/managementGroups/azure-cli-management000002","type":"/providers/Microsoft.Management/managementGroups","name":"azure-cli-management000002","status":"NotStarted"}' @@ -133,7 +133,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/azure-cli-management000002?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/azure-cli-management000002?api-version=2021-04-01 pragma: - no-cache request-id: @@ -168,7 +168,7 @@ interactions: - python/3.8.3 (Windows-10-10.0.18362-SP0) msrest/0.6.21 msrest_azure/0.6.3 azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.26.0 method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/azure-cli-management000002?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/azure-cli-management000002?api-version=2021-04-01 response: body: string: '{"id":"/providers/Microsoft.Management/managementGroups/azure-cli-management000002","type":"/providers/Microsoft.Management/managementGroups","name":"azure-cli-management000002","status":"Running"}' @@ -184,7 +184,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/azure-cli-management000002?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/azure-cli-management000002?api-version=2021-04-01 pragma: - no-cache request-id: @@ -215,7 +215,7 @@ interactions: - python/3.8.3 (Windows-10-10.0.18362-SP0) msrest/0.6.21 msrest_azure/0.6.3 azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.26.0 method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/azure-cli-management000002?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/azure-cli-management000002?api-version=2021-04-01 response: body: string: '{"id":"/providers/Microsoft.Management/managementGroups/azure-cli-management000002","type":"/providers/Microsoft.Management/managementGroups","name":"azure-cli-management000002","status":"Running"}' @@ -231,7 +231,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/azure-cli-management000002?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/azure-cli-management000002?api-version=2021-04-01 pragma: - no-cache request-id: @@ -262,7 +262,7 @@ interactions: - python/3.8.3 (Windows-10-10.0.18362-SP0) msrest/0.6.21 msrest_azure/0.6.3 azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.26.0 method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/azure-cli-management000002?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/azure-cli-management000002?api-version=2021-04-01 response: body: string: '{"id":"/providers/Microsoft.Management/managementGroups/azure-cli-management000002","type":"/providers/Microsoft.Management/managementGroups","name":"azure-cli-management000002","status":"Succeeded","properties":{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","displayName":"azure-cli-management000002","details":{"version":1,"updatedTime":"2021-07-07T09:31:07.9388988Z","updatedBy":"81ea823c-a4c0-4814-a9ae-83fbfc093178","parent":{"id":"/providers/Microsoft.Management/managementGroups/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","name":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","displayName":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"}}}}' diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_resource_policy_management_group.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_resource_policy_management_group.yaml index 84f292d736d..a7535b04a02 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_resource_policy_management_group.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_resource_policy_management_group.yaml @@ -117,7 +117,7 @@ interactions: accept-language: - en-US method: PUT - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/cli-test-mgmt-group000002?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/cli-test-mgmt-group000002?api-version=2021-04-01 response: body: string: '{"id":"/providers/Microsoft.Management/managementGroups/cli-test-mgmt-group000002","type":"/providers/Microsoft.Management/managementGroups","name":"cli-test-mgmt-group000002","status":"NotStarted"}' @@ -133,7 +133,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/cli-test-mgmt-group000002?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/cli-test-mgmt-group000002?api-version=2021-04-01 pragma: - no-cache request-id: @@ -170,7 +170,7 @@ interactions: - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.30.0 method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/cli-test-mgmt-group000002?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/cli-test-mgmt-group000002?api-version=2021-04-01 response: body: string: '{"id":"/providers/Microsoft.Management/managementGroups/cli-test-mgmt-group000002","type":"/providers/Microsoft.Management/managementGroups","name":"cli-test-mgmt-group000002","status":"Running"}' @@ -186,7 +186,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/cli-test-mgmt-group000002?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/cli-test-mgmt-group000002?api-version=2021-04-01 pragma: - no-cache request-id: @@ -219,7 +219,7 @@ interactions: - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.30.0 method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/cli-test-mgmt-group000002?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/cli-test-mgmt-group000002?api-version=2021-04-01 response: body: string: '{"id":"/providers/Microsoft.Management/managementGroups/cli-test-mgmt-group000002","type":"/providers/Microsoft.Management/managementGroups","name":"cli-test-mgmt-group000002","status":"Succeeded","properties":{"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","displayName":"cli-test-mgmt-group000002","details":{"version":1,"updatedTime":"2021-11-23T06:21:32.6457025Z","updatedBy":"0dc80135-ae53-4da3-8695-220a2d93aad8","parent":{"id":"/providers/Microsoft.Management/managementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47","name":"72f988bf-86f1-41af-91ab-2d7cd011db47","displayName":"72f988bf-86f1-41af-91ab-2d7cd011db47"}}}}' @@ -29991,7 +29991,7 @@ interactions: accept-language: - en-US method: DELETE - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/cli-test-mgmt-group000002?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/cli-test-mgmt-group000002?api-version=2021-04-01 response: body: string: '{"id":"/providers/Microsoft.Management/managementGroups/cli-test-mgmt-group000002","type":"/providers/Microsoft.Management/managementGroups","name":"cli-test-mgmt-group000002","status":"NotStarted"}' @@ -30007,8 +30007,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/cli-test-mgmt-group000002?api-version=2018-03-01-preview - pragma: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/cli-test-mgmt-group000002?api-version=2021-04-01 - no-cache request-id: - 35e93448-5464-4433-bf95-2ffce95fa75e @@ -30044,7 +30043,7 @@ interactions: - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.30.0 method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/cli-test-mgmt-group000002?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/cli-test-mgmt-group000002?api-version=2021-04-01,%20no-cache response: body: string: '{"id":"/providers/Microsoft.Management/managementGroups/cli-test-mgmt-group000002","type":"/providers/Microsoft.Management/managementGroups","name":"cli-test-mgmt-group000002","status":"Succeeded"}' diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_resource_policyexemption_management_group.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_resource_policyexemption_management_group.yaml index d16b489af94..1e6f65fe075 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_resource_policyexemption_management_group.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_resource_policyexemption_management_group.yaml @@ -117,7 +117,7 @@ interactions: accept-language: - en-US method: PUT - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/cli-test-mgmt-group000002?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/cli-test-mgmt-group000002?api-version=2021-04-01 response: body: string: '{"id":"/providers/Microsoft.Management/managementGroups/cli-test-mgmt-group000002","type":"/providers/Microsoft.Management/managementGroups","name":"cli-test-mgmt-group000002","status":"NotStarted"}' @@ -133,7 +133,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/cli-test-mgmt-group000002?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/cli-test-mgmt-group000002?api-version=2021-04-01 pragma: - no-cache request-id: @@ -170,7 +170,7 @@ interactions: - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.30.0 method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/cli-test-mgmt-group000002?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/cli-test-mgmt-group000002?api-version=2021-04-01 response: body: string: '{"id":"/providers/Microsoft.Management/managementGroups/cli-test-mgmt-group000002","type":"/providers/Microsoft.Management/managementGroups","name":"cli-test-mgmt-group000002","status":"Running"}' @@ -186,7 +186,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/cli-test-mgmt-group000002?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/cli-test-mgmt-group000002?api-version=2021-04-01 pragma: - no-cache request-id: @@ -219,7 +219,7 @@ interactions: - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.30.0 method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/cli-test-mgmt-group000002?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/cli-test-mgmt-group000002?api-version=2021-04-01 response: body: string: '{"id":"/providers/Microsoft.Management/managementGroups/cli-test-mgmt-group000002","type":"/providers/Microsoft.Management/managementGroups","name":"cli-test-mgmt-group000002","status":"Succeeded","properties":{"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","displayName":"cli-test-mgmt-group000002","details":{"version":1,"updatedTime":"2021-11-23T04:14:50.1076038Z","updatedBy":"0dc80135-ae53-4da3-8695-220a2d93aad8","parent":{"id":"/providers/Microsoft.Management/managementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47","name":"72f988bf-86f1-41af-91ab-2d7cd011db47","displayName":"72f988bf-86f1-41af-91ab-2d7cd011db47"}}}}' @@ -43190,7 +43190,7 @@ interactions: accept-language: - en-US method: DELETE - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/cli-test-mgmt-group000002?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/cli-test-mgmt-group000002?api-version=2021-04-01 response: body: string: '{"id":"/providers/Microsoft.Management/managementGroups/cli-test-mgmt-group000002","type":"/providers/Microsoft.Management/managementGroups","name":"cli-test-mgmt-group000002","status":"NotStarted"}' @@ -43206,7 +43206,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/cli-test-mgmt-group000002?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/cli-test-mgmt-group000002?api-version=2021-04-01 pragma: - no-cache request-id: @@ -43243,7 +43243,7 @@ interactions: - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.30.0 method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/cli-test-mgmt-group000002?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/cli-test-mgmt-group000002?api-version=2021-04-01 response: body: string: '{"id":"/providers/Microsoft.Management/managementGroups/cli-test-mgmt-group000002","type":"/providers/Microsoft.Management/managementGroups","name":"cli-test-mgmt-group000002","status":"Succeeded"}' diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_resource_policyset_management_group.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_resource_policyset_management_group.yaml index 630ae8a4d19..b14a8273f80 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_resource_policyset_management_group.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_resource_policyset_management_group.yaml @@ -117,7 +117,7 @@ interactions: accept-language: - en-US method: PUT - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/cli-test-mgmt-group000002?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/cli-test-mgmt-group000002?api-version=2021-04-01 response: body: string: '{"id":"/providers/Microsoft.Management/managementGroups/cli-test-mgmt-group000002","type":"/providers/Microsoft.Management/managementGroups","name":"cli-test-mgmt-group000002","status":"NotStarted"}' @@ -133,7 +133,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/cli-test-mgmt-group000002?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/cli-test-mgmt-group000002?api-version=2021-04-01 pragma: - no-cache request-id: @@ -170,7 +170,7 @@ interactions: - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.30.0 method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/cli-test-mgmt-group000002?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/cli-test-mgmt-group000002?api-version=2021-04-01 response: body: string: '{"id":"/providers/Microsoft.Management/managementGroups/cli-test-mgmt-group000002","type":"/providers/Microsoft.Management/managementGroups","name":"cli-test-mgmt-group000002","status":"Running"}' @@ -186,7 +186,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/cli-test-mgmt-group000002?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/cli-test-mgmt-group000002?api-version=2021-04-01 pragma: - no-cache request-id: @@ -219,7 +219,7 @@ interactions: - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.30.0 method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/cli-test-mgmt-group000002?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/cli-test-mgmt-group000002?api-version=2021-04-01 response: body: string: '{"id":"/providers/Microsoft.Management/managementGroups/cli-test-mgmt-group000002","type":"/providers/Microsoft.Management/managementGroups","name":"cli-test-mgmt-group000002","status":"Succeeded","properties":{"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","displayName":"cli-test-mgmt-group000002","details":{"version":1,"updatedTime":"2021-11-23T05:57:36.8353146Z","updatedBy":"0dc80135-ae53-4da3-8695-220a2d93aad8","parent":{"id":"/providers/Microsoft.Management/managementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47","name":"72f988bf-86f1-41af-91ab-2d7cd011db47","displayName":"72f988bf-86f1-41af-91ab-2d7cd011db47"}}}}' @@ -49308,7 +49308,7 @@ interactions: accept-language: - en-US method: DELETE - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/cli-test-mgmt-group000002?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/cli-test-mgmt-group000002?api-version=2021-04-01 response: body: string: '{"id":"/providers/Microsoft.Management/managementGroups/cli-test-mgmt-group000002","type":"/providers/Microsoft.Management/managementGroups","name":"cli-test-mgmt-group000002","status":"NotStarted"}' @@ -49324,7 +49324,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/cli-test-mgmt-group000002?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/cli-test-mgmt-group000002?api-version=2021-04-01 pragma: - no-cache request-id: @@ -49361,7 +49361,7 @@ interactions: - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.30.0 method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/cli-test-mgmt-group000002?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/cli-test-mgmt-group000002?api-version=2021-04-01 response: body: string: '{"id":"/providers/Microsoft.Management/managementGroups/cli-test-mgmt-group000002","type":"/providers/Microsoft.Management/managementGroups","name":"cli-test-mgmt-group000002","status":"Succeeded"}' diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_tenant_level_deployment.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_tenant_level_deployment.yaml index 26a51c813a5..c85357bbf99 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_tenant_level_deployment.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_tenant_level_deployment.yaml @@ -117,7 +117,7 @@ interactions: accept-language: - en-US method: PUT - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/azure-cli-management-group000002?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/azure-cli-management-group000002?api-version=2021-04-01 response: body: string: '{"id":"/providers/Microsoft.Management/managementGroups/azure-cli-management-group000002","type":"/providers/Microsoft.Management/managementGroups","name":"azure-cli-management-group000002","status":"NotStarted"}' @@ -133,7 +133,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/azure-cli-management-group000002?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/azure-cli-management-group000002?api-version=2021-04-01 pragma: - no-cache request-id: @@ -168,7 +168,7 @@ interactions: - python/3.8.1 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.26.0 method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/azure-cli-management-group000002?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/azure-cli-management-group000002?api-version=2021-04-01 response: body: string: '{"id":"/providers/Microsoft.Management/managementGroups/azure-cli-management-group000002","type":"/providers/Microsoft.Management/managementGroups","name":"azure-cli-management-group000002","status":"Running"}' @@ -184,7 +184,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/azure-cli-management-group000002?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/azure-cli-management-group000002?api-version=2021-04-01 pragma: - no-cache request-id: @@ -215,7 +215,7 @@ interactions: - python/3.8.1 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.26.0 method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/azure-cli-management-group000002?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/azure-cli-management-group000002?api-version=2021-04-01 response: body: string: '{"id":"/providers/Microsoft.Management/managementGroups/azure-cli-management-group000002","type":"/providers/Microsoft.Management/managementGroups","name":"azure-cli-management-group000002","status":"Running"}' @@ -231,7 +231,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/azure-cli-management-group000002?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/azure-cli-management-group000002?api-version=2021-04-01 pragma: - no-cache request-id: @@ -262,7 +262,7 @@ interactions: - python/3.8.1 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.26.0 method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/azure-cli-management-group000002?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/azure-cli-management-group000002?api-version=2021-04-01 response: body: string: '{"id":"/providers/Microsoft.Management/managementGroups/azure-cli-management-group000002","type":"/providers/Microsoft.Management/managementGroups","name":"azure-cli-management-group000002","status":"Succeeded","properties":{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","displayName":"azure-cli-management-group000002","details":{"version":1,"updatedTime":"2021-07-12T07:11:33.6401018Z","updatedBy":"9ac534f1-d577-4034-a32d-48de400dacbf","parent":{"id":"/providers/Microsoft.Management/managementGroups/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","name":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","displayName":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"}}}}' @@ -1443,7 +1443,7 @@ interactions: accept-language: - en-US method: DELETE - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/azure-cli-management-group000002?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/azure-cli-management-group000002?api-version=2021-04-01 response: body: string: '{"id":"/providers/Microsoft.Management/managementGroups/azure-cli-management-group000002","type":"/providers/Microsoft.Management/managementGroups","name":"azure-cli-management-group000002","status":"NotStarted"}' @@ -1459,7 +1459,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/azure-cli-management-group000002?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/azure-cli-management-group000002?api-version=2021-04-01 pragma: - no-cache request-id: @@ -1494,7 +1494,7 @@ interactions: - python/3.8.1 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.26.0 method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/azure-cli-management-group000002?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/azure-cli-management-group000002?api-version=2021-04-01 response: body: string: '{"id":"/providers/Microsoft.Management/managementGroups/azure-cli-management-group000002","type":"/providers/Microsoft.Management/managementGroups","name":"azure-cli-management-group000002","status":"Succeeded"}' diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_tenant_level_what_if.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_tenant_level_what_if.yaml index db799d266a0..37d7a6b3280 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_tenant_level_what_if.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_tenant_level_what_if.yaml @@ -117,7 +117,7 @@ interactions: accept-language: - en-US method: PUT - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/azure-cli-management-group000002?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/azure-cli-management-group000002?api-version=2021-04-01 response: body: string: '{"id":"/providers/Microsoft.Management/managementGroups/azure-cli-management-group000002","type":"/providers/Microsoft.Management/managementGroups","name":"azure-cli-management-group000002","status":"NotStarted"}' @@ -133,7 +133,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/azure-cli-management-group000002?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/azure-cli-management-group000002?api-version=2021-04-01 pragma: - no-cache request-id: @@ -168,7 +168,7 @@ interactions: - python/3.8.1 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.26.0 method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/azure-cli-management-group000002?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/azure-cli-management-group000002?api-version=2021-04-01 response: body: string: '{"id":"/providers/Microsoft.Management/managementGroups/azure-cli-management-group000002","type":"/providers/Microsoft.Management/managementGroups","name":"azure-cli-management-group000002","status":"Running"}' @@ -184,7 +184,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/azure-cli-management-group000002?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/azure-cli-management-group000002?api-version=2021-04-01 pragma: - no-cache request-id: @@ -215,7 +215,7 @@ interactions: - python/3.8.1 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.26.0 method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/azure-cli-management-group000002?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/azure-cli-management-group000002?api-version=2021-04-01 response: body: string: '{"id":"/providers/Microsoft.Management/managementGroups/azure-cli-management-group000002","type":"/providers/Microsoft.Management/managementGroups","name":"azure-cli-management-group000002","status":"Succeeded","properties":{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","displayName":"azure-cli-management-group000002","details":{"version":1,"updatedTime":"2021-07-12T06:54:20.3052236Z","updatedBy":"9ac534f1-d577-4034-a32d-48de400dacbf","parent":{"id":"/providers/Microsoft.Management/managementGroups/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","name":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","displayName":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"}}}}' From 3d88232c8e4c708f8d7a53af2a8745bdd2c0fefc Mon Sep 17 00:00:00 2001 From: Thomas Dolan Date: Fri, 21 Jan 2022 16:40:32 -0800 Subject: [PATCH 07/13] Updated management-group so that it now passes the style and linter checks --- .../resource/_exception_handler.py | 2 +- .../azure/cli/command_modules/resource/_params.py | 2 +- .../cli/command_modules/resource/commands.py | 15 --------------- .../azure/cli/command_modules/resource/custom.py | 1 + 4 files changed, 3 insertions(+), 17 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/resource/_exception_handler.py b/src/azure-cli/azure/cli/command_modules/resource/_exception_handler.py index 592bf2bf53b..b5fc9eb333f 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/_exception_handler.py +++ b/src/azure-cli/azure/cli/command_modules/resource/_exception_handler.py @@ -8,7 +8,7 @@ def managementgroups_exception_handler(ex): from azure.core.exceptions import HttpResponseError - if isinstance(ex, ErrorResponseException): + if isinstance(ex, HttpResponseError): if ex.error.error: raise CLIError(ex.error.error) raise CLIError(ex.error) diff --git a/src/azure-cli/azure/cli/command_modules/resource/_params.py b/src/azure-cli/azure/cli/command_modules/resource/_params.py index d4a58d561c8..c272693a0b6 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/_params.py +++ b/src/azure-cli/azure/cli/command_modules/resource/_params.py @@ -589,7 +589,7 @@ def load_arguments(self, _): with self.argument_context('account management-group update') as c: c.argument('display_name', options_list=['--display-name', '-d']) - c.argument('parent_id', options_list=['--parent', '-p']) + c.argument('parent', options_list=['--parent', '-p']) with self.argument_context('ts') as c: c.argument('name', options_list=['--name', '-n'], help='The name of the template spec.') diff --git a/src/azure-cli/azure/cli/command_modules/resource/commands.py b/src/azure-cli/azure/cli/command_modules/resource/commands.py index 040454224a8..e9200d569ec 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/commands.py +++ b/src/azure-cli/azure/cli/command_modules/resource/commands.py @@ -171,12 +171,6 @@ def load_command_table(self, _): exception_handler=managementgroups_exception_handler ) - resource_managementgroups_update_type = CliCommandType( - operations_tmpl='azure.cli.command_modules.resource.custom#{}', - client_factory=cf_management_groups, - exception_handler=managementgroups_exception_handler - ) - resource_templatespecs_sdk = CliCommandType( operations_tmpl='azure.mgmt.resource.templatespecs.operations#ResourceLinksOperations.{}', client_factory=cf_resource_templatespecs, @@ -460,15 +454,6 @@ def load_command_table(self, _): g.custom_command('create', 'cli_managementgroups_group_create') g.custom_command('delete', 'cli_managementgroups_group_delete') g.custom_command('update', 'cli_managementgroups_group_create') - #g.generic_update_command( - #'update', - #getter_name='cli_managementgroups_group_update_get', - #getter_type=resource_managementgroups_update_type, - #setter_name='cli_managementgroups_group_update_set', - #setter_type=resource_managementgroups_update_type, - #custom_func_name='cli_managementgroups_group_update_custom_func', - #custom_func_type=resource_managementgroups_update_type, - #exception_handler=managementgroups_exception_handler) with self.command_group('account management-group subscription', resource_managementgroups_subscriptions_sdk, client_factory=cf_management_group_subscriptions) as g: g.custom_command('add', 'cli_managementgroups_subscription_add') diff --git a/src/azure-cli/azure/cli/command_modules/resource/custom.py b/src/azure-cli/azure/cli/command_modules/resource/custom.py index 5f9d6b34a63..8533bc23271 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/custom.py +++ b/src/azure-cli/azure/cli/command_modules/resource/custom.py @@ -2884,6 +2884,7 @@ def cli_managementgroups_group_create( details=create_mgmt_grp_details) return client.begin_create_or_update(group_name, create_mgmt_grp_request) + def cli_managementgroups_group_update_custom_func( instance, display_name=None, From cbd0c7e54a2e8a0198c198348d95f8787b5344a9 Mon Sep 17 00:00:00 2001 From: Thomas Dolan Date: Tue, 1 Feb 2022 18:27:56 -0800 Subject: [PATCH 08/13] Added new commands from the managementgroups api --- .../resource/_client_factory.py | 12 + .../cli/command_modules/resource/_help.py | 176 ++++ .../cli/command_modules/resource/_params.py | 10 +- .../cli/command_modules/resource/commands.py | 68 +- .../cli/command_modules/resource/custom.py | 89 +- ...test_add_remove_subscription_under_mg.yaml | 620 ++++++++++++ .../test_managementgroup_get_entities.yaml | 577 +++++++++++ ...ementgroup_get_tenant_backfill_status.yaml | 54 ++ ...entgroup_hierarchysetting_create_auth.yaml | 212 ++++ ...up_hierarchysetting_create_default_mg.yaml | 663 +++++++++++++ ...erarchysetting_create_default_mg_auth.yaml | 594 ++++++++++++ ...tgroup_hierarchysetting_create_delete.yaml | 106 ++ ...ementgroup_hierarchysetting_show_auth.yaml | 156 +++ ...roup_hierarchysetting_show_default_mg.yaml | 663 +++++++++++++ ...up_hierarchysetting_update_default_mg.yaml | 918 ++++++++++++++++++ ...est_managementgroup_name_availability.yaml | 734 ++++++++++++++ ...est_managementgroup_show_subscription.yaml | 673 +++++++++++++ ...ementgroup_show_subscription_under_mg.yaml | 517 ++++++++++ ...managementgroup_start_tenant_backfill.yaml | 54 ++ .../tests/latest/test_managmentgroups.py | 285 +++++- 20 files changed, 7161 insertions(+), 20 deletions(-) create mode 100644 src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_add_remove_subscription_under_mg.yaml create mode 100644 src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_managementgroup_get_entities.yaml create mode 100644 src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_managementgroup_get_tenant_backfill_status.yaml create mode 100644 src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_managementgroup_hierarchysetting_create_auth.yaml create mode 100644 src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_managementgroup_hierarchysetting_create_default_mg.yaml create mode 100644 src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_managementgroup_hierarchysetting_create_default_mg_auth.yaml create mode 100644 src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_managementgroup_hierarchysetting_create_delete.yaml create mode 100644 src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_managementgroup_hierarchysetting_show_auth.yaml create mode 100644 src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_managementgroup_hierarchysetting_show_default_mg.yaml create mode 100644 src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_managementgroup_hierarchysetting_update_default_mg.yaml create mode 100644 src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_managementgroup_name_availability.yaml create mode 100644 src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_managementgroup_show_subscription.yaml create mode 100644 src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_managementgroup_show_subscription_under_mg.yaml create mode 100644 src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_managementgroup_start_tenant_backfill.yaml diff --git a/src/azure-cli/azure/cli/command_modules/resource/_client_factory.py b/src/azure-cli/azure/cli/command_modules/resource/_client_factory.py index a82bcefd4c1..9a1a4a987f0 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/_client_factory.py +++ b/src/azure-cli/azure/cli/command_modules/resource/_client_factory.py @@ -128,6 +128,10 @@ def cf_resource_managedappdefinitions(cli_ctx, _): return _resource_managedapps_client_factory(cli_ctx).application_definitions +def cf_management_groups_mixin(cli_ctx, _): + return _resource_managementgroups_client_factory(cli_ctx) + + def cf_management_groups(cli_ctx, _): return _resource_managementgroups_client_factory(cli_ctx).management_groups @@ -136,5 +140,13 @@ def cf_management_group_subscriptions(cli_ctx, _): return _resource_managementgroups_client_factory(cli_ctx).management_group_subscriptions +def cf_management_group_entities(cli_ctx, _): + return _resource_managementgroups_client_factory(cli_ctx).entities + + +def cf_hierarchy_settings(cli_ctx, _): + return _resource_managementgroups_client_factory(cli_ctx).hierarchy_settings + + def cf_resource_templatespecs(cli_ctx, _): return _resource_templatespecs_client_factory(cli_ctx).template_specs diff --git a/src/azure-cli/azure/cli/command_modules/resource/_help.py b/src/azure-cli/azure/cli/command_modules/resource/_help.py index 8fdf0392acd..189562551b4 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/_help.py +++ b/src/azure-cli/azure/cli/command_modules/resource/_help.py @@ -62,6 +62,45 @@ short-summary: Manage Azure Management Groups. """ +helps['account management-group tenant-backfill'] = """ +type: group +short-summary: Backfill Tenant Subscription Operations for Management Groups +""" + +helps['account management-group tenant-backfill get'] = """ +type: command +short-summary: Get the backfill status for a tenant. +long-summary: Get the backfill status for a tenant. +examples: + - name: Get the backfill status for a tenant. + text: > + az account management-group tenant-backfill get +""" + +helps['account management-group tenant-backfill start'] = """ +type: command +short-summary: Start backfilling subscriptions for a tenant. +long-summary: Start backfilling subscriptions for a tenant. +examples: + - name: Start backfilling subscriptions for a tenant. + text: > + az account management-group tenant-backfill start +""" + +helps['account management-group check-name-availability'] = """ +type: command +short-summary: Check if a Management Group Name is Valid. +long-summary: Check if a Management Group Name is Valid.. +parameters: + - name: --name -n + type: string + short-summary: Name of the management group. +examples: + - name: Create a new management group. + text: > + az account management-group check-name-availability --name GroupName +""" + helps['account management-group create'] = """ type: command short-summary: Create a new management group. @@ -163,6 +202,52 @@ az account management-group subscription add --name GroupName --subscription Subscription """ +helps['account management-group subscription show'] = """ +type: command +short-summary: Show the details of a subscription under a known management group. +long-summary: Show the details of a subscription under a known management group. +parameters: + - name: --name -n + type: string + short-summary: Name of the management group. + - name: --subscription -s + type: string + short-summary: Subscription Id or Name +examples: + - name: Show the details of a subscription under a known management group. + text: > + az account management-group subscription show --name GroupName --subscription Subscription +""" + +helps['account management-group subscription show-sub-under-mg'] = """ +type: command +short-summary: Get the subscription under a management group. +long-summary: Get the subscription under a management group. +parameters: + - name: --name -n + type: string + short-summary: Name of the management group. +examples: + - name: Get the subscription under a management group. + text: > + az account management-group subscription show-sub-under-mg --name GroupName +""" + +helps['account management-group entities'] = """ +type: group +short-summary: Entity operations (Management Group and Subscriptions) for Management Groups. +""" + +helps['account management-group entities list'] = """ +type: command +short-summary: List all entities for the authenticated user. +long-summary: List all entities for the authenticated user. +examples: + - name: List all entities for the authenticated user. + text: > + az account management-group entities list +""" + helps['account management-group subscription remove'] = """ type: command short-summary: Remove an existing subscription from a management group. @@ -206,6 +291,97 @@ az account management-group update --name GroupName --display-name DisplayName --parent ParentId/ParentName """ +helps['account management-group hierarchy-settings'] = """ +type: group +short-summary: Provides operations for hierarchy settings defined at the management group level. Settings can only be set on the root Management Group of the hierarchy. +""" + +helps['account management-group hierarchy-settings create'] = """ +type: command +short-summary: Creates hierarchy settings defined at the Management Group level. +long-summary: Creates hierarchy settings defined at the Management Group level. +parameters: + - name: --name -n + type: string + short-summary: Name of the management group. + - name: --default-management-group -m + type: string + short-summary: Sets the default Management Group under which new subscriptions get added in this tenant. Default setting is the Root Management Group. + - name: --require-authorization-for-group-creation -r + type: boolean + short-summary: Indicates whether RBAC access is required upon group creation under the root Management Group. True means user will require Microsoft.Management/managementGroups/write action on the root Management Group. Default setting is false. +examples: + - name: Create hierarchy settings defined at the Management Group level. + text: > + az account management-group hierarchy-settings create --name GroupName + - name: Sets the default Management Group new Subscriptions get placed under. + text: > + az account management-group hierarchy-settings create --name GroupName -m /providers/Microsoft.Management/managementGroups/DefaultGroup + - name: Require user to have Microsoft.Management/managementGroups/write access on the Root to create new Management Groups under the Root. + text: > + az account management-group hierarchy-settings create --name GroupName -r True + - name: Updates both hierarchy settings. + text: > + az account management-group hierarchy-settings create --name GroupName -m /providers/Microsoft.Management/managementGroups/DefaultGroup -r True +""" + +helps['account management-group hierarchy-settings list'] = """ +type: command +short-summary: Gets all the hierarchy settings defined at the Management Group level. +long-summary: Gets all the hierarchy settings defined at the Management Group level. +parameters: + - name: --name -n + type: string + short-summary: Name of the management group. +examples: + - name: Gets all hierarchy settings defined at the Management Group level. + text: > + az account management-group hierarchy-settings list --name GroupName +""" + +helps['account management-group hierarchy-settings delete'] = """ +type: command +short-summary: Deletes the hierarchy settings defined at the Management Group level. +long-summary: Deletes the hierarchy settings defined at the Management Group level. +parameters: + - name: --name -n + type: string + short-summary: Name of the management group. +examples: + - name: Deletes all hierarchy settings defined at the Management Group level. + text: > + az account management-group hierarchy-settings delete --name GroupName +""" + +helps['account management-group hierarchy-settings update'] = """ +type: command +short-summary: Updates the hierarchy settings defined at the Management Group level. +long-summary: Updates the hierarchy settings defined at the Management Group level. +parameters: + - name: --name -n + type: string + short-summary: Name of the management group. + - name: --default-management-group -m + type: string + short-summary: Sets the default Management Group under which new subscriptions get added in this tenant. Default setting is the Root Management Group. + - name: --require-authorization-for-group-creation -r + type: boolean + short-summary: Indicates whether RBAC access is required upon group creation under the root Management Group. True means user will require Microsoft.Management/managementGroups/write action on the root Management Group. Default setting is false. +examples: + - name: Create hierarchy settings defined at the Management Group level. + text: > + az account management-group hierarchy-settings update --name GroupName + - name: Sets the default Management Group new Subscriptions get placed under. + text: > + az account management-group hierarchy-settings update --name GroupName -m /providers/Microsoft.Management/managementGroups/DefaultGroup + - name: Require user to have Microsoft.Management/managementGroups/write access on the Root to create new Management Groups under the Root. + text: > + az account management-group hierarchy-settings update --name GroupName -r True + - name: Updates both hierarchy settings. + text: > + az account management-group hierarchy-settings update --name GroupName -m /providers/Microsoft.Management/managementGroups/DefaultGroup -r True +""" + helps['deployment'] = """ type: group short-summary: Manage Azure Resource Manager template deployment at subscription scope. diff --git a/src/azure-cli/azure/cli/command_modules/resource/_params.py b/src/azure-cli/azure/cli/command_modules/resource/_params.py index c272693a0b6..d72f0c4859f 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/_params.py +++ b/src/azure-cli/azure/cli/command_modules/resource/_params.py @@ -589,7 +589,15 @@ def load_arguments(self, _): with self.argument_context('account management-group update') as c: c.argument('display_name', options_list=['--display-name', '-d']) - c.argument('parent', options_list=['--parent', '-p']) + c.argument('parent_id', options_list=['--parent', '-p']) + + with self.argument_context('account management-group hierarchy-settings create') as c: + c.argument('default_management_group', options_list=['--default-management-group', '-m']) + c.argument('require_authorization_for_group_creation', options_list=['--require-authorization-for-group-creation', '-r']) + + with self.argument_context('account management-group hierarchy-settings update') as c: + c.argument('default_management_group', options_list=['--default-management-group', '-m']) + c.argument('require_authorization_for_group_creation', options_list=['--require-authorization-for-group-creation', '-r']) with self.argument_context('ts') as c: c.argument('name', options_list=['--name', '-n'], help='The name of the template spec.') diff --git a/src/azure-cli/azure/cli/command_modules/resource/commands.py b/src/azure-cli/azure/cli/command_modules/resource/commands.py index e9200d569ec..00e671576f2 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/commands.py +++ b/src/azure-cli/azure/cli/command_modules/resource/commands.py @@ -16,7 +16,7 @@ from azure.cli.command_modules.resource._client_factory import ( cf_resource_groups, cf_providers, cf_features, cf_feature_registrations, cf_tags, cf_deployments, cf_deployment_operations, cf_policy_definitions, cf_policy_set_definitions, cf_policy_exemptions, cf_resource_links, - cf_resource_deploymentscripts, cf_resource_managedapplications, cf_resource_managedappdefinitions, cf_management_groups, cf_management_group_subscriptions, cf_resource_templatespecs) + cf_resource_deploymentscripts, cf_resource_managedapplications, cf_resource_managedappdefinitions, cf_management_groups, cf_management_groups_mixin, cf_management_group_subscriptions, cf_management_group_entities, cf_hierarchy_settings, cf_resource_templatespecs) from azure.cli.command_modules.resource._validators import ( process_deployment_create_namespace, process_ts_create_or_update_namespace, _validate_template_spec, _validate_template_spec_out, process_assign_identity_namespace, process_assignment_create_namespace) @@ -159,6 +159,12 @@ def load_command_table(self, _): resource_type=ResourceType.MGMT_RESOURCE_RESOURCES ) + resource_managementgroups_mixin_sdk = CliCommandType( + operations_tmpl='azure.mgmt.managementgroups.operations#ManagementGroupsAPIOperationsMixin.{}', + client_factory=cf_management_groups_mixin, + exception_handler=managementgroups_exception_handler + ) + resource_managementgroups_sdk = CliCommandType( operations_tmpl='azure.mgmt.managementgroups.operations#ManagementGroupsOperations.{}', client_factory=cf_management_groups, @@ -171,6 +177,30 @@ def load_command_table(self, _): exception_handler=managementgroups_exception_handler ) + resource_hierarchy_settings_sdk = CliCommandType( + operations_tmpl='azure.mgmt.managementgroups.operations#HierarchySettingsOperations.{}', + client_factory=cf_hierarchy_settings, + exception_handler=managementgroups_exception_handler + ) + + resource_managementgroups_entities_sdk = CliCommandType( + operations_tmpl='azure.mgmt.managementgroups.operations#EntitiesOperations.{}', + client_factory=cf_management_group_entities, + exception_handler=managementgroups_exception_handler + ) + + resource_managementgroups_update_type = CliCommandType( + operations_tmpl='azure.cli.command_modules.resource.custom#{}', + client_factory=cf_management_groups, + exception_handler=managementgroups_exception_handler + ) + + resource_hierarchysettings_update_type = CliCommandType( + operations_tmpl='azure.cli.command_modules.resource.custom#{}', + client_factory=cf_management_groups, + exception_handler=managementgroups_exception_handler + ) + resource_templatespecs_sdk = CliCommandType( operations_tmpl='azure.mgmt.resource.templatespecs.operations#ResourceLinksOperations.{}', client_factory=cf_resource_templatespecs, @@ -448,17 +478,51 @@ def load_command_table(self, _): g.custom_show_command('show', 'show_applicationdefinition') g.command('list', 'list_by_resource_group', exception_handler=empty_on_404) + with self.command_group('account management-group tenant-backfill', resource_managementgroups_mixin_sdk, client_factory=cf_management_groups_mixin) as g: + g.custom_command('get', 'cli_managementgroups_get_tenant_backfill_status') + g.custom_command('start', 'cli_managementgroups_start_tenant_backfill') + + with self.command_group('account management-group', resource_managementgroups_mixin_sdk, client_factory=cf_management_groups_mixin) as g: + g.custom_command('check-name-availability', 'cli_managementgroups_get_name_availability') + with self.command_group('account management-group', resource_managementgroups_sdk, client_factory=cf_management_groups) as g: g.custom_command('list', 'cli_managementgroups_group_list') g.custom_show_command('show', 'cli_managementgroups_group_show') g.custom_command('create', 'cli_managementgroups_group_create') g.custom_command('delete', 'cli_managementgroups_group_delete') - g.custom_command('update', 'cli_managementgroups_group_create') + g.generic_update_command( + 'update', + getter_name='cli_managementgroups_group_update_get', + getter_type=resource_managementgroups_update_type, + setter_name='cli_managementgroups_group_update_set', + setter_type=resource_managementgroups_update_type, + custom_func_name='cli_managementgroups_group_update_custom_func', + custom_func_type=resource_managementgroups_update_type, + exception_handler=managementgroups_exception_handler) with self.command_group('account management-group subscription', resource_managementgroups_subscriptions_sdk, client_factory=cf_management_group_subscriptions) as g: g.custom_command('add', 'cli_managementgroups_subscription_add') + g.custom_show_command('show', 'cli_managementgroups_subscription_show') + g.custom_command('show-sub-under-mg', 'cli_managementgroups_subscription_show_sub_under_mg') g.custom_command('remove', 'cli_managementgroups_subscription_remove') + with self.command_group('account management-group entities', resource_managementgroups_entities_sdk, client_factory=cf_management_group_entities) as g: + g.custom_command('list', 'cli_managementgroups_entities_list') + + with self.command_group('account management-group hierarchy-settings', resource_hierarchy_settings_sdk, client_factory=cf_hierarchy_settings) as g: + g.custom_command('list', 'cli_hierarchy_settings_list') + g.custom_command('create', 'cli_hierarchy_settings_create') + g.custom_command('delete', 'cli_hierarchy_settings_delete') + g.generic_update_command( + 'update', + getter_name='cli_hierarchysettings_group_update_get', + getter_type=resource_hierarchysettings_update_type, + setter_name='cli_hierarchysettings_group_update_set', + setter_type=resource_hierarchysettings_update_type, + custom_func_name='cli_hierarchysettings_group_update_custom_func', + custom_func_type=resource_hierarchysettings_update_type, + exception_handler=managementgroups_exception_handler) + with self.command_group('bicep') as g: g.custom_command('install', 'install_bicep_cli') g.custom_command('uninstall', 'uninstall_bicep_cli') diff --git a/src/azure-cli/azure/cli/command_modules/resource/custom.py b/src/azure-cli/azure/cli/command_modules/resource/custom.py index 8533bc23271..0cc9cbaefa6 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/custom.py +++ b/src/azure-cli/azure/cli/command_modules/resource/custom.py @@ -2844,6 +2844,24 @@ def _is_management_group_scope(scope): return scope is not None and scope.lower().startswith("/providers/microsoft.management/managementgroups") +def cli_managementgroups_get_tenant_backfill_status( + cmd, + client): + return client.tenant_backfill_status() + + +def cli_managementgroups_start_tenant_backfill( + cmd, + client): + return client.start_tenant_backfill() + + +def cli_managementgroups_get_name_availability(cmd, client, group_name): + from azure.mgmt.managementgroups.models import CheckNameAvailabilityRequest + checkNameAvailabilityRequest = CheckNameAvailabilityRequest(name=group_name) + return client.check_name_availability(checkNameAvailabilityRequest) + + def cli_managementgroups_group_list(cmd, client, no_register=False): if not no_register: _register_rp(cmd.cli_ctx) @@ -2916,14 +2934,81 @@ def cli_managementgroups_subscription_add( cmd, client, group_name, subscription): subscription_id = _get_subscription_id_from_subscription( cmd.cli_ctx, subscription) - return client.begin_create(group_name, subscription_id) + return client.create(group_name, subscription_id) + + +def cli_managementgroups_subscription_show( + cmd, + client, + group_name, + subscription): + subscription_id = _get_subscription_id_from_subscription(cmd.cli_ctx, subscription) + return client.get_subscription(group_name, subscription_id) + + +def cli_managementgroups_subscription_show_sub_under_mg( + cmd, + client, + group_name): + return client.get_subscriptions_under_management_group(group_name) def cli_managementgroups_subscription_remove( cmd, client, group_name, subscription): subscription_id = _get_subscription_id_from_subscription( cmd.cli_ctx, subscription) - return client.begin_delete(group_name, subscription_id) + return client.delete(group_name, subscription_id) + + +def cli_managementgroups_entities_list( + cmd, + client): + return client.list() + + +def cli_hierarchy_settings_list( + cmd, + client, + group_name): + return client.list(group_name) + + +def cli_hierarchy_settings_create( + cmd, + client, + group_name, + require_authorization_for_group_creation=None, + default_management_group=None): + from azure.mgmt.managementgroups.models import CreateOrUpdateSettingsRequest + create_or_update_parameters = CreateOrUpdateSettingsRequest(require_authorization_for_group_creation=require_authorization_for_group_creation, default_management_group=default_management_group) + return client.create_or_update(group_name, create_or_update_parameters) + + +def cli_hierarchy_settings_delete( + cmd, + client, + group_name): + return client.delete(group_name) + + +def cli_hierarchysettings_group_update_custom_func( + instance, + require_authorization_for_group_creation=None, + default_management_group=None): + instance.require_authorization_for_group_creation = require_authorization_for_group_creation + instance.default_management_group = default_management_group + return instance + + +def cli_hierarchysettings_group_update_get(): + from azure.mgmt.managementgroups.models import CreateOrUpdateSettingsRequest + update_parameters = CreateOrUpdateSettingsRequest(require_authorization_for_group_creation=None, default_management_group=None) + return update_parameters + + +def cli_hierarchysettings_group_update_set( + cmd, client, group_name, parameters=None): + return client.update(group_name, parameters) # region Locks diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_add_remove_subscription_under_mg.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_add_remove_subscription_under_mg.yaml new file mode 100644 index 00000000000..40decd26b1e --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_add_remove_subscription_under_mg.yaml @@ -0,0 +1,620 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '2624' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 29 Jan 2022 00:28:33 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '2624' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 29 Jan 2022 00:28:43 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"name": "testcligroup", "properties": {"details": {"parent": {}}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '67' + Content-Type: + - application/json + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '161' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 29 Jan 2022 00:28:44 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - d8971487-cc86-4a6e-aa64-06194b88fa0b + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Running"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '157' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 29 Jan 2022 00:28:54 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 51365d73-b688-43a1-8d5b-c5d3fac04a6f + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":127,"updatedTime":"2022-01-29T00:28:50.1343256Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + headers: + cache-control: + - no-cache + content-length: + - '375' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 29 Jan 2022 00:29:05 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 24498928-3aed-474b-a582-f042eae8b152 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":127,"updatedTime":"2022-01-29T00:28:50.1343256Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + Management Group"}}}}' + headers: + cache-control: + - no-cache + content-length: + - '543' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 29 Jan 2022 00:29:05 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 448447e2-da3e-4a4a-9477-f783faa6cd4a + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group subscription add + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name --subscription + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup/subscriptions/00000000-0000-0000-0000-000000000000?api-version=2021-04-01 + response: + body: + string: '{"name":"5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de","id":"/providers/Microsoft.Management/managementGroups/testcligroup/subscriptions/00000000-0000-0000-0000-000000000000","type":"Microsoft.Management/managementGroups/subscriptions","properties":{"displayName":"Visual + Studio Enterprise Subscription","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","name":null,"displayName":null},"state":"Active","tenant":"c7a87cda-9a66-4920-b0f8-869baa04efe0"}}' + headers: + cache-control: + - no-cache + content-length: + - '473' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 29 Jan 2022 00:29:07 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - adc0fa07-ea30-4dff-a8f1-2efb72312b34 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '249' + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group subscription remove + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name --subscription + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup/subscriptions/00000000-0000-0000-0000-000000000000?api-version=2021-04-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Sat, 29 Jan 2022 00:29:11 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - d191ba11-ae05-4e8f-affd-e062111a62dd + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '249' + x-ms-ratelimit-remaining-tenant-deletes: + - '14999' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '2624' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 29 Jan 2022 00:29:12 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '2624' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 29 Jan 2022 00:29:22 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '161' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 29 Jan 2022 00:29:23 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroup?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 89cf5cff-5a03-44aa-a318-f18ed742f10e + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-deletes: + - '14999' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '159' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 29 Jan 2022 00:29:33 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - c52af0b7-797c-4203-84a6-2ff01c521a69 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_managementgroup_get_entities.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_managementgroup_get_entities.yaml new file mode 100644 index 00000000000..65e2b985d4c --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_managementgroup_get_entities.yaml @@ -0,0 +1,577 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '2624' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Jan 2022 17:16:56 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '2624' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Jan 2022 17:17:06 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"name": "testcligroup", "properties": {"details": {"parent": {}}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '67' + Content-Type: + - application/json + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '161' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Jan 2022 17:17:07 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 35b2b936-5e88-45e8-8f4a-448e581b1b00 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Running"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '157' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Jan 2022 17:17:17 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - fa266bc8-2c4a-4e4b-9dbe-4ff87aa46c34 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":138,"updatedTime":"2022-01-31T17:17:13.981778Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + headers: + cache-control: + - no-cache + content-length: + - '374' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Jan 2022 17:17:28 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 58149387-e29b-4538-af65-9ae2c30531a6 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":138,"updatedTime":"2022-01-31T17:17:13.981778Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + Management Group"}}}}' + headers: + cache-control: + - no-cache + content-length: + - '542' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Jan 2022 17:17:28 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 92a6921c-17ae-4f5d-9bfa-138af33e1284 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group entities list + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://management.azure.com/providers/Microsoft.Management/getEntities?api-version=2021-04-01 + response: + body: + string: '{"count":13,"value":[{"name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","type":"Microsoft.Management/managementGroups","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","numberOfChildren":12,"numberOfChildGroups":11,"numberOfDescendants":12,"displayName":"Root + Management Group","parentDisplayNameChain":[],"parent":{"id":null},"parentNameChain":[],"inheritedPermissions":"delete","permissions":"delete"}},{"name":"azure-cli-managementaizr2dd4fz","id":"/providers/Microsoft.Management/managementGroups/azure-cli-managementaizr2dd4fz","type":"Microsoft.Management/managementGroups","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","numberOfChildren":0,"numberOfChildGroups":0,"numberOfDescendants":0,"displayName":"azure-cli-managementaizr2dd4fz","parentDisplayNameChain":["Root + Management Group"],"parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0"},"parentNameChain":["c7a87cda-9a66-4920-b0f8-869baa04efe0"],"inheritedPermissions":"delete","permissions":"delete"}},{"name":"azure-cli-managementb4osamcwmj","id":"/providers/Microsoft.Management/managementGroups/azure-cli-managementb4osamcwmj","type":"Microsoft.Management/managementGroups","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","numberOfChildren":0,"numberOfChildGroups":0,"numberOfDescendants":0,"displayName":"azure-cli-managementb4osamcwmj","parentDisplayNameChain":["Root + Management Group"],"parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0"},"parentNameChain":["c7a87cda-9a66-4920-b0f8-869baa04efe0"],"inheritedPermissions":"delete","permissions":"delete"}},{"name":"azure-cli-management-groupm2apk2ydbnxvjc","id":"/providers/Microsoft.Management/managementGroups/azure-cli-management-groupm2apk2ydbnxvjc","type":"Microsoft.Management/managementGroups","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","numberOfChildren":0,"numberOfChildGroups":0,"numberOfDescendants":0,"displayName":"azure-cli-management-groupm2apk2ydbnxvjc","parentDisplayNameChain":["Root + Management Group"],"parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0"},"parentNameChain":["c7a87cda-9a66-4920-b0f8-869baa04efe0"],"inheritedPermissions":"delete","permissions":"delete"}},{"name":"azure-cli-management-groupnforubwtqei527","id":"/providers/Microsoft.Management/managementGroups/azure-cli-management-groupnforubwtqei527","type":"Microsoft.Management/managementGroups","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","numberOfChildren":0,"numberOfChildGroups":0,"numberOfDescendants":0,"displayName":"azure-cli-management-groupnforubwtqei527","parentDisplayNameChain":["Root + Management Group"],"parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0"},"parentNameChain":["c7a87cda-9a66-4920-b0f8-869baa04efe0"],"inheritedPermissions":"delete","permissions":"delete"}},{"name":"azure-cli-managementz5v4ynfco4","id":"/providers/Microsoft.Management/managementGroups/azure-cli-managementz5v4ynfco4","type":"Microsoft.Management/managementGroups","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","numberOfChildren":0,"numberOfChildGroups":0,"numberOfDescendants":0,"displayName":"azure-cli-managementz5v4ynfco4","parentDisplayNameChain":["Root + Management Group"],"parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0"},"parentNameChain":["c7a87cda-9a66-4920-b0f8-869baa04efe0"],"inheritedPermissions":"delete","permissions":"delete"}},{"name":"cli-test-mgmt-groupeg2st77efvn","id":"/providers/Microsoft.Management/managementGroups/cli-test-mgmt-groupeg2st77efvn","type":"Microsoft.Management/managementGroups","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","numberOfChildren":0,"numberOfChildGroups":0,"numberOfDescendants":0,"displayName":"cli-test-mgmt-groupeg2st77efvn","parentDisplayNameChain":["Root + Management Group"],"parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0"},"parentNameChain":["c7a87cda-9a66-4920-b0f8-869baa04efe0"],"inheritedPermissions":"delete","permissions":"delete"}},{"name":"cli-test-mgmt-groupsoe7y63ziif","id":"/providers/Microsoft.Management/managementGroups/cli-test-mgmt-groupsoe7y63ziif","type":"Microsoft.Management/managementGroups","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","numberOfChildren":0,"numberOfChildGroups":0,"numberOfDescendants":0,"displayName":"cli-test-mgmt-groupsoe7y63ziif","parentDisplayNameChain":["Root + Management Group"],"parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0"},"parentNameChain":["c7a87cda-9a66-4920-b0f8-869baa04efe0"],"inheritedPermissions":"delete","permissions":"delete"}},{"name":"testcligroup","id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","numberOfChildren":0,"numberOfChildGroups":0,"numberOfDescendants":0,"displayName":"testcligroup","parentDisplayNameChain":["Root + Management Group"],"parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0"},"parentNameChain":["c7a87cda-9a66-4920-b0f8-869baa04efe0"],"inheritedPermissions":"delete","permissions":"noaccess"}},{"name":"testMG3","id":"/providers/Microsoft.Management/managementGroups/testMG3","type":"Microsoft.Management/managementGroups","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","numberOfChildren":0,"numberOfChildGroups":0,"numberOfDescendants":0,"displayName":"testMG3","parentDisplayNameChain":["Root + Management Group"],"parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0"},"parentNameChain":["c7a87cda-9a66-4920-b0f8-869baa04efe0"],"inheritedPermissions":"delete","permissions":"delete"}},{"name":"testMG4","id":"/providers/Microsoft.Management/managementGroups/testMG4","type":"Microsoft.Management/managementGroups","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","numberOfChildren":0,"numberOfChildGroups":0,"numberOfDescendants":0,"displayName":"testMG4","parentDisplayNameChain":["Root + Management Group"],"parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0"},"parentNameChain":["c7a87cda-9a66-4920-b0f8-869baa04efe0"],"inheritedPermissions":"delete","permissions":"delete"}},{"name":"thomasdolanTestMG","id":"/providers/Microsoft.Management/managementGroups/thomasdolanTestMG","type":"Microsoft.Management/managementGroups","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","numberOfChildren":0,"numberOfChildGroups":0,"numberOfDescendants":0,"displayName":"thomasdolanTestMG","parentDisplayNameChain":["Root + Management Group"],"parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0"},"parentNameChain":["c7a87cda-9a66-4920-b0f8-869baa04efe0"],"inheritedPermissions":"delete","permissions":"delete"}},{"name":"5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de","id":"/subscriptions/00000000-0000-0000-0000-000000000000","type":"/subscriptions","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","numberOfChildren":0,"numberOfChildGroups":0,"numberOfDescendants":0,"displayName":"Visual + Studio Enterprise Subscription","parentDisplayNameChain":["Root Management + Group"],"parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0"},"parentNameChain":["c7a87cda-9a66-4920-b0f8-869baa04efe0"],"inheritedPermissions":"delete","permissions":"delete"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '7815' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Jan 2022 17:17:29 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 617c1542-c2b1-4269-8bab-4ba26984d84b + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-tenant-writes: + - '1198' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '2624' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Jan 2022 17:17:30 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '2624' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Jan 2022 17:17:40 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '161' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Jan 2022 17:17:42 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroup?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 43c17e60-0a38-4479-80ab-bd352923abce + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-deletes: + - '14999' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '159' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Jan 2022 17:17:52 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 7ead348e-3ea4-41d3-9ed0-90fd1f0bb684 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_managementgroup_get_tenant_backfill_status.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_managementgroup_get_tenant_backfill_status.yaml new file mode 100644 index 00000000000..1123a01f2ac --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_managementgroup_get_tenant_backfill_status.yaml @@ -0,0 +1,54 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group tenant-backfill get + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://management.azure.com/providers/Microsoft.Management/tenantBackfillStatus?api-version=2021-04-01 + response: + body: + string: '{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","status":"Completed"}' + headers: + cache-control: + - no-cache + content-length: + - '72' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Jan 2022 23:17:08 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 51818d38-3214-45cb-ba4e-45cf25f705e9 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_managementgroup_hierarchysetting_create_auth.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_managementgroup_hierarchysetting_create_auth.yaml new file mode 100644 index 00000000000..58162cbd39f --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_managementgroup_hierarchysetting_create_auth.yaml @@ -0,0 +1,212 @@ +interactions: +- request: + body: '{"properties": {"requireAuthorizationForGroupCreation": true}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group hierarchy-settings create + Connection: + - keep-alive + Content-Length: + - '62' + Content-Type: + - application/json + ParameterSetName: + - -n -r + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default","type":"Microsoft.Management/managementGroups/settings","name":"default","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","requireAuthorizationForGroupCreation":true,"defaultManagementGroup":null}}' + headers: + cache-control: + - no-cache + content-length: + - '323' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Jan 2022 20:49:32 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 576c3339-4257-42a9-8ae5-17efccb938c2 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: '{"properties": {"requireAuthorizationForGroupCreation": true}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group hierarchy-settings update + Connection: + - keep-alive + Content-Length: + - '62' + Content-Type: + - application/json + ParameterSetName: + - -n -r + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default","type":"Microsoft.Management/managementGroups/settings","name":"default","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","requireAuthorizationForGroupCreation":true,"defaultManagementGroup":null}}' + headers: + cache-control: + - no-cache + content-length: + - '323' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Jan 2022 20:49:32 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - ca36f8ad-2271-4f7c-aab4-9bc5aaf5a3cc + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group hierarchy-settings list + Connection: + - keep-alive + ParameterSetName: + - -n + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings?api-version=2021-04-01 + response: + body: + string: '{"value":[{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default","type":"Microsoft.Management/managementGroups/settings","name":"default","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","requireAuthorizationForGroupCreation":true,"defaultManagementGroup":null}}],"@nextLink":null}' + headers: + cache-control: + - no-cache + content-length: + - '352' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Jan 2022 20:49:32 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 02c8c267-c45c-4cd5-b01d-0cc720212598 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group hierarchy-settings delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -n + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default?api-version=2021-04-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Mon, 31 Jan 2022 20:49:33 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 5a373877-7fb1-42e5-a13f-145f9a64b6df + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-tenant-deletes: + - '14999' + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_managementgroup_hierarchysetting_create_default_mg.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_managementgroup_hierarchysetting_create_default_mg.yaml new file mode 100644 index 00000000000..9045d776c14 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_managementgroup_hierarchysetting_create_default_mg.yaml @@ -0,0 +1,663 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '2624' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 01 Feb 2022 23:54:11 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '2624' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 01 Feb 2022 23:54:21 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"name": "defaultmg", "properties": {"details": {"parent": {}}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '64' + Content-Type: + - application/json + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/defaultmg?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/defaultmg","type":"Microsoft.Management/managementGroups","name":"defaultmg","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/defaultmg?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '155' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 01 Feb 2022 23:54:22 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/defaultmg?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 43ee76c0-b8c6-434b-99c3-69662e44add8 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '58' + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/defaultmg?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/defaultmg","name":"defaultmg","status":"Running"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/defaultmg?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '151' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 01 Feb 2022 23:54:32 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/defaultmg?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - f0a8e922-3f25-47fe-9385-d199d197ac42 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/defaultmg?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/defaultmg","name":"defaultmg","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"defaultmg","details":{"version":7,"updatedTime":"2022-02-01T23:54:28.7688963Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + headers: + cache-control: + - no-cache + content-length: + - '364' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 01 Feb 2022 23:54:43 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 77f71b32-968d-4dcc-a798-e2036fa90210 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/defaultmg?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/defaultmg","type":"Microsoft.Management/managementGroups","name":"defaultmg","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"defaultmg","details":{"version":7,"updatedTime":"2022-02-01T23:54:28.7688963Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + Management Group"}}}}' + headers: + cache-control: + - no-cache + content-length: + - '532' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 01 Feb 2022 23:54:43 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - f96baf09-ce69-4335-922c-c63183f0644f + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"properties": {"defaultManagementGroup": "/providers/Microsoft.Management/managementGroups/defaultmg"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group hierarchy-settings create + Connection: + - keep-alive + Content-Length: + - '104' + Content-Type: + - application/json + ParameterSetName: + - -n -m + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default","type":"Microsoft.Management/managementGroups/settings","name":"default","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","requireAuthorizationForGroupCreation":false,"defaultManagementGroup":"defaultmg"}}' + headers: + cache-control: + - no-cache + content-length: + - '331' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 01 Feb 2022 23:54:44 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - c7dc825a-b852-4194-bad2-de5575f66a86 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group hierarchy-settings list + Connection: + - keep-alive + ParameterSetName: + - -n + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings?api-version=2021-04-01 + response: + body: + string: '{"value":[{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default","type":"Microsoft.Management/managementGroups/settings","name":"default","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","requireAuthorizationForGroupCreation":false,"defaultManagementGroup":"defaultmg"}}],"@nextLink":null}' + headers: + cache-control: + - no-cache + content-length: + - '360' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 01 Feb 2022 23:54:45 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - f3e2930e-53a3-475c-8ce4-741b326bbc74 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group hierarchy-settings delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -n + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default?api-version=2021-04-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Tue, 01 Feb 2022 23:54:45 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 067b1afb-d041-417c-98ea-3e52f018ab75 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-tenant-deletes: + - '14999' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '2624' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 01 Feb 2022 23:54:46 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '2624' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 01 Feb 2022 23:54:56 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/defaultmg?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/defaultmg","type":"Microsoft.Management/managementGroups","name":"defaultmg","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/defaultmg?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '155' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 01 Feb 2022 23:54:59 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/defaultmg?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - de9c6e5e-1add-498d-8786-64b31245b7c0 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-deletes: + - '14999' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/defaultmg?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/defaultmg","name":"defaultmg","status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '153' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 01 Feb 2022 23:55:09 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 157837ee-2fb5-4235-a9ec-4ecf44c5439d + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_managementgroup_hierarchysetting_create_default_mg_auth.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_managementgroup_hierarchysetting_create_default_mg_auth.yaml new file mode 100644 index 00000000000..42e29a30033 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_managementgroup_hierarchysetting_create_default_mg_auth.yaml @@ -0,0 +1,594 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '2624' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 01 Feb 2022 23:59:24 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '2624' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 01 Feb 2022 23:59:35 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"name": "defaultmg1", "properties": {"details": {"parent": {}}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '65' + Content-Type: + - application/json + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/defaultmg1?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/defaultmg1","type":"Microsoft.Management/managementGroups","name":"defaultmg1","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"defaultmg1","details":{"version":6,"updatedTime":"2022-02-01T23:54:29.2749494Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + Management Group"}}}}' + headers: + cache-control: + - no-cache + content-length: + - '535' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 01 Feb 2022 23:59:36 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 21bfb962-3d0a-46ef-9b6a-15c39e17cea8 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '2624' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 01 Feb 2022 23:59:37 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '2624' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 01 Feb 2022 23:59:47 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"name": "defaultmg2", "properties": {"details": {"parent": {}}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '65' + Content-Type: + - application/json + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/defaultmg2?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/defaultmg2","type":"Microsoft.Management/managementGroups","name":"defaultmg2","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"defaultmg2","details":{"version":6,"updatedTime":"2022-02-01T23:55:01.0241327Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + Management Group"}}}}' + headers: + cache-control: + - no-cache + content-length: + - '535' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 01 Feb 2022 23:59:47 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 9d9695ab-95ae-4a27-936b-2e2fa94aacf9 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '58' + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: '{"properties": {"requireAuthorizationForGroupCreation": true, "defaultManagementGroup": + "/providers/Microsoft.Management/managementGroups/defaultmg1"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group hierarchy-settings create + Connection: + - keep-alive + Content-Length: + - '151' + Content-Type: + - application/json + ParameterSetName: + - -n -m -r + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default","type":"Microsoft.Management/managementGroups/settings","name":"default","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","requireAuthorizationForGroupCreation":true,"defaultManagementGroup":"defaultmg1"}}' + headers: + cache-control: + - no-cache + content-length: + - '331' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 01 Feb 2022 23:59:48 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 03afe5a2-9ee6-46c8-b080-480e765f9123 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: '{"properties": {"requireAuthorizationForGroupCreation": true, "defaultManagementGroup": + "/providers/Microsoft.Management/managementGroups/defaultmg2"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group hierarchy-settings update + Connection: + - keep-alive + Content-Length: + - '151' + Content-Type: + - application/json + ParameterSetName: + - -n -m -r + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default?api-version=2021-04-01 + response: + body: + string: '{"error":{"code":"InternalServerError","message":"Failed to update + Hierarchy Settings","details":"Message: {\"Errors\":[\"Encountered exception + while executing function. Exception = Error: {\\\"Errors\\\":[\\\"One of the + specified pre-condition is not met\\\"]}\\r\\nStack trace: Error: {\\\"Errors\\\":[\\\"One + of the specified pre-condition is not met\\\"]}\\n at Anonymous function + (script.js:38:36)\\n at Anonymous function (script.js:807:29)\"]}\r\nActivityId: + 878a91b3-5f3c-4101-8402-e885c0f38c4e, Request URI: /apps/6f669c08-517d-42b3-a98f-6793199079cb/services/5535d250-df59-4dbd-a628-e946ac15f31a/partitions/27a5a57f-0cec-4ec4-9e69-b6faba4cbc4d/replicas/132830723695385019p/, + RequestStats: \r\nRequestStartTime: 2022-02-01T23:59:49.6259838Z, RequestEndTime: + 2022-02-01T23:59:49.6416288Z, Number of regions attempted:1\r\nResponseTime: + 2022-02-01T23:59:49.6416288Z, StoreResult: StorePhysicalAddress: rntbd://cdb-ms-prod-centralus1-fd20.documents.azure.com:14106/apps/6f669c08-517d-42b3-a98f-6793199079cb/services/5535d250-df59-4dbd-a628-e946ac15f31a/partitions/27a5a57f-0cec-4ec4-9e69-b6faba4cbc4d/replicas/132830723695385019p/, + LSN: 13897, GlobalCommittedLsn: 13896, PartitionKeyRangeId: 0, IsValid: True, + StatusCode: 400, SubStatusCode: 412, RequestCharge: 8.39, ItemLSN: -1, SessionToken: + -1#13897, UsingLocalLSN: False, TransportException: null, ResourceType: StoredProcedure, + OperationType: ExecuteJavaScript\r\n, SDK: documentdb-dotnet-sdk/2.11.6 Host/64-bit + MicrosoftWindowsNT/6.2.9200.0"}}' + headers: + cache-control: + - no-cache + connection: + - close + content-length: + - '1511' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 01 Feb 2022 23:59:48 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 5da1e2dc-6773-47aa-b9c2-eec84f485af7 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-failure-cause: + - service + x-ms-ratelimit-remaining-tenant-writes: + - '1198' + status: + code: 500 + message: Internal Server Error +- request: + body: '{"properties": {"requireAuthorizationForGroupCreation": true, "defaultManagementGroup": + "/providers/Microsoft.Management/managementGroups/defaultmg2"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group hierarchy-settings update + Connection: + - keep-alive + Content-Length: + - '151' + Content-Type: + - application/json + ParameterSetName: + - -n -m -r + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default","type":"Microsoft.Management/managementGroups/settings","name":"default","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","requireAuthorizationForGroupCreation":true,"defaultManagementGroup":"defaultmg2"}}' + headers: + cache-control: + - no-cache + content-length: + - '331' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 01 Feb 2022 23:59:49 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - c6d27108-c2ab-4fd8-b817-54d224b3bbee + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group hierarchy-settings list + Connection: + - keep-alive + ParameterSetName: + - -n + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings?api-version=2021-04-01 + response: + body: + string: '{"value":[],"@nextLink":null}' + headers: + cache-control: + - no-cache + content-length: + - '29' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 01 Feb 2022 23:59:50 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 8fa1b6f6-76cb-4869-864f-ee4c7ba095cf + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group hierarchy-settings delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -n + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default?api-version=2021-04-01 + response: + body: + string: '{"error":{"code":"NotFound","message":"''/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/c7a87cda-9a66-4920-b0f8-869baa04efe0'' + not found","details":null}}' + headers: + cache-control: + - no-cache + content-length: + - '200' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 01 Feb 2022 23:59:50 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 0faa7dda-e362-4801-96c5-33a26edfd798 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-tenant-deletes: + - '14999' + status: + code: 404 + message: Not Found +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_managementgroup_hierarchysetting_create_delete.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_managementgroup_hierarchysetting_create_delete.yaml new file mode 100644 index 00000000000..5d45a9094b6 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_managementgroup_hierarchysetting_create_delete.yaml @@ -0,0 +1,106 @@ +interactions: +- request: + body: '{"properties": {"requireAuthorizationForGroupCreation": true}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group hierarchy-settings create + Connection: + - keep-alive + Content-Length: + - '62' + Content-Type: + - application/json + ParameterSetName: + - -n -r + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default","type":"Microsoft.Management/managementGroups/settings","name":"default","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","requireAuthorizationForGroupCreation":true,"defaultManagementGroup":null}}' + headers: + cache-control: + - no-cache + content-length: + - '323' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Jan 2022 17:14:52 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - da21b7b8-477c-4b54-83ba-a01d56166883 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group hierarchy-settings delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -n + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default?api-version=2021-04-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Mon, 31 Jan 2022 17:14:54 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - f001a398-409b-4531-9b86-4084e65adde7 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-tenant-deletes: + - '14999' + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_managementgroup_hierarchysetting_show_auth.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_managementgroup_hierarchysetting_show_auth.yaml new file mode 100644 index 00000000000..5f05d40049d --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_managementgroup_hierarchysetting_show_auth.yaml @@ -0,0 +1,156 @@ +interactions: +- request: + body: '{"properties": {"requireAuthorizationForGroupCreation": true}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group hierarchy-settings create + Connection: + - keep-alive + Content-Length: + - '62' + Content-Type: + - application/json + ParameterSetName: + - -n -r + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default","type":"Microsoft.Management/managementGroups/settings","name":"default","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","requireAuthorizationForGroupCreation":true,"defaultManagementGroup":null}}' + headers: + cache-control: + - no-cache + content-length: + - '323' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Jan 2022 19:13:13 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 2e930481-e6c3-481a-b49d-e259bbecc6e6 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group hierarchy-settings list + Connection: + - keep-alive + ParameterSetName: + - -n + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings?api-version=2021-04-01 + response: + body: + string: '{"value":[{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default","type":"Microsoft.Management/managementGroups/settings","name":"default","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","requireAuthorizationForGroupCreation":true,"defaultManagementGroup":null}}],"@nextLink":null}' + headers: + cache-control: + - no-cache + content-length: + - '352' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Jan 2022 19:13:13 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 41a16e06-7e77-409b-8e87-4b0c74729daf + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group hierarchy-settings delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -n + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default?api-version=2021-04-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Mon, 31 Jan 2022 19:13:14 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - ba3ae3c4-7c6b-45c8-b260-804540d73a55 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-tenant-deletes: + - '14999' + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_managementgroup_hierarchysetting_show_default_mg.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_managementgroup_hierarchysetting_show_default_mg.yaml new file mode 100644 index 00000000000..7ef18ea2037 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_managementgroup_hierarchysetting_show_default_mg.yaml @@ -0,0 +1,663 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '2624' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Jan 2022 18:55:43 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '2624' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Jan 2022 18:55:53 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"name": "defaultmg", "properties": {"details": {"parent": {}}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '64' + Content-Type: + - application/json + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/defaultmg?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/defaultmg","type":"Microsoft.Management/managementGroups","name":"defaultmg","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/defaultmg?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '155' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Jan 2022 18:55:54 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/defaultmg?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 0e9ddc49-87af-4d45-a119-f4879a7eeb76 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/defaultmg?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/defaultmg","name":"defaultmg","status":"Running"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/defaultmg?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '151' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Jan 2022 18:56:05 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/defaultmg?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - ba07a0d5-a177-4596-93e7-3a53d9ce6de9 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/defaultmg?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/defaultmg","name":"defaultmg","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"defaultmg","details":{"version":3,"updatedTime":"2022-01-31T18:56:00.7051526Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + headers: + cache-control: + - no-cache + content-length: + - '364' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Jan 2022 18:56:15 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - c9c17fb1-21c4-4f5f-93f3-577955615dfe + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/defaultmg?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/defaultmg","type":"Microsoft.Management/managementGroups","name":"defaultmg","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"defaultmg","details":{"version":3,"updatedTime":"2022-01-31T18:56:00.7051526Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + Management Group"}}}}' + headers: + cache-control: + - no-cache + content-length: + - '532' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Jan 2022 18:56:16 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - a7fef921-72f4-4dd7-8c5d-315df7355fe2 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"properties": {"defaultManagementGroup": "/providers/Microsoft.Management/managementGroups/defaultmg"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group hierarchy-settings create + Connection: + - keep-alive + Content-Length: + - '104' + Content-Type: + - application/json + ParameterSetName: + - -n -m + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default","type":"Microsoft.Management/managementGroups/settings","name":"default","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","requireAuthorizationForGroupCreation":false,"defaultManagementGroup":"defaultmg"}}' + headers: + cache-control: + - no-cache + content-length: + - '331' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Jan 2022 18:56:16 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - c89817c7-1ae0-4db7-99b5-a01f1f8a0e4c + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group hierarchy-settings list + Connection: + - keep-alive + ParameterSetName: + - -n + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings?api-version=2021-04-01 + response: + body: + string: '{"value":[{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default","type":"Microsoft.Management/managementGroups/settings","name":"default","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","requireAuthorizationForGroupCreation":false,"defaultManagementGroup":"defaultmg"}}],"@nextLink":null}' + headers: + cache-control: + - no-cache + content-length: + - '360' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Jan 2022 18:56:16 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 5df973e2-e660-4126-896f-30e3ab2ace95 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group hierarchy-settings delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -n + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default?api-version=2021-04-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Mon, 31 Jan 2022 18:56:16 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 64147d9f-52b4-4d78-8355-62e1bf97ce92 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-tenant-deletes: + - '14999' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '2624' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Jan 2022 18:56:18 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '2624' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Jan 2022 18:56:28 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/defaultmg?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/defaultmg","type":"Microsoft.Management/managementGroups","name":"defaultmg","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/defaultmg?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '155' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Jan 2022 18:56:29 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/defaultmg?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 3f40138d-af39-47f8-9247-eb6f6a1a0be1 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-deletes: + - '14999' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/defaultmg?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/defaultmg","name":"defaultmg","status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '153' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Jan 2022 18:56:39 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 556e0268-0e5a-42a6-8e09-912da77cf102 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_managementgroup_hierarchysetting_update_default_mg.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_managementgroup_hierarchysetting_update_default_mg.yaml new file mode 100644 index 00000000000..8cd3ba96450 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_managementgroup_hierarchysetting_update_default_mg.yaml @@ -0,0 +1,918 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '2624' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 02 Feb 2022 00:01:25 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '2624' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 02 Feb 2022 00:01:36 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"name": "defaultmg1", "properties": {"details": {"parent": {}}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '65' + Content-Type: + - application/json + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/defaultmg1?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/defaultmg1","type":"Microsoft.Management/managementGroups","name":"defaultmg1","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"defaultmg1","details":{"version":6,"updatedTime":"2022-02-01T23:54:29.2749494Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + Management Group"}}}}' + headers: + cache-control: + - no-cache + content-length: + - '535' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 02 Feb 2022 00:01:37 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 76764055-0982-4206-83e5-18da94bc45d9 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '2624' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 02 Feb 2022 00:01:38 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '2624' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 02 Feb 2022 00:01:48 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"name": "defaultmg2", "properties": {"details": {"parent": {}}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '65' + Content-Type: + - application/json + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/defaultmg2?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/defaultmg2","type":"Microsoft.Management/managementGroups","name":"defaultmg2","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"defaultmg2","details":{"version":6,"updatedTime":"2022-02-01T23:55:01.0241327Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + Management Group"}}}}' + headers: + cache-control: + - no-cache + content-length: + - '535' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 02 Feb 2022 00:01:48 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 11932c6d-2fde-4fa7-8583-8e5463eae07e + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '58' + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: '{"properties": {"defaultManagementGroup": "/providers/Microsoft.Management/managementGroups/defaultmg1"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group hierarchy-settings create + Connection: + - keep-alive + Content-Length: + - '105' + Content-Type: + - application/json + ParameterSetName: + - -n -m + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default","type":"Microsoft.Management/managementGroups/settings","name":"default","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","requireAuthorizationForGroupCreation":false,"defaultManagementGroup":"defaultmg1"}}' + headers: + cache-control: + - no-cache + content-length: + - '332' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 02 Feb 2022 00:01:49 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 8341d0a7-5701-4458-a621-d8294249688c + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: '{"properties": {"defaultManagementGroup": "/providers/Microsoft.Management/managementGroups/defaultmg2"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group hierarchy-settings update + Connection: + - keep-alive + Content-Length: + - '105' + Content-Type: + - application/json + ParameterSetName: + - -n -m + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default","type":"Microsoft.Management/managementGroups/settings","name":"default","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","requireAuthorizationForGroupCreation":false,"defaultManagementGroup":"defaultmg2"}}' + headers: + cache-control: + - no-cache + content-length: + - '332' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 02 Feb 2022 00:01:50 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - dcddf233-ac38-444c-a126-6347bdf078af + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group hierarchy-settings list + Connection: + - keep-alive + ParameterSetName: + - -n + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings?api-version=2021-04-01 + response: + body: + string: '{"value":[{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default","type":"Microsoft.Management/managementGroups/settings","name":"default","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","requireAuthorizationForGroupCreation":false,"defaultManagementGroup":"defaultmg2"}}],"@nextLink":null}' + headers: + cache-control: + - no-cache + content-length: + - '361' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 02 Feb 2022 00:01:50 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 0926aa2f-314f-4907-a947-33a403f1cc79 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group hierarchy-settings delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -n + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default?api-version=2021-04-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 02 Feb 2022 00:01:51 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 0013ab2e-b94c-4b5e-a3c7-531f90fbd158 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-tenant-deletes: + - '14999' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '2624' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 02 Feb 2022 00:01:51 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '2624' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 02 Feb 2022 00:02:01 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/defaultmg1?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/defaultmg1","type":"Microsoft.Management/managementGroups","name":"defaultmg1","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/defaultmg1?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '157' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 02 Feb 2022 00:02:04 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/defaultmg1?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 29a01232-f34e-4fcd-91bd-598b01ddc62a + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-deletes: + - '14999' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/defaultmg1?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/defaultmg1","name":"defaultmg1","status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '155' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 02 Feb 2022 00:02:14 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 22011b76-aaad-4602-a571-a7da382a40ec + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '2624' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 02 Feb 2022 00:02:14 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '2624' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 02 Feb 2022 00:02:24 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/defaultmg2?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/defaultmg2","type":"Microsoft.Management/managementGroups","name":"defaultmg2","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/defaultmg2?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '157' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 02 Feb 2022 00:02:26 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/defaultmg2?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 998b4de7-4caf-43e1-9129-5c270bfb9ada + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '58' + x-ms-ratelimit-remaining-tenant-deletes: + - '14999' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/defaultmg2?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/defaultmg2","name":"defaultmg2","status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '155' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 02 Feb 2022 00:02:36 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 6ef55b50-d707-4230-9b2a-e110e938e75d + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_managementgroup_name_availability.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_managementgroup_name_availability.yaml new file mode 100644 index 00000000000..eb24ac1fb89 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_managementgroup_name_availability.yaml @@ -0,0 +1,734 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '2624' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Jan 2022 23:17:09 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '2624' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Jan 2022 23:17:19 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"name": "testcligroup1", "properties": {"details": {"parent": {}}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '68' + Content-Type: + - application/json + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup1?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup1","type":"Microsoft.Management/managementGroups","name":"testcligroup1","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup1?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '163' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Jan 2022 23:17:21 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup1?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 9be17a9f-14da-4194-8d9e-167e3708297c + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup1?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup1","name":"testcligroup1","status":"Running"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup1?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '159' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Jan 2022 23:17:31 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup1?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 73eae19e-2a6e-4f64-b8be-9e252517bd27 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup1?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup1","name":"testcligroup1","status":"Running"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup1?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '159' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Jan 2022 23:17:41 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup1?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 123914d9-178e-4436-82a6-0bd0e2294f81 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup1?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup1","name":"testcligroup1","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup1","details":{"version":23,"updatedTime":"2022-01-31T23:17:27.9254955Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + headers: + cache-control: + - no-cache + content-length: + - '377' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Jan 2022 23:17:51 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - b2bc42ff-0df5-4b7c-9969-afbe2a8b6f0a + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup1?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup1","type":"Microsoft.Management/managementGroups","name":"testcligroup1","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup1","details":{"version":23,"updatedTime":"2022-01-31T23:17:27.9254955Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + Management Group"}}}}' + headers: + cache-control: + - no-cache + content-length: + - '545' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Jan 2022 23:17:51 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 2830a3f9-266a-48f0-a9ec-576a35335314 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"name": "testcligroup1", "type": "Microsoft.Management/managementGroups"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group check-name-availability + Connection: + - keep-alive + Content-Length: + - '74' + Content-Type: + - application/json + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://management.azure.com/providers/Microsoft.Management/checkNameAvailability?api-version=2021-04-01 + response: + body: + string: '{"nameAvailable":false,"reason":"AlreadyExists","message":"The group + with the specified name already exists"}' + headers: + cache-control: + - no-cache + content-length: + - '109' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Jan 2022 23:17:52 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 3e5af892-2c0a-4e0e-8271-69d871377fd0 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-tenant-writes: + - '1198' + status: + code: 200 + message: OK +- request: + body: '{"name": "!badName", "type": "Microsoft.Management/managementGroups"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group check-name-availability + Connection: + - keep-alive + Content-Length: + - '69' + Content-Type: + - application/json + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://management.azure.com/providers/Microsoft.Management/checkNameAvailability?api-version=2021-04-01 + response: + body: + string: '{"nameAvailable":false,"reason":"Invalid","message":"The provided management + group name ''!badName'' has these invalid characters: ''!''. The name can + only be an ASCII letter, digit, -, _, (, ), ."}' + headers: + cache-control: + - no-cache + content-length: + - '194' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Jan 2022 23:17:52 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - a775d8e3-efd0-48b8-a7d4-723abc4d7736 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-tenant-writes: + - '1198' + status: + code: 200 + message: OK +- request: + body: '{"name": "testcligroup2", "type": "Microsoft.Management/managementGroups"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group check-name-availability + Connection: + - keep-alive + Content-Length: + - '74' + Content-Type: + - application/json + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://management.azure.com/providers/Microsoft.Management/checkNameAvailability?api-version=2021-04-01 + response: + body: + string: '{"nameAvailable":true}' + headers: + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Jan 2022 23:17:53 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - f2da8155-b696-4c26-92ef-8aa22a21b354 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '2624' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Jan 2022 23:17:54 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '2624' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Jan 2022 23:18:04 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup1?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup1","type":"Microsoft.Management/managementGroups","name":"testcligroup1","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup1?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '163' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Jan 2022 23:18:06 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroup1?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 43171b2b-8fae-4ca9-81d1-3c2585bb8844 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-deletes: + - '14999' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup1?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup1","name":"testcligroup1","status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '161' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Jan 2022 23:18:16 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - deb9287b-aa8e-4ed8-9c83-d972edd2da81 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_managementgroup_show_subscription.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_managementgroup_show_subscription.yaml new file mode 100644 index 00000000000..87522d6818f --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_managementgroup_show_subscription.yaml @@ -0,0 +1,673 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '2624' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 29 Jan 2022 00:56:07 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '2624' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 29 Jan 2022 00:56:17 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"name": "testcligroup", "properties": {"details": {"parent": {}}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '67' + Content-Type: + - application/json + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '161' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 29 Jan 2022 00:56:18 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - e09eda12-62e0-4b84-af11-a064b6e70c84 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Running"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '157' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 29 Jan 2022 00:56:28 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - d563a6c0-e8bc-451d-adf4-1970be07b45e + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":132,"updatedTime":"2022-01-29T00:56:23.914268Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + headers: + cache-control: + - no-cache + content-length: + - '374' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 29 Jan 2022 00:56:39 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - c4cbe208-48cb-423b-b091-2e0a89f52ae8 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":132,"updatedTime":"2022-01-29T00:56:23.914268Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + Management Group"}}}}' + headers: + cache-control: + - no-cache + content-length: + - '542' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 29 Jan 2022 00:56:39 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 36e720aa-c796-475d-9281-032e54a63b44 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group subscription add + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name --subscription + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup/subscriptions/00000000-0000-0000-0000-000000000000?api-version=2021-04-01 + response: + body: + string: '{"name":"5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de","id":"/providers/Microsoft.Management/managementGroups/testcligroup/subscriptions/00000000-0000-0000-0000-000000000000","type":"Microsoft.Management/managementGroups/subscriptions","properties":{"displayName":"Visual + Studio Enterprise Subscription","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","name":null,"displayName":null},"state":"Active","tenant":"c7a87cda-9a66-4920-b0f8-869baa04efe0"}}' + headers: + cache-control: + - no-cache + content-length: + - '473' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 29 Jan 2022 00:56:43 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 4d5c77f4-3290-4861-9486-58ab54e6ca78 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '249' + x-ms-ratelimit-remaining-tenant-writes: + - '1198' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group subscription show + Connection: + - keep-alive + ParameterSetName: + - --name --subscription + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup/subscriptions/00000000-0000-0000-0000-000000000000?api-version=2021-04-01 + response: + body: + string: '{"name":"5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de","id":"/providers/Microsoft.Management/managementGroups/testcligroup/subscriptions/00000000-0000-0000-0000-000000000000","type":"Microsoft.Management/managementGroups/subscriptions","properties":{"displayName":"Visual + Studio Enterprise Subscription","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","name":null,"displayName":null},"state":"Active","tenant":"c7a87cda-9a66-4920-b0f8-869baa04efe0"}}' + headers: + cache-control: + - no-cache + content-length: + - '473' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 29 Jan 2022 00:56:43 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 886e0b2d-a0de-4cf1-9304-03e451d3e138 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group subscription remove + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name --subscription + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup/subscriptions/00000000-0000-0000-0000-000000000000?api-version=2021-04-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Sat, 29 Jan 2022 00:56:46 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - e4b69c2c-2ade-43ae-9c43-9dc41369f204 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '249' + x-ms-ratelimit-remaining-tenant-deletes: + - '14999' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '2624' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 29 Jan 2022 00:56:47 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '2624' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 29 Jan 2022 00:56:58 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '161' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 29 Jan 2022 00:56:59 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroup?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 3ef19309-d832-453b-8777-f4b4f9125839 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-deletes: + - '14999' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '159' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 29 Jan 2022 00:57:09 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 9344b643-156c-4ff0-8d01-b265f4e77049 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_managementgroup_show_subscription_under_mg.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_managementgroup_show_subscription_under_mg.yaml new file mode 100644 index 00000000000..815d3ec5091 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_managementgroup_show_subscription_under_mg.yaml @@ -0,0 +1,517 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '2624' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Jan 2022 16:35:23 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '2624' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Jan 2022 16:35:33 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"name": "testcligroup", "properties": {"details": {"parent": {}}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group create + Connection: + - keep-alive + Content-Length: + - '67' + Content-Type: + - application/json + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":135,"updatedTime":"2022-01-31T16:33:37.8439891Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + Management Group"}}}}' + headers: + cache-control: + - no-cache + content-length: + - '543' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Jan 2022 16:35:34 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 4bdf2e05-b188-4462-9813-ba1af136d866 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group subscription add + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name --subscription + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup/subscriptions/00000000-0000-0000-0000-000000000000?api-version=2021-04-01 + response: + body: + string: '{"name":"5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de","id":"/providers/Microsoft.Management/managementGroups/testcligroup/subscriptions/00000000-0000-0000-0000-000000000000","type":"Microsoft.Management/managementGroups/subscriptions","properties":{"displayName":"Visual + Studio Enterprise Subscription","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","name":null,"displayName":null},"state":"Active","tenant":"c7a87cda-9a66-4920-b0f8-869baa04efe0"}}' + headers: + cache-control: + - no-cache + content-length: + - '473' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Jan 2022 16:35:36 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - e5f54359-9814-4578-804f-75c0e637b142 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '249' + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group subscription show-sub-under-mg + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup/subscriptions?api-version=2021-04-01 + response: + body: + string: '{"value":[{"name":"5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de","id":"/providers/Microsoft.Management/managementGroups/testcligroup/subscriptions/00000000-0000-0000-0000-000000000000","type":"Microsoft.Management/managementGroups/subscriptions","properties":{"displayName":"Visual + Studio Enterprise Subscription","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","name":null,"displayName":null},"state":"Active","tenant":"c7a87cda-9a66-4920-b0f8-869baa04efe0"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '485' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Jan 2022 16:35:36 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - c488e7b9-bf3b-478e-ab65-58a98a996090 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group subscription remove + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name --subscription + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup/subscriptions/00000000-0000-0000-0000-000000000000?api-version=2021-04-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Mon, 31 Jan 2022 16:35:38 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 95ce74fe-2455-427a-bc3f-f63c306b968e + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '249' + x-ms-ratelimit-remaining-tenant-deletes: + - '14999' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '2624' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Jan 2022 16:35:39 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '2624' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Jan 2022 16:35:49 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Cache-Control: + - no-cache + CommandName: + - account management-group delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '161' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Jan 2022 16:35:50 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/testcligroup?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 48a5ded5-2334-4bfc-a704-d5129b47015c + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-deletes: + - '14999' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group delete + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '159' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Jan 2022 16:36:02 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - c2bf3f93-78cf-4b3a-9f36-cee90b168e3d + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_managementgroup_start_tenant_backfill.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_managementgroup_start_tenant_backfill.yaml new file mode 100644 index 00000000000..fe911dd74c5 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_managementgroup_start_tenant_backfill.yaml @@ -0,0 +1,54 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group tenant-backfill start + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://management.azure.com/providers/Microsoft.Management/startTenantBackfill?api-version=2021-04-01 + response: + body: + string: '{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","status":"Completed"}' + headers: + cache-control: + - no-cache + content-length: + - '72' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Jan 2022 23:17:09 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - d440d65e-08af-4562-b8e9-e9bce0b8ce2f + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/test_managmentgroups.py b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/test_managmentgroups.py index 8c1cb4fedd3..099b36d5f9a 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/test_managmentgroups.py +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/test_managmentgroups.py @@ -3,13 +3,11 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -from azure.cli.testsdk import ScenarioTest, record_only +from azure.cli.testsdk import ScenarioTest, record_only, live_only import pytest -@pytest.mark.custom_mark class AzureManagementGroupsScenarioTest(ScenarioTest): - #@pytest.mark.custom_mark def test_list_managementgroups(self): managementgroups_list = self.cmd( 'account management-group list').get_output_in_json() @@ -24,7 +22,6 @@ def test_list_managementgroups(self): managementgroups_list[0]["type"], "Microsoft.Management/managementGroups") - #@pytest.mark.custom_mark1 def test_show_managementgroup(self): self.cmd('account management-group create --name testcligetgroup') self.cmd('account management-group create --name testcligetgroup1 --parent /providers/Microsoft.Management/managementGroups/testcligetgroup') @@ -57,7 +54,6 @@ def test_show_managementgroup(self): managementgroup_get["type"], "Microsoft.Management/managementGroups") - #@pytest.mark.custom_mark1 def test_show_managementgroup_with_expand(self): self.cmd('account management-group create --name testcligetgroup') self.cmd('account management-group create --name testcligetgroup1 --parent testcligetgroup') @@ -104,7 +100,6 @@ def test_show_managementgroup_with_expand(self): managementgroup_get["children"][0]["name"], "testcligetgroup2") - #@pytest.mark.custom_mark1 def test_show_managementgroup_with_expand_and_recurse(self): self.cmd('account management-group create --name testcligetgroup1') self.cmd('account management-group create --name testcligetgroup2 --parent /providers/Microsoft.Management/managementGroups/testcligetgroup1') @@ -164,8 +159,7 @@ def test_show_managementgroup_with_expand_and_recurse(self): self.assertEqual( managementgroup_get["children"][0]["children"][0]["name"], "testcligetgroup4") - - #@pytest.mark.custom_mark1 + def test_create_managementgroup(self): name = "testcligroup" displayName = "testcligroup" @@ -198,7 +192,6 @@ def test_create_managementgroup(self): managementgroup_create["type"], "Microsoft.Management/managementGroups") - #@pytest.mark.custom_mark1 def test_create_managementgroup_with_displayname(self): name = "testcligroup" displayName = "TestCliDisplayName" @@ -233,7 +226,6 @@ def test_create_managementgroup_with_displayname(self): managementgroup_create["type"], "Microsoft.Management/managementGroups") - #@pytest.mark.custom_mark def test_create_managementgroup_with_parentid(self): name = "testcligroupchild" displayName = "testcligroupchild" @@ -271,7 +263,6 @@ def test_create_managementgroup_with_parentid(self): managementgroup_create["type"], "Microsoft.Management/managementGroups") - #@pytest.mark.custom_mark1 def test_create_managementgroup_with_displayname_and_parentid(self): name = "testcligroupchild" displayName = "testcligroupchildDisplayName" @@ -311,7 +302,6 @@ def test_create_managementgroup_with_displayname_and_parentid(self): managementgroup_create["type"], "Microsoft.Management/managementGroups") - #@pytest.mark.custom_mark def test_update_managementgroup_with_displayname(self): name = "testcligroup" displayName = "testcligroupDisplayName" @@ -345,7 +335,7 @@ def test_update_managementgroup_with_displayname(self): managementgroup_update["type"], "Microsoft.Management/managementGroups") - #@pytest.mark.custom_mark1 + #@pytest.mark.custom_mark def test_update_managementgroup_with_parentid(self): name = "testcligroupchild" displayName = "testcligroupchild" @@ -383,7 +373,6 @@ def test_update_managementgroup_with_parentid(self): managementgroup_update["type"], "Microsoft.Management/managementGroups") - #@pytest.mark.custom_mark1 def test_update_managementgroup_with_displayname_and_parentid(self): name = "testcligroupchild" displayName = "testcligroupchild" @@ -422,7 +411,273 @@ def test_update_managementgroup_with_displayname_and_parentid(self): managementgroup_update["type"], "Microsoft.Management/managementGroups") - #@pytest.mark.custom_mark1 def test_create_delete_group_managementgroup(self): self.cmd('account management-group create --name testcligroup') self.cmd('account management-group delete --name testcligroup') + + @live_only() + #@pytest.mark.custom_mark + def test_managementgroup_add_remove_subscription(self): + name = "testcligroup" + sub = "5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de" + self.cmd('account management-group create --name ' + name) + self.cmd('account management-group subscription add --name ' + name + + ' --subscription ' + sub) + self.cmd('account management-group subscription remove --name ' + name + + ' --subscription ' + sub) + self.cmd('account management-group delete --name ' + name) + + @live_only() + #@pytest.mark.custom_mark + def test_managementgroup_show_subscription(self): + name = "testcligroup" + subName = "5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de" + subDisplayName = "Visual Studio Enterprise Subscription" + subParentId = "/providers/Microsoft.Management/managementGroups/" + name + self.cmd('account management-group create --name ' + name) + self.cmd('account management-group subscription add --name ' + name + + ' --subscription ' + subName) + show_sub = self.cmd('account management-group subscription show --name ' + name + + ' --subscription ' + subName).get_output_in_json() + self.cmd('account management-group subscription remove --name ' + name + + ' --subscription ' + subName) + self.cmd('account management-group delete --name ' + name) + self.assertIsNotNone(show_sub) + self.assertEqual(show_sub["displayName"], + subDisplayName) + self.assertEqual(show_sub["id"], + subParentId + "/subscriptions/" + subName) + self.assertEqual(show_sub["name"], + subName) + self.assertEqual(show_sub["parent"]["id"], + subParentId) + self.assertEqual(show_sub["type"], + "Microsoft.Management/managementGroups/subscriptions") + + @live_only() + #@pytest.mark.custom_mark + def test_managementgroup_show_subscription_under_mg(self): + name = "testcligroup" + subName = "5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de" + subDisplayName = "Visual Studio Enterprise Subscription" + subParentId = "/providers/Microsoft.Management/managementGroups/" + name + self.cmd('account management-group create --name ' + name) + self.cmd('account management-group subscription add --name ' + name + + ' --subscription ' + subName) + show_sub_under_mg = self.cmd('account management-group subscription show-sub-under-mg --name ' + name).get_output_in_json() + self.cmd('account management-group subscription remove --name ' + name + + ' --subscription ' + subName) + self.cmd('account management-group delete --name ' + name) + self.assertIsNotNone(show_sub_under_mg) + self.assertEqual(show_sub_under_mg[0]["displayName"], + subDisplayName) + self.assertEqual(show_sub_under_mg[0]["id"], + subParentId + "/subscriptions/" + subName) + self.assertEqual(show_sub_under_mg[0]["name"], + subName) + self.assertEqual(show_sub_under_mg[0]["parent"]["id"], + subParentId) + self.assertEqual(show_sub_under_mg[0]["type"], + "Microsoft.Management/managementGroups/subscriptions") + + #@pytest.mark.custom_mark + def test_managementgroup_get_entities(self): + name = "testcligroup" + self.cmd('account management-group create --name ' + name) + getEntities = self.cmd('account management-group entities list') + self.cmd('account management-group delete --name ' + name) + self.assertIsNotNone(getEntities) + + @live_only() + #@pytest.mark.custom_mark + def test_managementgroup_hierarchysetting_create_delete(self): + name = "c7a87cda-9a66-4920-b0f8-869baa04efe0" + self.cmd('account management-group hierarchy-settings create -n ' + + name + ' -r True') + self.cmd('account management-group hierarchy-settings delete -n ' + + name) + + @live_only() + #@pytest.mark.custom_mark + def test_managementgroup_hierarchysetting_create_default_mg(self): + name = "c7a87cda-9a66-4920-b0f8-869baa04efe0" + defaultmgName = "defaultmg" + mgPath = "/providers/Microsoft.Management/managementGroups/" + self.cmd('account management-group create --name ' + defaultmgName) + self.cmd('account management-group hierarchy-settings create -n ' + + name + ' -m ' + mgPath + defaultmgName) + showSetting = self.cmd('account management-group hierarchy-settings list -n' + name).get_output_in_json() + self.cmd('account management-group hierarchy-settings delete -n ' + + name) + self.cmd('account management-group delete --name ' + defaultmgName) + self.assertIsNotNone(showSetting) + self.assertEqual(showSetting["value"][0]["defaultManagementGroup"], + defaultmgName) + self.assertEqual(showSetting["value"][0]["id"], + mgPath + name + "/settings/default") + self.assertEqual(showSetting["value"][0]["name"], + "default") + self.assertEqual(showSetting["value"][0]["type"], + "Microsoft.Management/managementGroups/settings") + + @live_only() + #@pytest.mark.custom_mark + def test_managementgroup_hierarchysetting_create_auth(self): + name = "c7a87cda-9a66-4920-b0f8-869baa04efe0" + mgPath = "/providers/Microsoft.Management/managementGroups/" + self.cmd('account management-group hierarchy-settings create -n ' + + name + ' -r True') + showSetting = self.cmd('account management-group hierarchy-settings list -n' + name).get_output_in_json() + self.cmd('account management-group hierarchy-settings delete -n ' + + name) + self.assertIsNotNone(showSetting) + self.assertEqual(showSetting["value"][0]["id"], + mgPath + name + "/settings/default") + self.assertEqual(showSetting["value"][0]["name"], + "default") + self.assertEqual(showSetting["value"][0]["requireAuthorizationForGroupCreation"], + True) + self.assertEqual(showSetting["value"][0]["type"], + "Microsoft.Management/managementGroups/settings") + + @live_only() + @pytest.mark.custom_mark + def test_managementgroup_hierarchysetting_create_default_mg_auth(self): + name = "c7a87cda-9a66-4920-b0f8-869baa04efe0" + defaultmgName = "defaultmg" + mgPath = "/providers/Microsoft.Management/managementGroups/" + self.cmd('account management-group create --name ' + defaultmgName) + self.cmd('account management-group hierarchy-settings create -n ' + + name + ' -m ' + mgPath + defaultmgName + + ' -r True') + showSetting = self.cmd('account management-group hierarchy-settings list -n' + name).get_output_in_json() + self.cmd('account management-group hierarchy-settings delete -n ' + + name) + self.cmd('account management-group delete --name ' + defaultmgName) + self.assertEqual(showSetting["value"][0]["defaultManagementGroup"], + defaultmgName) + self.assertEqual(showSetting["value"][0]["id"], + mgPath + name + "/settings/default") + self.assertEqual(showSetting["value"][0]["name"], + "default") + self.assertEqual(showSetting["value"][0]["requireAuthorizationForGroupCreation"], + True) + self.assertEqual(showSetting["value"][0]["type"], + "Microsoft.Management/managementGroups/settings") + + @live_only() + #@pytest.mark.custom_mark + def test_managementgroup_hierarchysetting_update_default_mg(self): + name = "c7a87cda-9a66-4920-b0f8-869baa04efe0" + defaultmgName1 = "defaultmg1" + defaultmgName2 = "defaultmg2" + mgPath = "/providers/Microsoft.Management/managementGroups/" + self.cmd('account management-group create --name ' + defaultmgName1) + self.cmd('account management-group create --name ' + defaultmgName2) + self.cmd('account management-group hierarchy-settings create -n ' + + name + ' -m ' + mgPath + defaultmgName1) + self.cmd('account management-group hierarchy-settings update -n ' + + name + ' -m ' + mgPath + defaultmgName2) + showSetting = self.cmd('account management-group hierarchy-settings list -n' + name).get_output_in_json() + self.cmd('account management-group hierarchy-settings delete -n ' + + name) + self.cmd('account management-group delete --name ' + defaultmgName1) + self.cmd('account management-group delete --name ' + defaultmgName2) + self.assertIsNotNone(showSetting) + self.assertEqual(showSetting["value"][0]["defaultManagementGroup"], + defaultmgName2) + self.assertEqual(showSetting["value"][0]["id"], + mgPath + name + "/settings/default") + self.assertEqual(showSetting["value"][0]["name"], + "default") + self.assertEqual(showSetting["value"][0]["type"], + "Microsoft.Management/managementGroups/settings") + + @live_only() + #@pytest.mark.custom_mark + def test_managementgroup_hierarchysetting_create_auth(self): + name = "c7a87cda-9a66-4920-b0f8-869baa04efe0" + mgPath = "/providers/Microsoft.Management/managementGroups/" + self.cmd('account management-group hierarchy-settings create -n ' + + name + ' -r False') + self.cmd('account management-group hierarchy-settings update -n ' + + name + ' -r True') + showSetting = self.cmd('account management-group hierarchy-settings list -n' + name).get_output_in_json() + self.cmd('account management-group hierarchy-settings delete -n ' + + name) + self.assertIsNotNone(showSetting) + self.assertEqual(showSetting["value"][0]["id"], + mgPath + name + "/settings/default") + self.assertEqual(showSetting["value"][0]["name"], + "default") + self.assertEqual(showSetting["value"][0]["requireAuthorizationForGroupCreation"], + True) + self.assertEqual(showSetting["value"][0]["type"], + "Microsoft.Management/managementGroups/settings") + + @live_only() + #@pytest.mark.custom_mark + def test_managementgroup_hierarchysetting_create_default_mg_auth(self): + name = "c7a87cda-9a66-4920-b0f8-869baa04efe0" + defaultmgName1 = "defaultmg1" + defaultmgName2 = "defaultmg2" + mgPath = "/providers/Microsoft.Management/managementGroups/" + self.cmd('account management-group create --name ' + defaultmgName1) + self.cmd('account management-group create --name ' + defaultmgName2) + self.cmd('account management-group hierarchy-settings create -n ' + + name + ' -m ' + mgPath + defaultmgName1 + + ' -r False') + self.cmd('account management-group hierarchy-settings update -n ' + + name + ' -m ' + mgPath + defaultmgName2 + + ' -r True') + showSetting = self.cmd('account management-group hierarchy-settings list -n' + name).get_output_in_json() + self.cmd('account management-group hierarchy-settings delete -n ' + + name) + self.cmd('account management-group delete --name ' + defaultmgName1) + self.cmd('account management-group delete --name ' + defaultmgName2) + self.assertIsNotNone(showSetting) + self.assertEqual(showSetting["value"][0]["defaultManagementGroup"], + defaultmgName2) + self.assertEqual(showSetting["value"][0]["id"], + mgPath + name + "/settings/default") + self.assertEqual(showSetting["value"][0]["name"], + "default") + self.assertEqual(showSetting["value"][0]["type"], + "Microsoft.Management/managementGroups/settings") + + #@pytest.mark.custom_mark + def test_managementgroup_get_tenant_backfill_status(self): + backfillStatus = self.cmd('account management-group tenant-backfill get').get_output_in_json() + self.assertIsNotNone(backfillStatus) + self.assertEqual(backfillStatus["status"], + "Completed") + + #@pytest.mark.custom_mark + def test_managementgroup_start_tenant_backfill(self): + startBackfill = self.cmd('account management-group tenant-backfill start').get_output_in_json() + self.assertIsNotNone(startBackfill) + self.assertEqual(startBackfill["status"], + "Completed") + + #@pytest.mark.custom_mark + def test_managementgroup_name_availability(self): + existingMGName = "testcligroup1" + nonExistingMGName = "testcligroup2" + badMGName = "!badName" + self.cmd('account management-group create --name ' + existingMGName) + alreadyExists = self.cmd('account management-group check-name-availability --name ' + existingMGName).get_output_in_json() + badName = self.cmd('account management-group check-name-availability --name ' + badMGName).get_output_in_json() + goodName = self.cmd('account management-group check-name-availability --name ' + nonExistingMGName).get_output_in_json() + self.cmd('account management-group delete --name ' + existingMGName) + self.assertIsNotNone(alreadyExists) + self.assertEqual(alreadyExists["message"], + "The group with the specified name already exists") + self.assertEqual(alreadyExists["nameAvailable"], + False) + self.assertIsNotNone(badName) + self.assertIn("invalid characters", + badName["message"]) + self.assertEqual(badName["nameAvailable"], + False) + self.assertEqual(goodName["nameAvailable"], + True) From 257dd9b81a6e64be32c90be88779dc2275fd7709 Mon Sep 17 00:00:00 2001 From: Thomas Dolan Date: Wed, 2 Feb 2022 14:06:27 -0800 Subject: [PATCH 09/13] Passed style check --- .../cli/command_modules/resource/commands.py | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/resource/commands.py b/src/azure-cli/azure/cli/command_modules/resource/commands.py index 00e671576f2..cf8e3b51f67 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/commands.py +++ b/src/azure-cli/azure/cli/command_modules/resource/commands.py @@ -26,6 +26,24 @@ logger = get_logger(__name__) +resource_managementgroups_subscriptions_sdk = CliCommandType( + operations_tmpl='azure.mgmt.managementgroups.operations#ManagementGroupSubscriptionsOperations.{}', + client_factory=cf_management_group_subscriptions, + exception_handler=managementgroups_exception_handler +) + +resource_hierarchy_settings_sdk = CliCommandType( + operations_tmpl='azure.mgmt.managementgroups.operations#HierarchySettingsOperations.{}', + client_factory=cf_hierarchy_settings, + exception_handler=managementgroups_exception_handler +) + +resource_managementgroups_entities_sdk = CliCommandType( + operations_tmpl='azure.mgmt.managementgroups.operations#EntitiesOperations.{}', + client_factory=cf_management_group_entities, + exception_handler=managementgroups_exception_handler +) + # Resource group commands def transform_resource_group_list(result): @@ -171,24 +189,6 @@ def load_command_table(self, _): exception_handler=managementgroups_exception_handler ) - resource_managementgroups_subscriptions_sdk = CliCommandType( - operations_tmpl='azure.mgmt.managementgroups.operations#ManagementGroupSubscriptionsOperations.{}', - client_factory=cf_management_group_subscriptions, - exception_handler=managementgroups_exception_handler - ) - - resource_hierarchy_settings_sdk = CliCommandType( - operations_tmpl='azure.mgmt.managementgroups.operations#HierarchySettingsOperations.{}', - client_factory=cf_hierarchy_settings, - exception_handler=managementgroups_exception_handler - ) - - resource_managementgroups_entities_sdk = CliCommandType( - operations_tmpl='azure.mgmt.managementgroups.operations#EntitiesOperations.{}', - client_factory=cf_management_group_entities, - exception_handler=managementgroups_exception_handler - ) - resource_managementgroups_update_type = CliCommandType( operations_tmpl='azure.cli.command_modules.resource.custom#{}', client_factory=cf_management_groups, From d1d8282cb2191528c236226b461e88f710a012a9 Mon Sep 17 00:00:00 2001 From: Thomas Dolan Date: Tue, 8 Feb 2022 16:06:16 -0800 Subject: [PATCH 10/13] Re-ran unit tests after update to PATCH in the MG codebase --- ...t_create_delete_group_managementgroup.yaml | 38 +- .../test_create_managementgroup.yaml | 22 +- ...eate_managementgroup_with_displayname.yaml | 36 +- ...ntgroup_with_displayname_and_parentid.yaml | 130 ++---- ..._create_managementgroup_with_parentid.yaml | 136 ++++-- .../test_list_managementgroups.yaml | 16 +- .../recordings/test_show_managementgroup.yaml | 250 +++++++++-- ...test_show_managementgroup_with_expand.yaml | 424 +++--------------- ...nagementgroup_with_expand_and_recurse.yaml | 260 +++++------ ...date_managementgroup_with_displayname.yaml | 159 ++----- ...ntgroup_with_displayname_and_parentid.yaml | 221 +++++---- ..._update_managementgroup_with_parentid.yaml | 203 +++------ .../tests/latest/test_managmentgroups.py | 16 +- 13 files changed, 782 insertions(+), 1129 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_delete_group_managementgroup.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_delete_group_managementgroup.yaml index 2b12e6a6492..36cc97071a4 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_delete_group_managementgroup.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_delete_group_managementgroup.yaml @@ -31,7 +31,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:07:56 GMT + - Tue, 01 Feb 2022 00:09:26 GMT expires: - '-1' pragma: @@ -45,7 +45,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 200 message: OK @@ -77,7 +77,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:08:06 GMT + - Tue, 01 Feb 2022 00:09:36 GMT expires: - '-1' pragma: @@ -127,7 +127,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:08:07 GMT + - Tue, 01 Feb 2022 00:09:37 GMT expires: - '-1' location: @@ -135,7 +135,7 @@ interactions: pragma: - no-cache request-id: - - 4557eb31-a656-41d4-8bdb-c69987bfd850 + - 678714f0-71b2-45ca-ac0e-08902a721b30 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -181,7 +181,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:08:17 GMT + - Tue, 01 Feb 2022 00:09:47 GMT expires: - '-1' location: @@ -189,7 +189,7 @@ interactions: pragma: - no-cache request-id: - - 0fa15707-d615-4bfe-94fd-0c5d637a6841 + - e30b2d66-94e0-45fe-88f2-45639ab2852b server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -224,7 +224,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":111,"updatedTime":"2022-01-20T22:08:12.7920935Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":145,"updatedTime":"2022-02-01T00:09:41.4233008Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache @@ -233,13 +233,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:08:28 GMT + - Tue, 01 Feb 2022 00:09:58 GMT expires: - '-1' pragma: - no-cache request-id: - - e2a30348-c635-4b6c-b1f7-11f5534671db + - ffb5a9b5-e8a8-4956-8316-69da574d445b server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -274,7 +274,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":111,"updatedTime":"2022-01-20T22:08:12.7920935Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":145,"updatedTime":"2022-02-01T00:09:41.4233008Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root Management Group"}}}}' headers: cache-control: @@ -284,13 +284,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:08:28 GMT + - Tue, 01 Feb 2022 00:09:58 GMT expires: - '-1' pragma: - no-cache request-id: - - 55089ff6-e696-4bb3-875d-aaa45c2ad117 + - 8d652945-6a4b-43b7-b943-063b1251145b server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -338,7 +338,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:08:29 GMT + - Tue, 01 Feb 2022 00:09:59 GMT expires: - '-1' pragma: @@ -384,7 +384,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:08:40 GMT + - Tue, 01 Feb 2022 00:10:10 GMT expires: - '-1' pragma: @@ -432,7 +432,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:08:42 GMT + - Tue, 01 Feb 2022 00:10:10 GMT expires: - '-1' location: @@ -440,7 +440,7 @@ interactions: pragma: - no-cache request-id: - - 928c9094-c7ff-4246-810c-6792d0388b18 + - 172a72ee-edc8-455b-8158-c6b082c5d2c4 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -484,13 +484,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:08:52 GMT + - Tue, 01 Feb 2022 00:10:20 GMT expires: - '-1' pragma: - no-cache request-id: - - 8a0a00b8-14e5-4e1a-8287-84975c4f9976 + - c69be6a7-e898-4f0b-a756-95657840a5dc server: - Microsoft-HTTPAPI/2.0 strict-transport-security: diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_managementgroup.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_managementgroup.yaml index 7a2a8618e9d..235b342ed89 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_managementgroup.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_managementgroup.yaml @@ -31,7 +31,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:05:22 GMT + - Tue, 01 Feb 2022 00:12:59 GMT expires: - '-1' pragma: @@ -77,7 +77,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:05:32 GMT + - Tue, 01 Feb 2022 00:13:08 GMT expires: - '-1' pragma: @@ -116,7 +116,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":110,"updatedTime":"2022-01-20T22:04:11.9852265Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":146,"updatedTime":"2022-02-01T00:12:02.9446334Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root Management Group"}}}}' headers: cache-control: @@ -126,13 +126,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:05:32 GMT + - Tue, 01 Feb 2022 00:13:09 GMT expires: - '-1' pragma: - no-cache request-id: - - 6cd5133a-2bc8-443b-b3c4-6def4b8163c2 + - f42edb06-5533-42b5-8503-754ee4929dff server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -184,7 +184,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:05:34 GMT + - Tue, 01 Feb 2022 00:13:11 GMT expires: - '-1' pragma: @@ -230,7 +230,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:05:44 GMT + - Tue, 01 Feb 2022 00:13:20 GMT expires: - '-1' pragma: @@ -278,7 +278,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:05:45 GMT + - Tue, 01 Feb 2022 00:13:22 GMT expires: - '-1' location: @@ -286,7 +286,7 @@ interactions: pragma: - no-cache request-id: - - b93518d0-1314-462d-baab-154e646beac4 + - 6cb35a71-d6fd-42ea-9e6e-1edea519912b server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -330,13 +330,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:05:56 GMT + - Tue, 01 Feb 2022 00:13:32 GMT expires: - '-1' pragma: - no-cache request-id: - - f0202118-cbd8-4c32-b85b-82ad130cf932 + - be47d96f-0740-423b-ac27-e71250b583fb server: - Microsoft-HTTPAPI/2.0 strict-transport-security: diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_managementgroup_with_displayname.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_managementgroup_with_displayname.yaml index a16641723c1..0bc85738c07 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_managementgroup_with_displayname.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_managementgroup_with_displayname.yaml @@ -31,7 +31,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:10:48 GMT + - Tue, 01 Feb 2022 00:04:24 GMT expires: - '-1' pragma: @@ -77,7 +77,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:10:58 GMT + - Tue, 01 Feb 2022 00:04:34 GMT expires: - '-1' pragma: @@ -128,7 +128,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:10:59 GMT + - Tue, 01 Feb 2022 00:04:34 GMT expires: - '-1' location: @@ -136,7 +136,7 @@ interactions: pragma: - no-cache request-id: - - 3a8bec5b-6bcd-4eae-bbc9-604c984c1541 + - acef7305-afeb-45bc-ac17-72e5872922df server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -182,7 +182,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:11:09 GMT + - Tue, 01 Feb 2022 00:04:45 GMT expires: - '-1' location: @@ -190,7 +190,7 @@ interactions: pragma: - no-cache request-id: - - 22778a62-f5d5-44b8-939a-fe6bbaf071f4 + - 0a40f2a6-c1b3-4ef5-b457-41dfdb1fbb14 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -225,7 +225,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"TestCliDisplayName","details":{"version":112,"updatedTime":"2022-01-20T22:11:05.6797058Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"TestCliDisplayName","details":{"version":143,"updatedTime":"2022-02-01T00:04:40.5616477Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache @@ -234,13 +234,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:11:20 GMT + - Tue, 01 Feb 2022 00:04:55 GMT expires: - '-1' pragma: - no-cache request-id: - - a423a5e0-3386-4890-b307-a1e4c276c09d + - 3916834c-8ca1-4e7c-a197-2c673986acb1 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -275,7 +275,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"TestCliDisplayName","details":{"version":112,"updatedTime":"2022-01-20T22:11:05.6797058Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"TestCliDisplayName","details":{"version":143,"updatedTime":"2022-02-01T00:04:40.5616477Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root Management Group"}}}}' headers: cache-control: @@ -285,13 +285,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:11:20 GMT + - Tue, 01 Feb 2022 00:04:55 GMT expires: - '-1' pragma: - no-cache request-id: - - dcb6c189-fbe7-484e-8675-97d81782795a + - 959eef1b-1f05-47ae-976b-9b68bf484898 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -339,7 +339,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:11:21 GMT + - Tue, 01 Feb 2022 00:04:56 GMT expires: - '-1' pragma: @@ -385,7 +385,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:11:31 GMT + - Tue, 01 Feb 2022 00:05:06 GMT expires: - '-1' pragma: @@ -433,7 +433,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:11:32 GMT + - Tue, 01 Feb 2022 00:05:08 GMT expires: - '-1' location: @@ -441,7 +441,7 @@ interactions: pragma: - no-cache request-id: - - bb1b997e-eee0-49d4-8ec1-377cfbd7d770 + - 46c52fa1-7205-4db4-8a3f-89dc3d964ea6 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -485,13 +485,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:11:42 GMT + - Tue, 01 Feb 2022 00:05:18 GMT expires: - '-1' pragma: - no-cache request-id: - - ce9de3d1-e631-4c66-bd2c-f901cdeab2f5 + - ead21c06-3677-47e7-a804-106c07d07403 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_managementgroup_with_displayname_and_parentid.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_managementgroup_with_displayname_and_parentid.yaml index 0ac1b30b518..f26acd98317 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_managementgroup_with_displayname_and_parentid.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_managementgroup_with_displayname_and_parentid.yaml @@ -31,7 +31,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 21:59:32 GMT + - Tue, 01 Feb 2022 00:06:02 GMT expires: - '-1' pragma: @@ -45,7 +45,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 200 message: OK @@ -77,7 +77,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 21:59:42 GMT + - Tue, 01 Feb 2022 00:06:13 GMT expires: - '-1' pragma: @@ -127,7 +127,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 21:59:42 GMT + - Tue, 01 Feb 2022 00:06:13 GMT expires: - '-1' location: @@ -135,7 +135,7 @@ interactions: pragma: - no-cache request-id: - - bc4edfc6-2336-40d4-96d1-95c186aedaca + - a376c53b-6dcd-4a97-b85b-3718d4295ca0 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -181,61 +181,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 21:59:52 GMT - expires: - - '-1' - location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2021-04-01 - pragma: - - no-cache - request-id: - - edb2a8a6-b456-4839-b3d2-8c5dd544a21d - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-ba-restapi: - - 1.0.3.2425 - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - account management-group create - Connection: - - keep-alive - ParameterSetName: - - --name - User-Agent: - - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 - response: - body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Running"}' - headers: - azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 - cache-control: - - no-cache - content-length: - - '157' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 20 Jan 2022 22:00:03 GMT + - Tue, 01 Feb 2022 00:06:23 GMT expires: - '-1' location: @@ -243,7 +189,7 @@ interactions: pragma: - no-cache request-id: - - d663b4dd-7e20-468c-b60d-e3708c73cf11 + - 7d8011d6-1b42-47f1-851c-f09a34eb1232 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -278,7 +224,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":109,"updatedTime":"2022-01-20T21:59:48.7860364Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":144,"updatedTime":"2022-02-01T00:06:19.2571764Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache @@ -287,13 +233,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:00:14 GMT + - Tue, 01 Feb 2022 00:06:35 GMT expires: - '-1' pragma: - no-cache request-id: - - 615cc412-9427-4083-8b56-0ecae6dc8af1 + - 6915a5dd-b6ac-43f2-8dce-8445e86ce8a1 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -328,7 +274,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":109,"updatedTime":"2022-01-20T21:59:48.7860364Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":144,"updatedTime":"2022-02-01T00:06:19.2571764Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root Management Group"}}}}' headers: cache-control: @@ -338,13 +284,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:00:14 GMT + - Tue, 01 Feb 2022 00:06:35 GMT expires: - '-1' pragma: - no-cache request-id: - - 756854df-162e-4968-b20e-f1114d946fb4 + - 6bfa63f1-b86e-46a5-b66c-7cb04f642b82 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -392,7 +338,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:00:14 GMT + - Tue, 01 Feb 2022 00:06:36 GMT expires: - '-1' pragma: @@ -438,7 +384,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:00:25 GMT + - Tue, 01 Feb 2022 00:06:46 GMT expires: - '-1' pragma: @@ -489,7 +435,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:00:26 GMT + - Tue, 01 Feb 2022 00:06:48 GMT expires: - '-1' location: @@ -497,7 +443,7 @@ interactions: pragma: - no-cache request-id: - - 615c3f3d-0dba-47ff-8a85-dfb1616b9d1f + - bc854a81-625f-4f92-a5eb-6e99694b60b2 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -543,7 +489,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:00:36 GMT + - Tue, 01 Feb 2022 00:06:58 GMT expires: - '-1' location: @@ -551,7 +497,7 @@ interactions: pragma: - no-cache request-id: - - b76df6ac-6790-4258-a1f7-4c3185f84f41 + - 77fd935a-f8c5-4911-8227-5cc8e433dd57 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -586,7 +532,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild","name":"testcligroupchild","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchildDisplayName","details":{"version":78,"updatedTime":"2022-01-20T22:00:31.6080426Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild","name":"testcligroupchild","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchildDisplayName","details":{"version":87,"updatedTime":"2022-02-01T00:06:54.1780936Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache @@ -595,13 +541,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:00:46 GMT + - Tue, 01 Feb 2022 00:07:08 GMT expires: - '-1' pragma: - no-cache request-id: - - 5b48a8a2-f6cc-40ad-b8f3-eeff681fa5ae + - 15c5a14a-7cf5-4294-962b-6a7162772034 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -636,7 +582,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchildDisplayName","details":{"version":78,"updatedTime":"2022-01-20T22:00:31.6080426Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","name":"testcligroup","displayName":"testcligroup"}}}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchildDisplayName","details":{"version":87,"updatedTime":"2022-02-01T00:06:54.1780936Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","name":"testcligroup","displayName":"testcligroup"}}}}' headers: cache-control: - no-cache @@ -645,13 +591,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:00:46 GMT + - Tue, 01 Feb 2022 00:07:08 GMT expires: - '-1' pragma: - no-cache request-id: - - de57d2f9-f46c-4f4f-84b3-c4e3ed60d88f + - d2bf3a5c-a1d5-4d03-960a-18337064c8fc server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -699,7 +645,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:00:48 GMT + - Tue, 01 Feb 2022 00:07:10 GMT expires: - '-1' pragma: @@ -713,7 +659,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1199' status: code: 200 message: OK @@ -745,7 +691,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:00:57 GMT + - Tue, 01 Feb 2022 00:07:20 GMT expires: - '-1' pragma: @@ -793,7 +739,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:00:58 GMT + - Tue, 01 Feb 2022 00:07:21 GMT expires: - '-1' location: @@ -801,7 +747,7 @@ interactions: pragma: - no-cache request-id: - - 4db4a98a-b68f-4996-8666-62c3d5f3bcab + - 2e8fa5a1-5017-474c-9bd1-3b56faae0ef5 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -845,13 +791,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:01:10 GMT + - Tue, 01 Feb 2022 00:07:31 GMT expires: - '-1' pragma: - no-cache request-id: - - 1ba77e1f-0799-4f6d-aa3c-dfd99ef6b808 + - 9f1ff5f1-d164-4f55-b20b-3b390aa33998 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -899,7 +845,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:01:11 GMT + - Tue, 01 Feb 2022 00:07:33 GMT expires: - '-1' pragma: @@ -945,7 +891,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:01:21 GMT + - Tue, 01 Feb 2022 00:07:43 GMT expires: - '-1' pragma: @@ -993,7 +939,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:01:22 GMT + - Tue, 01 Feb 2022 00:07:44 GMT expires: - '-1' location: @@ -1001,7 +947,7 @@ interactions: pragma: - no-cache request-id: - - ab6e491b-b553-4b66-aa30-30dd026e94e0 + - 04760bdd-d7d9-4c6b-b355-b1b8d1c95d37 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1045,13 +991,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:01:32 GMT + - Tue, 01 Feb 2022 00:07:54 GMT expires: - '-1' pragma: - no-cache request-id: - - a07800e9-8667-4739-a236-54cb5cb5ab06 + - 05d9391c-e6cc-4b95-82e9-4aad6d7801bf server: - Microsoft-HTTPAPI/2.0 strict-transport-security: diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_managementgroup_with_parentid.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_managementgroup_with_parentid.yaml index 44342e1b362..33c22be26ee 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_managementgroup_with_parentid.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_create_managementgroup_with_parentid.yaml @@ -31,7 +31,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 21:51:05 GMT + - Tue, 01 Feb 2022 00:14:35 GMT expires: - '-1' pragma: @@ -45,7 +45,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1199' status: code: 200 message: OK @@ -77,7 +77,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 21:51:15 GMT + - Tue, 01 Feb 2022 00:14:45 GMT expires: - '-1' pragma: @@ -127,7 +127,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 21:51:16 GMT + - Tue, 01 Feb 2022 00:14:46 GMT expires: - '-1' location: @@ -135,7 +135,7 @@ interactions: pragma: - no-cache request-id: - - 4fbdfafd-52ab-443c-b58b-ffa5a03c31a9 + - d46512b2-c2f9-4009-9361-44a33845f123 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -181,7 +181,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 21:51:26 GMT + - Tue, 01 Feb 2022 00:14:56 GMT expires: - '-1' location: @@ -189,7 +189,7 @@ interactions: pragma: - no-cache request-id: - - 670765c7-4c7e-4958-b71f-b12b4bcf793c + - 1502d38d-4bc8-42e7-9462-46af1cc2aa9b server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -224,7 +224,61 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":107,"updatedTime":"2022-01-20T21:51:21.8666763Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Running"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '157' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 01 Feb 2022 00:15:06 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - dc6d32bb-8c22-4735-9ea9-c8f24463620f + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":147,"updatedTime":"2022-02-01T00:14:52.9993879Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache @@ -233,13 +287,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 21:51:36 GMT + - Tue, 01 Feb 2022 00:15:16 GMT expires: - '-1' pragma: - no-cache request-id: - - 3d4df397-cf30-4558-bc69-08740b3e5782 + - aad857c0-c2be-4e5f-97ef-c6bb6d87fd72 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -274,7 +328,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":107,"updatedTime":"2022-01-20T21:51:21.8666763Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":147,"updatedTime":"2022-02-01T00:14:52.9993879Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root Management Group"}}}}' headers: cache-control: @@ -284,13 +338,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 21:51:36 GMT + - Tue, 01 Feb 2022 00:15:16 GMT expires: - '-1' pragma: - no-cache request-id: - - 6adc480e-bdf9-4a3d-917f-99151cbedbe5 + - e8ce35d2-4cd1-4b40-8ea3-0ec952af53cb server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -338,7 +392,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 21:51:38 GMT + - Tue, 01 Feb 2022 00:15:18 GMT expires: - '-1' pragma: @@ -352,7 +406,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1196' + - '1198' status: code: 200 message: OK @@ -384,7 +438,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 21:51:48 GMT + - Tue, 01 Feb 2022 00:15:28 GMT expires: - '-1' pragma: @@ -435,7 +489,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 21:51:49 GMT + - Tue, 01 Feb 2022 00:15:29 GMT expires: - '-1' location: @@ -443,7 +497,7 @@ interactions: pragma: - no-cache request-id: - - a98c666c-dbc9-4e17-8720-017e4baaaed1 + - b71de268-421c-4c6a-acc4-e9dc1111653c server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -455,7 +509,7 @@ interactions: x-ms-ratelimit-remaining-managementgroups-requests: - '59' x-ms-ratelimit-remaining-tenant-writes: - - '1198' + - '1199' status: code: 202 message: Accepted @@ -489,7 +543,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 21:51:59 GMT + - Tue, 01 Feb 2022 00:15:39 GMT expires: - '-1' location: @@ -497,7 +551,7 @@ interactions: pragma: - no-cache request-id: - - 6074795d-3436-4e85-a510-b9c3bbd94c7f + - 2946f92b-b7ce-4bbc-bcc4-d19a9bb0d7ab server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -532,7 +586,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild","name":"testcligroupchild","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":75,"updatedTime":"2022-01-20T21:51:56.1316856Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild","name":"testcligroupchild","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":88,"updatedTime":"2022-02-01T00:15:35.1212594Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache @@ -541,13 +595,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 21:52:10 GMT + - Tue, 01 Feb 2022 00:15:50 GMT expires: - '-1' pragma: - no-cache request-id: - - 40941bb4-6417-4278-ab4b-aaa70824f774 + - 68fd84ed-39bc-4161-a327-83d67f614eea server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -582,7 +636,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":75,"updatedTime":"2022-01-20T21:51:56.1316856Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","name":"testcligroup","displayName":"testcligroup"}}}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":88,"updatedTime":"2022-02-01T00:15:35.1212594Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","name":"testcligroup","displayName":"testcligroup"}}}}' headers: cache-control: - no-cache @@ -591,13 +645,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 21:52:10 GMT + - Tue, 01 Feb 2022 00:15:50 GMT expires: - '-1' pragma: - no-cache request-id: - - 7db10ce5-0469-429e-b43a-5d1d5957a13c + - 6533d2cf-29c7-488f-a524-e262eade0373 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -645,7 +699,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 21:52:14 GMT + - Tue, 01 Feb 2022 00:15:51 GMT expires: - '-1' pragma: @@ -659,7 +713,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1198' status: code: 200 message: OK @@ -691,7 +745,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 21:52:24 GMT + - Tue, 01 Feb 2022 00:16:01 GMT expires: - '-1' pragma: @@ -739,7 +793,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 21:52:31 GMT + - Tue, 01 Feb 2022 00:16:03 GMT expires: - '-1' location: @@ -747,7 +801,7 @@ interactions: pragma: - no-cache request-id: - - 50b87523-ba09-453b-9075-2f4fd4fbbdb1 + - 2b8111d2-40a1-4f5e-bd2b-05c311dbcf8a server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -791,13 +845,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 21:52:42 GMT + - Tue, 01 Feb 2022 00:16:13 GMT expires: - '-1' pragma: - no-cache request-id: - - 753ba98e-1149-4026-bfc2-be973f3c2587 + - 61449b29-6a13-4a35-b357-3b92fe9b2438 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -845,7 +899,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 21:52:42 GMT + - Tue, 01 Feb 2022 00:16:14 GMT expires: - '-1' pragma: @@ -859,7 +913,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 200 message: OK @@ -891,7 +945,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 21:52:52 GMT + - Tue, 01 Feb 2022 00:16:24 GMT expires: - '-1' pragma: @@ -939,7 +993,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 21:52:54 GMT + - Tue, 01 Feb 2022 00:16:26 GMT expires: - '-1' location: @@ -947,7 +1001,7 @@ interactions: pragma: - no-cache request-id: - - 7e05dc5d-57eb-457f-8d14-2a2bca5bbfb2 + - afb1fb45-38a6-4b3c-893a-da30b6c66721 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -991,13 +1045,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 21:53:04 GMT + - Tue, 01 Feb 2022 00:16:36 GMT expires: - '-1' pragma: - no-cache request-id: - - 998429eb-a77c-4ded-8394-277370eebb3e + - 96630cb7-d98e-44a8-816d-29be455bacba server: - Microsoft-HTTPAPI/2.0 strict-transport-security: diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_list_managementgroups.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_list_managementgroups.yaml index 87cf93e5ed1..5eae737554e 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_list_managementgroups.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_list_managementgroups.yaml @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 21:49:06 GMT + - Tue, 01 Feb 2022 00:16:47 GMT expires: - '-1' pragma: @@ -43,7 +43,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 200 message: OK @@ -73,7 +73,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 21:49:17 GMT + - Tue, 01 Feb 2022 00:16:57 GMT expires: - '-1' pragma: @@ -106,23 +106,23 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups?api-version=2021-04-01 response: body: - string: '{"value":[{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","type":"Microsoft.Management/managementGroups","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root - Management Group"}},{"id":"/providers/Microsoft.Management/managementGroups/testMG3","type":"Microsoft.Management/managementGroups","name":"testMG3","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testMG3"}},{"id":"/providers/Microsoft.Management/managementGroups/testMG4","type":"Microsoft.Management/managementGroups","name":"testMG4","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testMG4"}},{"id":"/providers/Microsoft.Management/managementGroups/thomasdolanTestMG","type":"Microsoft.Management/managementGroups","name":"thomasdolanTestMG","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"thomasdolanTestMG"}}],"@nextLink":null}' + string: '{"value":[{"id":"/providers/Microsoft.Management/managementGroups/azure-cli-managementaizr2dd4fz","type":"Microsoft.Management/managementGroups","name":"azure-cli-managementaizr2dd4fz","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"azure-cli-managementaizr2dd4fz"}},{"id":"/providers/Microsoft.Management/managementGroups/azure-cli-managementb4osamcwmj","type":"Microsoft.Management/managementGroups","name":"azure-cli-managementb4osamcwmj","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"azure-cli-managementb4osamcwmj"}},{"id":"/providers/Microsoft.Management/managementGroups/azure-cli-management-groupm2apk2ydbnxvjc","type":"Microsoft.Management/managementGroups","name":"azure-cli-management-groupm2apk2ydbnxvjc","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"azure-cli-management-groupm2apk2ydbnxvjc"}},{"id":"/providers/Microsoft.Management/managementGroups/azure-cli-management-groupnforubwtqei527","type":"Microsoft.Management/managementGroups","name":"azure-cli-management-groupnforubwtqei527","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"azure-cli-management-groupnforubwtqei527"}},{"id":"/providers/Microsoft.Management/managementGroups/azure-cli-managementz5v4ynfco4","type":"Microsoft.Management/managementGroups","name":"azure-cli-managementz5v4ynfco4","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"azure-cli-managementz5v4ynfco4"}},{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","type":"Microsoft.Management/managementGroups","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + Management Group"}},{"id":"/providers/Microsoft.Management/managementGroups/cli-test-mgmt-groupeg2st77efvn","type":"Microsoft.Management/managementGroups","name":"cli-test-mgmt-groupeg2st77efvn","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"cli-test-mgmt-groupeg2st77efvn"}},{"id":"/providers/Microsoft.Management/managementGroups/cli-test-mgmt-groupsoe7y63ziif","type":"Microsoft.Management/managementGroups","name":"cli-test-mgmt-groupsoe7y63ziif","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"cli-test-mgmt-groupsoe7y63ziif"}},{"id":"/providers/Microsoft.Management/managementGroups/testMG3","type":"Microsoft.Management/managementGroups","name":"testMG3","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testMG3"}},{"id":"/providers/Microsoft.Management/managementGroups/testMG4","type":"Microsoft.Management/managementGroups","name":"testMG4","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testMG4"}},{"id":"/providers/Microsoft.Management/managementGroups/thomasdolanTestMG","type":"Microsoft.Management/managementGroups","name":"thomasdolanTestMG","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"thomasdolanTestMG"}}],"@nextLink":null}' headers: cache-control: - no-cache content-length: - - '1006' + - '3082' content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 21:49:18 GMT + - Tue, 01 Feb 2022 00:16:58 GMT expires: - '-1' pragma: - no-cache request-id: - - 6f123544-b0bf-4ea5-95bc-3e883e0f6ddb + - 402e9b0e-7212-40a2-829b-bc1594775997 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_show_managementgroup.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_show_managementgroup.yaml index 46f36538c4d..7405baafdac 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_show_managementgroup.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_show_managementgroup.yaml @@ -31,7 +31,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:32:25 GMT + - Tue, 08 Feb 2022 23:09:07 GMT expires: - '-1' pragma: @@ -77,7 +77,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:32:35 GMT + - Tue, 08 Feb 2022 23:09:17 GMT expires: - '-1' pragma: @@ -116,23 +116,181 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup","type":"Microsoft.Management/managementGroups","name":"testcligetgroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup","details":{"version":7,"updatedTime":"2022-01-20T22:30:52.1255618Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup","type":"Microsoft.Management/managementGroups","name":"testcligetgroup","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '167' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 08 Feb 2022 23:09:17 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 1ecb1df4-d42d-4883-b1ce-fcf0b742c705 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup","name":"testcligetgroup","status":"Running"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '163' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 08 Feb 2022 23:09:28 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 84522a2e-effc-4500-bf46-7906d8a78d11 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup","name":"testcligetgroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup","details":{"version":12,"updatedTime":"2022-02-08T23:09:24.7360301Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + headers: + cache-control: + - no-cache + content-length: + - '383' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 08 Feb 2022 23:09:38 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - c3445fdb-f64c-4a9c-abb4-be3a89ace6ca + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup","type":"Microsoft.Management/managementGroups","name":"testcligetgroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup","details":{"version":12,"updatedTime":"2022-02-08T23:09:24.7360301Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root Management Group"}}}}' headers: cache-control: - no-cache content-length: - - '550' + - '551' content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:32:36 GMT + - Tue, 08 Feb 2022 23:09:38 GMT expires: - '-1' pragma: - no-cache request-id: - - 64cde2e5-3b0f-4622-9731-77e8688f620c + - 873381f0-cf1d-498d-a228-56959a86a251 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -145,10 +303,6 @@ interactions: - 1.0.3.2425 x-content-type-options: - nosniff - x-ms-ratelimit-remaining-managementgroups-requests: - - '59' - x-ms-ratelimit-remaining-tenant-writes: - - '1199' status: code: 200 message: OK @@ -184,7 +338,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:32:37 GMT + - Tue, 08 Feb 2022 23:09:39 GMT expires: - '-1' pragma: @@ -230,7 +384,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:32:47 GMT + - Tue, 08 Feb 2022 23:09:50 GMT expires: - '-1' pragma: @@ -281,7 +435,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:32:47 GMT + - Tue, 08 Feb 2022 23:09:51 GMT expires: - '-1' location: @@ -289,13 +443,13 @@ interactions: pragma: - no-cache request-id: - - 3e1f490c-1e62-4526-b910-180ba1065655 + - f6d30e5f-52b2-48ce-931f-905891ff5732 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: @@ -335,7 +489,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:32:57 GMT + - Tue, 08 Feb 2022 23:10:01 GMT expires: - '-1' location: @@ -343,7 +497,7 @@ interactions: pragma: - no-cache request-id: - - aed0f074-1470-4a4a-acbb-edc689e328e3 + - c47a95ec-6c12-4171-a041-d67abbb631ea server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -353,7 +507,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -378,22 +532,22 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1","name":"testcligetgroup1","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup1","details":{"version":20,"updatedTime":"2022-01-20T22:32:54.49124Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1","name":"testcligetgroup1","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup1","details":{"version":26,"updatedTime":"2022-02-08T23:09:57.460122Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache content-length: - - '384' + - '385' content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:33:08 GMT + - Tue, 08 Feb 2022 23:10:24 GMT expires: - '-1' pragma: - no-cache request-id: - - a199466a-c7a5-4c28-8740-82981c861dd9 + - 2228b96e-1bec-4661-963f-99c4eee1256d server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -403,7 +557,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -428,22 +582,22 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"Microsoft.Management/managementGroups","name":"testcligetgroup1","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup1","details":{"version":20,"updatedTime":"2022-01-20T22:32:54.49124Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup","name":"testcligetgroup","displayName":"testcligetgroup"}}}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"Microsoft.Management/managementGroups","name":"testcligetgroup1","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup1","details":{"version":26,"updatedTime":"2022-02-08T23:09:57.460122Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup","name":"testcligetgroup","displayName":"testcligetgroup"}}}}' headers: cache-control: - no-cache content-length: - - '504' + - '505' content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:33:08 GMT + - Tue, 08 Feb 2022 23:10:24 GMT expires: - '-1' pragma: - no-cache request-id: - - 6228ac44-ecbe-4316-ba7d-ff8c135620f8 + - 95bcf53c-ed7d-44d0-aeb4-0cbbf4d8d756 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -453,7 +607,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -491,7 +645,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:33:10 GMT + - Tue, 08 Feb 2022 23:10:26 GMT expires: - '-1' pragma: @@ -537,7 +691,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:33:19 GMT + - Tue, 08 Feb 2022 23:10:36 GMT expires: - '-1' pragma: @@ -572,22 +726,22 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"Microsoft.Management/managementGroups","name":"testcligetgroup1","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup1","details":{"version":20,"updatedTime":"2022-01-20T22:32:54.49124Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup","name":"testcligetgroup","displayName":"testcligetgroup"}}}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"Microsoft.Management/managementGroups","name":"testcligetgroup1","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup1","details":{"version":26,"updatedTime":"2022-02-08T23:09:57.460122Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup","name":"testcligetgroup","displayName":"testcligetgroup"}}}}' headers: cache-control: - no-cache content-length: - - '504' + - '505' content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:33:20 GMT + - Tue, 08 Feb 2022 23:10:36 GMT expires: - '-1' pragma: - no-cache request-id: - - 342ba574-01c6-46e7-b2c5-9dde5c7c6778 + - b2cb0c7d-f99d-41c5-84c3-f83bf6f6f4cf server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -597,7 +751,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -635,7 +789,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:33:21 GMT + - Tue, 08 Feb 2022 23:10:36 GMT expires: - '-1' pragma: @@ -681,7 +835,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:33:31 GMT + - Tue, 08 Feb 2022 23:10:47 GMT expires: - '-1' pragma: @@ -729,7 +883,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:33:33 GMT + - Tue, 08 Feb 2022 23:10:48 GMT expires: - '-1' location: @@ -737,7 +891,7 @@ interactions: pragma: - no-cache request-id: - - e94c502a-eac4-4410-a98e-84b978697064 + - d0c2726e-a9b7-4080-a781-7cf47d1ca073 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -781,13 +935,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:33:43 GMT + - Tue, 08 Feb 2022 23:10:58 GMT expires: - '-1' pragma: - no-cache request-id: - - 3920b6c2-cd0a-46c6-b833-f448fb54c8ff + - bff3dca9-c775-4067-8912-bf67e8fbfaf5 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -835,7 +989,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:33:44 GMT + - Tue, 08 Feb 2022 23:10:59 GMT expires: - '-1' pragma: @@ -849,7 +1003,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 200 message: OK @@ -881,7 +1035,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:33:54 GMT + - Tue, 08 Feb 2022 23:11:09 GMT expires: - '-1' pragma: @@ -929,7 +1083,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:33:55 GMT + - Tue, 08 Feb 2022 23:11:11 GMT expires: - '-1' location: @@ -937,7 +1091,7 @@ interactions: pragma: - no-cache request-id: - - f8be9d42-8f8f-4a8f-9839-b9074db601e1 + - 374a7a0a-64b9-4a66-adff-26f007932673 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -981,13 +1135,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:34:06 GMT + - Tue, 08 Feb 2022 23:11:21 GMT expires: - '-1' pragma: - no-cache request-id: - - d7999f78-dfba-45ae-9f7d-b7740b09a97f + - 4d0fc058-7332-41bb-9bcc-e649409dea44 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_show_managementgroup_with_expand.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_show_managementgroup_with_expand.yaml index 137d52ae516..089afff9cfb 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_show_managementgroup_with_expand.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_show_managementgroup_with_expand.yaml @@ -31,7 +31,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:16:09 GMT + - Tue, 08 Feb 2022 23:17:15 GMT expires: - '-1' pragma: @@ -45,7 +45,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 200 message: OK @@ -77,7 +77,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:16:19 GMT + - Tue, 08 Feb 2022 23:17:25 GMT expires: - '-1' pragma: @@ -116,7 +116,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup","type":"Microsoft.Management/managementGroups","name":"testcligetgroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup","details":{"version":5,"updatedTime":"2022-01-20T22:13:16.9943433Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup","type":"Microsoft.Management/managementGroups","name":"testcligetgroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup","details":{"version":13,"updatedTime":"2022-02-08T23:13:07.242818Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root Management Group"}}}}' headers: cache-control: @@ -126,13 +126,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:16:20 GMT + - Tue, 08 Feb 2022 23:17:26 GMT expires: - '-1' pragma: - no-cache request-id: - - 174b76be-923f-4576-890d-f1363373b711 + - e859a623-e50e-4d39-872c-48cd8f87d26b server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -142,13 +142,13 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: - '59' x-ms-ratelimit-remaining-tenant-writes: - - '1197' + - '1199' status: code: 200 message: OK @@ -184,7 +184,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:16:21 GMT + - Tue, 08 Feb 2022 23:17:27 GMT expires: - '-1' pragma: @@ -230,7 +230,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:16:31 GMT + - Tue, 08 Feb 2022 23:17:36 GMT expires: - '-1' pragma: @@ -270,165 +270,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"Microsoft.Management/managementGroups","name":"testcligetgroup1","status":"NotStarted"}' - headers: - azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 - cache-control: - - no-cache - content-length: - - '169' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 20 Jan 2022 22:16:33 GMT - expires: - - '-1' - location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup1?api-version=2021-04-01 - pragma: - - no-cache - request-id: - - a88c3fa1-b855-4921-b7ec-d29dd6069d96 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-ba-restapi: - - 1.0.3.2425 - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-managementgroups-requests: - - '59' - x-ms-ratelimit-remaining-tenant-writes: - - '1198' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - account management-group create - Connection: - - keep-alive - ParameterSetName: - - --name --parent - User-Agent: - - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 - response: - body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1","name":"testcligetgroup1","status":"Running"}' - headers: - azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 - cache-control: - - no-cache - content-length: - - '165' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 20 Jan 2022 22:16:43 GMT - expires: - - '-1' - location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup1?api-version=2021-04-01 - pragma: - - no-cache - request-id: - - 10593cc3-4f87-4d9f-9c68-7c1bc3435437 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-ba-restapi: - - 1.0.3.2425 - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - account management-group create - Connection: - - keep-alive - ParameterSetName: - - --name --parent - User-Agent: - - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 - response: - body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1","name":"testcligetgroup1","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup1","details":{"version":17,"updatedTime":"2022-01-20T22:16:38.2294134Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' - headers: - cache-control: - - no-cache - content-length: - - '386' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 20 Jan 2022 22:16:53 GMT - expires: - - '-1' - pragma: - - no-cache - request-id: - - ebb1ad14-3b39-4d18-a472-1dd9942d9ec7 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-ba-restapi: - - 1.0.3.2425 - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - account management-group create - Connection: - - keep-alive - ParameterSetName: - - --name --parent - User-Agent: - - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2021-04-01 - response: - body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"Microsoft.Management/managementGroups","name":"testcligetgroup1","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup1","details":{"version":17,"updatedTime":"2022-01-20T22:16:38.2294134Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup","name":"testcligetgroup","displayName":"testcligetgroup"}}}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"Microsoft.Management/managementGroups","name":"testcligetgroup1","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup1","details":{"version":27,"updatedTime":"2022-02-08T23:14:36.9437621Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup","name":"testcligetgroup","displayName":"testcligetgroup"}}}}' headers: cache-control: - no-cache @@ -437,13 +279,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:16:53 GMT + - Tue, 08 Feb 2022 23:17:38 GMT expires: - '-1' pragma: - no-cache request-id: - - 36d9a96d-d3a1-474d-8784-8fc314ba21b6 + - 4fb0f422-3174-45bc-8e50-50885aa80bd1 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -453,9 +295,13 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-writes: + - '1199' status: code: 200 message: OK @@ -491,7 +337,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:16:55 GMT + - Tue, 08 Feb 2022 23:17:38 GMT expires: - '-1' pragma: @@ -537,7 +383,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:17:05 GMT + - Tue, 08 Feb 2022 23:17:49 GMT expires: - '-1' pragma: @@ -577,165 +423,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup2?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"Microsoft.Management/managementGroups","name":"testcligetgroup2","status":"NotStarted"}' - headers: - azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2?api-version=2021-04-01 - cache-control: - - no-cache - content-length: - - '169' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 20 Jan 2022 22:17:06 GMT - expires: - - '-1' - location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup2?api-version=2021-04-01 - pragma: - - no-cache - request-id: - - 592049b1-9102-4557-9d95-b761e2e8cdaa - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-ba-restapi: - - 1.0.3.2425 - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-managementgroups-requests: - - '59' - x-ms-ratelimit-remaining-tenant-writes: - - '1197' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - account management-group create - Connection: - - keep-alive - ParameterSetName: - - --name --parent - User-Agent: - - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2?api-version=2021-04-01 - response: - body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2","name":"testcligetgroup2","status":"Running"}' - headers: - azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2?api-version=2021-04-01 - cache-control: - - no-cache - content-length: - - '165' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 20 Jan 2022 22:17:16 GMT - expires: - - '-1' - location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup2?api-version=2021-04-01 - pragma: - - no-cache - request-id: - - cd43487c-6760-46ae-938a-523b66fb2469 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-ba-restapi: - - 1.0.3.2425 - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - account management-group create - Connection: - - keep-alive - ParameterSetName: - - --name --parent - User-Agent: - - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2?api-version=2021-04-01 - response: - body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2","name":"testcligetgroup2","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup2","details":{"version":15,"updatedTime":"2022-01-20T22:17:11.5316866Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' - headers: - cache-control: - - no-cache - content-length: - - '386' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 20 Jan 2022 22:17:27 GMT - expires: - - '-1' - pragma: - - no-cache - request-id: - - 08608b47-30c5-4ae6-9b80-a2e64948b5de - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-ba-restapi: - - 1.0.3.2425 - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - account management-group create - Connection: - - keep-alive - ParameterSetName: - - --name --parent - User-Agent: - - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup2?api-version=2021-04-01 - response: - body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"Microsoft.Management/managementGroups","name":"testcligetgroup2","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup2","details":{"version":15,"updatedTime":"2022-01-20T22:17:11.5316866Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","name":"testcligetgroup1","displayName":"testcligetgroup1"}}}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"Microsoft.Management/managementGroups","name":"testcligetgroup2","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup2","details":{"version":20,"updatedTime":"2022-02-08T23:16:13.0008149Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","name":"testcligetgroup1","displayName":"testcligetgroup1"}}}}' headers: cache-control: - no-cache @@ -744,13 +432,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:17:27 GMT + - Tue, 08 Feb 2022 23:17:50 GMT expires: - '-1' pragma: - no-cache request-id: - - 4f630d56-65ca-42c2-b5ca-10a00080f778 + - 0ed0711e-be2a-4c27-a603-d71ad95794e2 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -760,9 +448,13 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-writes: + - '1199' status: code: 200 message: OK @@ -798,7 +490,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:17:27 GMT + - Tue, 08 Feb 2022 23:17:51 GMT expires: - '-1' pragma: @@ -844,7 +536,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:17:38 GMT + - Tue, 08 Feb 2022 23:18:01 GMT expires: - '-1' pragma: @@ -879,7 +571,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2021-04-01&$expand=children&$recurse=false response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"Microsoft.Management/managementGroups","name":"testcligetgroup1","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup1","details":{"version":17,"updatedTime":"2022-01-20T22:16:38.2294134Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup","name":"testcligetgroup","displayName":"testcligetgroup"}},"children":[{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"Microsoft.Management/managementGroups","name":"testcligetgroup2","displayName":"testcligetgroup2"}]}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"Microsoft.Management/managementGroups","name":"testcligetgroup1","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup1","details":{"version":27,"updatedTime":"2022-02-08T23:14:36.9437621Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup","name":"testcligetgroup","displayName":"testcligetgroup"}},"children":[{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"Microsoft.Management/managementGroups","name":"testcligetgroup2","displayName":"testcligetgroup2"}]}}' headers: cache-control: - no-cache @@ -888,13 +580,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:17:39 GMT + - Tue, 08 Feb 2022 23:18:01 GMT expires: - '-1' pragma: - no-cache request-id: - - 204b6787-b254-48a7-b510-06f09ffa31e6 + - 5f1f50d9-6d6f-41a0-a244-b3a90e6ae6ef server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -942,7 +634,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:17:39 GMT + - Tue, 08 Feb 2022 23:18:02 GMT expires: - '-1' pragma: @@ -956,7 +648,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 200 message: OK @@ -988,7 +680,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:17:49 GMT + - Tue, 08 Feb 2022 23:18:12 GMT expires: - '-1' pragma: @@ -1036,7 +728,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:17:51 GMT + - Tue, 08 Feb 2022 23:18:14 GMT expires: - '-1' location: @@ -1044,7 +736,7 @@ interactions: pragma: - no-cache request-id: - - c359a519-97a7-4b5c-86da-b7c8a17f9414 + - 7246f945-d483-4727-8f8f-6d7c02ee244c server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1088,13 +780,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:18:01 GMT + - Tue, 08 Feb 2022 23:18:24 GMT expires: - '-1' pragma: - no-cache request-id: - - 76bd0fb5-2ac1-4c39-bdec-9e17cf3ebb39 + - 7a0d1037-6bdd-4908-9fdb-be0ecf4811bf server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1142,7 +834,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:18:02 GMT + - Tue, 08 Feb 2022 23:18:25 GMT expires: - '-1' pragma: @@ -1188,7 +880,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:18:12 GMT + - Tue, 08 Feb 2022 23:18:35 GMT expires: - '-1' pragma: @@ -1236,7 +928,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:18:13 GMT + - Tue, 08 Feb 2022 23:18:36 GMT expires: - '-1' location: @@ -1244,13 +936,13 @@ interactions: pragma: - no-cache request-id: - - 517496c2-6d95-426a-8f40-9ca3dd7ef111 + - 7ed8d69c-6265-4d5e-a309-49a73bf31db3 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: @@ -1288,13 +980,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:18:23 GMT + - Tue, 08 Feb 2022 23:18:47 GMT expires: - '-1' pragma: - no-cache request-id: - - e6586c18-12dc-407e-9b7d-d9ff65db730a + - 963bd8c6-ad83-4409-97b2-4097c6a07384 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1304,7 +996,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -1342,7 +1034,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:18:25 GMT + - Tue, 08 Feb 2022 23:18:47 GMT expires: - '-1' pragma: @@ -1356,7 +1048,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 200 message: OK @@ -1388,7 +1080,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:18:35 GMT + - Tue, 08 Feb 2022 23:18:57 GMT expires: - '-1' pragma: @@ -1436,7 +1128,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:18:35 GMT + - Tue, 08 Feb 2022 23:18:59 GMT expires: - '-1' location: @@ -1444,17 +1136,17 @@ interactions: pragma: - no-cache request-id: - - e01172c8-86f9-41b0-be3b-aced32c63c99 + - 4052d136-aab1-4c42-b9b9-b1d026d52f9e server: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: - - '59' + - '58' x-ms-ratelimit-remaining-tenant-deletes: - '14998' status: @@ -1488,13 +1180,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:18:45 GMT + - Tue, 08 Feb 2022 23:19:09 GMT expires: - '-1' pragma: - no-cache request-id: - - 1c9503b9-c0f0-4400-a6b7-4555afdd4c26 + - 9e57eb07-c592-450a-8003-d8bc647b82c0 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1504,7 +1196,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_show_managementgroup_with_expand_and_recurse.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_show_managementgroup_with_expand_and_recurse.yaml index e959def34a2..a10b23a0a13 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_show_managementgroup_with_expand_and_recurse.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_show_managementgroup_with_expand_and_recurse.yaml @@ -31,7 +31,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:35:32 GMT + - Tue, 08 Feb 2022 23:37:12 GMT expires: - '-1' pragma: @@ -45,7 +45,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 200 message: OK @@ -77,7 +77,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:35:42 GMT + - Tue, 08 Feb 2022 23:37:22 GMT expires: - '-1' pragma: @@ -127,7 +127,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:35:42 GMT + - Tue, 08 Feb 2022 23:37:23 GMT expires: - '-1' location: @@ -135,7 +135,7 @@ interactions: pragma: - no-cache request-id: - - 7af0630f-02a8-4810-a456-8d12c3963df6 + - 89f6413f-d5ea-4c2a-97b7-f8d6bb338022 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -181,61 +181,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:35:53 GMT - expires: - - '-1' - location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup1?api-version=2021-04-01 - pragma: - - no-cache - request-id: - - a9d0df3f-8383-4d0a-9ed8-f7cf08bd1de8 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-ba-restapi: - - 1.0.3.2425 - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - account management-group create - Connection: - - keep-alive - ParameterSetName: - - --name - User-Agent: - - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 - response: - body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1","name":"testcligetgroup1","status":"Running"}' - headers: - azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 - cache-control: - - no-cache - content-length: - - '165' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 20 Jan 2022 22:36:03 GMT + - Tue, 08 Feb 2022 23:37:33 GMT expires: - '-1' location: @@ -243,7 +189,7 @@ interactions: pragma: - no-cache request-id: - - 6abdffe7-dbba-497c-8eef-248247e43a6f + - f4010b37-e1ae-4dfc-a96e-5f887f2373b0 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -278,22 +224,22 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1","name":"testcligetgroup1","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup1","details":{"version":21,"updatedTime":"2022-01-20T22:35:49.145399Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1","name":"testcligetgroup1","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup1","details":{"version":28,"updatedTime":"2022-02-08T23:37:30.6399713Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache content-length: - - '385' + - '386' content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:36:14 GMT + - Tue, 08 Feb 2022 23:37:44 GMT expires: - '-1' pragma: - no-cache request-id: - - 966bc560-bfbc-492c-be2e-3429f74ced73 + - 5d55d633-f2ab-4edf-89af-7c11b58220b1 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -328,23 +274,23 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"Microsoft.Management/managementGroups","name":"testcligetgroup1","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup1","details":{"version":21,"updatedTime":"2022-01-20T22:35:49.145399Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"Microsoft.Management/managementGroups","name":"testcligetgroup1","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup1","details":{"version":28,"updatedTime":"2022-02-08T23:37:30.6399713Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root Management Group"}}}}' headers: cache-control: - no-cache content-length: - - '553' + - '554' content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:36:14 GMT + - Tue, 08 Feb 2022 23:37:44 GMT expires: - '-1' pragma: - no-cache request-id: - - 467bc013-d992-4920-aeec-957a65000e51 + - e3326adb-174c-4723-a89e-066d6b739bea server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -392,7 +338,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:36:16 GMT + - Tue, 08 Feb 2022 23:37:45 GMT expires: - '-1' pragma: @@ -438,7 +384,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:36:26 GMT + - Tue, 08 Feb 2022 23:37:55 GMT expires: - '-1' pragma: @@ -489,7 +435,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:36:26 GMT + - Tue, 08 Feb 2022 23:37:57 GMT expires: - '-1' location: @@ -497,7 +443,7 @@ interactions: pragma: - no-cache request-id: - - c3eb53b5-3dd4-4bf0-89c8-4b8b42c00db2 + - d2b466b9-695d-4acb-b819-8bf86ddd1107 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -507,7 +453,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: - - '58' + - '59' x-ms-ratelimit-remaining-tenant-writes: - '1199' status: @@ -543,7 +489,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:36:36 GMT + - Tue, 08 Feb 2022 23:38:07 GMT expires: - '-1' location: @@ -551,7 +497,7 @@ interactions: pragma: - no-cache request-id: - - 9e8b134e-3aca-4200-9f88-91ebb12597a6 + - f80ec3e4-9780-40cd-9d7c-0a70d6ec5867 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -586,7 +532,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2","name":"testcligetgroup2","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup2","details":{"version":17,"updatedTime":"2022-01-20T22:36:32.2740044Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2","name":"testcligetgroup2","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup2","details":{"version":21,"updatedTime":"2022-02-08T23:38:02.9545543Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache @@ -595,13 +541,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:36:47 GMT + - Tue, 08 Feb 2022 23:38:17 GMT expires: - '-1' pragma: - no-cache request-id: - - d91db10f-3756-4491-b9e4-ba821da66a57 + - c74947f5-e7f9-4d4a-9c52-6494e68d8468 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -636,7 +582,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup2?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"Microsoft.Management/managementGroups","name":"testcligetgroup2","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup2","details":{"version":17,"updatedTime":"2022-01-20T22:36:32.2740044Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","name":"testcligetgroup1","displayName":"testcligetgroup1"}}}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"Microsoft.Management/managementGroups","name":"testcligetgroup2","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup2","details":{"version":21,"updatedTime":"2022-02-08T23:38:02.9545543Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","name":"testcligetgroup1","displayName":"testcligetgroup1"}}}}' headers: cache-control: - no-cache @@ -645,13 +591,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:36:47 GMT + - Tue, 08 Feb 2022 23:38:18 GMT expires: - '-1' pragma: - no-cache request-id: - - 3951f3c0-c87d-4a9a-8f31-d1a08343fc4e + - 8d2b80f7-d4bf-4601-b6b9-29dc9c7d5d99 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -699,7 +645,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:36:48 GMT + - Tue, 08 Feb 2022 23:38:18 GMT expires: - '-1' pragma: @@ -713,7 +659,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 200 message: OK @@ -745,7 +691,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:36:58 GMT + - Tue, 08 Feb 2022 23:38:28 GMT expires: - '-1' pragma: @@ -796,7 +742,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:36:59 GMT + - Tue, 08 Feb 2022 23:38:30 GMT expires: - '-1' location: @@ -804,13 +750,13 @@ interactions: pragma: - no-cache request-id: - - be8ab314-dd62-4696-98f9-41a00c2afe8c + - 06a79f1f-b420-451b-98b1-383fd9d7c4d1 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: @@ -850,7 +796,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:37:10 GMT + - Tue, 08 Feb 2022 23:38:40 GMT expires: - '-1' location: @@ -858,7 +804,7 @@ interactions: pragma: - no-cache request-id: - - 3bbce24a-63ea-47c0-ab4b-f381ca44b923 + - 60b5910f-5385-4060-b7f4-7366dff87b67 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -868,7 +814,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -893,22 +839,22 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup3?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup3","name":"testcligetgroup3","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup3","details":{"version":8,"updatedTime":"2022-01-20T22:37:06.1341459Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup3","name":"testcligetgroup3","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup3","details":{"version":10,"updatedTime":"2022-02-08T23:38:35.3070334Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache content-length: - - '385' + - '386' content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:37:20 GMT + - Tue, 08 Feb 2022 23:38:50 GMT expires: - '-1' pragma: - no-cache request-id: - - 03222ebb-80d7-405b-9524-2acfd04a1397 + - 5be737a7-3583-4aea-a9ed-622d1427e2e8 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -918,7 +864,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -943,22 +889,22 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup3?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup3","type":"Microsoft.Management/managementGroups","name":"testcligetgroup3","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup3","details":{"version":8,"updatedTime":"2022-01-20T22:37:06.1341459Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","name":"testcligetgroup2","displayName":"testcligetgroup2"}}}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup3","type":"Microsoft.Management/managementGroups","name":"testcligetgroup3","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup3","details":{"version":10,"updatedTime":"2022-02-08T23:38:35.3070334Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","name":"testcligetgroup2","displayName":"testcligetgroup2"}}}}' headers: cache-control: - no-cache content-length: - - '508' + - '509' content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:37:20 GMT + - Tue, 08 Feb 2022 23:38:51 GMT expires: - '-1' pragma: - no-cache request-id: - - d212c1b1-64b8-45ec-9266-51138f73aa07 + - b8bbb7dd-da91-4fb2-b16c-d12e35ba05c6 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -968,7 +914,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -1006,7 +952,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:37:22 GMT + - Tue, 08 Feb 2022 23:38:52 GMT expires: - '-1' pragma: @@ -1020,7 +966,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 200 message: OK @@ -1052,7 +998,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:37:32 GMT + - Tue, 08 Feb 2022 23:39:02 GMT expires: - '-1' pragma: @@ -1103,7 +1049,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:37:33 GMT + - Tue, 08 Feb 2022 23:39:03 GMT expires: - '-1' location: @@ -1111,17 +1057,17 @@ interactions: pragma: - no-cache request-id: - - 90450b1c-8066-4059-8f58-4e8dd693c9f2 + - 5ae0ae0f-0fba-4d12-a71c-c99b14175e95 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: - - '59' + - '58' x-ms-ratelimit-remaining-tenant-writes: - '1199' status: @@ -1157,7 +1103,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:37:43 GMT + - Tue, 08 Feb 2022 23:39:13 GMT expires: - '-1' location: @@ -1165,7 +1111,7 @@ interactions: pragma: - no-cache request-id: - - 1964db4c-e9a7-4823-b5f0-8580d6e7bf74 + - ec683c16-5695-4db7-8bf6-c96b6081ee38 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1175,7 +1121,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -1200,7 +1146,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup4?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup4","name":"testcligetgroup4","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup4","details":{"version":5,"updatedTime":"2022-01-20T22:37:40.0736042Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup4","name":"testcligetgroup4","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup4","details":{"version":7,"updatedTime":"2022-02-08T23:39:09.7510127Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache @@ -1209,13 +1155,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:37:54 GMT + - Tue, 08 Feb 2022 23:39:25 GMT expires: - '-1' pragma: - no-cache request-id: - - 79a3af05-6796-4a1c-8d43-dfab46fb6281 + - 8a56d9e1-1192-48c3-9bf2-fe2a20452724 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1225,7 +1171,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -1250,7 +1196,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup4?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup4","type":"Microsoft.Management/managementGroups","name":"testcligetgroup4","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup4","details":{"version":5,"updatedTime":"2022-01-20T22:37:40.0736042Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup3","name":"testcligetgroup3","displayName":"testcligetgroup3"}}}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup4","type":"Microsoft.Management/managementGroups","name":"testcligetgroup4","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup4","details":{"version":7,"updatedTime":"2022-02-08T23:39:09.7510127Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup3","name":"testcligetgroup3","displayName":"testcligetgroup3"}}}}' headers: cache-control: - no-cache @@ -1259,13 +1205,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:37:54 GMT + - Tue, 08 Feb 2022 23:39:25 GMT expires: - '-1' pragma: - no-cache request-id: - - 39fe7d63-2006-426e-ad65-095deedf8213 + - cb5f7735-b014-46ae-ae3d-17bfa0d88f46 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1275,7 +1221,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -1313,7 +1259,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:37:56 GMT + - Tue, 08 Feb 2022 23:39:26 GMT expires: - '-1' pragma: @@ -1327,7 +1273,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 200 message: OK @@ -1359,7 +1305,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:38:06 GMT + - Tue, 08 Feb 2022 23:39:36 GMT expires: - '-1' pragma: @@ -1403,13 +1349,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:38:07 GMT + - Tue, 08 Feb 2022 23:39:36 GMT expires: - '-1' pragma: - no-cache request-id: - - 4a6bb00a-87b1-4662-a046-4641e1c4a3e9 + - 231abae3-501c-4363-b5bd-0687909f25fc server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1457,7 +1403,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:38:08 GMT + - Tue, 08 Feb 2022 23:39:37 GMT expires: - '-1' pragma: @@ -1471,7 +1417,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 200 message: OK @@ -1503,7 +1449,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:38:17 GMT + - Tue, 08 Feb 2022 23:39:47 GMT expires: - '-1' pragma: @@ -1551,7 +1497,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:38:18 GMT + - Tue, 08 Feb 2022 23:39:49 GMT expires: - '-1' location: @@ -1559,19 +1505,19 @@ interactions: pragma: - no-cache request-id: - - ced0fee5-7555-4e1e-99d7-d255e59ca0b3 + - 3ebfcab4-57f6-4be9-a426-819770586b4a server: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: - '59' x-ms-ratelimit-remaining-tenant-deletes: - - '14999' + - '14997' status: code: 202 message: Accepted @@ -1603,13 +1549,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:38:28 GMT + - Tue, 08 Feb 2022 23:39:59 GMT expires: - '-1' pragma: - no-cache request-id: - - 53c553ca-4d9d-4089-840b-3f2d6850d5f8 + - 0bb5968a-b7ea-4f70-9036-8cd87c90e003 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1619,7 +1565,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -1657,7 +1603,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:38:30 GMT + - Tue, 08 Feb 2022 23:40:01 GMT expires: - '-1' pragma: @@ -1703,7 +1649,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:38:40 GMT + - Tue, 08 Feb 2022 23:40:11 GMT expires: - '-1' pragma: @@ -1751,7 +1697,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:38:42 GMT + - Tue, 08 Feb 2022 23:40:12 GMT expires: - '-1' location: @@ -1759,13 +1705,13 @@ interactions: pragma: - no-cache request-id: - - de789a6f-1577-4b7c-88df-f7cccc49fa7d + - 79720389-cabf-45be-95bc-cc3edfc0acd9 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: @@ -1803,13 +1749,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:38:52 GMT + - Tue, 08 Feb 2022 23:40:22 GMT expires: - '-1' pragma: - no-cache request-id: - - 991514a5-9b74-4fea-99ba-5d239bb83b46 + - 57cb584c-6f64-484c-ab60-8af6157454cc server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1819,7 +1765,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -1857,7 +1803,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:38:53 GMT + - Tue, 08 Feb 2022 23:40:23 GMT expires: - '-1' pragma: @@ -1871,7 +1817,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1199' status: code: 200 message: OK @@ -1903,7 +1849,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:39:03 GMT + - Tue, 08 Feb 2022 23:40:33 GMT expires: - '-1' pragma: @@ -1951,7 +1897,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:39:05 GMT + - Tue, 08 Feb 2022 23:40:34 GMT expires: - '-1' location: @@ -1959,7 +1905,7 @@ interactions: pragma: - no-cache request-id: - - 5014e4fe-8c81-4ce2-842f-e680a616321a + - 2067b64d-b28a-4b40-a941-06a270fdaac4 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -2003,13 +1949,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:39:15 GMT + - Tue, 08 Feb 2022 23:40:44 GMT expires: - '-1' pragma: - no-cache request-id: - - 0046ba6c-f105-4f62-8491-8ce0467f7ef5 + - 20193c2b-7eab-417e-baca-491d421ac3f6 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -2057,7 +2003,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:39:16 GMT + - Tue, 08 Feb 2022 23:40:46 GMT expires: - '-1' pragma: @@ -2103,7 +2049,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:39:26 GMT + - Tue, 08 Feb 2022 23:40:56 GMT expires: - '-1' pragma: @@ -2151,7 +2097,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:39:28 GMT + - Tue, 08 Feb 2022 23:40:58 GMT expires: - '-1' location: @@ -2159,13 +2105,13 @@ interactions: pragma: - no-cache request-id: - - b6464761-b62c-4628-9254-55187abcf70a + - 7ecdb1e1-d520-4766-8892-ac27674d032f server: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: @@ -2203,13 +2149,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:39:38 GMT + - Tue, 08 Feb 2022 23:41:08 GMT expires: - '-1' pragma: - no-cache request-id: - - 880a841b-c5c8-431c-a1e4-4db3e91cacb1 + - 840ffeb1-c7cc-4d97-9052-ab30c6079f9b server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -2219,7 +2165,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_update_managementgroup_with_displayname.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_update_managementgroup_with_displayname.yaml index 6c95685d472..38164670c6d 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_update_managementgroup_with_displayname.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_update_managementgroup_with_displayname.yaml @@ -31,7 +31,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:20:26 GMT + - Tue, 08 Feb 2022 23:21:08 GMT expires: - '-1' pragma: @@ -77,7 +77,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:20:36 GMT + - Tue, 08 Feb 2022 23:21:18 GMT expires: - '-1' pragma: @@ -127,7 +127,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:20:37 GMT + - Tue, 08 Feb 2022 23:21:18 GMT expires: - '-1' location: @@ -135,13 +135,13 @@ interactions: pragma: - no-cache request-id: - - e3b39ccc-d09f-4f22-ab10-53e41064741c + - d0f74b69-fade-4d23-8d49-fe644c2c67a5 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: @@ -181,7 +181,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:20:47 GMT + - Tue, 08 Feb 2022 23:21:28 GMT expires: - '-1' location: @@ -189,7 +189,7 @@ interactions: pragma: - no-cache request-id: - - 8afcbd20-f74f-4e0f-a32f-0e061d9aea4b + - d43abc22-2c03-4133-b9f7-0a76758ce269 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -199,7 +199,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -224,22 +224,22 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":113,"updatedTime":"2022-01-20T22:20:42.9801957Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":152,"updatedTime":"2022-02-08T23:21:23.981298Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache content-length: - - '375' + - '374' content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:20:57 GMT + - Tue, 08 Feb 2022 23:21:40 GMT expires: - '-1' pragma: - no-cache request-id: - - 5f6ef107-c365-4312-a2d8-162fb6522d6f + - 9e13149b-da59-4ca4-99c9-f53377204b1f server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -249,7 +249,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -274,23 +274,23 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":113,"updatedTime":"2022-01-20T22:20:42.9801957Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":152,"updatedTime":"2022-02-08T23:21:23.981298Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root Management Group"}}}}' headers: cache-control: - no-cache content-length: - - '543' + - '542' content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:20:57 GMT + - Tue, 08 Feb 2022 23:21:40 GMT expires: - '-1' pragma: - no-cache request-id: - - 4b75c469-01ad-40ee-b7c0-39fdd1ad2406 + - 591e6117-1909-421a-9804-615a4fea3f50 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -300,107 +300,14 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: code: 200 message: OK - request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - account management-group update - Connection: - - keep-alive - Content-Length: - - '0' - Content-Type: - - application/json - ParameterSetName: - - --name --display-name - User-Agent: - - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' - headers: - cache-control: - - no-cache - content-length: - - '2624' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 20 Jan 2022 22:20:59 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - account management-group update - Connection: - - keep-alive - ParameterSetName: - - --name --display-name - User-Agent: - - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' - headers: - cache-control: - - no-cache - content-length: - - '2624' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 20 Jan 2022 22:21:08 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: '{"name": "testcligroup", "properties": {"displayName": "testcligroupDisplayName", - "details": {"parent": {}}}}' + body: '{"displayName": "testcligroupDisplayName"}' headers: Accept: - application/json @@ -413,18 +320,18 @@ interactions: Connection: - keep-alive Content-Length: - - '109' + - '42' Content-Type: - application/json ParameterSetName: - --name --display-name User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) - method: PUT + method: PATCH uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupDisplayName","details":{"version":114,"updatedTime":"2022-01-20T22:21:09.7798275Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupDisplayName","details":{"version":153,"updatedTime":"2022-02-08T23:21:42.8692704Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root Management Group"}}}}' headers: cache-control: @@ -434,13 +341,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:21:11 GMT + - Tue, 08 Feb 2022 23:21:44 GMT expires: - '-1' pragma: - no-cache request-id: - - 9baef982-4d81-4ab9-a2cd-520aa4047a43 + - af6d4fcf-3863-4fee-bdda-afb561dd1f8c server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -450,7 +357,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: @@ -492,7 +399,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:21:11 GMT + - Tue, 08 Feb 2022 23:21:45 GMT expires: - '-1' pragma: @@ -538,7 +445,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:21:21 GMT + - Tue, 08 Feb 2022 23:21:55 GMT expires: - '-1' pragma: @@ -586,7 +493,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:21:23 GMT + - Tue, 08 Feb 2022 23:22:07 GMT expires: - '-1' location: @@ -594,13 +501,13 @@ interactions: pragma: - no-cache request-id: - - b76bcdfc-fac3-4332-9fbc-d07a845275fc + - 7eab36f0-5cbe-440e-be00-d7fb96d9422e server: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: @@ -638,13 +545,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:21:33 GMT + - Tue, 08 Feb 2022 23:22:18 GMT expires: - '-1' pragma: - no-cache request-id: - - 13212366-6c59-49a4-b124-1efa53e5c387 + - f8fbc0c3-0198-4c84-aea2-fd7d5098a35d server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -654,7 +561,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_update_managementgroup_with_displayname_and_parentid.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_update_managementgroup_with_displayname_and_parentid.yaml index c301e8e6084..b795557cfa0 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_update_managementgroup_with_displayname_and_parentid.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_update_managementgroup_with_displayname_and_parentid.yaml @@ -31,7 +31,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:23:11 GMT + - Tue, 08 Feb 2022 23:50:12 GMT expires: - '-1' pragma: @@ -45,7 +45,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 200 message: OK @@ -77,7 +77,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:23:21 GMT + - Tue, 08 Feb 2022 23:50:22 GMT expires: - '-1' pragma: @@ -127,7 +127,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:23:22 GMT + - Tue, 08 Feb 2022 23:50:24 GMT expires: - '-1' location: @@ -135,7 +135,7 @@ interactions: pragma: - no-cache request-id: - - 1ea333e9-24e3-4b52-89a3-b87be04e1dc0 + - 1929159d-05df-433f-a023-8e7b87112b4f server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -181,7 +181,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:23:33 GMT + - Tue, 08 Feb 2022 23:50:34 GMT expires: - '-1' location: @@ -189,7 +189,7 @@ interactions: pragma: - no-cache request-id: - - 527c7e7a-24ce-4aad-8480-8d63da4d549c + - cf42603e-1b69-4605-b993-7f537251179a server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -224,22 +224,22 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":115,"updatedTime":"2022-01-20T22:23:28.413331Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":162,"updatedTime":"2022-02-08T23:50:29.4995102Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache content-length: - - '374' + - '375' content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:23:43 GMT + - Tue, 08 Feb 2022 23:50:44 GMT expires: - '-1' pragma: - no-cache request-id: - - 1b2c2c4e-5ea5-4320-b0ea-2ec442c4a618 + - 053ab0c9-8f9e-43f9-8d3b-249f0d5239bc server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -274,23 +274,23 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":115,"updatedTime":"2022-01-20T22:23:28.413331Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":162,"updatedTime":"2022-02-08T23:50:29.4995102Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root Management Group"}}}}' headers: cache-control: - no-cache content-length: - - '542' + - '543' content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:23:43 GMT + - Tue, 08 Feb 2022 23:50:44 GMT expires: - '-1' pragma: - no-cache request-id: - - 88f8ab60-e199-4164-874f-e8aa1943a1af + - d8b1e820-536f-481a-b708-285b5f36c9f1 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -338,7 +338,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:23:44 GMT + - Tue, 08 Feb 2022 23:50:46 GMT expires: - '-1' pragma: @@ -352,7 +352,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 200 message: OK @@ -384,7 +384,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:23:54 GMT + - Tue, 08 Feb 2022 23:50:55 GMT expires: - '-1' pragma: @@ -423,39 +423,92 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":79,"updatedTime":"2022-01-20T22:21:14.8728169Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root - Management Group"}}}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","status":"NotStarted"}' headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 cache-control: - no-cache content-length: - - '557' + - '171' content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:23:55 GMT + - Tue, 08 Feb 2022 23:50:56 GMT expires: - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroupchild?api-version=2021-04-01 pragma: - no-cache request-id: - - 8caa64cc-58c9-4538-950d-bf977b9926a8 + - 9ee5f033-c188-4cf4-afec-c090819de818 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: - '59' x-ms-ratelimit-remaining-tenant-writes: - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild","name":"testcligroupchild","status":"Running"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '167' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 08 Feb 2022 23:51:07 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroupchild?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 6ed3bafd-98b8-49e9-bf8e-ece733f19439 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2454 + x-content-type-options: + - nosniff status: code: 200 message: OK @@ -463,49 +516,49 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - account management-group update + - account management-group create Connection: - keep-alive - Content-Length: - - '0' - Content-Type: - - application/json ParameterSetName: - - --name --display-name --parent + - --name User-Agent: - - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild","name":"testcligroupchild","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":102,"updatedTime":"2022-02-08T23:51:02.3376693Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache content-length: - - '2624' + - '390' content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:23:56 GMT + - Tue, 08 Feb 2022 23:51:18 GMT expires: - '-1' pragma: - no-cache + request-id: + - 7f783063-3f4a-4356-b9fc-60b5aa177499 + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding + x-ba-restapi: + - 1.0.3.2454 x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1197' status: code: 200 message: OK @@ -513,47 +566,55 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - account management-group update + - account management-group create Connection: - keep-alive ParameterSetName: - - --name --display-name --parent + - --name User-Agent: - - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":102,"updatedTime":"2022-02-08T23:51:02.3376693Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + Management Group"}}}}' headers: cache-control: - no-cache content-length: - - '2624' + - '558' content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:24:07 GMT + - Tue, 08 Feb 2022 23:51:18 GMT expires: - '-1' pragma: - no-cache + request-id: + - 7b0af5c6-8e43-4639-a0e1-e2c660d8f2cd + server: + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked vary: - Accept-Encoding + x-ba-restapi: + - 1.0.3.2454 x-content-type-options: - nosniff status: code: 200 message: OK - request: - body: '{"name": "testcligroupchild", "properties": {"displayName": "testcligroupchild", - "details": {"parent": {"id": "/providers/Microsoft.Management/managementGroups/testcligroup"}}}}' + body: '{"displayName": "testcligroupchild", "parentGroupId": "/providers/Microsoft.Management/managementGroups/testcligroup"}' headers: Accept: - application/json @@ -566,33 +627,33 @@ interactions: Connection: - keep-alive Content-Length: - - '177' + - '118' Content-Type: - application/json ParameterSetName: - --name --display-name --parent User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) - method: PUT + method: PATCH uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":80,"updatedTime":"2022-01-20T22:24:08.3548677Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","name":"testcligroup","displayName":"testcligroup"}}}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":103,"updatedTime":"2022-02-08T23:51:20.3128309Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","name":"testcligroup","displayName":"testcligroup"}}}}' headers: cache-control: - no-cache content-length: - - '500' + - '501' content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:24:09 GMT + - Tue, 08 Feb 2022 23:51:21 GMT expires: - '-1' pragma: - no-cache request-id: - - f75cace6-d363-4875-9b05-f4b1250ecaab + - ce1405e2-32b3-44db-b903-643103b81a59 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -602,13 +663,13 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: - - '58' + - '59' x-ms-ratelimit-remaining-tenant-writes: - - '1197' + - '1199' status: code: 200 message: OK @@ -644,7 +705,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:24:10 GMT + - Tue, 08 Feb 2022 23:51:22 GMT expires: - '-1' pragma: @@ -690,7 +751,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:24:20 GMT + - Tue, 08 Feb 2022 23:51:33 GMT expires: - '-1' pragma: @@ -738,7 +799,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:24:21 GMT + - Tue, 08 Feb 2022 23:51:33 GMT expires: - '-1' location: @@ -746,19 +807,19 @@ interactions: pragma: - no-cache request-id: - - 549c55ba-0c5c-4143-b4a0-3437f8c25c2a + - 6b100f8a-44e9-42c3-9eb4-d442417f7c06 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: - '59' x-ms-ratelimit-remaining-tenant-deletes: - - '14997' + - '14999' status: code: 202 message: Accepted @@ -790,13 +851,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:24:32 GMT + - Tue, 08 Feb 2022 23:51:44 GMT expires: - '-1' pragma: - no-cache request-id: - - 5da40ef6-8e77-46f2-8683-bd632d71e908 + - ecaa39f3-da52-47e2-90ae-34743f946a63 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -806,7 +867,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -844,7 +905,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:24:33 GMT + - Tue, 08 Feb 2022 23:51:44 GMT expires: - '-1' pragma: @@ -858,7 +919,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1199' status: code: 200 message: OK @@ -890,7 +951,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:24:43 GMT + - Tue, 08 Feb 2022 23:51:55 GMT expires: - '-1' pragma: @@ -938,7 +999,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:24:43 GMT + - Tue, 08 Feb 2022 23:51:57 GMT expires: - '-1' location: @@ -946,13 +1007,13 @@ interactions: pragma: - no-cache request-id: - - 7cc5e645-e63a-4d76-8930-a6554406cbb5 + - e04dde2c-6145-4ef4-8aa2-968af4faf79a server: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: @@ -990,13 +1051,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 22:24:54 GMT + - Tue, 08 Feb 2022 23:52:07 GMT expires: - '-1' pragma: - no-cache request-id: - - 9f03b890-d8c3-42e5-aa80-6aa89c8b834d + - 7a454524-c92c-42d0-a620-600e7da86a4b server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1006,7 +1067,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_update_managementgroup_with_parentid.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_update_managementgroup_with_parentid.yaml index 5fe37cfa2b9..1f05f517291 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_update_managementgroup_with_parentid.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_update_managementgroup_with_parentid.yaml @@ -31,7 +31,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 21:55:26 GMT + - Tue, 08 Feb 2022 23:33:03 GMT expires: - '-1' pragma: @@ -77,7 +77,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 21:55:36 GMT + - Tue, 08 Feb 2022 23:33:13 GMT expires: - '-1' pragma: @@ -127,7 +127,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 21:55:38 GMT + - Tue, 08 Feb 2022 23:33:13 GMT expires: - '-1' location: @@ -135,13 +135,13 @@ interactions: pragma: - no-cache request-id: - - 0b6a040f-a30d-4315-8f8a-1662aee89910 + - 747441f7-8cf5-4dcc-b9aa-9b9e9fa03c4c server: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: @@ -181,7 +181,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 21:55:48 GMT + - Tue, 08 Feb 2022 23:33:24 GMT expires: - '-1' location: @@ -189,7 +189,7 @@ interactions: pragma: - no-cache request-id: - - c950d195-fcb9-4602-9595-fc145bee0530 + - a68396e2-624f-499e-ba37-d011ceed5fdc server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -199,7 +199,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -224,7 +224,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":108,"updatedTime":"2022-01-20T21:55:42.9037651Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":158,"updatedTime":"2022-02-08T23:33:20.1853328Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache @@ -233,13 +233,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 21:55:58 GMT + - Tue, 08 Feb 2022 23:33:35 GMT expires: - '-1' pragma: - no-cache request-id: - - 284a7989-70eb-450b-a8a3-c2fcf77061c0 + - 13adc2bc-20e1-42d6-9e2d-44f6b2d5d67d server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -249,7 +249,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -274,7 +274,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":108,"updatedTime":"2022-01-20T21:55:42.9037651Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":158,"updatedTime":"2022-02-08T23:33:20.1853328Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root Management Group"}}}}' headers: cache-control: @@ -284,13 +284,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 21:55:58 GMT + - Tue, 08 Feb 2022 23:33:35 GMT expires: - '-1' pragma: - no-cache request-id: - - fd4e2a6c-e240-4954-90cf-e8fe7df2b338 + - f36d923e-03c4-47cc-a8a1-0e1d1224981b server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -300,7 +300,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -338,7 +338,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 21:56:00 GMT + - Tue, 08 Feb 2022 23:33:36 GMT expires: - '-1' pragma: @@ -384,7 +384,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 21:56:10 GMT + - Tue, 08 Feb 2022 23:33:46 GMT expires: - '-1' pragma: @@ -434,7 +434,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 21:56:10 GMT + - Tue, 08 Feb 2022 23:33:47 GMT expires: - '-1' location: @@ -442,19 +442,19 @@ interactions: pragma: - no-cache request-id: - - 655f5d4a-c026-4ea1-8cf5-30f29029b289 + - f8c2db89-0683-4f98-8168-834dd0f8a97e server: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: - '59' x-ms-ratelimit-remaining-tenant-writes: - - '1199' + - '1198' status: code: 202 message: Accepted @@ -488,7 +488,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 21:56:20 GMT + - Tue, 08 Feb 2022 23:33:57 GMT expires: - '-1' location: @@ -496,7 +496,7 @@ interactions: pragma: - no-cache request-id: - - 388da93c-028f-41fc-8e83-89b55d79d020 + - 08979f4c-ed08-45e0-8cf7-fc96d7fa2eec server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -506,7 +506,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -531,7 +531,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild","name":"testcligroupchild","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":76,"updatedTime":"2022-01-20T21:56:16.7016999Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild","name":"testcligroupchild","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":97,"updatedTime":"2022-02-08T23:33:52.7550567Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache @@ -540,13 +540,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 21:56:31 GMT + - Tue, 08 Feb 2022 23:34:07 GMT expires: - '-1' pragma: - no-cache request-id: - - 27274642-0dea-4c04-b664-03d4198c3c47 + - b5995d14-5fca-4d44-8851-8ee8b65b57f8 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -556,7 +556,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -581,7 +581,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":76,"updatedTime":"2022-01-20T21:56:16.7016999Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":97,"updatedTime":"2022-02-08T23:33:52.7550567Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root Management Group"}}}}' headers: cache-control: @@ -591,13 +591,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 21:56:31 GMT + - Tue, 08 Feb 2022 23:34:07 GMT expires: - '-1' pragma: - no-cache request-id: - - 3117fd25-0cbc-497e-936b-fa5d0f63ec1d + - 7b659872-94cc-4d57-9441-a0b5a7f224e3 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -607,107 +607,14 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - account management-group update - Connection: - - keep-alive - Content-Length: - - '0' - Content-Type: - - application/json - ParameterSetName: - - --name --parent - User-Agent: - - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2021-04-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' - headers: - cache-control: - - no-cache - content-length: - - '2624' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 20 Jan 2022 21:56:33 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + - 1.0.3.2454 x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' status: code: 200 message: OK - request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - account management-group update - Connection: - - keep-alive - ParameterSetName: - - --name --parent - User-Agent: - - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2021-04-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' - headers: - cache-control: - - no-cache - content-length: - - '2624' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 20 Jan 2022 21:56:42 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: '{"name": "testcligroupchild", "properties": {"details": {"parent": {"id": - "/providers/Microsoft.Management/managementGroups/testcligroup"}}}}' + body: '{"parentGroupId": "/providers/Microsoft.Management/managementGroups/testcligroup"}' headers: Accept: - application/json @@ -720,18 +627,18 @@ interactions: Connection: - keep-alive Content-Length: - - '141' + - '82' Content-Type: - application/json ParameterSetName: - --name --parent User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) - method: PUT + method: PATCH uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":77,"updatedTime":"2022-01-20T21:56:44.8361487Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","name":"testcligroup","displayName":"testcligroup"}}}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":98,"updatedTime":"2022-02-08T23:34:10.2499176Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","name":"testcligroup","displayName":"testcligroup"}}}}' headers: cache-control: - no-cache @@ -740,13 +647,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 21:56:46 GMT + - Tue, 08 Feb 2022 23:34:11 GMT expires: - '-1' pragma: - no-cache request-id: - - bd117a74-4b06-473e-a245-494346a4df55 + - a333e716-cc7e-4826-97a4-99cd4b65fb5e server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -756,7 +663,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: @@ -798,7 +705,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 21:56:47 GMT + - Tue, 08 Feb 2022 23:34:12 GMT expires: - '-1' pragma: @@ -844,7 +751,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 21:56:57 GMT + - Tue, 08 Feb 2022 23:34:22 GMT expires: - '-1' pragma: @@ -892,7 +799,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 21:56:58 GMT + - Tue, 08 Feb 2022 23:34:24 GMT expires: - '-1' location: @@ -900,13 +807,13 @@ interactions: pragma: - no-cache request-id: - - a63e73bc-dcc8-4b2f-9074-f48b8c660918 + - c58b9482-3100-4b5b-87dc-b78996c0cb12 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: @@ -944,13 +851,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 21:57:08 GMT + - Tue, 08 Feb 2022 23:34:34 GMT expires: - '-1' pragma: - no-cache request-id: - - 35152e03-34b2-4388-8d72-f8035b5fca43 + - 8bac522c-ae60-41b9-82f1-0a17776d9b28 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -960,7 +867,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -998,7 +905,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 21:57:09 GMT + - Tue, 08 Feb 2022 23:34:35 GMT expires: - '-1' pragma: @@ -1012,7 +919,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 200 message: OK @@ -1044,7 +951,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 21:57:19 GMT + - Tue, 08 Feb 2022 23:34:45 GMT expires: - '-1' pragma: @@ -1092,7 +999,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 21:57:21 GMT + - Tue, 08 Feb 2022 23:34:46 GMT expires: - '-1' location: @@ -1100,7 +1007,7 @@ interactions: pragma: - no-cache request-id: - - 11647efb-57bc-4fd4-bdf5-ed3ea2151608 + - 5940e674-072d-4e78-8c2f-cc1cbc9da452 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1144,13 +1051,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 Jan 2022 21:57:31 GMT + - Tue, 08 Feb 2022 23:34:56 GMT expires: - '-1' pragma: - no-cache request-id: - - 5c2819ed-4b35-4293-bfbc-940b235bd32f + - 20caa94c-da1d-4ac1-9451-a5621425834e server: - Microsoft-HTTPAPI/2.0 strict-transport-security: diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/test_managmentgroups.py b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/test_managmentgroups.py index 099b36d5f9a..d969a64955f 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/test_managmentgroups.py +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/test_managmentgroups.py @@ -335,7 +335,6 @@ def test_update_managementgroup_with_displayname(self): managementgroup_update["type"], "Microsoft.Management/managementGroups") - #@pytest.mark.custom_mark def test_update_managementgroup_with_parentid(self): name = "testcligroupchild" displayName = "testcligroupchild" @@ -373,6 +372,7 @@ def test_update_managementgroup_with_parentid(self): managementgroup_update["type"], "Microsoft.Management/managementGroups") + @pytest.mark.custom_mark def test_update_managementgroup_with_displayname_and_parentid(self): name = "testcligroupchild" displayName = "testcligroupchild" @@ -416,7 +416,6 @@ def test_create_delete_group_managementgroup(self): self.cmd('account management-group delete --name testcligroup') @live_only() - #@pytest.mark.custom_mark def test_managementgroup_add_remove_subscription(self): name = "testcligroup" sub = "5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de" @@ -428,7 +427,6 @@ def test_managementgroup_add_remove_subscription(self): self.cmd('account management-group delete --name ' + name) @live_only() - #@pytest.mark.custom_mark def test_managementgroup_show_subscription(self): name = "testcligroup" subName = "5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de" @@ -455,7 +453,6 @@ def test_managementgroup_show_subscription(self): "Microsoft.Management/managementGroups/subscriptions") @live_only() - #@pytest.mark.custom_mark def test_managementgroup_show_subscription_under_mg(self): name = "testcligroup" subName = "5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de" @@ -480,7 +477,6 @@ def test_managementgroup_show_subscription_under_mg(self): self.assertEqual(show_sub_under_mg[0]["type"], "Microsoft.Management/managementGroups/subscriptions") - #@pytest.mark.custom_mark def test_managementgroup_get_entities(self): name = "testcligroup" self.cmd('account management-group create --name ' + name) @@ -489,7 +485,6 @@ def test_managementgroup_get_entities(self): self.assertIsNotNone(getEntities) @live_only() - #@pytest.mark.custom_mark def test_managementgroup_hierarchysetting_create_delete(self): name = "c7a87cda-9a66-4920-b0f8-869baa04efe0" self.cmd('account management-group hierarchy-settings create -n ' + @@ -498,7 +493,6 @@ def test_managementgroup_hierarchysetting_create_delete(self): name) @live_only() - #@pytest.mark.custom_mark def test_managementgroup_hierarchysetting_create_default_mg(self): name = "c7a87cda-9a66-4920-b0f8-869baa04efe0" defaultmgName = "defaultmg" @@ -521,7 +515,6 @@ def test_managementgroup_hierarchysetting_create_default_mg(self): "Microsoft.Management/managementGroups/settings") @live_only() - #@pytest.mark.custom_mark def test_managementgroup_hierarchysetting_create_auth(self): name = "c7a87cda-9a66-4920-b0f8-869baa04efe0" mgPath = "/providers/Microsoft.Management/managementGroups/" @@ -541,7 +534,6 @@ def test_managementgroup_hierarchysetting_create_auth(self): "Microsoft.Management/managementGroups/settings") @live_only() - @pytest.mark.custom_mark def test_managementgroup_hierarchysetting_create_default_mg_auth(self): name = "c7a87cda-9a66-4920-b0f8-869baa04efe0" defaultmgName = "defaultmg" @@ -566,7 +558,6 @@ def test_managementgroup_hierarchysetting_create_default_mg_auth(self): "Microsoft.Management/managementGroups/settings") @live_only() - #@pytest.mark.custom_mark def test_managementgroup_hierarchysetting_update_default_mg(self): name = "c7a87cda-9a66-4920-b0f8-869baa04efe0" defaultmgName1 = "defaultmg1" @@ -594,7 +585,6 @@ def test_managementgroup_hierarchysetting_update_default_mg(self): "Microsoft.Management/managementGroups/settings") @live_only() - #@pytest.mark.custom_mark def test_managementgroup_hierarchysetting_create_auth(self): name = "c7a87cda-9a66-4920-b0f8-869baa04efe0" mgPath = "/providers/Microsoft.Management/managementGroups/" @@ -616,7 +606,6 @@ def test_managementgroup_hierarchysetting_create_auth(self): "Microsoft.Management/managementGroups/settings") @live_only() - #@pytest.mark.custom_mark def test_managementgroup_hierarchysetting_create_default_mg_auth(self): name = "c7a87cda-9a66-4920-b0f8-869baa04efe0" defaultmgName1 = "defaultmg1" @@ -645,21 +634,18 @@ def test_managementgroup_hierarchysetting_create_default_mg_auth(self): self.assertEqual(showSetting["value"][0]["type"], "Microsoft.Management/managementGroups/settings") - #@pytest.mark.custom_mark def test_managementgroup_get_tenant_backfill_status(self): backfillStatus = self.cmd('account management-group tenant-backfill get').get_output_in_json() self.assertIsNotNone(backfillStatus) self.assertEqual(backfillStatus["status"], "Completed") - #@pytest.mark.custom_mark def test_managementgroup_start_tenant_backfill(self): startBackfill = self.cmd('account management-group tenant-backfill start').get_output_in_json() self.assertIsNotNone(startBackfill) self.assertEqual(startBackfill["status"], "Completed") - #@pytest.mark.custom_mark def test_managementgroup_name_availability(self): existingMGName = "testcligroup1" nonExistingMGName = "testcligroup2" From 4dd71fcc5789ef7a4be3cbbd1d6738b89e7abd25 Mon Sep 17 00:00:00 2001 From: Thomas Dolan Date: Tue, 8 Feb 2022 17:40:55 -0800 Subject: [PATCH 11/13] Re-ran tests in the 2019_03_01 profile --- ...t_create_delete_group_managementgroup.yaml | 48 +- .../test_create_managementgroup.yaml | 46 +- ...eate_managementgroup_with_displayname.yaml | 44 +- ...ntgroup_with_displayname_and_parentid.yaml | 146 ++++-- ..._create_managementgroup_with_parentid.yaml | 100 ++-- .../test_list_managementgroups.yaml | 16 +- .../recordings/test_show_managementgroup.yaml | 306 ++++++++++-- ...test_show_managementgroup_with_expand.yaml | 440 +++--------------- ...nagementgroup_with_expand_and_recurse.yaml | 202 ++++---- ...date_managementgroup_with_displayname.yaml | 291 +----------- ...ntgroup_with_displayname_and_parentid.yaml | 261 +++-------- ..._update_managementgroup_with_parentid.yaml | 210 +++------ .../hybrid_2019_03_01/test_managmentgroups.py | 13 - .../tests/latest/test_managmentgroups.py | 3 +- 14 files changed, 792 insertions(+), 1334 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_create_delete_group_managementgroup.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_create_delete_group_managementgroup.yaml index 31ba0e8e058..36614b91d9a 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_create_delete_group_managementgroup.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_create_delete_group_managementgroup.yaml @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 00:05:22 GMT + - Wed, 09 Feb 2022 00:56:24 GMT expires: - '-1' pragma: @@ -75,7 +75,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 00:05:32 GMT + - Wed, 09 Feb 2022 00:56:33 GMT expires: - '-1' pragma: @@ -125,7 +125,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 00:05:34 GMT + - Wed, 09 Feb 2022 00:56:34 GMT expires: - '-1' location: @@ -133,13 +133,13 @@ interactions: pragma: - no-cache request-id: - - 0b56d8b1-1fb0-4265-bf80-c42f3fc1108f + - ce0d54b1-c1dd-4b18-b1f2-00131ca016f9 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: @@ -179,7 +179,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 00:05:44 GMT + - Wed, 09 Feb 2022 00:56:45 GMT expires: - '-1' location: @@ -187,7 +187,7 @@ interactions: pragma: - no-cache request-id: - - 3015367d-88d2-4754-94f0-713e43e97011 + - 1a45fb49-2fa0-4644-aadf-b738228964d5 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -197,7 +197,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -222,7 +222,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":117,"updatedTime":"2022-01-21T00:05:40.4317291Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":166,"updatedTime":"2022-02-09T00:56:40.7380149Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache @@ -231,13 +231,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 00:05:55 GMT + - Wed, 09 Feb 2022 00:56:56 GMT expires: - '-1' pragma: - no-cache request-id: - - 25a2037e-2aa3-41da-bf49-e760c9b932c5 + - dfe56f4d-9496-4714-9e71-f65022ff8431 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -247,7 +247,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -272,7 +272,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":117,"updatedTime":"2022-01-21T00:05:40.4317291Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":166,"updatedTime":"2022-02-09T00:56:40.7380149Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root Management Group"}}}}' headers: cache-control: @@ -282,13 +282,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 00:05:55 GMT + - Wed, 09 Feb 2022 00:56:56 GMT expires: - '-1' pragma: - no-cache request-id: - - 379f9c41-68cf-4bb9-afd4-d31c94710d2b + - 0518ab5e-ee81-4793-a14f-75e5bf9caffd server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -298,7 +298,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -334,7 +334,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 00:05:56 GMT + - Wed, 09 Feb 2022 00:56:58 GMT expires: - '-1' pragma: @@ -380,7 +380,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 00:06:06 GMT + - Wed, 09 Feb 2022 00:57:07 GMT expires: - '-1' pragma: @@ -428,7 +428,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 00:06:08 GMT + - Wed, 09 Feb 2022 00:57:09 GMT expires: - '-1' location: @@ -436,13 +436,13 @@ interactions: pragma: - no-cache request-id: - - de8031e8-61c8-44a4-8221-c9d174c9b2c1 + - b527495b-df7c-464e-b660-7f1d05cabe04 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: @@ -480,13 +480,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 00:06:18 GMT + - Wed, 09 Feb 2022 00:57:20 GMT expires: - '-1' pragma: - no-cache request-id: - - 22293d11-b153-48d8-8d9a-e8446dda61db + - 81ec84c8-ed98-4290-8c99-a52a6b62c681 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -496,7 +496,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_create_managementgroup.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_create_managementgroup.yaml index dbac6d2390c..9c148347d8d 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_create_managementgroup.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_create_managementgroup.yaml @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:47:11 GMT + - Wed, 09 Feb 2022 01:01:52 GMT expires: - '-1' pragma: @@ -75,7 +75,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:47:22 GMT + - Wed, 09 Feb 2022 01:02:02 GMT expires: - '-1' pragma: @@ -125,7 +125,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:47:23 GMT + - Wed, 09 Feb 2022 01:02:04 GMT expires: - '-1' location: @@ -133,7 +133,7 @@ interactions: pragma: - no-cache request-id: - - 2030ddf0-4a48-453e-9183-57673317f136 + - 08ec58b7-2f68-4460-a8fa-211dcd6905fd server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -145,7 +145,7 @@ interactions: x-ms-ratelimit-remaining-managementgroups-requests: - '59' x-ms-ratelimit-remaining-tenant-writes: - - '1199' + - '1198' status: code: 202 message: Accepted @@ -179,7 +179,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:47:33 GMT + - Wed, 09 Feb 2022 01:02:14 GMT expires: - '-1' location: @@ -187,7 +187,7 @@ interactions: pragma: - no-cache request-id: - - 4dc7b010-ffb4-495c-999f-803711939ef5 + - 8e40aae5-0be1-498b-b34e-b50ab5edeb2e server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -222,22 +222,22 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":121,"updatedTime":"2022-01-21T05:47:28.601083Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":168,"updatedTime":"2022-02-09T01:02:09.9365611Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache content-length: - - '374' + - '375' content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:47:43 GMT + - Wed, 09 Feb 2022 01:02:24 GMT expires: - '-1' pragma: - no-cache request-id: - - bedc9df4-cf60-4529-8bef-d2d1ffed91ca + - 011f0d00-afb8-474c-acda-b4cc80a60d12 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -272,23 +272,23 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":121,"updatedTime":"2022-01-21T05:47:28.601083Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":168,"updatedTime":"2022-02-09T01:02:09.9365611Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root Management Group"}}}}' headers: cache-control: - no-cache content-length: - - '542' + - '543' content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:47:43 GMT + - Wed, 09 Feb 2022 01:02:24 GMT expires: - '-1' pragma: - no-cache request-id: - - 64862e71-dbe5-4231-aa58-00a5e8d5dda9 + - 5fee887f-b63b-4557-9140-591698c78c7f server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -334,7 +334,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:47:45 GMT + - Wed, 09 Feb 2022 01:02:26 GMT expires: - '-1' pragma: @@ -380,7 +380,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:47:55 GMT + - Wed, 09 Feb 2022 01:02:36 GMT expires: - '-1' pragma: @@ -428,7 +428,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:47:56 GMT + - Wed, 09 Feb 2022 01:02:38 GMT expires: - '-1' location: @@ -436,13 +436,13 @@ interactions: pragma: - no-cache request-id: - - f6c81e22-85f2-4c92-b82b-015f72eea3eb + - 716f2909-d8ba-4631-9473-209752a32c22 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: @@ -480,13 +480,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:48:06 GMT + - Wed, 09 Feb 2022 01:02:48 GMT expires: - '-1' pragma: - no-cache request-id: - - 6dd8da44-a4c6-4462-b391-71fa3aef0627 + - 50d9a30b-b543-4d7f-a667-6db2b6b5d1c6 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -496,7 +496,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_create_managementgroup_with_displayname.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_create_managementgroup_with_displayname.yaml index 4e269ca7987..d8d02e8de18 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_create_managementgroup_with_displayname.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_create_managementgroup_with_displayname.yaml @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 00:36:10 GMT + - Wed, 09 Feb 2022 01:09:40 GMT expires: - '-1' pragma: @@ -75,7 +75,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 00:36:20 GMT + - Wed, 09 Feb 2022 01:09:50 GMT expires: - '-1' pragma: @@ -126,7 +126,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 00:36:21 GMT + - Wed, 09 Feb 2022 01:09:51 GMT expires: - '-1' location: @@ -134,13 +134,13 @@ interactions: pragma: - no-cache request-id: - - fd4c6067-272e-4cdd-93ac-d8ca83f46baf + - dedd904e-ebdc-4ee9-86a4-1aa1185d08ea server: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: @@ -180,7 +180,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 00:36:31 GMT + - Wed, 09 Feb 2022 01:10:01 GMT expires: - '-1' location: @@ -188,7 +188,7 @@ interactions: pragma: - no-cache request-id: - - 93731888-88b1-4d3a-b2b9-bf99b226baf4 + - f121b47b-c48b-4441-bab4-4167be7d02c2 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -198,7 +198,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -223,7 +223,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"TestCliDisplayName","details":{"version":118,"updatedTime":"2022-01-21T00:36:27.0305551Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"TestCliDisplayName","details":{"version":170,"updatedTime":"2022-02-09T01:09:56.9833674Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache @@ -232,13 +232,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 00:36:42 GMT + - Wed, 09 Feb 2022 01:10:11 GMT expires: - '-1' pragma: - no-cache request-id: - - fc63b1cd-ebb7-4067-be0a-e94700609b35 + - 3f55f108-299e-4401-b89f-3640f1e911a7 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -248,7 +248,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -273,7 +273,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"TestCliDisplayName","details":{"version":118,"updatedTime":"2022-01-21T00:36:27.0305551Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"TestCliDisplayName","details":{"version":170,"updatedTime":"2022-02-09T01:09:56.9833674Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root Management Group"}}}}' headers: cache-control: @@ -283,13 +283,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 00:36:42 GMT + - Wed, 09 Feb 2022 01:10:12 GMT expires: - '-1' pragma: - no-cache request-id: - - fc8e87f7-e6b9-432b-bccf-21f414c5574c + - 574bee45-45e5-4a8a-b11e-c26293fb9e37 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -299,7 +299,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -335,7 +335,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 00:36:44 GMT + - Wed, 09 Feb 2022 01:10:13 GMT expires: - '-1' pragma: @@ -381,7 +381,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 00:36:54 GMT + - Wed, 09 Feb 2022 01:10:23 GMT expires: - '-1' pragma: @@ -429,7 +429,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 00:36:56 GMT + - Wed, 09 Feb 2022 01:10:24 GMT expires: - '-1' location: @@ -437,7 +437,7 @@ interactions: pragma: - no-cache request-id: - - 59b270e8-a975-4757-93d8-71045158c201 + - 6a4ea97c-0c36-4793-963b-62c4c0bf643c server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -481,13 +481,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 00:37:06 GMT + - Wed, 09 Feb 2022 01:10:34 GMT expires: - '-1' pragma: - no-cache request-id: - - 8f2edf3d-3ef1-4a8e-9b77-368fd4fafa60 + - 67dd292c-8132-4d3a-8e6a-31515122a9ef server: - Microsoft-HTTPAPI/2.0 strict-transport-security: diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_create_managementgroup_with_displayname_and_parentid.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_create_managementgroup_with_displayname_and_parentid.yaml index 6b82ab87c7a..04f169daffb 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_create_managementgroup_with_displayname_and_parentid.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_create_managementgroup_with_displayname_and_parentid.yaml @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 00:00:45 GMT + - Wed, 09 Feb 2022 00:58:36 GMT expires: - '-1' pragma: @@ -75,7 +75,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 00:00:55 GMT + - Wed, 09 Feb 2022 00:58:46 GMT expires: - '-1' pragma: @@ -125,7 +125,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 00:00:57 GMT + - Wed, 09 Feb 2022 00:58:47 GMT expires: - '-1' location: @@ -133,7 +133,7 @@ interactions: pragma: - no-cache request-id: - - f06cef7d-f66e-4909-b279-3471491cb135 + - 8e76f390-fbff-4ced-b8da-8bb9eae4fdee server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -179,7 +179,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 00:01:07 GMT + - Wed, 09 Feb 2022 00:58:57 GMT expires: - '-1' location: @@ -187,7 +187,7 @@ interactions: pragma: - no-cache request-id: - - 25b1c9dc-4b95-4eb1-ae41-e1e89828c124 + - 2d49cb26-af93-425f-9715-53b755f87cc2 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -222,7 +222,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":116,"updatedTime":"2022-01-21T00:01:03.2602151Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":167,"updatedTime":"2022-02-09T00:58:52.8268296Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache @@ -231,13 +231,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 00:01:17 GMT + - Wed, 09 Feb 2022 00:59:07 GMT expires: - '-1' pragma: - no-cache request-id: - - 04769ba0-42ff-4a7c-9775-4bcaa0710381 + - f1977dae-2e2f-4c53-9236-276ef6bcddb4 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -272,7 +272,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":116,"updatedTime":"2022-01-21T00:01:03.2602151Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":167,"updatedTime":"2022-02-09T00:58:52.8268296Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root Management Group"}}}}' headers: cache-control: @@ -282,13 +282,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 00:01:17 GMT + - Wed, 09 Feb 2022 00:59:08 GMT expires: - '-1' pragma: - no-cache request-id: - - 04b19f99-a810-417c-bd75-d2f36e473931 + - 5fbb50da-72b3-4d9a-a3bf-519097b0f8ce server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -334,7 +334,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 00:01:18 GMT + - Wed, 09 Feb 2022 00:59:09 GMT expires: - '-1' pragma: @@ -380,7 +380,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 00:01:28 GMT + - Wed, 09 Feb 2022 00:59:19 GMT expires: - '-1' pragma: @@ -431,7 +431,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 00:01:30 GMT + - Wed, 09 Feb 2022 00:59:20 GMT expires: - '-1' location: @@ -439,13 +439,13 @@ interactions: pragma: - no-cache request-id: - - 3ee6e982-8d8c-4b08-a85d-a9f12dada6a0 + - b055d5d1-cb0e-48bb-830f-bedaeb40ac78 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: @@ -485,7 +485,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 00:01:40 GMT + - Wed, 09 Feb 2022 00:59:31 GMT expires: - '-1' location: @@ -493,7 +493,7 @@ interactions: pragma: - no-cache request-id: - - bd4b3b66-a055-4c80-ad4c-292c6365ed2f + - 33cee053-1f11-4b40-9b4f-ab3b833787bc server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -503,7 +503,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -528,22 +528,26 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild","name":"testcligroupchild","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchildDisplayName","details":{"version":81,"updatedTime":"2022-01-21T00:01:37.2390579Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild","name":"testcligroupchild","status":"Running"}' headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 cache-control: - no-cache content-length: - - '400' + - '167' content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 00:01:51 GMT + - Wed, 09 Feb 2022 00:59:41 GMT expires: - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroupchild?api-version=2021-04-01 pragma: - no-cache request-id: - - 048e75a2-f370-4eb2-a0d8-115f318f6b21 + - 6a25803f-8df4-4f84-9fa5-758d16364c98 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -553,7 +557,57 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name --display-name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild","name":"testcligroupchild","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchildDisplayName","details":{"version":104,"updatedTime":"2022-02-09T00:59:27.7315944Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + headers: + cache-control: + - no-cache + content-length: + - '401' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 09 Feb 2022 00:59:51 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - 57b1de9b-637e-4f63-823f-bd0c7d084a33 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -578,22 +632,22 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchildDisplayName","details":{"version":81,"updatedTime":"2022-01-21T00:01:37.2390579Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","name":"testcligroup","displayName":"testcligroup"}}}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchildDisplayName","details":{"version":104,"updatedTime":"2022-02-09T00:59:27.7315944Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","name":"testcligroup","displayName":"testcligroup"}}}}' headers: cache-control: - no-cache content-length: - - '511' + - '512' content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 00:01:51 GMT + - Wed, 09 Feb 2022 00:59:51 GMT expires: - '-1' pragma: - no-cache request-id: - - d335dec0-dab5-4a55-8d56-82434b072a4d + - 54cb1480-81e0-4379-8afb-bfa3c9354104 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -603,7 +657,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -639,7 +693,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 00:01:52 GMT + - Wed, 09 Feb 2022 00:59:53 GMT expires: - '-1' pragma: @@ -685,7 +739,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 00:02:02 GMT + - Wed, 09 Feb 2022 01:00:02 GMT expires: - '-1' pragma: @@ -733,7 +787,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 00:02:03 GMT + - Wed, 09 Feb 2022 01:00:05 GMT expires: - '-1' location: @@ -741,13 +795,13 @@ interactions: pragma: - no-cache request-id: - - 7d6bec2b-322e-40af-be77-084f4b9911d1 + - 794b2ade-8701-4c5c-8575-8960d8f7eeef server: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: @@ -785,13 +839,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 00:02:13 GMT + - Wed, 09 Feb 2022 01:00:15 GMT expires: - '-1' pragma: - no-cache request-id: - - 2286d379-7d82-43f8-a047-cd466d1aa7be + - ef7e3de5-aa29-4c82-bc21-92662e76c5cb server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -801,7 +855,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -837,7 +891,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 00:02:14 GMT + - Wed, 09 Feb 2022 01:00:15 GMT expires: - '-1' pragma: @@ -883,7 +937,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 00:02:25 GMT + - Wed, 09 Feb 2022 01:00:26 GMT expires: - '-1' pragma: @@ -931,7 +985,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 00:02:26 GMT + - Wed, 09 Feb 2022 01:00:28 GMT expires: - '-1' location: @@ -939,13 +993,13 @@ interactions: pragma: - no-cache request-id: - - a9fae5fa-d0a2-4485-9aa9-caa9da635512 + - 1352988c-6b73-40b3-a36c-47828299158c server: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: @@ -983,13 +1037,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 00:02:36 GMT + - Wed, 09 Feb 2022 01:00:38 GMT expires: - '-1' pragma: - no-cache request-id: - - 57134119-3589-495d-ac15-c53d4d7d1579 + - 305868a6-c89f-4590-af75-60a604d1ed5e server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -999,7 +1053,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_create_managementgroup_with_parentid.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_create_managementgroup_with_parentid.yaml index 13eae1fd085..27b4fe04fad 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_create_managementgroup_with_parentid.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_create_managementgroup_with_parentid.yaml @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:48:40 GMT + - Wed, 09 Feb 2022 01:25:45 GMT expires: - '-1' pragma: @@ -75,7 +75,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:48:50 GMT + - Wed, 09 Feb 2022 01:25:56 GMT expires: - '-1' pragma: @@ -125,7 +125,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:48:50 GMT + - Wed, 09 Feb 2022 01:25:56 GMT expires: - '-1' location: @@ -133,13 +133,13 @@ interactions: pragma: - no-cache request-id: - - ea14f650-f327-4a76-b779-9890244fb96e + - b64767ce-ae78-44bb-97a6-4d126c736c1d server: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: @@ -179,7 +179,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:49:01 GMT + - Wed, 09 Feb 2022 01:26:07 GMT expires: - '-1' location: @@ -187,7 +187,7 @@ interactions: pragma: - no-cache request-id: - - 620a4521-3708-4e35-a01b-28d257aefac8 + - 67664c94-dd43-4495-bb43-3276a7b05820 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -197,7 +197,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -222,7 +222,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":122,"updatedTime":"2022-01-21T05:48:57.1882617Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":177,"updatedTime":"2022-02-09T01:26:02.5828886Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache @@ -231,13 +231,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:49:11 GMT + - Wed, 09 Feb 2022 01:26:17 GMT expires: - '-1' pragma: - no-cache request-id: - - d411ddf0-696d-401e-863d-d4b2ffb58c50 + - 99cb4616-6b39-46eb-9f28-12d430e98d24 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -247,7 +247,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -272,7 +272,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":122,"updatedTime":"2022-01-21T05:48:57.1882617Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":177,"updatedTime":"2022-02-09T01:26:02.5828886Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root Management Group"}}}}' headers: cache-control: @@ -282,13 +282,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:49:12 GMT + - Wed, 09 Feb 2022 01:26:17 GMT expires: - '-1' pragma: - no-cache request-id: - - cd445153-760c-4121-b7e1-4926ea05db47 + - f6795721-0a1c-4be2-ae14-6aef058602e5 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -298,7 +298,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -334,7 +334,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:49:13 GMT + - Wed, 09 Feb 2022 01:26:18 GMT expires: - '-1' pragma: @@ -380,7 +380,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:49:23 GMT + - Wed, 09 Feb 2022 01:26:29 GMT expires: - '-1' pragma: @@ -431,7 +431,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:49:24 GMT + - Wed, 09 Feb 2022 01:26:29 GMT expires: - '-1' location: @@ -439,17 +439,17 @@ interactions: pragma: - no-cache request-id: - - 133d04a4-a6fe-4480-a4c8-cbf3579cf60e + - b4b5a26b-d78f-469d-959a-e2f3a3292b78 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: - - '59' + - '58' x-ms-ratelimit-remaining-tenant-writes: - '1199' status: @@ -485,7 +485,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:49:35 GMT + - Wed, 09 Feb 2022 01:26:40 GMT expires: - '-1' location: @@ -493,7 +493,7 @@ interactions: pragma: - no-cache request-id: - - 132048bb-1fe8-44f0-8fef-058d9122bde6 + - 57f22e46-396f-4aac-b886-84c1afbf3bf8 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -503,7 +503,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -528,22 +528,22 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild","name":"testcligroupchild","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":84,"updatedTime":"2022-01-21T05:49:29.838533Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild","name":"testcligroupchild","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":112,"updatedTime":"2022-02-09T01:26:36.1782913Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache content-length: - - '388' + - '390' content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:49:45 GMT + - Wed, 09 Feb 2022 01:26:51 GMT expires: - '-1' pragma: - no-cache request-id: - - 63b65a7d-19e9-4d48-9e20-6ab38b2c3572 + - e1043c29-1a8a-4e16-a9e9-4a00706bd8f8 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -553,7 +553,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -578,22 +578,22 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":84,"updatedTime":"2022-01-21T05:49:29.838533Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","name":"testcligroup","displayName":"testcligroup"}}}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":112,"updatedTime":"2022-02-09T01:26:36.1782913Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","name":"testcligroup","displayName":"testcligroup"}}}}' headers: cache-control: - no-cache content-length: - - '499' + - '501' content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:49:46 GMT + - Wed, 09 Feb 2022 01:26:51 GMT expires: - '-1' pragma: - no-cache request-id: - - 5282523f-4bba-40e0-861c-4d28c035f7c0 + - 5d0d3e3e-b512-4959-8c5a-b0d2409a8845 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -603,7 +603,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -639,7 +639,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:49:47 GMT + - Wed, 09 Feb 2022 01:26:52 GMT expires: - '-1' pragma: @@ -653,7 +653,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 200 message: OK @@ -685,7 +685,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:49:57 GMT + - Wed, 09 Feb 2022 01:27:02 GMT expires: - '-1' pragma: @@ -733,7 +733,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:49:58 GMT + - Wed, 09 Feb 2022 01:27:04 GMT expires: - '-1' location: @@ -741,13 +741,13 @@ interactions: pragma: - no-cache request-id: - - a1f32b57-1949-474c-aa5f-cd33e3642675 + - bce0288a-f652-4d03-9d43-46aa3809aa30 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: @@ -785,13 +785,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:50:08 GMT + - Wed, 09 Feb 2022 01:27:14 GMT expires: - '-1' pragma: - no-cache request-id: - - 3efb030d-c781-4aa4-9179-c9ea5b1d7180 + - abb0ed00-919c-4e22-92cd-0fe4c9bea795 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -801,7 +801,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -837,7 +837,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:50:09 GMT + - Wed, 09 Feb 2022 01:27:16 GMT expires: - '-1' pragma: @@ -883,7 +883,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:50:20 GMT + - Wed, 09 Feb 2022 01:27:26 GMT expires: - '-1' pragma: @@ -931,7 +931,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:50:20 GMT + - Wed, 09 Feb 2022 01:27:27 GMT expires: - '-1' location: @@ -939,7 +939,7 @@ interactions: pragma: - no-cache request-id: - - d8422eaf-c9b4-49f6-a173-c1d2bfddaa4f + - 7e4b6385-bb8e-404f-9046-0f958734db40 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -983,13 +983,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:50:31 GMT + - Wed, 09 Feb 2022 01:27:37 GMT expires: - '-1' pragma: - no-cache request-id: - - 741dd0af-89fd-4ad1-90d9-5ccfca5a5cfd + - bfdf2228-f67d-490c-b381-f159af44a059 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_list_managementgroups.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_list_managementgroups.yaml index 898764e91e1..75026783db9 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_list_managementgroups.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_list_managementgroups.yaml @@ -27,7 +27,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 00:00:05 GMT + - Wed, 09 Feb 2022 00:50:04 GMT expires: - '-1' pragma: @@ -41,7 +41,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 200 message: OK @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 00:00:15 GMT + - Wed, 09 Feb 2022 00:50:14 GMT expires: - '-1' pragma: @@ -104,23 +104,23 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups?api-version=2021-04-01 response: body: - string: '{"value":[{"id":"/providers/Microsoft.Management/managementGroups/azure-cli-managementaizr2dd4fz","type":"Microsoft.Management/managementGroups","name":"azure-cli-managementaizr2dd4fz","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"azure-cli-managementaizr2dd4fz"}},{"id":"/providers/Microsoft.Management/managementGroups/azure-cli-managementb4osamcwmj","type":"Microsoft.Management/managementGroups","name":"azure-cli-managementb4osamcwmj","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"azure-cli-managementb4osamcwmj"}},{"id":"/providers/Microsoft.Management/managementGroups/azure-cli-management-groupm2apk2ydbnxvjc","type":"Microsoft.Management/managementGroups","name":"azure-cli-management-groupm2apk2ydbnxvjc","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"azure-cli-management-groupm2apk2ydbnxvjc"}},{"id":"/providers/Microsoft.Management/managementGroups/azure-cli-management-groupnforubwtqei527","type":"Microsoft.Management/managementGroups","name":"azure-cli-management-groupnforubwtqei527","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"azure-cli-management-groupnforubwtqei527"}},{"id":"/providers/Microsoft.Management/managementGroups/azure-cli-managementz5v4ynfco4","type":"Microsoft.Management/managementGroups","name":"azure-cli-managementz5v4ynfco4","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"azure-cli-managementz5v4ynfco4"}},{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","type":"Microsoft.Management/managementGroups","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root - Management Group"}},{"id":"/providers/Microsoft.Management/managementGroups/cli-test-mgmt-groupeg2st77efvn","type":"Microsoft.Management/managementGroups","name":"cli-test-mgmt-groupeg2st77efvn","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"cli-test-mgmt-groupeg2st77efvn"}},{"id":"/providers/Microsoft.Management/managementGroups/cli-test-mgmt-groupsoe7y63ziif","type":"Microsoft.Management/managementGroups","name":"cli-test-mgmt-groupsoe7y63ziif","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"cli-test-mgmt-groupsoe7y63ziif"}},{"id":"/providers/Microsoft.Management/managementGroups/testMG3","type":"Microsoft.Management/managementGroups","name":"testMG3","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testMG3"}},{"id":"/providers/Microsoft.Management/managementGroups/testMG4","type":"Microsoft.Management/managementGroups","name":"testMG4","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testMG4"}},{"id":"/providers/Microsoft.Management/managementGroups/thomasdolanTestMG","type":"Microsoft.Management/managementGroups","name":"thomasdolanTestMG","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"thomasdolanTestMG"}}],"@nextLink":null}' + string: '{"value":[{"id":"/providers/Microsoft.Management/managementGroups/azure-cli-managementb4osamcwmj","type":"Microsoft.Management/managementGroups","name":"azure-cli-managementb4osamcwmj","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"azure-cli-managementb4osamcwmj"}},{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","type":"Microsoft.Management/managementGroups","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + Management Group"}},{"id":"/providers/Microsoft.Management/managementGroups/testMG3","type":"Microsoft.Management/managementGroups","name":"testMG3","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testMG3"}},{"id":"/providers/Microsoft.Management/managementGroups/testMG4","type":"Microsoft.Management/managementGroups","name":"testMG4","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testMG4"}},{"id":"/providers/Microsoft.Management/managementGroups/thomasdolanTestMG","type":"Microsoft.Management/managementGroups","name":"thomasdolanTestMG","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"thomasdolanTestMG"}}],"@nextLink":null}' headers: cache-control: - no-cache content-length: - - '3082' + - '1294' content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 00:00:16 GMT + - Wed, 09 Feb 2022 00:50:15 GMT expires: - '-1' pragma: - no-cache request-id: - - 49db846b-1566-4137-b4d5-54bf382c6284 + - 62373061-bcd1-4f5b-acff-e730c6144ee4 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_show_managementgroup.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_show_managementgroup.yaml index cac56520d3f..5dcc1d37c6c 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_show_managementgroup.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_show_managementgroup.yaml @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:54:41 GMT + - Wed, 09 Feb 2022 01:03:48 GMT expires: - '-1' pragma: @@ -43,7 +43,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 200 message: OK @@ -75,7 +75,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:54:51 GMT + - Wed, 09 Feb 2022 01:03:58 GMT expires: - '-1' pragma: @@ -114,23 +114,181 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup","type":"Microsoft.Management/managementGroups","name":"testcligetgroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup","details":{"version":9,"updatedTime":"2022-01-21T05:53:01.2347389Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup","type":"Microsoft.Management/managementGroups","name":"testcligetgroup","status":"NotStarted"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '167' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 09 Feb 2022 01:04:00 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 45214f15-3220-4534-ac8c-f0310191e0c3 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup","name":"testcligetgroup","status":"Running"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '163' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 09 Feb 2022 01:04:10 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - f0021e74-1a9f-4cf0-8401-d778e4be4b20 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup","name":"testcligetgroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup","details":{"version":14,"updatedTime":"2022-02-09T01:04:05.1101087Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + headers: + cache-control: + - no-cache + content-length: + - '383' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 09 Feb 2022 01:04:20 GMT + expires: + - '-1' + pragma: + - no-cache + request-id: + - a463e2c4-6090-4259-a3e0-26c211ed4f93 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup","type":"Microsoft.Management/managementGroups","name":"testcligetgroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup","details":{"version":14,"updatedTime":"2022-02-09T01:04:05.1101087Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root Management Group"}}}}' headers: cache-control: - no-cache content-length: - - '550' + - '551' content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:54:52 GMT + - Wed, 09 Feb 2022 01:04:20 GMT expires: - '-1' pragma: - no-cache request-id: - - 22babe80-008d-4af9-82f5-3f0357af2f9d + - 29da67f5-c411-4660-9c0f-eaf11ff36c48 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -143,10 +301,6 @@ interactions: - 1.0.3.2425 x-content-type-options: - nosniff - x-ms-ratelimit-remaining-managementgroups-requests: - - '59' - x-ms-ratelimit-remaining-tenant-writes: - - '1199' status: code: 200 message: OK @@ -180,7 +334,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:54:53 GMT + - Wed, 09 Feb 2022 01:04:21 GMT expires: - '-1' pragma: @@ -226,7 +380,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:55:03 GMT + - Wed, 09 Feb 2022 01:04:31 GMT expires: - '-1' pragma: @@ -277,7 +431,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:55:04 GMT + - Wed, 09 Feb 2022 01:04:32 GMT expires: - '-1' location: @@ -285,7 +439,7 @@ interactions: pragma: - no-cache request-id: - - b7bdc28e-c1e8-4784-9b35-5fe0bc356c3e + - 1730d1e0-2b18-4594-a344-9d20abe85aaa server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -331,7 +485,61 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:55:14 GMT + - Wed, 09 Feb 2022 01:04:42 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup1?api-version=2021-04-01 + pragma: + - no-cache + request-id: + - 4c4bbd4b-6327-444c-9197-cdb3865511c7 + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ba-restapi: + - 1.0.3.2425 + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - account management-group create + Connection: + - keep-alive + ParameterSetName: + - --name --parent + User-Agent: + - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 + response: + body: + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1","name":"testcligetgroup1","status":"Running"}' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '165' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 09 Feb 2022 01:04:53 GMT expires: - '-1' location: @@ -339,7 +547,7 @@ interactions: pragma: - no-cache request-id: - - 0a339e9c-3802-4126-b771-01efbcab3e1f + - 9a9cf0e6-ae0d-43f6-9ca1-09e26fdf3e3e server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -374,22 +582,22 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1","name":"testcligetgroup1","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup1","details":{"version":22,"updatedTime":"2022-01-21T05:55:09.414743Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1","name":"testcligetgroup1","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup1","details":{"version":29,"updatedTime":"2022-02-09T01:04:39.4525774Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache content-length: - - '385' + - '386' content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:55:25 GMT + - Wed, 09 Feb 2022 01:05:04 GMT expires: - '-1' pragma: - no-cache request-id: - - 7a6df3af-df61-4541-b76d-747626431447 + - c821ba08-5708-43a5-807c-c51b9e65cc85 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -424,22 +632,22 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"Microsoft.Management/managementGroups","name":"testcligetgroup1","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup1","details":{"version":22,"updatedTime":"2022-01-21T05:55:09.414743Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup","name":"testcligetgroup","displayName":"testcligetgroup"}}}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"Microsoft.Management/managementGroups","name":"testcligetgroup1","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup1","details":{"version":29,"updatedTime":"2022-02-09T01:04:39.4525774Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup","name":"testcligetgroup","displayName":"testcligetgroup"}}}}' headers: cache-control: - no-cache content-length: - - '505' + - '506' content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:55:25 GMT + - Wed, 09 Feb 2022 01:05:04 GMT expires: - '-1' pragma: - no-cache request-id: - - e1bfcb90-17bb-46d8-ae60-c3ff399aa8cf + - 07bf3ad3-992e-46a5-9166-65d6672f89fc server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -485,7 +693,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:55:27 GMT + - Wed, 09 Feb 2022 01:05:05 GMT expires: - '-1' pragma: @@ -531,7 +739,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:55:37 GMT + - Wed, 09 Feb 2022 01:05:15 GMT expires: - '-1' pragma: @@ -566,22 +774,22 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"Microsoft.Management/managementGroups","name":"testcligetgroup1","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup1","details":{"version":22,"updatedTime":"2022-01-21T05:55:09.414743Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup","name":"testcligetgroup","displayName":"testcligetgroup"}}}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"Microsoft.Management/managementGroups","name":"testcligetgroup1","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup1","details":{"version":29,"updatedTime":"2022-02-09T01:04:39.4525774Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup","name":"testcligetgroup","displayName":"testcligetgroup"}}}}' headers: cache-control: - no-cache content-length: - - '505' + - '506' content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:55:37 GMT + - Wed, 09 Feb 2022 01:05:15 GMT expires: - '-1' pragma: - no-cache request-id: - - 5035557c-1126-423a-8ff3-d02746cb5c0c + - a1f37734-272c-4a29-b60a-468907d1bd20 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -591,7 +799,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -627,7 +835,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:55:38 GMT + - Wed, 09 Feb 2022 01:05:16 GMT expires: - '-1' pragma: @@ -641,7 +849,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 200 message: OK @@ -673,7 +881,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:55:48 GMT + - Wed, 09 Feb 2022 01:05:26 GMT expires: - '-1' pragma: @@ -721,7 +929,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:55:53 GMT + - Wed, 09 Feb 2022 01:05:28 GMT expires: - '-1' location: @@ -729,13 +937,13 @@ interactions: pragma: - no-cache request-id: - - 4d7ce93e-7f18-4c96-bc52-517f34266227 + - 798ed90a-e5d3-46fb-aab6-8fe946a9ab7d server: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: @@ -773,13 +981,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:56:03 GMT + - Wed, 09 Feb 2022 01:05:38 GMT expires: - '-1' pragma: - no-cache request-id: - - 22eca3a3-9e4c-4716-b447-a00894284ccc + - cb996e44-e3bd-4646-aea4-073ba40ddcd6 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -789,7 +997,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -825,7 +1033,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:56:05 GMT + - Wed, 09 Feb 2022 01:05:39 GMT expires: - '-1' pragma: @@ -871,7 +1079,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:56:14 GMT + - Wed, 09 Feb 2022 01:05:49 GMT expires: - '-1' pragma: @@ -919,7 +1127,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:56:16 GMT + - Wed, 09 Feb 2022 01:05:51 GMT expires: - '-1' location: @@ -927,13 +1135,13 @@ interactions: pragma: - no-cache request-id: - - 2d1ec6bd-15f9-4d50-8645-fa9988261b08 + - 85ec2a9b-43e2-4166-8f1e-cd0cae2bdbba server: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: @@ -971,13 +1179,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:56:26 GMT + - Wed, 09 Feb 2022 01:06:00 GMT expires: - '-1' pragma: - no-cache request-id: - - cbe5abb1-eee0-4b6d-9cde-3f42d5f73f4d + - d42c0e9c-fb9f-42d2-a58a-a56427726318 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -987,7 +1195,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_show_managementgroup_with_expand.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_show_managementgroup_with_expand.yaml index 946c9413eb7..7a6cea09f24 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_show_managementgroup_with_expand.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_show_managementgroup_with_expand.yaml @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:01:23 GMT + - Wed, 09 Feb 2022 01:29:38 GMT expires: - '-1' pragma: @@ -75,7 +75,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:01:33 GMT + - Wed, 09 Feb 2022 01:29:48 GMT expires: - '-1' pragma: @@ -114,165 +114,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup","type":"Microsoft.Management/managementGroups","name":"testcligetgroup","status":"NotStarted"}' - headers: - azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup?api-version=2021-04-01 - cache-control: - - no-cache - content-length: - - '167' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 21 Jan 2022 06:01:34 GMT - expires: - - '-1' - location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup?api-version=2021-04-01 - pragma: - - no-cache - request-id: - - 4945e36f-6039-4aa2-a770-a4a58e5d4fc7 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-ba-restapi: - - 1.0.3.2425 - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-managementgroups-requests: - - '59' - x-ms-ratelimit-remaining-tenant-writes: - - '1199' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - account management-group create - Connection: - - keep-alive - ParameterSetName: - - --name - User-Agent: - - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup?api-version=2021-04-01 - response: - body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup","name":"testcligetgroup","status":"Running"}' - headers: - azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup?api-version=2021-04-01 - cache-control: - - no-cache - content-length: - - '163' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 21 Jan 2022 06:01:44 GMT - expires: - - '-1' - location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup?api-version=2021-04-01 - pragma: - - no-cache - request-id: - - b9110781-8cbe-4472-8374-bc06f3a9b9c2 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-ba-restapi: - - 1.0.3.2425 - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - account management-group create - Connection: - - keep-alive - ParameterSetName: - - --name - User-Agent: - - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup?api-version=2021-04-01 - response: - body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup","name":"testcligetgroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup","details":{"version":10,"updatedTime":"2022-01-21T06:01:40.1327349Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' - headers: - cache-control: - - no-cache - content-length: - - '383' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 21 Jan 2022 06:01:55 GMT - expires: - - '-1' - pragma: - - no-cache - request-id: - - 2515af9f-0097-493d-b2da-786d9648ccc7 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-ba-restapi: - - 1.0.3.2425 - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - account management-group create - Connection: - - keep-alive - ParameterSetName: - - --name - User-Agent: - - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup?api-version=2021-04-01 - response: - body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup","type":"Microsoft.Management/managementGroups","name":"testcligetgroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup","details":{"version":10,"updatedTime":"2022-01-21T06:01:40.1327349Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup","type":"Microsoft.Management/managementGroups","name":"testcligetgroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup","details":{"version":15,"updatedTime":"2022-02-09T01:23:17.8884875Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root Management Group"}}}}' headers: cache-control: @@ -282,13 +124,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:01:55 GMT + - Wed, 09 Feb 2022 01:29:48 GMT expires: - '-1' pragma: - no-cache request-id: - - 38d72ec0-e489-48a5-bba8-edb287ff9671 + - 636379b0-27f1-426e-98e3-ae7549d2ffbf server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -301,6 +143,10 @@ interactions: - 1.0.3.2425 x-content-type-options: - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-writes: + - '1199' status: code: 200 message: OK @@ -334,7 +180,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:01:57 GMT + - Wed, 09 Feb 2022 01:29:50 GMT expires: - '-1' pragma: @@ -380,7 +226,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:02:08 GMT + - Wed, 09 Feb 2022 01:30:00 GMT expires: - '-1' pragma: @@ -420,165 +266,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"Microsoft.Management/managementGroups","name":"testcligetgroup1","status":"NotStarted"}' - headers: - azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 - cache-control: - - no-cache - content-length: - - '169' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 21 Jan 2022 06:02:09 GMT - expires: - - '-1' - location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup1?api-version=2021-04-01 - pragma: - - no-cache - request-id: - - 6eb6db89-a153-4302-8cdd-90bc0e23e035 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-ba-restapi: - - 1.0.3.2425 - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-managementgroups-requests: - - '59' - x-ms-ratelimit-remaining-tenant-writes: - - '1199' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - account management-group create - Connection: - - keep-alive - ParameterSetName: - - --name --parent - User-Agent: - - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 - response: - body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1","name":"testcligetgroup1","status":"Running"}' - headers: - azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 - cache-control: - - no-cache - content-length: - - '165' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 21 Jan 2022 06:02:19 GMT - expires: - - '-1' - location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligetgroup1?api-version=2021-04-01 - pragma: - - no-cache - request-id: - - 700b14c8-46db-4f6c-a8b1-26796318e7c9 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-ba-restapi: - - 1.0.3.2425 - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - account management-group create - Connection: - - keep-alive - ParameterSetName: - - --name --parent - User-Agent: - - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 - response: - body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1","name":"testcligetgroup1","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup1","details":{"version":24,"updatedTime":"2022-01-21T06:02:16.0159623Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' - headers: - cache-control: - - no-cache - content-length: - - '386' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 21 Jan 2022 06:02:30 GMT - expires: - - '-1' - pragma: - - no-cache - request-id: - - 462ec200-1243-478d-8f4b-861bdb22ee79 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-ba-restapi: - - 1.0.3.2425 - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - account management-group create - Connection: - - keep-alive - ParameterSetName: - - --name --parent - User-Agent: - - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2021-04-01 - response: - body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"Microsoft.Management/managementGroups","name":"testcligetgroup1","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup1","details":{"version":24,"updatedTime":"2022-01-21T06:02:16.0159623Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup","name":"testcligetgroup","displayName":"testcligetgroup"}}}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"Microsoft.Management/managementGroups","name":"testcligetgroup1","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup1","details":{"version":30,"updatedTime":"2022-02-09T01:23:50.7279872Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup","name":"testcligetgroup","displayName":"testcligetgroup"}}}}' headers: cache-control: - no-cache @@ -587,13 +275,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:02:30 GMT + - Wed, 09 Feb 2022 01:30:01 GMT expires: - '-1' pragma: - no-cache request-id: - - 03be6520-e078-49d6-8b6b-9820af235842 + - 1ecebda4-d82e-4d75-ae57-c02922066d09 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -606,6 +294,10 @@ interactions: - 1.0.3.2425 x-content-type-options: - nosniff + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-writes: + - '1199' status: code: 200 message: OK @@ -639,7 +331,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:02:32 GMT + - Wed, 09 Feb 2022 01:30:02 GMT expires: - '-1' pragma: @@ -653,7 +345,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 200 message: OK @@ -685,7 +377,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:02:42 GMT + - Wed, 09 Feb 2022 01:30:12 GMT expires: - '-1' pragma: @@ -736,7 +428,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:02:43 GMT + - Wed, 09 Feb 2022 01:30:15 GMT expires: - '-1' location: @@ -744,13 +436,13 @@ interactions: pragma: - no-cache request-id: - - f451522c-c891-4781-a570-84569446c30f + - 75e27418-3269-42ec-9452-3f8b46df5204 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: @@ -790,7 +482,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:02:53 GMT + - Wed, 09 Feb 2022 01:30:25 GMT expires: - '-1' location: @@ -798,7 +490,7 @@ interactions: pragma: - no-cache request-id: - - eceed59b-8bf4-4c60-9813-eebab2e9812c + - 89a0aefc-00dd-430e-a136-0562c8e2808c server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -808,7 +500,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -833,7 +525,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2","name":"testcligetgroup2","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup2","details":{"version":19,"updatedTime":"2022-01-21T06:02:49.7577153Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2","name":"testcligetgroup2","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup2","details":{"version":23,"updatedTime":"2022-02-09T01:30:21.9082687Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache @@ -842,13 +534,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:03:04 GMT + - Wed, 09 Feb 2022 01:30:35 GMT expires: - '-1' pragma: - no-cache request-id: - - cbb79438-e067-42d8-8bbe-4fa916b38221 + - ce7ca13a-6c5a-4b58-8e22-1accce95fcb6 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -858,7 +550,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -883,7 +575,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup2?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"Microsoft.Management/managementGroups","name":"testcligetgroup2","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup2","details":{"version":19,"updatedTime":"2022-01-21T06:02:49.7577153Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","name":"testcligetgroup1","displayName":"testcligetgroup1"}}}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"Microsoft.Management/managementGroups","name":"testcligetgroup2","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup2","details":{"version":23,"updatedTime":"2022-02-09T01:30:21.9082687Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","name":"testcligetgroup1","displayName":"testcligetgroup1"}}}}' headers: cache-control: - no-cache @@ -892,13 +584,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:03:04 GMT + - Wed, 09 Feb 2022 01:30:36 GMT expires: - '-1' pragma: - no-cache request-id: - - 58df5c6e-c37f-4493-82ef-de9d3e1e251c + - ffc6fe74-7e86-4874-9029-def539071444 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -908,7 +600,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -944,7 +636,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:03:06 GMT + - Wed, 09 Feb 2022 01:30:37 GMT expires: - '-1' pragma: @@ -990,7 +682,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:03:16 GMT + - Wed, 09 Feb 2022 01:30:47 GMT expires: - '-1' pragma: @@ -1025,7 +717,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2021-04-01&$expand=children&$recurse=false response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"Microsoft.Management/managementGroups","name":"testcligetgroup1","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup1","details":{"version":24,"updatedTime":"2022-01-21T06:02:16.0159623Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup","name":"testcligetgroup","displayName":"testcligetgroup"}},"children":[{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"Microsoft.Management/managementGroups","name":"testcligetgroup2","displayName":"testcligetgroup2"}]}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"Microsoft.Management/managementGroups","name":"testcligetgroup1","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup1","details":{"version":30,"updatedTime":"2022-02-09T01:23:50.7279872Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup","name":"testcligetgroup","displayName":"testcligetgroup"}},"children":[{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"Microsoft.Management/managementGroups","name":"testcligetgroup2","displayName":"testcligetgroup2"}]}}' headers: cache-control: - no-cache @@ -1034,13 +726,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:03:16 GMT + - Wed, 09 Feb 2022 01:30:48 GMT expires: - '-1' pragma: - no-cache request-id: - - ac119dd2-0522-45a7-99be-2a841ec32e4b + - 23050f50-b4b5-4863-ab44-e10c4711633e server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1050,7 +742,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -1086,7 +778,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:03:17 GMT + - Wed, 09 Feb 2022 01:30:49 GMT expires: - '-1' pragma: @@ -1100,7 +792,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 200 message: OK @@ -1132,7 +824,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:03:27 GMT + - Wed, 09 Feb 2022 01:30:59 GMT expires: - '-1' pragma: @@ -1180,7 +872,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:03:29 GMT + - Wed, 09 Feb 2022 01:31:00 GMT expires: - '-1' location: @@ -1188,13 +880,13 @@ interactions: pragma: - no-cache request-id: - - d9124b70-23a2-404e-b8e0-1f1033d7c603 + - db4e37b8-206c-4608-bafb-10f63167876a server: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: @@ -1232,13 +924,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:03:40 GMT + - Wed, 09 Feb 2022 01:31:10 GMT expires: - '-1' pragma: - no-cache request-id: - - ed05dc4b-b463-4cdb-b093-46d439a3536c + - 28e9d8db-5556-4286-9983-014ece0cae2f server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1248,7 +940,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -1284,7 +976,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:03:41 GMT + - Wed, 09 Feb 2022 01:31:11 GMT expires: - '-1' pragma: @@ -1298,7 +990,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 200 message: OK @@ -1330,7 +1022,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:03:51 GMT + - Wed, 09 Feb 2022 01:31:22 GMT expires: - '-1' pragma: @@ -1378,7 +1070,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:03:52 GMT + - Wed, 09 Feb 2022 01:31:23 GMT expires: - '-1' location: @@ -1386,17 +1078,17 @@ interactions: pragma: - no-cache request-id: - - 17d5013b-12b4-4772-8ce4-98da08f4d1bc + - 9e8ca321-9a46-495d-b548-3308b2d0c8ab server: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: - - '59' + - '58' x-ms-ratelimit-remaining-tenant-deletes: - '14999' status: @@ -1430,13 +1122,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:04:02 GMT + - Wed, 09 Feb 2022 01:31:33 GMT expires: - '-1' pragma: - no-cache request-id: - - 2386cf55-e788-42f4-a6e4-b8dc4daa81c8 + - b4d57803-3de7-4e56-bf79-59a0e3154e6f server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1446,7 +1138,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -1482,7 +1174,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:04:03 GMT + - Wed, 09 Feb 2022 01:31:34 GMT expires: - '-1' pragma: @@ -1528,7 +1220,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:04:13 GMT + - Wed, 09 Feb 2022 01:31:44 GMT expires: - '-1' pragma: @@ -1576,7 +1268,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:04:15 GMT + - Wed, 09 Feb 2022 01:31:45 GMT expires: - '-1' location: @@ -1584,7 +1276,7 @@ interactions: pragma: - no-cache request-id: - - c8a71db7-7c53-42e0-b049-63593ecb20fe + - 37b0e936-95ed-4c88-bbc9-719a400d73ef server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1628,13 +1320,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:04:25 GMT + - Wed, 09 Feb 2022 01:31:55 GMT expires: - '-1' pragma: - no-cache request-id: - - d8f89446-7307-4221-b651-0005fccf8833 + - af4fd00a-7e16-4645-965d-8bc23541627d server: - Microsoft-HTTPAPI/2.0 strict-transport-security: diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_show_managementgroup_with_expand_and_recurse.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_show_managementgroup_with_expand_and_recurse.yaml index a7da4341899..3a3638e6a68 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_show_managementgroup_with_expand_and_recurse.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_show_managementgroup_with_expand_and_recurse.yaml @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:56:53 GMT + - Wed, 09 Feb 2022 01:32:13 GMT expires: - '-1' pragma: @@ -75,7 +75,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:57:03 GMT + - Wed, 09 Feb 2022 01:32:24 GMT expires: - '-1' pragma: @@ -125,7 +125,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:57:04 GMT + - Wed, 09 Feb 2022 01:32:24 GMT expires: - '-1' location: @@ -133,13 +133,13 @@ interactions: pragma: - no-cache request-id: - - 4db8340b-bee1-4787-af2a-6d5ad3b5eed9 + - bec277b4-88d0-4677-95f5-2f8c81960e62 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: @@ -179,7 +179,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:57:14 GMT + - Wed, 09 Feb 2022 01:32:34 GMT expires: - '-1' location: @@ -187,7 +187,7 @@ interactions: pragma: - no-cache request-id: - - 33066e9d-fe79-43ae-8cf4-93cacc67dcad + - e86fdb65-1137-4b47-9564-73d06d66edd2 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -197,7 +197,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -222,22 +222,22 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1","name":"testcligetgroup1","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup1","details":{"version":23,"updatedTime":"2022-01-21T05:57:10.226183Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup1","name":"testcligetgroup1","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup1","details":{"version":31,"updatedTime":"2022-02-09T01:32:30.9911435Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache content-length: - - '385' + - '386' content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:57:25 GMT + - Wed, 09 Feb 2022 01:32:45 GMT expires: - '-1' pragma: - no-cache request-id: - - 41754aee-2fad-4753-b6f4-b9aef61bbaca + - 0ef43a34-331b-4fa6-aab9-f397dc0e3714 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -247,7 +247,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -272,23 +272,23 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup1?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"Microsoft.Management/managementGroups","name":"testcligetgroup1","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup1","details":{"version":23,"updatedTime":"2022-01-21T05:57:10.226183Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","type":"Microsoft.Management/managementGroups","name":"testcligetgroup1","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup1","details":{"version":31,"updatedTime":"2022-02-09T01:32:30.9911435Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root Management Group"}}}}' headers: cache-control: - no-cache content-length: - - '553' + - '554' content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:57:25 GMT + - Wed, 09 Feb 2022 01:32:45 GMT expires: - '-1' pragma: - no-cache request-id: - - a81bcd72-1814-4e6c-9421-0cac87f5d7ec + - 7945e310-37c4-406d-8125-d11dc7470acf server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -298,7 +298,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -334,7 +334,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:57:26 GMT + - Wed, 09 Feb 2022 01:32:47 GMT expires: - '-1' pragma: @@ -380,7 +380,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:57:36 GMT + - Wed, 09 Feb 2022 01:32:57 GMT expires: - '-1' pragma: @@ -431,7 +431,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:57:38 GMT + - Wed, 09 Feb 2022 01:32:58 GMT expires: - '-1' location: @@ -439,7 +439,7 @@ interactions: pragma: - no-cache request-id: - - 33ac6a1b-b274-492e-8a6b-eef2c766fc78 + - 33f8fa03-6806-42ac-937e-71c2b3312c71 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -451,7 +451,7 @@ interactions: x-ms-ratelimit-remaining-managementgroups-requests: - '59' x-ms-ratelimit-remaining-tenant-writes: - - '1199' + - '1198' status: code: 202 message: Accepted @@ -485,7 +485,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:57:48 GMT + - Wed, 09 Feb 2022 01:33:08 GMT expires: - '-1' location: @@ -493,7 +493,7 @@ interactions: pragma: - no-cache request-id: - - f6744c5e-c453-4743-a9ce-c2057c06fc53 + - 53311405-bf39-4c57-ad6f-995ecb1466ca server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -528,22 +528,22 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2","name":"testcligetgroup2","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup2","details":{"version":18,"updatedTime":"2022-01-21T05:57:43.331189Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup2","name":"testcligetgroup2","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup2","details":{"version":24,"updatedTime":"2022-02-09T01:33:03.1797448Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache content-length: - - '385' + - '386' content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:57:59 GMT + - Wed, 09 Feb 2022 01:33:19 GMT expires: - '-1' pragma: - no-cache request-id: - - 09736214-c17b-4be0-a4cd-a6bf1c6bf85f + - 232fbbd3-2a5b-489e-86eb-d5dfd965f4b9 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -578,22 +578,22 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup2?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"Microsoft.Management/managementGroups","name":"testcligetgroup2","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup2","details":{"version":18,"updatedTime":"2022-01-21T05:57:43.331189Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","name":"testcligetgroup1","displayName":"testcligetgroup1"}}}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","type":"Microsoft.Management/managementGroups","name":"testcligetgroup2","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup2","details":{"version":24,"updatedTime":"2022-02-09T01:33:03.1797448Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup1","name":"testcligetgroup1","displayName":"testcligetgroup1"}}}}' headers: cache-control: - no-cache content-length: - - '508' + - '509' content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:57:59 GMT + - Wed, 09 Feb 2022 01:33:19 GMT expires: - '-1' pragma: - no-cache request-id: - - 4df566fe-d693-4ce7-937b-19264f9cc42c + - aded4db3-3459-4cdf-aad2-525a9c812c3b server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -639,7 +639,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:58:00 GMT + - Wed, 09 Feb 2022 01:33:20 GMT expires: - '-1' pragma: @@ -685,7 +685,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:58:10 GMT + - Wed, 09 Feb 2022 01:33:30 GMT expires: - '-1' pragma: @@ -736,7 +736,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:58:12 GMT + - Wed, 09 Feb 2022 01:33:31 GMT expires: - '-1' location: @@ -744,7 +744,7 @@ interactions: pragma: - no-cache request-id: - - ab980bb2-eef0-49d4-b48b-6b0ad5f0f60c + - 43c50c76-72c7-4b9a-9179-efd857c40b78 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -790,7 +790,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:58:22 GMT + - Wed, 09 Feb 2022 01:33:41 GMT expires: - '-1' location: @@ -798,7 +798,7 @@ interactions: pragma: - no-cache request-id: - - 9bf43175-bb53-4b59-86ac-9161595bd36e + - a18f342e-a8a9-4334-aeca-f47220050a8c server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -833,22 +833,22 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup3?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup3","name":"testcligetgroup3","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup3","details":{"version":9,"updatedTime":"2022-01-21T05:58:17.2396376Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup3","name":"testcligetgroup3","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup3","details":{"version":11,"updatedTime":"2022-02-09T01:33:37.2206477Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache content-length: - - '385' + - '386' content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:58:32 GMT + - Wed, 09 Feb 2022 01:33:52 GMT expires: - '-1' pragma: - no-cache request-id: - - 71cbbdce-8185-4d05-a3de-4d8a56d011c5 + - 56dce980-96c8-4594-8299-46b090a2ce91 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -883,22 +883,22 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup3?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup3","type":"Microsoft.Management/managementGroups","name":"testcligetgroup3","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup3","details":{"version":9,"updatedTime":"2022-01-21T05:58:17.2396376Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","name":"testcligetgroup2","displayName":"testcligetgroup2"}}}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup3","type":"Microsoft.Management/managementGroups","name":"testcligetgroup3","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup3","details":{"version":11,"updatedTime":"2022-02-09T01:33:37.2206477Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup2","name":"testcligetgroup2","displayName":"testcligetgroup2"}}}}' headers: cache-control: - no-cache content-length: - - '508' + - '509' content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:58:32 GMT + - Wed, 09 Feb 2022 01:33:52 GMT expires: - '-1' pragma: - no-cache request-id: - - 68fe5fcc-f58e-4703-903e-ab066e2b2e26 + - 321dec3f-1e65-42f4-9f71-b28d541786a8 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -944,7 +944,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:58:33 GMT + - Wed, 09 Feb 2022 01:33:54 GMT expires: - '-1' pragma: @@ -990,7 +990,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:58:44 GMT + - Wed, 09 Feb 2022 01:34:04 GMT expires: - '-1' pragma: @@ -1041,7 +1041,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:58:45 GMT + - Wed, 09 Feb 2022 01:34:05 GMT expires: - '-1' location: @@ -1049,13 +1049,13 @@ interactions: pragma: - no-cache request-id: - - a59cc3d4-4960-4062-96d1-2afcd386825e + - adec62a9-afac-4d9b-887b-9efcb6a7ec85 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: @@ -1095,7 +1095,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:58:55 GMT + - Wed, 09 Feb 2022 01:34:15 GMT expires: - '-1' location: @@ -1103,7 +1103,7 @@ interactions: pragma: - no-cache request-id: - - 42beb84a-a8b2-49af-8be1-af4ab4fece8a + - 27b90276-1bc6-49d2-b598-49b33c494e95 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1113,7 +1113,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -1138,7 +1138,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup4?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup4","name":"testcligetgroup4","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup4","details":{"version":6,"updatedTime":"2022-01-21T05:58:51.3850621Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligetgroup4","name":"testcligetgroup4","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup4","details":{"version":8,"updatedTime":"2022-02-09T01:34:11.1105252Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache @@ -1147,13 +1147,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:59:05 GMT + - Wed, 09 Feb 2022 01:34:26 GMT expires: - '-1' pragma: - no-cache request-id: - - b241966d-f680-4caa-b825-d7aa7b51f97d + - a7a3e2dc-af76-46cf-be94-0634b032a439 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1163,7 +1163,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -1188,7 +1188,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligetgroup4?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup4","type":"Microsoft.Management/managementGroups","name":"testcligetgroup4","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup4","details":{"version":6,"updatedTime":"2022-01-21T05:58:51.3850621Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup3","name":"testcligetgroup3","displayName":"testcligetgroup3"}}}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup4","type":"Microsoft.Management/managementGroups","name":"testcligetgroup4","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligetgroup4","details":{"version":8,"updatedTime":"2022-02-09T01:34:11.1105252Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligetgroup3","name":"testcligetgroup3","displayName":"testcligetgroup3"}}}}' headers: cache-control: - no-cache @@ -1197,13 +1197,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:59:05 GMT + - Wed, 09 Feb 2022 01:34:26 GMT expires: - '-1' pragma: - no-cache request-id: - - 4f7e7a3b-5ca2-4170-89dc-4437f6496810 + - 5629283c-385b-469f-b263-6d17e66ab4d3 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1213,7 +1213,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -1249,7 +1249,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:59:07 GMT + - Wed, 09 Feb 2022 01:34:27 GMT expires: - '-1' pragma: @@ -1263,7 +1263,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 200 message: OK @@ -1295,7 +1295,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:59:17 GMT + - Wed, 09 Feb 2022 01:34:38 GMT expires: - '-1' pragma: @@ -1339,13 +1339,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:59:17 GMT + - Wed, 09 Feb 2022 01:34:39 GMT expires: - '-1' pragma: - no-cache request-id: - - b22a9890-eec4-4293-90a2-ecb86c69f6aa + - c21162e0-febc-460d-91b2-38aed0afbdca server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1355,7 +1355,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -1391,7 +1391,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:59:19 GMT + - Wed, 09 Feb 2022 01:34:40 GMT expires: - '-1' pragma: @@ -1437,7 +1437,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:59:29 GMT + - Wed, 09 Feb 2022 01:34:50 GMT expires: - '-1' pragma: @@ -1485,7 +1485,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:59:30 GMT + - Wed, 09 Feb 2022 01:34:58 GMT expires: - '-1' location: @@ -1493,13 +1493,13 @@ interactions: pragma: - no-cache request-id: - - 55a91783-2ebb-4b8e-8754-a174ed0084fc + - 44e1edaa-77df-4e8f-ae6d-211f98090fa3 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: @@ -1537,13 +1537,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:59:40 GMT + - Wed, 09 Feb 2022 01:35:09 GMT expires: - '-1' pragma: - no-cache request-id: - - d4507697-bf7b-49f1-8a06-768dc121d442 + - 6fbe8ec5-b28c-48c9-9878-033f9e8d2cd1 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1553,7 +1553,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -1589,7 +1589,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:59:41 GMT + - Wed, 09 Feb 2022 01:35:09 GMT expires: - '-1' pragma: @@ -1635,7 +1635,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:59:51 GMT + - Wed, 09 Feb 2022 01:35:20 GMT expires: - '-1' pragma: @@ -1683,7 +1683,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 05:59:54 GMT + - Wed, 09 Feb 2022 01:35:22 GMT expires: - '-1' location: @@ -1691,13 +1691,13 @@ interactions: pragma: - no-cache request-id: - - b47e2e48-beaa-41a4-8fdf-81d26c9eaeda + - 4e86379a-6c58-4395-9edd-0358bc1f0ae2 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: @@ -1735,13 +1735,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:00:04 GMT + - Wed, 09 Feb 2022 01:35:31 GMT expires: - '-1' pragma: - no-cache request-id: - - a58b0a5c-eacb-4e20-934c-50e855b98601 + - 092bd8b3-78d8-49d4-b7e0-1a108d3fabd8 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1751,7 +1751,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -1787,7 +1787,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:00:06 GMT + - Wed, 09 Feb 2022 01:35:32 GMT expires: - '-1' pragma: @@ -1833,7 +1833,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:00:16 GMT + - Wed, 09 Feb 2022 01:35:42 GMT expires: - '-1' pragma: @@ -1881,7 +1881,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:00:17 GMT + - Wed, 09 Feb 2022 01:35:44 GMT expires: - '-1' location: @@ -1889,17 +1889,17 @@ interactions: pragma: - no-cache request-id: - - d473d43c-10f1-495d-ba94-38d2f25ce8ec + - dbf42d1e-3c7a-48a5-a686-8aacc1985030 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: - - '59' + - '58' x-ms-ratelimit-remaining-tenant-deletes: - '14999' status: @@ -1933,13 +1933,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:00:27 GMT + - Wed, 09 Feb 2022 01:35:54 GMT expires: - '-1' pragma: - no-cache request-id: - - 59d8976a-b2f3-4e4d-893e-9c510428e8c1 + - 2bf5e47a-099f-46bd-ae00-6b685b35d4df server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1949,7 +1949,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -1985,7 +1985,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:00:28 GMT + - Wed, 09 Feb 2022 01:35:55 GMT expires: - '-1' pragma: @@ -2031,7 +2031,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:00:38 GMT + - Wed, 09 Feb 2022 01:36:05 GMT expires: - '-1' pragma: @@ -2079,7 +2079,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:00:39 GMT + - Wed, 09 Feb 2022 01:36:06 GMT expires: - '-1' location: @@ -2087,7 +2087,7 @@ interactions: pragma: - no-cache request-id: - - fc8849ec-4d1f-4545-93a8-f437c8c6c92e + - cf3ca36a-288d-493f-a330-ea3fe735c580 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -2097,7 +2097,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: - - '58' + - '59' x-ms-ratelimit-remaining-tenant-deletes: - '14999' status: @@ -2131,13 +2131,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:00:49 GMT + - Wed, 09 Feb 2022 01:36:16 GMT expires: - '-1' pragma: - no-cache request-id: - - a6407eed-e12e-4f05-aba6-95d705507684 + - 97f3b320-5015-4500-9a4c-792bdc2cdc9d server: - Microsoft-HTTPAPI/2.0 strict-transport-security: diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_update_managementgroup_with_displayname.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_update_managementgroup_with_displayname.yaml index a0df72052fd..55f75cdd07a 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_update_managementgroup_with_displayname.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_update_managementgroup_with_displayname.yaml @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:07:54 GMT + - Wed, 09 Feb 2022 00:51:51 GMT expires: - '-1' pragma: @@ -43,7 +43,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 200 message: OK @@ -75,7 +75,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:08:04 GMT + - Wed, 09 Feb 2022 00:52:01 GMT expires: - '-1' pragma: @@ -114,165 +114,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","status":"NotStarted"}' - headers: - azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 - cache-control: - - no-cache - content-length: - - '161' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 21 Jan 2022 06:08:06 GMT - expires: - - '-1' - location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2021-04-01 - pragma: - - no-cache - request-id: - - 022fa1c4-b2b9-401d-a34c-ca74f5aee64d - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-ba-restapi: - - 1.0.3.2425 - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-managementgroups-requests: - - '59' - x-ms-ratelimit-remaining-tenant-writes: - - '1199' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - account management-group create - Connection: - - keep-alive - ParameterSetName: - - --name - User-Agent: - - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 - response: - body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Running"}' - headers: - azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 - cache-control: - - no-cache - content-length: - - '157' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 21 Jan 2022 06:08:16 GMT - expires: - - '-1' - location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroup?api-version=2021-04-01 - pragma: - - no-cache - request-id: - - 579a903d-7ba6-434b-88c7-965d01213ea7 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-ba-restapi: - - 1.0.3.2425 - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - account management-group create - Connection: - - keep-alive - ParameterSetName: - - --name - User-Agent: - - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 - response: - body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":124,"updatedTime":"2022-01-21T06:08:12.3748247Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' - headers: - cache-control: - - no-cache - content-length: - - '375' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 21 Jan 2022 06:08:26 GMT - expires: - - '-1' - pragma: - - no-cache - request-id: - - 6ff3b320-8f51-4cdd-8e44-9280de58636b - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-ba-restapi: - - 1.0.3.2425 - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - account management-group create - Connection: - - keep-alive - ParameterSetName: - - --name - User-Agent: - - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 - response: - body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":124,"updatedTime":"2022-01-21T06:08:12.3748247Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":163,"updatedTime":"2022-02-09T00:50:22.9686203Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root Management Group"}}}}' headers: cache-control: @@ -282,13 +124,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:08:26 GMT + - Wed, 09 Feb 2022 00:52:02 GMT expires: - '-1' pragma: - no-cache request-id: - - 77722be4-1251-43c1-b869-b0d2aa1ccf00 + - 5c9de50e-552d-496e-b705-347752fc3e9a server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -301,102 +143,15 @@ interactions: - 1.0.3.2425 x-content-type-options: - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - account management-group update - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - --name --display-name - User-Agent: - - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2018-05-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' - headers: - cache-control: - - no-cache - content-length: - - '2360' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 21 Jan 2022 06:08:27 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: + x-ms-ratelimit-remaining-managementgroups-requests: + - '59' + x-ms-ratelimit-remaining-tenant-writes: - '1199' status: code: 200 message: OK - request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - account management-group update - Connection: - - keep-alive - ParameterSetName: - - --name --display-name - User-Agent: - - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2018-05-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' - headers: - cache-control: - - no-cache - content-length: - - '2360' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 21 Jan 2022 06:08:38 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: '{"name": "testcligroup", "properties": {"displayName": "testcligroupDisplayName", - "details": {"parent": {}}}}' + body: '{"displayName": "testcligroupDisplayName"}' headers: Accept: - application/json @@ -409,18 +164,18 @@ interactions: Connection: - keep-alive Content-Length: - - '109' + - '42' Content-Type: - application/json ParameterSetName: - --name --display-name User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) - method: PUT + method: PATCH uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupDisplayName","details":{"version":125,"updatedTime":"2022-01-21T06:08:38.7258544Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupDisplayName","details":{"version":164,"updatedTime":"2022-02-09T00:52:03.1315257Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root Management Group"}}}}' headers: cache-control: @@ -430,13 +185,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:08:40 GMT + - Wed, 09 Feb 2022 00:52:04 GMT expires: - '-1' pragma: - no-cache request-id: - - 58f53917-29bb-4584-993d-884c4796757f + - 4991fa67-a25c-4476-8491-4bf528fdcb9b server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -486,7 +241,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:08:40 GMT + - Wed, 09 Feb 2022 00:52:05 GMT expires: - '-1' pragma: @@ -532,7 +287,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:08:51 GMT + - Wed, 09 Feb 2022 00:52:15 GMT expires: - '-1' pragma: @@ -580,7 +335,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:08:52 GMT + - Wed, 09 Feb 2022 00:52:18 GMT expires: - '-1' location: @@ -588,13 +343,13 @@ interactions: pragma: - no-cache request-id: - - 563b2abd-b73d-4538-a23c-89c875fda3d5 + - 49a423d6-bccd-4eb0-a819-c05848ce2891 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: @@ -632,13 +387,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:09:02 GMT + - Wed, 09 Feb 2022 00:52:29 GMT expires: - '-1' pragma: - no-cache request-id: - - 04718091-b275-4a2d-be59-22637dba9f12 + - 018b5821-cd2b-442b-adc0-299ba4569137 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -648,7 +403,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_update_managementgroup_with_displayname_and_parentid.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_update_managementgroup_with_displayname_and_parentid.yaml index 0f7e724c849..f16b00ea7b5 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_update_managementgroup_with_displayname_and_parentid.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_update_managementgroup_with_displayname_and_parentid.yaml @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:05:02 GMT + - Wed, 09 Feb 2022 01:17:42 GMT expires: - '-1' pragma: @@ -75,7 +75,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:05:12 GMT + - Wed, 09 Feb 2022 01:17:52 GMT expires: - '-1' pragma: @@ -125,7 +125,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:05:13 GMT + - Wed, 09 Feb 2022 01:17:53 GMT expires: - '-1' location: @@ -133,13 +133,13 @@ interactions: pragma: - no-cache request-id: - - dc77d267-bc9b-4ba0-9d6c-c23e42768a34 + - 69716325-bbbd-4af9-a74e-58171ddacf0e server: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: @@ -179,7 +179,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:05:23 GMT + - Wed, 09 Feb 2022 01:18:03 GMT expires: - '-1' location: @@ -187,7 +187,7 @@ interactions: pragma: - no-cache request-id: - - 9359672d-345a-43fb-a60f-177894a2b326 + - 1705afc7-b38d-42a2-9b8f-57e101c9788f server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -197,7 +197,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -222,7 +222,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":123,"updatedTime":"2022-01-21T06:05:19.1755325Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":174,"updatedTime":"2022-02-09T01:17:59.2633479Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache @@ -231,13 +231,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:05:34 GMT + - Wed, 09 Feb 2022 01:18:14 GMT expires: - '-1' pragma: - no-cache request-id: - - 0bf930a7-ac0a-4c16-a8bc-e93044f4ad9e + - aef96c13-85b7-47e8-9618-b13f3780ae83 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -247,7 +247,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -272,7 +272,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":123,"updatedTime":"2022-01-21T06:05:19.1755325Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":174,"updatedTime":"2022-02-09T01:17:59.2633479Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root Management Group"}}}}' headers: cache-control: @@ -282,13 +282,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:05:34 GMT + - Wed, 09 Feb 2022 01:18:14 GMT expires: - '-1' pragma: - no-cache request-id: - - f6d16769-e3b8-4837-a61c-fe07526835a0 + - 0cccb7ac-139d-449b-a8b9-11ce6b705313 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -298,7 +298,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -334,7 +334,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:05:35 GMT + - Wed, 09 Feb 2022 01:18:15 GMT expires: - '-1' pragma: @@ -380,7 +380,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:05:45 GMT + - Wed, 09 Feb 2022 01:18:25 GMT expires: - '-1' pragma: @@ -430,7 +430,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:05:46 GMT + - Wed, 09 Feb 2022 01:18:26 GMT expires: - '-1' location: @@ -438,13 +438,13 @@ interactions: pragma: - no-cache request-id: - - 1b89c371-b844-4a5a-b464-59d73a38c406 + - aa874678-6e89-488c-ad09-3afc0730a0de server: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: @@ -484,7 +484,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:05:56 GMT + - Wed, 09 Feb 2022 01:18:36 GMT expires: - '-1' location: @@ -492,7 +492,7 @@ interactions: pragma: - no-cache request-id: - - dc27cb83-ac07-4491-ae1e-e036edcc1b6a + - 1a210c8e-da9d-47b0-b068-488328049c1c server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -502,7 +502,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -527,76 +527,22 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild","name":"testcligroupchild","status":"Running"}' - headers: - azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 - cache-control: - - no-cache - content-length: - - '167' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 21 Jan 2022 06:06:06 GMT - expires: - - '-1' - location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/testcligroupchild?api-version=2021-04-01 - pragma: - - no-cache - request-id: - - 99da2350-d059-49b6-adc2-6e821be4ec86 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-ba-restapi: - - 1.0.3.2425 - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - account management-group create - Connection: - - keep-alive - ParameterSetName: - - --name - User-Agent: - - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 - response: - body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild","name":"testcligroupchild","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":85,"updatedTime":"2022-01-21T06:05:53.7211051Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild","name":"testcligroupchild","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":108,"updatedTime":"2022-02-09T01:18:32.3558561Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache content-length: - - '389' + - '390' content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:06:17 GMT + - Wed, 09 Feb 2022 01:18:48 GMT expires: - '-1' pragma: - no-cache request-id: - - 3ba49333-8a3a-4b73-9120-a2a371810666 + - 8b19fd66-aefe-4e57-8398-a349ad80a1a7 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -606,7 +552,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -631,23 +577,23 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":85,"updatedTime":"2022-01-21T06:05:53.7211051Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":108,"updatedTime":"2022-02-09T01:18:32.3558561Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root Management Group"}}}}' headers: cache-control: - no-cache content-length: - - '557' + - '558' content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:06:17 GMT + - Wed, 09 Feb 2022 01:18:48 GMT expires: - '-1' pragma: - no-cache request-id: - - 2e245809-8458-41c6-a624-f0d894862748 + - acc4d96b-0719-44d6-a1e0-b85185bb91fe server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -657,105 +603,14 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - account management-group update - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - --name --display-name --parent - User-Agent: - - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2018-05-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' - headers: - cache-control: - - no-cache - content-length: - - '2360' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 21 Jan 2022 06:06:18 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - account management-group update - Connection: - - keep-alive - ParameterSetName: - - --name --display-name --parent - User-Agent: - - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2018-05-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' - headers: - cache-control: - - no-cache - content-length: - - '2360' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 21 Jan 2022 06:06:29 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding + - 1.0.3.2454 x-content-type-options: - nosniff status: code: 200 message: OK - request: - body: '{"name": "testcligroupchild", "properties": {"displayName": "testcligroupchild", - "details": {"parent": {"id": "/providers/Microsoft.Management/managementGroups/testcligroup"}}}}' + body: '{"displayName": "testcligroupchild", "parentGroupId": "/providers/Microsoft.Management/managementGroups/testcligroup"}' headers: Accept: - application/json @@ -768,33 +623,33 @@ interactions: Connection: - keep-alive Content-Length: - - '177' + - '118' Content-Type: - application/json ParameterSetName: - --name --display-name --parent User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) - method: PUT + method: PATCH uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":86,"updatedTime":"2022-01-21T06:06:30.811747Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","name":"testcligroup","displayName":"testcligroup"}}}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":109,"updatedTime":"2022-02-09T01:18:49.9811829Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","name":"testcligroup","displayName":"testcligroup"}}}}' headers: cache-control: - no-cache content-length: - - '499' + - '501' content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:06:32 GMT + - Wed, 09 Feb 2022 01:18:50 GMT expires: - '-1' pragma: - no-cache request-id: - - 34129798-e80b-4108-8ca4-bb3d0a5d08f4 + - e9665b86-2745-4946-8a10-6a9217594003 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -804,7 +659,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: @@ -844,7 +699,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:06:32 GMT + - Wed, 09 Feb 2022 01:18:50 GMT expires: - '-1' pragma: @@ -890,7 +745,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:06:42 GMT + - Wed, 09 Feb 2022 01:19:01 GMT expires: - '-1' pragma: @@ -938,7 +793,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:06:44 GMT + - Wed, 09 Feb 2022 01:19:02 GMT expires: - '-1' location: @@ -946,13 +801,13 @@ interactions: pragma: - no-cache request-id: - - c9fb1037-2dc2-40ef-b1a4-a9f4c187c46a + - dae0bc60-5eb3-4527-ad68-4894765c3331 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: @@ -990,13 +845,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:06:55 GMT + - Wed, 09 Feb 2022 01:19:12 GMT expires: - '-1' pragma: - no-cache request-id: - - 388b3129-185b-44c0-85ec-d1edfb768088 + - 53f44399-8a1d-4f73-a18f-91240d91a40c server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1006,7 +861,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -1042,7 +897,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:06:56 GMT + - Wed, 09 Feb 2022 01:19:14 GMT expires: - '-1' pragma: @@ -1088,7 +943,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:07:05 GMT + - Wed, 09 Feb 2022 01:19:24 GMT expires: - '-1' pragma: @@ -1136,7 +991,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:07:07 GMT + - Wed, 09 Feb 2022 01:19:25 GMT expires: - '-1' location: @@ -1144,13 +999,13 @@ interactions: pragma: - no-cache request-id: - - bce69e2d-1b58-4c18-b5e0-b8c4bdcbe069 + - b2ced49e-0735-4d74-9478-f8c94802d860 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: @@ -1188,13 +1043,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 06:07:17 GMT + - Wed, 09 Feb 2022 01:19:35 GMT expires: - '-1' pragma: - no-cache request-id: - - 7dd58c10-b42c-49aa-8a75-a3c9c2010014 + - eaf606ff-75d7-4934-a27e-748987db792f server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1204,7 +1059,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_update_managementgroup_with_parentid.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_update_managementgroup_with_parentid.yaml index 4783b89cd04..aa13a3b8cea 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_update_managementgroup_with_parentid.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/recordings/test_update_managementgroup_with_parentid.yaml @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 01:32:03 GMT + - Wed, 09 Feb 2022 01:25:46 GMT expires: - '-1' pragma: @@ -75,7 +75,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 01:32:13 GMT + - Wed, 09 Feb 2022 01:25:56 GMT expires: - '-1' pragma: @@ -125,7 +125,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 01:32:14 GMT + - Wed, 09 Feb 2022 01:25:56 GMT expires: - '-1' location: @@ -133,19 +133,19 @@ interactions: pragma: - no-cache request-id: - - 2bfcb753-458b-431b-8cb9-44eed463fb0a + - ef9e0ad5-50e3-4f61-9755-64c9aaebf09a server: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: - '59' x-ms-ratelimit-remaining-tenant-writes: - - '1199' + - '1198' status: code: 202 message: Accepted @@ -179,7 +179,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 01:32:24 GMT + - Wed, 09 Feb 2022 01:26:07 GMT expires: - '-1' location: @@ -187,7 +187,7 @@ interactions: pragma: - no-cache request-id: - - d85f93bb-6224-436b-a21a-b0cfef4de8d4 + - afa2459d-473a-4207-9897-02cc266d4eec server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -197,7 +197,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -222,7 +222,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":120,"updatedTime":"2022-01-21T01:32:19.9889805Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroup","name":"testcligroup","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":177,"updatedTime":"2022-02-09T01:26:02.5828886Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache @@ -231,13 +231,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 01:32:35 GMT + - Wed, 09 Feb 2022 01:26:17 GMT expires: - '-1' pragma: - no-cache request-id: - - 03062f9f-db78-45e1-a4e5-c7cb7d96de0b + - 2bfa13f3-790f-447a-9c51-2e73a3e184fc server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -247,7 +247,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -272,7 +272,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":120,"updatedTime":"2022-01-21T01:32:19.9889805Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroup","details":{"version":177,"updatedTime":"2022-02-09T01:26:02.5828886Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root Management Group"}}}}' headers: cache-control: @@ -282,13 +282,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 01:32:35 GMT + - Wed, 09 Feb 2022 01:26:17 GMT expires: - '-1' pragma: - no-cache request-id: - - 722635aa-4a6c-4f49-b781-522af63d8d84 + - dc279b68-ec7e-4428-bf25-b2df5ce94fca server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -298,7 +298,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -334,7 +334,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 01:32:36 GMT + - Wed, 09 Feb 2022 01:26:19 GMT expires: - '-1' pragma: @@ -380,7 +380,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 01:32:46 GMT + - Wed, 09 Feb 2022 01:26:28 GMT expires: - '-1' pragma: @@ -430,7 +430,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 01:32:48 GMT + - Wed, 09 Feb 2022 01:26:29 GMT expires: - '-1' location: @@ -438,19 +438,19 @@ interactions: pragma: - no-cache request-id: - - 17c8dc82-990f-43be-9f81-c18c1fd5cda0 + - a461545b-bc68-4124-b14b-a8a0131aafc5 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: - '59' x-ms-ratelimit-remaining-tenant-writes: - - '1199' + - '1198' status: code: 202 message: Accepted @@ -484,7 +484,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 01:32:58 GMT + - Wed, 09 Feb 2022 01:26:39 GMT expires: - '-1' location: @@ -492,7 +492,7 @@ interactions: pragma: - no-cache request-id: - - fb8a7d61-8124-41e3-ba70-5a37ef356158 + - 064b7aba-6355-45d5-b305-bb00b03c99cd server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -502,7 +502,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -527,22 +527,22 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild","name":"testcligroupchild","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":82,"updatedTime":"2022-01-21T01:32:55.9928803Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' + string: '{"id":"/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/testcligroupchild","name":"testcligroupchild","status":"Succeeded","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":112,"updatedTime":"2022-02-09T01:26:36.1782913Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701"}}}' headers: cache-control: - no-cache content-length: - - '389' + - '390' content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 01:33:09 GMT + - Wed, 09 Feb 2022 01:26:51 GMT expires: - '-1' pragma: - no-cache request-id: - - 2340ae2d-cd11-4bb2-8f04-936d41618cc7 + - bd242db7-5cd9-4c61-8db9-f9cc9207c8bf server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -552,7 +552,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -577,23 +577,22 @@ interactions: uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":82,"updatedTime":"2022-01-21T01:32:55.9928803Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0","name":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"Root - Management Group"}}}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":112,"updatedTime":"2022-02-09T01:26:36.1782913Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","name":"testcligroup","displayName":"testcligroup"}}}}' headers: cache-control: - no-cache content-length: - - '557' + - '501' content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 01:33:09 GMT + - Wed, 09 Feb 2022 01:26:51 GMT expires: - '-1' pragma: - no-cache request-id: - - 0b3a6f13-6e90-4a3f-bff6-b11d28cfac64 + - 0f35d807-f1a8-49a8-9dda-3e21863bebf4 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -603,105 +602,14 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - account management-group update - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - --name --parent - User-Agent: - - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management/register?api-version=2018-05-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' - headers: - cache-control: - - no-cache - content-length: - - '2360' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 21 Jan 2022 01:33:10 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - account management-group update - Connection: - - keep-alive - ParameterSetName: - - --name --parent - User-Agent: - - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management?api-version=2018-05-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"managementGroups/settings","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2018-03-01-beta"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"]},{"resourceType":"operationResults/asyncOperation","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2021-04-01","2020-10-01","2020-05-01","2020-02-01","2019-11-01","2018-03-01-preview","2018-03-01-beta"]}],"registrationState":"Registered"}' - headers: - cache-control: - - no-cache - content-length: - - '2360' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 21 Jan 2022 01:33:19 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding + - 1.0.3.2454 x-content-type-options: - nosniff status: code: 200 message: OK - request: - body: '{"name": "testcligroupchild", "properties": {"details": {"parent": {"id": - "/providers/Microsoft.Management/managementGroups/testcligroup"}}}}' + body: '{"parentGroupId": "/providers/Microsoft.Management/managementGroups/testcligroup"}' headers: Accept: - application/json @@ -714,33 +622,33 @@ interactions: Connection: - keep-alive Content-Length: - - '141' + - '82' Content-Type: - application/json ParameterSetName: - --name --parent User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-managementgroups/1.0.0 Python/3.7.8 (Windows-10-10.0.19041-SP0) - method: PUT + method: PATCH uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2021-04-01 response: body: - string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":83,"updatedTime":"2022-01-21T01:33:21.5343626Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","name":"testcligroup","displayName":"testcligroup"}}}}' + string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"Microsoft.Management/managementGroups","name":"testcligroupchild","properties":{"tenantId":"c7a87cda-9a66-4920-b0f8-869baa04efe0","displayName":"testcligroupchild","details":{"version":112,"updatedTime":"2022-02-09T01:26:36.1782913Z","updatedBy":"27e85fe3-7b1b-4de4-8d55-d58291b5d701","parent":{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","name":"testcligroup","displayName":"testcligroup"}}}}' headers: cache-control: - no-cache content-length: - - '500' + - '501' content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 01:33:23 GMT + - Wed, 09 Feb 2022 01:26:52 GMT expires: - '-1' pragma: - no-cache request-id: - - 2e4e9f98-7a4a-419b-b401-a0160f95f153 + - b6a769d0-b901-4f3c-b4b2-1c97f18d48bf server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -750,7 +658,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: @@ -790,7 +698,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 01:33:23 GMT + - Wed, 09 Feb 2022 01:26:53 GMT expires: - '-1' pragma: @@ -804,7 +712,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1197' status: code: 200 message: OK @@ -836,7 +744,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 01:33:33 GMT + - Wed, 09 Feb 2022 01:27:03 GMT expires: - '-1' pragma: @@ -884,7 +792,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 01:33:35 GMT + - Wed, 09 Feb 2022 01:27:04 GMT expires: - '-1' location: @@ -892,13 +800,13 @@ interactions: pragma: - no-cache request-id: - - 392dacd9-6562-4a38-b7ff-d875afcd1c6e + - 939fd14d-f7c3-4e3b-8cb8-7e1f6a60cde8 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff x-ms-ratelimit-remaining-managementgroups-requests: @@ -936,13 +844,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 01:33:45 GMT + - Wed, 09 Feb 2022 01:27:14 GMT expires: - '-1' pragma: - no-cache request-id: - - 6ea67f3b-073e-4165-9e8a-f92e13d48c6f + - 3d2faea0-11f5-48d2-8be4-40993748340f server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -952,7 +860,7 @@ interactions: vary: - Accept-Encoding x-ba-restapi: - - 1.0.3.2425 + - 1.0.3.2454 x-content-type-options: - nosniff status: @@ -988,7 +896,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 01:33:46 GMT + - Wed, 09 Feb 2022 01:27:16 GMT expires: - '-1' pragma: @@ -1034,7 +942,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 01:33:56 GMT + - Wed, 09 Feb 2022 01:27:26 GMT expires: - '-1' pragma: @@ -1082,7 +990,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 01:33:58 GMT + - Wed, 09 Feb 2022 01:27:28 GMT expires: - '-1' location: @@ -1090,7 +998,7 @@ interactions: pragma: - no-cache request-id: - - b5b7bdba-c680-45ac-b234-d4bf76a62b37 + - db654ade-3b82-4a55-8f59-bfeed0dcb6d7 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1134,13 +1042,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 21 Jan 2022 01:34:08 GMT + - Wed, 09 Feb 2022 01:27:38 GMT expires: - '-1' pragma: - no-cache request-id: - - 2cc27080-70c1-4032-8b32-37bdc979dbf3 + - 2c2f5543-9c6f-45b3-a651-75bc7c72cc25 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/test_managmentgroups.py b/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/test_managmentgroups.py index 8c1cb4fedd3..0cb8d1ea475 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/test_managmentgroups.py +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/test_managmentgroups.py @@ -6,10 +6,8 @@ from azure.cli.testsdk import ScenarioTest, record_only import pytest -@pytest.mark.custom_mark class AzureManagementGroupsScenarioTest(ScenarioTest): - #@pytest.mark.custom_mark def test_list_managementgroups(self): managementgroups_list = self.cmd( 'account management-group list').get_output_in_json() @@ -24,7 +22,6 @@ def test_list_managementgroups(self): managementgroups_list[0]["type"], "Microsoft.Management/managementGroups") - #@pytest.mark.custom_mark1 def test_show_managementgroup(self): self.cmd('account management-group create --name testcligetgroup') self.cmd('account management-group create --name testcligetgroup1 --parent /providers/Microsoft.Management/managementGroups/testcligetgroup') @@ -57,7 +54,6 @@ def test_show_managementgroup(self): managementgroup_get["type"], "Microsoft.Management/managementGroups") - #@pytest.mark.custom_mark1 def test_show_managementgroup_with_expand(self): self.cmd('account management-group create --name testcligetgroup') self.cmd('account management-group create --name testcligetgroup1 --parent testcligetgroup') @@ -104,7 +100,6 @@ def test_show_managementgroup_with_expand(self): managementgroup_get["children"][0]["name"], "testcligetgroup2") - #@pytest.mark.custom_mark1 def test_show_managementgroup_with_expand_and_recurse(self): self.cmd('account management-group create --name testcligetgroup1') self.cmd('account management-group create --name testcligetgroup2 --parent /providers/Microsoft.Management/managementGroups/testcligetgroup1') @@ -165,7 +160,6 @@ def test_show_managementgroup_with_expand_and_recurse(self): managementgroup_get["children"][0]["children"][0]["name"], "testcligetgroup4") - #@pytest.mark.custom_mark1 def test_create_managementgroup(self): name = "testcligroup" displayName = "testcligroup" @@ -198,7 +192,6 @@ def test_create_managementgroup(self): managementgroup_create["type"], "Microsoft.Management/managementGroups") - #@pytest.mark.custom_mark1 def test_create_managementgroup_with_displayname(self): name = "testcligroup" displayName = "TestCliDisplayName" @@ -233,7 +226,6 @@ def test_create_managementgroup_with_displayname(self): managementgroup_create["type"], "Microsoft.Management/managementGroups") - #@pytest.mark.custom_mark def test_create_managementgroup_with_parentid(self): name = "testcligroupchild" displayName = "testcligroupchild" @@ -271,7 +263,6 @@ def test_create_managementgroup_with_parentid(self): managementgroup_create["type"], "Microsoft.Management/managementGroups") - #@pytest.mark.custom_mark1 def test_create_managementgroup_with_displayname_and_parentid(self): name = "testcligroupchild" displayName = "testcligroupchildDisplayName" @@ -311,7 +302,6 @@ def test_create_managementgroup_with_displayname_and_parentid(self): managementgroup_create["type"], "Microsoft.Management/managementGroups") - #@pytest.mark.custom_mark def test_update_managementgroup_with_displayname(self): name = "testcligroup" displayName = "testcligroupDisplayName" @@ -345,7 +335,6 @@ def test_update_managementgroup_with_displayname(self): managementgroup_update["type"], "Microsoft.Management/managementGroups") - #@pytest.mark.custom_mark1 def test_update_managementgroup_with_parentid(self): name = "testcligroupchild" displayName = "testcligroupchild" @@ -383,7 +372,6 @@ def test_update_managementgroup_with_parentid(self): managementgroup_update["type"], "Microsoft.Management/managementGroups") - #@pytest.mark.custom_mark1 def test_update_managementgroup_with_displayname_and_parentid(self): name = "testcligroupchild" displayName = "testcligroupchild" @@ -422,7 +410,6 @@ def test_update_managementgroup_with_displayname_and_parentid(self): managementgroup_update["type"], "Microsoft.Management/managementGroups") - #@pytest.mark.custom_mark1 def test_create_delete_group_managementgroup(self): self.cmd('account management-group create --name testcligroup') self.cmd('account management-group delete --name testcligroup') diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/test_managmentgroups.py b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/test_managmentgroups.py index d969a64955f..16d4ca7523b 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/test_managmentgroups.py +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/test_managmentgroups.py @@ -301,7 +301,7 @@ def test_create_managementgroup_with_displayname_and_parentid(self): self.assertEqual( managementgroup_create["type"], "Microsoft.Management/managementGroups") - + def test_update_managementgroup_with_displayname(self): name = "testcligroup" displayName = "testcligroupDisplayName" @@ -372,7 +372,6 @@ def test_update_managementgroup_with_parentid(self): managementgroup_update["type"], "Microsoft.Management/managementGroups") - @pytest.mark.custom_mark def test_update_managementgroup_with_displayname_and_parentid(self): name = "testcligroupchild" displayName = "testcligroupchild" From e48fcd18aa0d6cbb53e1c6fcaa5e1fec081ecf90 Mon Sep 17 00:00:00 2001 From: Thomas Dolan Date: Wed, 9 Feb 2022 08:14:22 -0800 Subject: [PATCH 12/13] Ran a test in policyinsights --- ...cy_insights_remediation_management_group.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/policyinsights/tests/latest/recordings/test_policy_insights_remediation_management_group.yaml b/src/azure-cli/azure/cli/command_modules/policyinsights/tests/latest/recordings/test_policy_insights_remediation_management_group.yaml index 3f25e4748f1..a4fbee53413 100644 --- a/src/azure-cli/azure/cli/command_modules/policyinsights/tests/latest/recordings/test_policy_insights_remediation_management_group.yaml +++ b/src/azure-cli/azure/cli/command_modules/policyinsights/tests/latest/recordings/test_policy_insights_remediation_management_group.yaml @@ -116,7 +116,7 @@ interactions: accept-language: - en-US method: PUT - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/cli-test-mg000003?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/cli-test-mg000003?api-version=2021-04-01 response: body: string: '{"id":"/providers/Microsoft.Management/managementGroups/cli-test-mg000003","type":"/providers/Microsoft.Management/managementGroups","name":"cli-test-mg000003","status":"NotStarted"}' @@ -132,7 +132,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/cli-test-mg000003?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/cli-test-mg000003?api-version=2021-04-01 pragma: - no-cache request-id: @@ -169,7 +169,7 @@ interactions: - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.30.0 method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/cli-test-mg000003?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/cli-test-mg000003?api-version=2021-04-01 response: body: string: '{"id":"/providers/Microsoft.Management/managementGroups/cli-test-mg000003","type":"/providers/Microsoft.Management/managementGroups","name":"cli-test-mg000003","status":"Running"}' @@ -185,7 +185,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/cli-test-mg000003?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/cli-test-mg000003?api-version=2021-04-01 pragma: - no-cache request-id: @@ -218,7 +218,7 @@ interactions: - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.30.0 method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/cli-test-mg000003?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/cli-test-mg000003?api-version=2021-04-01 response: body: string: '{"id":"/providers/Microsoft.Management/managementGroups/cli-test-mg000003","type":"/providers/Microsoft.Management/managementGroups","name":"cli-test-mg000003","status":"Succeeded","properties":{"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","displayName":"cli-test-mg000003","details":{"version":1,"updatedTime":"2021-11-23T00:37:21.1188471Z","updatedBy":"0dc80135-ae53-4da3-8695-220a2d93aad8","parent":{"id":"/providers/Microsoft.Management/managementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47","name":"72f988bf-86f1-41af-91ab-2d7cd011db47","displayName":"72f988bf-86f1-41af-91ab-2d7cd011db47"}}}}' @@ -852,7 +852,7 @@ interactions: accept-language: - en-US method: DELETE - uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/cli-test-mg000003?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/cli-test-mg000003?api-version=2021-04-01 response: body: string: '{"id":"/providers/Microsoft.Management/managementGroups/cli-test-mg000003","type":"/providers/Microsoft.Management/managementGroups","name":"cli-test-mg000003","status":"NotStarted"}' @@ -868,7 +868,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/cli-test-mg000003?api-version=2018-03-01-preview + - https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/cli-test-mg000003?api-version=2021-04-01 pragma: - no-cache request-id: @@ -905,7 +905,7 @@ interactions: - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 azure-mgmt-managementgroups/0.2.0 Azure-SDK-For-Python AZURECLI/2.30.0 method: GET - uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/cli-test-mg000003?api-version=2018-03-01-preview + uri: https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/cli-test-mg000003?api-version=2021-04-01 response: body: string: '{"id":"/providers/Microsoft.Management/managementGroups/cli-test-mg000003","type":"/providers/Microsoft.Management/managementGroups","name":"cli-test-mg000003","status":"Succeeded"}' From 6a4431b2d1a954e8eef7bcb87023761322370be8 Mon Sep 17 00:00:00 2001 From: Thomas Dolan Date: Thu, 10 Feb 2022 12:05:14 -0800 Subject: [PATCH 13/13] Made changes based on the PR comments --- .../cli/command_modules/resource/_help.py | 42 +++++++++---------- .../cli/command_modules/resource/commands.py | 2 +- .../tests/latest/test_managmentgroups.py | 14 +++---- 3 files changed, 29 insertions(+), 29 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/resource/_help.py b/src/azure-cli/azure/cli/command_modules/resource/_help.py index 189562551b4..4c45025f5a9 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/_help.py +++ b/src/azure-cli/azure/cli/command_modules/resource/_help.py @@ -90,13 +90,13 @@ helps['account management-group check-name-availability'] = """ type: command short-summary: Check if a Management Group Name is Valid. -long-summary: Check if a Management Group Name is Valid.. +long-summary: Check if a Management Group Name is Valid. parameters: - name: --name -n type: string short-summary: Name of the management group. examples: - - name: Create a new management group. + - name: Check if a Management Group Name is Valid. text: > az account management-group check-name-availability --name GroupName """ @@ -293,91 +293,91 @@ helps['account management-group hierarchy-settings'] = """ type: group -short-summary: Provides operations for hierarchy settings defined at the management group level. Settings can only be set on the root Management Group of the hierarchy. +short-summary: Provide operations for hierarchy settings defined at the management group level. Settings can only be set on the root Management Group of the hierarchy. """ helps['account management-group hierarchy-settings create'] = """ type: command -short-summary: Creates hierarchy settings defined at the Management Group level. -long-summary: Creates hierarchy settings defined at the Management Group level. +short-summary: Create hierarchy settings defined at the Management Group level. +long-summary: Create hierarchy settings defined at the Management Group level. parameters: - name: --name -n type: string short-summary: Name of the management group. - name: --default-management-group -m type: string - short-summary: Sets the default Management Group under which new subscriptions get added in this tenant. Default setting is the Root Management Group. + short-summary: Set the default Management Group under which new subscriptions get added in this tenant. Default setting is the Root Management Group. - name: --require-authorization-for-group-creation -r type: boolean - short-summary: Indicates whether RBAC access is required upon group creation under the root Management Group. True means user will require Microsoft.Management/managementGroups/write action on the root Management Group. Default setting is false. + short-summary: Indicate whether RBAC access is required upon group creation under the root Management Group. True means user will require Microsoft.Management/managementGroups/write action on the root Management Group. Default setting is false. examples: - name: Create hierarchy settings defined at the Management Group level. text: > az account management-group hierarchy-settings create --name GroupName - - name: Sets the default Management Group new Subscriptions get placed under. + - name: Set the default Management Group new Subscriptions get placed under. text: > az account management-group hierarchy-settings create --name GroupName -m /providers/Microsoft.Management/managementGroups/DefaultGroup - name: Require user to have Microsoft.Management/managementGroups/write access on the Root to create new Management Groups under the Root. text: > az account management-group hierarchy-settings create --name GroupName -r True - - name: Updates both hierarchy settings. + - name: Update both hierarchy settings. text: > az account management-group hierarchy-settings create --name GroupName -m /providers/Microsoft.Management/managementGroups/DefaultGroup -r True """ helps['account management-group hierarchy-settings list'] = """ type: command -short-summary: Gets all the hierarchy settings defined at the Management Group level. -long-summary: Gets all the hierarchy settings defined at the Management Group level. +short-summary: Get all the hierarchy settings defined at the Management Group level. +long-summary: Get all the hierarchy settings defined at the Management Group level. parameters: - name: --name -n type: string short-summary: Name of the management group. examples: - - name: Gets all hierarchy settings defined at the Management Group level. + - name: Get all hierarchy settings defined at the Management Group level. text: > az account management-group hierarchy-settings list --name GroupName """ helps['account management-group hierarchy-settings delete'] = """ type: command -short-summary: Deletes the hierarchy settings defined at the Management Group level. -long-summary: Deletes the hierarchy settings defined at the Management Group level. +short-summary: Delete the hierarchy settings defined at the Management Group level. +long-summary: Delete the hierarchy settings defined at the Management Group level. parameters: - name: --name -n type: string short-summary: Name of the management group. examples: - - name: Deletes all hierarchy settings defined at the Management Group level. + - name: Delete all hierarchy settings defined at the Management Group level. text: > az account management-group hierarchy-settings delete --name GroupName """ helps['account management-group hierarchy-settings update'] = """ type: command -short-summary: Updates the hierarchy settings defined at the Management Group level. -long-summary: Updates the hierarchy settings defined at the Management Group level. +short-summary: Update the hierarchy settings defined at the Management Group level. +long-summary: Update the hierarchy settings defined at the Management Group level. parameters: - name: --name -n type: string short-summary: Name of the management group. - name: --default-management-group -m type: string - short-summary: Sets the default Management Group under which new subscriptions get added in this tenant. Default setting is the Root Management Group. + short-summary: Set the default Management Group under which new subscriptions get added in this tenant. Default setting is the Root Management Group. - name: --require-authorization-for-group-creation -r type: boolean - short-summary: Indicates whether RBAC access is required upon group creation under the root Management Group. True means user will require Microsoft.Management/managementGroups/write action on the root Management Group. Default setting is false. + short-summary: Indicate whether RBAC access is required upon group creation under the root Management Group. True means user will require Microsoft.Management/managementGroups/write action on the root Management Group. Default setting is false. examples: - name: Create hierarchy settings defined at the Management Group level. text: > az account management-group hierarchy-settings update --name GroupName - - name: Sets the default Management Group new Subscriptions get placed under. + - name: Set the default Management Group new Subscriptions get placed under. text: > az account management-group hierarchy-settings update --name GroupName -m /providers/Microsoft.Management/managementGroups/DefaultGroup - name: Require user to have Microsoft.Management/managementGroups/write access on the Root to create new Management Groups under the Root. text: > az account management-group hierarchy-settings update --name GroupName -r True - - name: Updates both hierarchy settings. + - name: Update both hierarchy settings. text: > az account management-group hierarchy-settings update --name GroupName -m /providers/Microsoft.Management/managementGroups/DefaultGroup -r True """ diff --git a/src/azure-cli/azure/cli/command_modules/resource/commands.py b/src/azure-cli/azure/cli/command_modules/resource/commands.py index cf8e3b51f67..61f5a257a8a 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/commands.py +++ b/src/azure-cli/azure/cli/command_modules/resource/commands.py @@ -512,7 +512,7 @@ def load_command_table(self, _): with self.command_group('account management-group hierarchy-settings', resource_hierarchy_settings_sdk, client_factory=cf_hierarchy_settings) as g: g.custom_command('list', 'cli_hierarchy_settings_list') g.custom_command('create', 'cli_hierarchy_settings_create') - g.custom_command('delete', 'cli_hierarchy_settings_delete') + g.custom_command('delete', 'cli_hierarchy_settings_delete', confirmation=True) g.generic_update_command( 'update', getter_name='cli_hierarchysettings_group_update_get', diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/test_managmentgroups.py b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/test_managmentgroups.py index 16d4ca7523b..5772cf94951 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/test_managmentgroups.py +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/test_managmentgroups.py @@ -488,7 +488,7 @@ def test_managementgroup_hierarchysetting_create_delete(self): name = "c7a87cda-9a66-4920-b0f8-869baa04efe0" self.cmd('account management-group hierarchy-settings create -n ' + name + ' -r True') - self.cmd('account management-group hierarchy-settings delete -n ' + + self.cmd('account management-group hierarchy-settings delete --yes -n ' + name) @live_only() @@ -500,7 +500,7 @@ def test_managementgroup_hierarchysetting_create_default_mg(self): self.cmd('account management-group hierarchy-settings create -n ' + name + ' -m ' + mgPath + defaultmgName) showSetting = self.cmd('account management-group hierarchy-settings list -n' + name).get_output_in_json() - self.cmd('account management-group hierarchy-settings delete -n ' + + self.cmd('account management-group hierarchy-settings delete --yes -n ' + name) self.cmd('account management-group delete --name ' + defaultmgName) self.assertIsNotNone(showSetting) @@ -520,7 +520,7 @@ def test_managementgroup_hierarchysetting_create_auth(self): self.cmd('account management-group hierarchy-settings create -n ' + name + ' -r True') showSetting = self.cmd('account management-group hierarchy-settings list -n' + name).get_output_in_json() - self.cmd('account management-group hierarchy-settings delete -n ' + + self.cmd('account management-group hierarchy-settings delete --yes -n ' + name) self.assertIsNotNone(showSetting) self.assertEqual(showSetting["value"][0]["id"], @@ -542,7 +542,7 @@ def test_managementgroup_hierarchysetting_create_default_mg_auth(self): name + ' -m ' + mgPath + defaultmgName + ' -r True') showSetting = self.cmd('account management-group hierarchy-settings list -n' + name).get_output_in_json() - self.cmd('account management-group hierarchy-settings delete -n ' + + self.cmd('account management-group hierarchy-settings --yes -n ' + name) self.cmd('account management-group delete --name ' + defaultmgName) self.assertEqual(showSetting["value"][0]["defaultManagementGroup"], @@ -569,7 +569,7 @@ def test_managementgroup_hierarchysetting_update_default_mg(self): self.cmd('account management-group hierarchy-settings update -n ' + name + ' -m ' + mgPath + defaultmgName2) showSetting = self.cmd('account management-group hierarchy-settings list -n' + name).get_output_in_json() - self.cmd('account management-group hierarchy-settings delete -n ' + + self.cmd('account management-group hierarchy-settings delete --yes -n ' + name) self.cmd('account management-group delete --name ' + defaultmgName1) self.cmd('account management-group delete --name ' + defaultmgName2) @@ -592,7 +592,7 @@ def test_managementgroup_hierarchysetting_create_auth(self): self.cmd('account management-group hierarchy-settings update -n ' + name + ' -r True') showSetting = self.cmd('account management-group hierarchy-settings list -n' + name).get_output_in_json() - self.cmd('account management-group hierarchy-settings delete -n ' + + self.cmd('account management-group hierarchy-settings delete --yes -n ' + name) self.assertIsNotNone(showSetting) self.assertEqual(showSetting["value"][0]["id"], @@ -619,7 +619,7 @@ def test_managementgroup_hierarchysetting_create_default_mg_auth(self): name + ' -m ' + mgPath + defaultmgName2 + ' -r True') showSetting = self.cmd('account management-group hierarchy-settings list -n' + name).get_output_in_json() - self.cmd('account management-group hierarchy-settings delete -n ' + + self.cmd('account management-group hierarchy-settings delete --yes -n ' + name) self.cmd('account management-group delete --name ' + defaultmgName1) self.cmd('account management-group delete --name ' + defaultmgName2)