diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index d4651b8f0a9..796b64d2965 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -10,8 +10,6 @@ /src/subscription/ @wilcobmsft -/src/managementgroups/ @rajshah11 - /src/alias/ @Juliehzl /src/managementpartner/ @jeffrey-ace diff --git a/src/index.json b/src/index.json index 0a6edccb2c0..8f1ac723664 100644 --- a/src/index.json +++ b/src/index.json @@ -1829,51 +1829,6 @@ "sha256Digest": "d420491c0b25838a2096d93a1872d54b6b482df246310383d42b94fcd080a508" } ], - "managementgroups": [ - { - "downloadUrl": "https://files.pythonhosted.org/packages/b0/7c/fb9f79c46cf96cf7607fbaebe94d048e515342bf9e7ceae571110d85f35e/managementgroups-0.1.0-py2.py3-none-any.whl", - "filename": "managementgroups-0.1.0-py2.py3-none-any.whl", - "metadata": { - "classifiers": [ - "Development Status :: 4 - Beta", - "Intended Audience :: Developers", - "Intended Audience :: System Administrators", - "Programming Language :: Python", - "Programming Language :: Python :: 2", - "Programming Language :: Python :: 2.7", - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.4", - "Programming Language :: Python :: 3.5", - "Programming Language :: Python :: 3.6", - "License :: OSI Approved :: MIT License" - ], - "extensions": { - "python.details": { - "contacts": [ - { - "email": "shahraj@microsoft.com", - "name": "Raj Shah", - "role": "author" - } - ], - "document_names": { - "description": "DESCRIPTION.rst" - }, - "project_urls": { - "Home": "https://github.com/Azure/azure-cli-extensions" - } - } - }, - "generator": "bdist_wheel (0.29.0)", - "license": "MIT", - "metadata_version": "2.0", - "name": "managementgroups", - "summary": "An Azure CLI Extension for Management Groups", - "version": "0.1.0" - }, - "sha256Digest": "14626a8fc8a0d6751bd9a9e90a62c463b3dfbdfb2952e438e3843b0941679eb3" - } - ], "managementpartner": [ { "downloadUrl": "https://files.pythonhosted.org/packages/28/08/0fde582cf50eaf1ef304b35674b9b22f6731d95b2e41339eba4d35583b18/managementpartner-0.1.2-py2.py3-none-any.whl", diff --git a/src/managementgroups/azext_managementgroups/__init__.py b/src/managementgroups/azext_managementgroups/__init__.py deleted file mode 100644 index 5e8eaa4ecd7..00000000000 --- a/src/managementgroups/azext_managementgroups/__init__.py +++ /dev/null @@ -1,36 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- - -from azure.cli.core import AzCommandsLoader -from ._help import helps # pylint: disable=unused-import - - -class ManagementGroupsCommandsLoader(AzCommandsLoader): - - def __init__(self, cli_ctx=None): - from azure.cli.core.commands import CliCommandType - from ._client_factory import management_groups_client_factory - from ._exception_handler import managementgroups_exception_handler - managementgroups_customs = CliCommandType( - operations_tmpl='azext_managementgroups.custom#{}', - client_factory=management_groups_client_factory, - exception_handler=managementgroups_exception_handler) - super( - ManagementGroupsCommandsLoader, - self).__init__( - cli_ctx=cli_ctx, - custom_command_type=managementgroups_customs) - - def load_command_table(self, args): - from .commands import load_command_table - load_command_table(self, args) - return self.command_table - - def load_arguments(self, command): - from ._params import load_arguments - load_arguments(self, command) - - -COMMAND_LOADER_CLS = ManagementGroupsCommandsLoader diff --git a/src/managementgroups/azext_managementgroups/_client_factory.py b/src/managementgroups/azext_managementgroups/_client_factory.py deleted file mode 100644 index f70470a021e..00000000000 --- a/src/managementgroups/azext_managementgroups/_client_factory.py +++ /dev/null @@ -1,21 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- - - -def cf_managementgroups(cli_ctx, **_): - from azure.cli.core.commands.client_factory import get_mgmt_service_client - from azext_managementgroups.managementgroups import ManagementGroupsAPI - return get_mgmt_service_client( - cli_ctx, - ManagementGroupsAPI, - subscription_bound=False) - - -def management_groups_client_factory(cli_ctx, _): - return cf_managementgroups(cli_ctx).management_groups - - -def management_group_subscriptions_client_factory(cli_ctx, _): - return cf_managementgroups(cli_ctx).management_group_subscriptions diff --git a/src/managementgroups/azext_managementgroups/_exception_handler.py b/src/managementgroups/azext_managementgroups/_exception_handler.py deleted file mode 100644 index 8a07ba8894e..00000000000 --- a/src/managementgroups/azext_managementgroups/_exception_handler.py +++ /dev/null @@ -1,19 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- - -from azure.cli.core.util import CLIError - - -def managementgroups_exception_handler(ex): - from azext_managementgroups.managementgroups.models import ErrorResponseException - if isinstance(ex, ErrorResponseException): - if ex.error.error: - raise CLIError(ex.error.error) - else: - raise CLIError(ex.error) - else: - import sys - from six import reraise - reraise(*sys.exc_info()) diff --git a/src/managementgroups/azext_managementgroups/_help.py b/src/managementgroups/azext_managementgroups/_help.py deleted file mode 100644 index df515af254f..00000000000 --- a/src/managementgroups/azext_managementgroups/_help.py +++ /dev/null @@ -1,157 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- - -from knack.help_files import helps - -# pylint: disable=line-too-long, too-many-lines - -helps['account management-group'] = """ - type: group - short-summary: Manage Azure Management Groups. -""" - -helps['account management-group subscription'] = """ - type: group - short-summary: Subscription operations for Management Groups. -""" - -helps['account management-group list'] = """ - type: command - short-summary: List all management groups. - long-summary: List of all management groups in the current tenant. - examples: - - name: List all management groups - text: > - az managementgroups group list -""" - -helps['account management-group show'] = """ - type: command - short-summary: Get a specific management group. - long-summary: Get the details of the management group. - parameters: - - name: --group-name --name -n - type: string - short-summary: Name of the management group. - - name: --expand -e - type: bool - short-summary: If given or true, lists the children in the first level of hierarchy. - - name: --recurse -r - type: bool - short-summary: If given or true, lists the children in all levels of hierarchy. - examples: - - name: Get a management group. - text: > - az managementgroups group get --group-name GroupName - - name: Get a management group with children in the first level of hierarchy. - text: > - az managementgroups group get --group-name GroupName -e - - name: Get a management group with children in all levels of hierarchy. - text: > - az managementgroups group get --group-name GroupName -e -r -""" - -helps['account management-group create'] = """ - type: command - short-summary: Add a new management group. - long-summary: Add a new management group. - parameters: - - name: --group-name --name -n - type: string - short-summary: Name of the management group. - - name: --display-name -d - type: string - short-summary: Sets the display name of the management group. If null, the group name is set as the display name. - - name: --parent-id -p - type: string - short-summary: Sets the parent of the management group. A fully qualified id is required. If null, the root tenant group is set as the parent. - examples: - - name: Add a new management group. - text: > - az managementgroups group new --group-name GroupName - - name: Add a new management group with a specific display name. - text: > - az managementgroups group new --group-name GroupName --display-name DisplayName - - name: Add a new management group with a specific parent id. - text: > - az managementgroups group new --group-name GroupName --parent-id ParentId - - name: Add a new management group with a specific display name and parent id. - text: > - az managementgroups group new --group-name GroupName --display-name DisplayName --parent-id ParentId -""" - -helps['account management-group update'] = """ - type: command - short-summary: Update an existing management group. - long-summary: Update an existing management group. - parameters: - - name: --group-name --name -n - type: string - short-summary: Name of the management group. - - name: --display-name -d - type: string - short-summary: Updates the display name of the management group. If null, no change is made. - - name: --parent-id -p - type: string - short-summary: Update the parent of the management group. A fully qualified id is required. If null, no change is made. - examples: - - name: Update an existing management group with a specific display name. - text: > - az managementgroups group update --group-name GroupName --display-name DisplayName - - name: Update an existing management group with a specific parent id. - text: > - az managementgroups group update --group-name GroupName --parent-id ParentId - - name: Update an existing management group with a specific display name and parent id. - text: > - az managementgroups group update --group-name GroupName --display-name DisplayName --parent-id ParentId -""" - -helps['account management-group delete'] = """ - type: command - short-summary: Remove an existing management group. - long-summary: Remove an existing management group. - parameters: - - name: --group-name --name -n - type: string - short-summary: Name of the management group. - examples: - - name: Remove an existing management group - text: > - az managementgroups group remove --group-name GroupName -""" - -helps['account management-group subscription add'] = """ - type: command - short-summary: Add a subscription to a management group. - long-summary: Add a subscription to a management group. - parameters: - - name: --group-name --name -n - type: string - short-summary: Name of the management group. - - name: --subscription - type: string - short-summary: Subscription Id or Name - examples: - - name: Add a subscription to a management group. - text: > - az managementgroups group new --group-name GroupName --subscription Subscription -""" - -helps['account management-group subscription remove'] = """ - type: command - short-summary: Remove an existing subscription from a management group. - long-summary: Remove an existing subscription from a management group. - parameters: - - name: --group-name --name -n - type: string - short-summary: Name of the management group. - - name: --subscription - type: string - short-summary: Subscription Id or Name - examples: - - name: Remove an existing subscription from a management group. - text: > - az managementgroups group remove --group-name GroupName --subscription Subscription -""" diff --git a/src/managementgroups/azext_managementgroups/_params.py b/src/managementgroups/azext_managementgroups/_params.py deleted file mode 100644 index 1aba63e49ac..00000000000 --- a/src/managementgroups/azext_managementgroups/_params.py +++ /dev/null @@ -1,22 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- -from azure.cli.core.commands.parameters import get_three_state_flag - - -def load_arguments(self, _): - with self.argument_context('account management-group') as c: - c.argument('group_name', options_list=['--group-name', '--name', '-n']) - - with self.argument_context('account management-group show') as c: - c.argument('expand', arg_type=get_three_state_flag(), options_list=['--expand', '-e']) - c.argument('recurse', arg_type=get_three_state_flag(), options_list=['--recurse', '-r']) - - with self.argument_context('account management-group create') as c: - c.argument('display_name', options_list=['--display-name', '-d']) - c.argument('parent_id', options_list=['--parent-id', '-p']) - - 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-id', '-p']) diff --git a/src/managementgroups/azext_managementgroups/commands.py b/src/managementgroups/azext_managementgroups/commands.py deleted file mode 100644 index fc4642e3aac..00000000000 --- a/src/managementgroups/azext_managementgroups/commands.py +++ /dev/null @@ -1,47 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- - -# pylint: disable=line-too-long - -from azure.cli.core.commands import CliCommandType -from ._client_factory import management_groups_client_factory, management_group_subscriptions_client_factory -from ._exception_handler import managementgroups_exception_handler - - -def load_command_table(self, _): - - managementgroups_sdk = CliCommandType( - operations_tmpl='azext_managementgroups.managementgroups.operations.management_groups_operations#ManagementGroupsOperations.{}', - client_factory=management_groups_client_factory, - exception_handler=managementgroups_exception_handler) - - managementgroups_subscriptions_sdk = CliCommandType( - operations_tmpl='azext_managementgroups.managementgroups.operations.management_group_subscriptions_operations#ManagementGroupSubscriptionsOperations.{}', - client_factory=management_group_subscriptions_client_factory, - exception_handler=managementgroups_exception_handler) - - managementgroups_update_type = CliCommandType( - operations_tmpl='azext_managementgroups.custom#{}', - client_factory=management_group_subscriptions_client_factory, - exception_handler=managementgroups_exception_handler) - - with self.command_group('account management-group', managementgroups_sdk) as g: - g.custom_command('list', 'cli_managementgroups_group_list') - g.custom_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=managementgroups_update_type, - setter_name='cli_managementgroups_group_update_set', - setter_type=managementgroups_update_type, - custom_func_name='cli_managementgroups_group_update_custom_func', - custom_func_type=managementgroups_update_type, - exception_handler=managementgroups_exception_handler) - - with self.command_group('account management-group subscription', managementgroups_subscriptions_sdk, client_factory=management_group_subscriptions_client_factory) as g: - g.custom_command('add', 'cli_managementgroups_subscription_add') - g.custom_command('remove', 'cli_managementgroups_subscription_remove') diff --git a/src/managementgroups/azext_managementgroups/custom.py b/src/managementgroups/azext_managementgroups/custom.py deleted file mode 100644 index d39d1911419..00000000000 --- a/src/managementgroups/azext_managementgroups/custom.py +++ /dev/null @@ -1,108 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- - -from azure.cli.core._profile import Profile - - -def _register_rp(cli_ctx, subscription_id=None): - rp = "Microsoft.Management" - from azure.cli.core.commands.client_factory import get_mgmt_service_client - from azure.cli.core.profiles import ResourceType - import time - rcf = get_mgmt_service_client( - cli_ctx, - ResourceType.MGMT_RESOURCE_RESOURCES, - subscription_id) - rcf.providers.register(rp) - while True: - time.sleep(10) - rp_info = rcf.providers.get(rp) - if rp_info.registration_state == 'Registered': - break - - -def _get_subscription_id_from_subscription(cli_ctx, subscription): # pylint: disable=inconsistent-return-statements - profile = Profile(cli_ctx=cli_ctx) - subscriptions_list = profile.load_cached_subscriptions() - for sub in subscriptions_list: - if sub['id'] == subscription or sub['name'] == subscription: - return sub['id'] - from azure.cli.core.util import CLIError - raise CLIError("Subscription not found in the current context.") - - -def cli_managementgroups_group_list(cmd, client): - _register_rp(cmd.cli_ctx) - return client.list() - - -def cli_managementgroups_group_show( - cmd, - client, - group_name, - expand=False, - recurse=False): - _register_rp(cmd.cli_ctx) - if expand: - return client.get(group_name, "children", recurse) - return client.get(group_name) - - -def cli_managementgroups_group_create( - cmd, - client, - group_name, - display_name=None, - parent_id=None): - _register_rp(cmd.cli_ctx) - return client.create_or_update( - group_name, "no-cache", display_name, parent_id) - - -def cli_managementgroups_group_update_custom_func( - instance, - display_name=None, - parent_id=None): - instance["display_name"] = display_name - instance["parent_id"] = parent_id - return instance - - -def cli_managementgroups_group_update_get(): - update_parameters = {'display_name': None, 'parent_id': None} - return update_parameters - - -def cli_managementgroups_group_update_set( - cmd, client, group_name, parameters=None): - _register_rp(cmd.cli_ctx) - return client.update( - group_name, - "no_cache", - parameters["display_name"], - parameters["parent_id"]) - - -def cli_managementgroups_group_delete(cmd, client, group_name): - _register_rp(cmd.cli_ctx) - return client.delete(group_name) - - -def cli_managementgroups_subscription_add( - cmd, client, group_name, subscription): - subscription_id = _get_subscription_id_from_subscription( - cmd.cli_ctx, subscription) - _register_rp(cmd.cli_ctx) - _register_rp(cmd.cli_ctx, subscription_id) - return client.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) - _register_rp(cmd.cli_ctx) - _register_rp(cmd.cli_ctx, subscription_id) - return client.delete(group_name, subscription_id) diff --git a/src/managementgroups/azext_managementgroups/managementgroups/__init__.py b/src/managementgroups/azext_managementgroups/managementgroups/__init__.py deleted file mode 100644 index 1c163d51446..00000000000 --- a/src/managementgroups/azext_managementgroups/managementgroups/__init__.py +++ /dev/null @@ -1,18 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .management_groups_api import ManagementGroupsAPI -from .version import VERSION - -__all__ = ['ManagementGroupsAPI'] - -__version__ = VERSION - diff --git a/src/managementgroups/azext_managementgroups/managementgroups/management_groups_api.py b/src/managementgroups/azext_managementgroups/managementgroups/management_groups_api.py deleted file mode 100644 index b69c1287560..00000000000 --- a/src/managementgroups/azext_managementgroups/managementgroups/management_groups_api.py +++ /dev/null @@ -1,86 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.service_client import ServiceClient -from msrest import Serializer, Deserializer -from msrestazure import AzureConfiguration -from .version import VERSION -from .operations.management_groups_operations import ManagementGroupsOperations -from .operations.management_group_subscriptions_operations import ManagementGroupSubscriptionsOperations -from .operations.operations import Operations -from . import models - - -class ManagementGroupsAPIConfiguration(AzureConfiguration): - """Configuration for ManagementGroupsAPI - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param str base_url: Service URL - """ - - def __init__( - self, credentials, base_url=None): - - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") - if not base_url: - base_url = 'https://management.azure.com' - - super(ManagementGroupsAPIConfiguration, self).__init__(base_url) - - self.add_user_agent('azure-mgmt-managementgroups/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - - -class ManagementGroupsAPI(object): - """The Azure Management Groups API enables consolidation of multiple - subscriptions/resources into an organizational hierarchy and centrally - manage access control, policies, alerting and reporting for those resources. - - :ivar config: Configuration for client. - :vartype config: ManagementGroupsAPIConfiguration - - :ivar management_groups: ManagementGroups operations - :vartype management_groups: azure.mgmt.managementgroups.operations.ManagementGroupsOperations - :ivar management_group_subscriptions: ManagementGroupSubscriptions operations - :vartype management_group_subscriptions: azure.mgmt.managementgroups.operations.ManagementGroupSubscriptionsOperations - :ivar operations: Operations operations - :vartype operations: azure.mgmt.managementgroups.operations.Operations - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param str base_url: Service URL - """ - - def __init__( - self, credentials, base_url=None): - - self.config = ManagementGroupsAPIConfiguration(credentials, base_url) - self._client = ServiceClient(self.config.credentials, self.config) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self.api_version = '2017-11-01-preview' - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - - self.management_groups = ManagementGroupsOperations( - self._client, self.config, self._serialize, self._deserialize) - self.management_group_subscriptions = ManagementGroupSubscriptionsOperations( - self._client, self.config, self._serialize, self._deserialize) - self.operations = Operations( - self._client, self.config, self._serialize, self._deserialize) diff --git a/src/managementgroups/azext_managementgroups/managementgroups/models/__init__.py b/src/managementgroups/azext_managementgroups/managementgroups/models/__init__.py deleted file mode 100644 index 941635d07c5..00000000000 --- a/src/managementgroups/azext_managementgroups/managementgroups/models/__init__.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .error_details import ErrorDetails -from .error_response import ErrorResponse, ErrorResponseException -from .operation_display import OperationDisplay -from .operation import Operation -from .management_group_info import ManagementGroupInfo -from .parent_group_info import ParentGroupInfo -from .management_group_details import ManagementGroupDetails -from .management_group_child_info import ManagementGroupChildInfo -from .management_group import ManagementGroup -from .create_management_group_request import CreateManagementGroupRequest -from .management_group_info_paged import ManagementGroupInfoPaged -from .operation_paged import OperationPaged - -__all__ = [ - 'ErrorDetails', - 'ErrorResponse', 'ErrorResponseException', - 'OperationDisplay', - 'Operation', - 'ManagementGroupInfo', - 'ParentGroupInfo', - 'ManagementGroupDetails', - 'ManagementGroupChildInfo', - 'ManagementGroup', - 'CreateManagementGroupRequest', - 'ManagementGroupInfoPaged', - 'OperationPaged', -] diff --git a/src/managementgroups/azext_managementgroups/managementgroups/models/create_management_group_request.py b/src/managementgroups/azext_managementgroups/managementgroups/models/create_management_group_request.py deleted file mode 100644 index 78ec7516aed..00000000000 --- a/src/managementgroups/azext_managementgroups/managementgroups/models/create_management_group_request.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class CreateManagementGroupRequest(Model): - """Management group creation parameters. - - :param display_name: The friendly name of the management group. - :type display_name: str - :param parent_id: (Optional) The fully qualified ID for the parent - management group. For example, - /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000 - :type parent_id: str - """ - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'parent_id': {'key': 'parentId', 'type': 'str'}, - } - - def __init__(self, display_name=None, parent_id=None): - super(CreateManagementGroupRequest, self).__init__() - self.display_name = display_name - self.parent_id = parent_id diff --git a/src/managementgroups/azext_managementgroups/managementgroups/models/error_details.py b/src/managementgroups/azext_managementgroups/managementgroups/models/error_details.py deleted file mode 100644 index 97dff2a0815..00000000000 --- a/src/managementgroups/azext_managementgroups/managementgroups/models/error_details.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ErrorDetails(Model): - """The details of the error. - - :param code: One of a server-defined set of error codes. - :type code: str - :param message: A human-readable representation of the error. - :type message: str - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, code=None, message=None): - super(ErrorDetails, self).__init__() - self.code = code - self.message = message diff --git a/src/managementgroups/azext_managementgroups/managementgroups/models/error_response.py b/src/managementgroups/azext_managementgroups/managementgroups/models/error_response.py deleted file mode 100644 index a0367d3aaa7..00000000000 --- a/src/managementgroups/azext_managementgroups/managementgroups/models/error_response.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model -from msrest.exceptions import HttpOperationError - - -class ErrorResponse(Model): - """The error object. - - :param error: Error. - :type error: ~azure.mgmt.managementgroups.models.ErrorDetails - """ - - _attribute_map = { - 'error': {'key': 'error', 'type': 'ErrorDetails'}, - } - - def __init__(self, error=None): - super(ErrorResponse, self).__init__() - self.error = error - - -class ErrorResponseException(HttpOperationError): - """Server responsed with exception of type: 'ErrorResponse'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args) diff --git a/src/managementgroups/azext_managementgroups/managementgroups/models/management_group.py b/src/managementgroups/azext_managementgroups/managementgroups/models/management_group.py deleted file mode 100644 index 29cfa5bb6b1..00000000000 --- a/src/managementgroups/azext_managementgroups/managementgroups/models/management_group.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ManagementGroup(Model): - """The management group details. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The fully qualified ID for the management group. For example, - /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000 - :vartype id: str - :ivar type: The type of the resource. For example, - /providers/Microsoft.Management/managementGroups - :vartype type: str - :ivar name: The name of the management group. For example, - 00000000-0000-0000-0000-000000000000 - :vartype name: str - :param tenant_id: The AAD Tenant ID associated with the management group. - For example, 00000000-0000-0000-0000-000000000000 - :type tenant_id: str - :param display_name: The friendly name of the management group. - :type display_name: str - :param details: Details. - :type details: ~azure.mgmt.managementgroups.models.ManagementGroupDetails - :param children: The list of children. - :type children: - list[~azure.mgmt.managementgroups.models.ManagementGroupChildInfo] - """ - - _validation = { - 'id': {'readonly': True}, - 'type': {'readonly': True}, - 'name': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'tenant_id': {'key': 'properties.tenantId', 'type': 'str'}, - 'display_name': {'key': 'properties.displayName', 'type': 'str'}, - 'details': {'key': 'properties.details', 'type': 'ManagementGroupDetails'}, - 'children': {'key': 'properties.children', 'type': '[ManagementGroupChildInfo]'}, - } - - def __init__(self, tenant_id=None, display_name=None, details=None, children=None): - super(ManagementGroup, self).__init__() - self.id = None - self.type = None - self.name = None - self.tenant_id = tenant_id - self.display_name = display_name - self.details = details - self.children = children diff --git a/src/managementgroups/azext_managementgroups/managementgroups/models/management_group_child_info.py b/src/managementgroups/azext_managementgroups/managementgroups/models/management_group_child_info.py deleted file mode 100644 index 209af58e80f..00000000000 --- a/src/managementgroups/azext_managementgroups/managementgroups/models/management_group_child_info.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ManagementGroupChildInfo(Model): - """The child information of a management group. - - :param child_type: The type of child resource. Possible values include: - 'ManagementGroup', 'Subscription' - :type child_type: str or ~azure.mgmt.managementgroups.models.enum - :param child_id: The fully qualified ID for the child resource (management - group or subscription). For example, - /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000 - :type child_id: str - :param display_name: The friendly name of the child resource. - :type display_name: str - :param children: The list of children. - :type children: - list[~azure.mgmt.managementgroups.models.ManagementGroupChildInfo] - """ - - _attribute_map = { - 'child_type': {'key': 'childType', 'type': 'str'}, - 'child_id': {'key': 'childId', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'children': {'key': 'children', 'type': '[ManagementGroupChildInfo]'}, - } - - def __init__(self, child_type=None, child_id=None, display_name=None, children=None): - super(ManagementGroupChildInfo, self).__init__() - self.child_type = child_type - self.child_id = child_id - self.display_name = display_name - self.children = children diff --git a/src/managementgroups/azext_managementgroups/managementgroups/models/management_group_details.py b/src/managementgroups/azext_managementgroups/managementgroups/models/management_group_details.py deleted file mode 100644 index 7618834b6a0..00000000000 --- a/src/managementgroups/azext_managementgroups/managementgroups/models/management_group_details.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ManagementGroupDetails(Model): - """The details of a management group. - - :param version: The version number of the object. - :type version: float - :param updated_time: The date and time when this object was last updated. - :type updated_time: datetime - :param updated_by: The identity of the principal or process that updated - the object. - :type updated_by: str - :param parent: Parent. - :type parent: ~azure.mgmt.managementgroups.models.ParentGroupInfo - """ - - _attribute_map = { - 'version': {'key': 'version', 'type': 'float'}, - 'updated_time': {'key': 'updatedTime', 'type': 'iso-8601'}, - 'updated_by': {'key': 'updatedBy', 'type': 'str'}, - 'parent': {'key': 'parent', 'type': 'ParentGroupInfo'}, - } - - def __init__(self, version=None, updated_time=None, updated_by=None, parent=None): - super(ManagementGroupDetails, self).__init__() - self.version = version - self.updated_time = updated_time - self.updated_by = updated_by - self.parent = parent diff --git a/src/managementgroups/azext_managementgroups/managementgroups/models/management_group_info.py b/src/managementgroups/azext_managementgroups/managementgroups/models/management_group_info.py deleted file mode 100644 index 27f1b74f229..00000000000 --- a/src/managementgroups/azext_managementgroups/managementgroups/models/management_group_info.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ManagementGroupInfo(Model): - """The management group resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The fully qualified ID for the management group. For example, - /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000 - :vartype id: str - :ivar type: The type of the resource. For example, - /providers/Microsoft.Management/managementGroups - :vartype type: str - :ivar name: The name of the management group. For example, - 00000000-0000-0000-0000-000000000000 - :vartype name: str - :param tenant_id: The AAD Tenant ID associated with the management group. - For example, 00000000-0000-0000-0000-000000000000 - :type tenant_id: str - :param display_name: The friendly name of the management group. - :type display_name: str - """ - - _validation = { - 'id': {'readonly': True}, - 'type': {'readonly': True}, - 'name': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'tenant_id': {'key': 'properties.tenantId', 'type': 'str'}, - 'display_name': {'key': 'properties.displayName', 'type': 'str'}, - } - - def __init__(self, tenant_id=None, display_name=None): - super(ManagementGroupInfo, self).__init__() - self.id = None - self.type = None - self.name = None - self.tenant_id = tenant_id - self.display_name = display_name diff --git a/src/managementgroups/azext_managementgroups/managementgroups/models/management_group_info_paged.py b/src/managementgroups/azext_managementgroups/managementgroups/models/management_group_info_paged.py deleted file mode 100644 index 0ac3a4df147..00000000000 --- a/src/managementgroups/azext_managementgroups/managementgroups/models/management_group_info_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class ManagementGroupInfoPaged(Paged): - """ - A paging container for iterating over a list of :class:`ManagementGroupInfo ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[ManagementGroupInfo]'} - } - - def __init__(self, *args, **kwargs): - - super(ManagementGroupInfoPaged, self).__init__(*args, **kwargs) diff --git a/src/managementgroups/azext_managementgroups/managementgroups/models/operation.py b/src/managementgroups/azext_managementgroups/managementgroups/models/operation.py deleted file mode 100644 index 832260c9ce0..00000000000 --- a/src/managementgroups/azext_managementgroups/managementgroups/models/operation.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Operation(Model): - """Operation supported by the Microsoft.Management resource provider. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar name: Operation name: {provider}/{resource}/{operation}. - :vartype name: str - :param display: The object that represents the operation. - :type display: ~azure.mgmt.managementgroups.models.OperationDisplay - """ - - _validation = { - 'name': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display': {'key': 'display', 'type': 'OperationDisplay'}, - } - - def __init__(self, display=None): - super(Operation, self).__init__() - self.name = None - self.display = display diff --git a/src/managementgroups/azext_managementgroups/managementgroups/models/operation_display.py b/src/managementgroups/azext_managementgroups/managementgroups/models/operation_display.py deleted file mode 100644 index 1c60d0d60eb..00000000000 --- a/src/managementgroups/azext_managementgroups/managementgroups/models/operation_display.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OperationDisplay(Model): - """The object that represents the operation. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar provider: The name of the provider. - :vartype provider: str - :ivar resource: The resource on which the operation is performed. - :vartype resource: str - :ivar operation: The operation that can be performed. - :vartype operation: str - :ivar description: Operation description. - :vartype description: str - """ - - _validation = { - 'provider': {'readonly': True}, - 'resource': {'readonly': True}, - 'operation': {'readonly': True}, - 'description': {'readonly': True}, - } - - _attribute_map = { - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__(self): - super(OperationDisplay, self).__init__() - self.provider = None - self.resource = None - self.operation = None - self.description = None diff --git a/src/managementgroups/azext_managementgroups/managementgroups/models/operation_paged.py b/src/managementgroups/azext_managementgroups/managementgroups/models/operation_paged.py deleted file mode 100644 index e6d9157f4c0..00000000000 --- a/src/managementgroups/azext_managementgroups/managementgroups/models/operation_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class OperationPaged(Paged): - """ - A paging container for iterating over a list of :class:`Operation ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[Operation]'} - } - - def __init__(self, *args, **kwargs): - - super(OperationPaged, self).__init__(*args, **kwargs) diff --git a/src/managementgroups/azext_managementgroups/managementgroups/models/parent_group_info.py b/src/managementgroups/azext_managementgroups/managementgroups/models/parent_group_info.py deleted file mode 100644 index fb4b8942975..00000000000 --- a/src/managementgroups/azext_managementgroups/managementgroups/models/parent_group_info.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ParentGroupInfo(Model): - """(Optional) The ID of the parent management group. - - :param parent_id: The fully qualified ID for the parent management group. - For example, - /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000 - :type parent_id: str - :param display_name: The friendly name of the parent management group. - :type display_name: str - """ - - _attribute_map = { - 'parent_id': {'key': 'parentId', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - } - - def __init__(self, parent_id=None, display_name=None): - super(ParentGroupInfo, self).__init__() - self.parent_id = parent_id - self.display_name = display_name diff --git a/src/managementgroups/azext_managementgroups/managementgroups/operations/__init__.py b/src/managementgroups/azext_managementgroups/managementgroups/operations/__init__.py deleted file mode 100644 index f2f0ee70fdd..00000000000 --- a/src/managementgroups/azext_managementgroups/managementgroups/operations/__init__.py +++ /dev/null @@ -1,20 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .management_groups_operations import ManagementGroupsOperations -from .management_group_subscriptions_operations import ManagementGroupSubscriptionsOperations -from .operations import Operations - -__all__ = [ - 'ManagementGroupsOperations', - 'ManagementGroupSubscriptionsOperations', - 'Operations', -] diff --git a/src/managementgroups/azext_managementgroups/managementgroups/operations/management_group_subscriptions_operations.py b/src/managementgroups/azext_managementgroups/managementgroups/operations/management_group_subscriptions_operations.py deleted file mode 100644 index 0f196aefeb6..00000000000 --- a/src/managementgroups/azext_managementgroups/managementgroups/operations/management_group_subscriptions_operations.py +++ /dev/null @@ -1,151 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse - -from .. import models - - -class ManagementGroupSubscriptionsOperations(object): - """ManagementGroupSubscriptionsOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. - :ivar api_version: Version of the API to be used with the client request. The current version is 2017-11-01-preview. Constant value: "2017-11-01-preview". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2017-11-01-preview" - - self.config = config - - def create( - self, group_id, subscription_id, cache_control="no-cache", custom_headers=None, raw=False, **operation_config): - """Associates existing subscription with the management group. - . - - :param group_id: Management Group ID. - :type group_id: str - :param subscription_id: Subscription ID. - :type subscription_id: str - :param cache_control: Indicates that the request shouldn't utilize any - caches. - :type cache_control: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: None or ClientRawResponse if raw=true - :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = '/providers/Microsoft.Management/managementGroups/{groupId}/subscriptions/{subscriptionId}' - path_format_arguments = { - 'groupId': self._serialize.url("group_id", group_id, 'str'), - 'subscriptionId': self._serialize.url("subscription_id", subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if cache_control is not None: - header_parameters['Cache-Control'] = self._serialize.header("cache_control", cache_control, 'str') - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) - - if response.status_code not in [204]: - raise models.ErrorResponseException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def delete( - self, group_id, subscription_id, cache_control="no-cache", custom_headers=None, raw=False, **operation_config): - """De-associates subscription from the management group. - . - - :param group_id: Management Group ID. - :type group_id: str - :param subscription_id: Subscription ID. - :type subscription_id: str - :param cache_control: Indicates that the request shouldn't utilize any - caches. - :type cache_control: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: None or ClientRawResponse if raw=true - :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = '/providers/Microsoft.Management/managementGroups/{groupId}/subscriptions/{subscriptionId}' - path_format_arguments = { - 'groupId': self._serialize.url("group_id", group_id, 'str'), - 'subscriptionId': self._serialize.url("subscription_id", subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if cache_control is not None: - header_parameters['Cache-Control'] = self._serialize.header("cache_control", cache_control, 'str') - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.delete(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) - - if response.status_code not in [204]: - raise models.ErrorResponseException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response diff --git a/src/managementgroups/azext_managementgroups/managementgroups/operations/management_groups_operations.py b/src/managementgroups/azext_managementgroups/managementgroups/operations/management_groups_operations.py deleted file mode 100644 index e93190e9de7..00000000000 --- a/src/managementgroups/azext_managementgroups/managementgroups/operations/management_groups_operations.py +++ /dev/null @@ -1,390 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse - -from .. import models - - -class ManagementGroupsOperations(object): - """ManagementGroupsOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. - :ivar api_version: Version of the API to be used with the client request. The current version is 2017-11-01-preview. Constant value: "2017-11-01-preview". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2017-11-01-preview" - - self.config = config - - def list( - self, cache_control="no-cache", skiptoken=None, custom_headers=None, raw=False, **operation_config): - """List management groups for the authenticated user. - . - - :param cache_control: Indicates that the request shouldn't utilize any - caches. - :type cache_control: str - :param skiptoken: Page continuation token is only used if a previous - operation returned a partial result. - If a previous response contains a nextLink element, the value of the - nextLink element will include a token parameter that specifies a - starting point to use for subsequent calls. - :type skiptoken: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of ManagementGroupInfo - :rtype: - ~azure.mgmt.managementgroups.models.ManagementGroupInfoPaged[~azure.mgmt.managementgroups.models.ManagementGroupInfo] - :raises: - :class:`ErrorResponseException` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = '/providers/Microsoft.Management/managementGroups' - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - if skiptoken is not None: - query_parameters['$skiptoken'] = self._serialize.query("skiptoken", skiptoken, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if cache_control is not None: - header_parameters['Cache-Control'] = self._serialize.header("cache_control", cache_control, 'str') - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - return response - - # Deserialize response - deserialized = models.ManagementGroupInfoPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.ManagementGroupInfoPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - - def get( - self, group_id, expand=None, recurse=None, cache_control="no-cache", custom_headers=None, raw=False, **operation_config): - """Get the details of the management group. - . - - :param group_id: Management Group ID. - :type group_id: str - :param expand: The $expand=children query string parameter allows - clients to request inclusion of children in the response payload. - Possible values include: 'children' - :type expand: str - :param recurse: The $recurse=true query string parameter allows - clients to request inclusion of entire hierarchy in the response - payload. - :type recurse: bool - :param cache_control: Indicates that the request shouldn't utilize any - caches. - :type cache_control: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: ManagementGroup or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.managementgroups.models.ManagementGroup or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = '/providers/Microsoft.Management/managementGroups/{groupId}' - path_format_arguments = { - 'groupId': self._serialize.url("group_id", group_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - if expand is not None: - query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') - if recurse is not None: - query_parameters['$recurse'] = self._serialize.query("recurse", recurse, 'bool') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if cache_control is not None: - header_parameters['Cache-Control'] = self._serialize.header("cache_control", cache_control, 'str') - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('ManagementGroup', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def create_or_update( - self, group_id, cache_control="no-cache", display_name=None, parent_id=None, custom_headers=None, raw=False, **operation_config): - """Create or update a management group. - If a management group is already created and a subsequent create - request is issued with different properties, the management group - properties will be updated. - . - - :param group_id: Management Group ID. - :type group_id: str - :param cache_control: Indicates that the request shouldn't utilize any - caches. - :type cache_control: str - :param display_name: The friendly name of the management group. - :type display_name: str - :param parent_id: (Optional) The fully qualified ID for the parent - management group. For example, - /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000 - :type parent_id: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: ManagementGroup or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.managementgroups.models.ManagementGroup or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - create_management_group_request = models.CreateManagementGroupRequest(display_name=display_name, parent_id=parent_id) - - # Construct URL - url = '/providers/Microsoft.Management/managementGroups/{groupId}' - path_format_arguments = { - 'groupId': self._serialize.url("group_id", group_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if cache_control is not None: - header_parameters['Cache-Control'] = self._serialize.header("cache_control", cache_control, 'str') - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(create_management_group_request, 'CreateManagementGroupRequest') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('ManagementGroup', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def update( - self, group_id, cache_control="no-cache", display_name=None, parent_id=None, custom_headers=None, raw=False, **operation_config): - """Update a management group. - . - - :param group_id: Management Group ID. - :type group_id: str - :param cache_control: Indicates that the request shouldn't utilize any - caches. - :type cache_control: str - :param display_name: The friendly name of the management group. - :type display_name: str - :param parent_id: (Optional) The fully qualified ID for the parent - management group. For example, - /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000 - :type parent_id: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: ManagementGroup or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.managementgroups.models.ManagementGroup or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - create_management_group_request = models.CreateManagementGroupRequest(display_name=display_name, parent_id=parent_id) - - # Construct URL - url = '/providers/Microsoft.Management/managementGroups/{groupId}' - path_format_arguments = { - 'groupId': self._serialize.url("group_id", group_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if cache_control is not None: - header_parameters['Cache-Control'] = self._serialize.header("cache_control", cache_control, 'str') - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(create_management_group_request, 'CreateManagementGroupRequest') - - # Construct and send request - request = self._client.patch(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('ManagementGroup', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def delete( - self, group_id, cache_control="no-cache", custom_headers=None, raw=False, **operation_config): - """Delete management group. - If a management group contains child resources, the request will fail. - . - - :param group_id: Management Group ID. - :type group_id: str - :param cache_control: Indicates that the request shouldn't utilize any - caches. - :type cache_control: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: None or ClientRawResponse if raw=true - :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = '/providers/Microsoft.Management/managementGroups/{groupId}' - path_format_arguments = { - 'groupId': self._serialize.url("group_id", group_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if cache_control is not None: - header_parameters['Cache-Control'] = self._serialize.header("cache_control", cache_control, 'str') - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.delete(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) - - if response.status_code not in [200, 204]: - raise models.ErrorResponseException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response diff --git a/src/managementgroups/azext_managementgroups/managementgroups/operations/operations.py b/src/managementgroups/azext_managementgroups/managementgroups/operations/operations.py deleted file mode 100644 index 184c6c83b1b..00000000000 --- a/src/managementgroups/azext_managementgroups/managementgroups/operations/operations.py +++ /dev/null @@ -1,96 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse - -from .. import models - - -class Operations(object): - """Operations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. - :ivar api_version: Version of the API to be used with the client request. The current version is 2017-11-01-preview. Constant value: "2017-11-01-preview". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2017-11-01-preview" - - self.config = config - - def list( - self, custom_headers=None, raw=False, **operation_config): - """Lists all of the available Management REST API operations. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of Operation - :rtype: - ~azure.mgmt.managementgroups.models.OperationPaged[~azure.mgmt.managementgroups.models.Operation] - :raises: - :class:`ErrorResponseException` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = '/providers/Microsoft.Management/operations' - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - return response - - # Deserialize response - deserialized = models.OperationPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.OperationPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized diff --git a/src/managementgroups/azext_managementgroups/managementgroups/version.py b/src/managementgroups/azext_managementgroups/managementgroups/version.py deleted file mode 100644 index 2e47e927c20..00000000000 --- a/src/managementgroups/azext_managementgroups/managementgroups/version.py +++ /dev/null @@ -1,13 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -VERSION = "2017-11-01-preview" - diff --git a/src/managementgroups/azext_managementgroups/tests/latest/recordings/test_add_remove_subscription_managementgroup.yaml b/src/managementgroups/azext_managementgroups/tests/latest/recordings/test_add_remove_subscription_managementgroup.yaml deleted file mode 100644 index a7647b586dd..00000000000 --- a/src/managementgroups/azext_managementgroups/tests/latest/recordings/test_add_remove_subscription_managementgroup.yaml +++ /dev/null @@ -1,1096 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Fcommon%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: {string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/common/.well-known/openid-configuration"}'} - headers: - access-control-allow-methods: ['GET, OPTIONS'] - access-control-allow-origin: ['*'] - cache-control: [private] - content-length: ['101'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 13 Feb 2018 02:03:44 GMT'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - server: [Microsoft-IIS/10.0] - set-cookie: [esctx=AQABAAAAAABHh4kmS_aKT5XrjzxRAtHzws4_7oHu3l-HD5jZuOMju-4IsVcazXlR-UTV6wToT8S_nkaJ7KAQlMkKWAhbmsczVBYAy5B7XSmYdnt6BE92vYNvFuCeCheZ8I8JpGPa7b7vacG1S7bxzpb371ugljqGvKtFCzB3stO-RHZoYl-Sc2986AlK1NcUDUG4isLWvtogAA; - domain=.login.windows.net; path=/; secure; HttpOnly, x-ms-gateway-slice=corp; - path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - 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'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 - msrest_azure/0.4.21 subscriptionclient/1.3.0rc1 Azure-SDK-For-Python] - accept-language: [en-US] - method: GET - uri: https://api-dogfood.resources.windows-int.net/tenants?api-version=2016-06-01 - response: - body: {string: '{"value":[{"id":"/tenants/b1af47f1-138c-4ed2-8bba-119041b95450","tenantId":"b1af47f1-138c-4ed2-8bba-119041b95450"}]}'} - headers: - cache-control: [no-cache] - content-length: ['116'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 13 Feb 2018 02:03: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] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Fb1af47f1-138c-4ed2-8bba-119041b95450%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: {string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/b1af47f1-138c-4ed2-8bba-119041b95450/.well-known/openid-configuration"}'} - headers: - access-control-allow-methods: ['GET, OPTIONS'] - access-control-allow-origin: ['*'] - cache-control: [private] - content-length: ['131'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 13 Feb 2018 02:03:45 GMT'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - server: [Microsoft-IIS/10.0] - set-cookie: [esctx=AQABAAAAAABHh4kmS_aKT5XrjzxRAtHzSRvCzrjwfRmUBgniYV3xdhekEZhSpBP7qEjrhJYl2ksevXso0ZBZ38QtlKC2WwcQ37el8NqAC96joVE0IeMBKfCGHO6yiutMsyIKJbngUoY-wzSCFDBi87yFmha45RQhmYpyjUbMCi-m8d4BSB1BCzE6w-7qzRGu41HKuaRr1j0gAA; - domain=.login.windows.net; path=/; secure; HttpOnly, x-ms-gateway-slice=corp; - path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - 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'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 - msrest_azure/0.4.21 subscriptionclient/1.3.0rc1 Azure-SDK-For-Python] - accept-language: [en-US] - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions?api-version=2016-06-01 - response: - body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000","subscriptionId":"ebadb9cb-fd93-408a-afc8-19338086c73c","displayName":"Pay-As-You-Go","state":"Enabled","subscriptionPolicies":{"locationPlacementId":"Public_2014-09-01","quotaId":"PayAsYouGo_2014-09-01","spendingLimit":"Off"},"authorizationSource":"RoleBased"}]}'} - headers: - cache-control: [no-cache] - content-length: ['333'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 13 Feb 2018 02:03: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] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Fcommon%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: {string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/common/.well-known/openid-configuration"}'} - headers: - access-control-allow-methods: ['GET, OPTIONS'] - access-control-allow-origin: ['*'] - cache-control: [private] - content-length: ['101'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 13 Feb 2018 02:03:46 GMT'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - server: [Microsoft-IIS/10.0] - set-cookie: [esctx=AQABAAAAAABHh4kmS_aKT5XrjzxRAtHzGjpMtI6N2s-UeBbpfnVRPXuRQkjImEgVIiSoIv75yMK34uaOYRCAW2knzsLuxl1iokqkFoNUE0e50f0nNAU5BvOE1ExmyZYogSASoPjKpTiRAteGgTpZdZIw3D3UwhquHNw4xosGMcT3FtPHfVtCDRHrvCuiapVxR2BO8jW71xwgAA; - domain=.login.windows.net; path=/; secure; HttpOnly, x-ms-gateway-slice=corp; - path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - 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'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 - msrest_azure/0.4.21 subscriptionclient/1.3.0rc1 Azure-SDK-For-Python] - accept-language: [en-US] - method: GET - uri: https://api-dogfood.resources.windows-int.net/tenants?api-version=2016-06-01 - response: - body: {string: '{"value":[{"id":"/tenants/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0","tenantId":"6b2064b9-34bd-46e6-9092-52f2dd5f7fc0"}]}'} - headers: - cache-control: [no-cache] - content-length: ['116'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 13 Feb 2018 02:03: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] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2F6b2064b9-34bd-46e6-9092-52f2dd5f7fc0%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: {string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/.well-known/openid-configuration"}'} - headers: - access-control-allow-methods: ['GET, OPTIONS'] - access-control-allow-origin: ['*'] - cache-control: [private] - content-length: ['131'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 13 Feb 2018 02:03:48 GMT'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - server: [Microsoft-IIS/10.0] - set-cookie: [esctx=AQABAAAAAABHh4kmS_aKT5XrjzxRAtHzn_a3xfaf4RlMZxzB90ilTMWHWoSLSMLIU_atbthAoMvmnGCInPX4EHXiWj1nxKKdSV2GBnU9K7TPUiMtEULItTucew4BA-Viab6HEH8hyXQV85dPvOvUG-KLPPmVGqKVzxmh-JanHjQ18DgowulXF43LNi4EbnSl9SoLAR6HNCMgAA; - domain=.login.windows.net; path=/; secure; HttpOnly, x-ms-gateway-slice=corp; - path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - 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'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 - msrest_azure/0.4.21 subscriptionclient/1.3.0rc1 Azure-SDK-For-Python] - accept-language: [en-US] - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions?api-version=2016-06-01 - response: - body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000","subscriptionId":"2a418b54-7643-4d8f-982c-d0802205d12c","displayName":"Pay-As-You-Go","state":"Enabled","subscriptionPolicies":{"locationPlacementId":"Public_2014-09-01","quotaId":"PayAsYouGo_2014-09-01","spendingLimit":"Off"},"authorizationSource":"RoleBased"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000","subscriptionId":"394ae65d-9e71-4462-930f-3332dedf845c","displayName":"Pay-As-You-Go","state":"Enabled","subscriptionPolicies":{"locationPlacementId":"Public_2014-09-01","quotaId":"PayAsYouGo_2014-09-01","spendingLimit":"Off"},"authorizationSource":"RoleBased"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000","subscriptionId":"8158c3e6-0c47-4d68-af4c-d521343aa3f8","displayName":"Pay-As-You-Go","state":"Enabled","subscriptionPolicies":{"locationPlacementId":"Public_2014-09-01","quotaId":"PayAsYouGo_2014-09-01","spendingLimit":"Off"},"authorizationSource":"RoleBased"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000","subscriptionId":"d6dc5efd-7edd-47b2-b5b5-9e28460adf7d","displayName":"Pay-As-You-Go","state":"Enabled","subscriptionPolicies":{"locationPlacementId":"Public_2014-09-01","quotaId":"PayAsYouGo_2014-09-01","spendingLimit":"Off"},"authorizationSource":"RoleBased"}]}'} - headers: - cache-control: [no-cache] - content-length: ['1299'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 13 Feb 2018 02:03: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] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2F6b2064b9-34bd-46e6-9092-52f2dd5f7fc0%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: {string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/.well-known/openid-configuration"}'} - headers: - access-control-allow-methods: ['GET, OPTIONS'] - access-control-allow-origin: ['*'] - cache-control: [private] - content-length: ['131'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 13 Feb 2018 02:03:49 GMT'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - server: [Microsoft-IIS/10.0] - set-cookie: [esctx=AQABAAAAAABHh4kmS_aKT5XrjzxRAtHzxN080hXctxPYg8mKcmMGoYY1QrVRhhkmPnRGjom6EnOeGxEouxCwwehHuUqeVF_85L-XUs0IlZiaVGKz6IrLa5BErJslxr7BRV28SCEM2Iw29ezRCernbevqRiDY3s0H3iKDWG7PIMJjOWkmHMnsio5eDPzOOFkOjPIt33-2oz8gAA; - domain=.login.windows.net; path=/; secure; HttpOnly, x-ms-gateway-slice=corp; - path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - 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 subscription add] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 - msrest_azure/0.4.21 resourcemanagementclient/1.3.0rc1 Azure-SDK-For-Python - AZURECLI/2.0.27] - accept-language: [en-US] - method: POST - uri: https://api-dogfood.resources.windows-int.net/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-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1033'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 13 Feb 2018 02:03:49 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: ['1196'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2F6b2064b9-34bd-46e6-9092-52f2dd5f7fc0%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: {string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/.well-known/openid-configuration"}'} - headers: - access-control-allow-methods: ['GET, OPTIONS'] - access-control-allow-origin: ['*'] - cache-control: [private] - content-length: ['131'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 13 Feb 2018 02:03:59 GMT'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - server: [Microsoft-IIS/10.0] - set-cookie: [esctx=AQABAAAAAABHh4kmS_aKT5XrjzxRAtHzsygd-t0dv-wvYBKsjgPUHkHPSoL4_XegRlCbOJeMV82YkbzcaisBDtIBDbaxkEEoBLTALDbtswHwKQOIZVFi11irJXrR6TYNyjSEHOJLqFgEB72qrk0DpqkOucCGhaQZbz3zdZizhEYResqlpxZLIKBZ0US08kHgBsmR7SqHP0QgAA; - domain=.login.windows.net; path=/; secure; HttpOnly, x-ms-gateway-slice=corp; - path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - 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 subscription add] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 - msrest_azure/0.4.21 resourcemanagementclient/1.3.0rc1 Azure-SDK-For-Python - AZURECLI/2.0.27] - accept-language: [en-US] - method: GET - uri: https://api-dogfood.resources.windows-int.net/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-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1033'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 13 Feb 2018 02:04: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} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2F6b2064b9-34bd-46e6-9092-52f2dd5f7fc0%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: {string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/.well-known/openid-configuration"}'} - headers: - access-control-allow-methods: ['GET, OPTIONS'] - access-control-allow-origin: ['*'] - cache-control: [private] - content-length: ['131'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 13 Feb 2018 02:04:00 GMT'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - server: [Microsoft-IIS/10.0] - set-cookie: [esctx=AQABAAAAAABHh4kmS_aKT5XrjzxRAtHz-qlpULhVy0sQ_lYRa4TfUxt7lez6i-eUUuH5HU4zQQTL9H93XVd5Mt0HGI5QwcBghQyqQvz6DjeYFnJFaeBYlVAblm_PUe8uRHFVXjlN-FMdUlv7RHRwMDhqTN3ke08O54LQebY5avYsrwPZssZXm1OnAMog1kR-FmnoRxxjyH8gAA; - domain=.login.windows.net; path=/; secure; HttpOnly, x-ms-gateway-slice=corp; - path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - 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 subscription add] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 - msrest_azure/0.4.21 resourcemanagementclient/1.3.0rc1 Azure-SDK-For-Python - AZURECLI/2.0.27] - accept-language: [en-US] - method: POST - uri: https://api-dogfood.resources.windows-int.net/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-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1033'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 13 Feb 2018 02:04:01 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: ['1195'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2F6b2064b9-34bd-46e6-9092-52f2dd5f7fc0%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: {string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/.well-known/openid-configuration"}'} - headers: - access-control-allow-methods: ['GET, OPTIONS'] - access-control-allow-origin: ['*'] - cache-control: [private] - content-length: ['131'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 13 Feb 2018 02:04:12 GMT'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - server: [Microsoft-IIS/10.0] - set-cookie: [esctx=AQABAAAAAABHh4kmS_aKT5XrjzxRAtHzShhLibNsb1fcpp4aePxSTp61jyTV_ZP7IR3Bq7ThIrhvmxYgC4rHC1hIJ09LLT7agQrh7Y5ZPx3XS2a--CHAWCFvCZwkWuvk2iuGggACh72DOxFxQ51k7ni2ePw6ZQXemTsFv9oMw8UXvm4GrUCbL639QMHl_hLYit4lPtWQSlUgAA; - domain=.login.windows.net; path=/; secure; HttpOnly, x-ms-gateway-slice=corp; - path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - 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 subscription add] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 - msrest_azure/0.4.21 resourcemanagementclient/1.3.0rc1 Azure-SDK-For-Python - AZURECLI/2.0.27] - accept-language: [en-US] - method: GET - uri: https://api-dogfood.resources.windows-int.net/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-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1033'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 13 Feb 2018 02:04:11 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: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2F6b2064b9-34bd-46e6-9092-52f2dd5f7fc0%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: {string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/.well-known/openid-configuration"}'} - headers: - access-control-allow-methods: ['GET, OPTIONS'] - access-control-allow-origin: ['*'] - cache-control: [private] - content-length: ['131'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 13 Feb 2018 02:04:12 GMT'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - server: [Microsoft-IIS/10.0] - set-cookie: [esctx=AQABAAAAAABHh4kmS_aKT5XrjzxRAtHzl5bH191zsubhcqC73wnci7Pw6kW7C7SAGW2cUeLhwocAeWkM-SI3mvS5hHkc1HAZTnlUm9PrzqgSiXKVPCO4B-mv3lc9TnXJ_jGVPjQKZXi2NBsd6p4aof-ZrOiJzuXxga-_ezWm6CKwnOQ-CvrQta_sq1yiYVFHQqVLJ24RUqYgAA; - domain=.login.windows.net; path=/; secure; HttpOnly, x-ms-gateway-slice=corp; - path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - 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'] - Cache-Control: [no-cache] - CommandName: [account management-group subscription add] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 - msrest_azure/0.4.21 azure-mgmt-managementgroups/2017-11-01-preview Azure-SDK-For-Python - AZURECLI/2.0.27] - accept-language: [en-US] - method: PUT - uri: https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/managementGroups/testGroup123/subscriptions/00000000-0000-0000-0000-000000000000?api-version=2017-11-01-preview - response: - body: {string: ''} - headers: - cache-control: [no-cache] - date: ['Tue, 13 Feb 2018 02:04:16 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [01f577ed-8ef0-4797-aa7e-e584e27a63ff] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.520] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-tenant-writes: ['1199'] - x-powered-by: [ASP.NET] - status: {code: 204, message: No Content} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Fcommon%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: {string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/common/.well-known/openid-configuration"}'} - headers: - access-control-allow-methods: ['GET, OPTIONS'] - access-control-allow-origin: ['*'] - cache-control: [private] - content-length: ['101'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 13 Feb 2018 02:04:17 GMT'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - server: [Microsoft-IIS/10.0] - set-cookie: [esctx=AQABAAAAAABHh4kmS_aKT5XrjzxRAtHzvv7AR55n4r3Q0h6bHXTZWZL2DKoXLPryGe8vWEpOVqiBgnrJw1gnbrGFPRagCFvxyCzVsDoiaF37aEEmJf6-RNUw-Sy5p1kqMwP2ObCYoufNrViLe7v7_7XDxyvH-ksmNU3LSfrnCqT0j53qX_rzCOjG2LKMmaAfjFAeJWBhktAgAA; - domain=.login.windows.net; path=/; secure; HttpOnly, x-ms-gateway-slice=corp; - path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - 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'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 - msrest_azure/0.4.21 subscriptionclient/1.3.0rc1 Azure-SDK-For-Python] - accept-language: [en-US] - method: GET - uri: https://api-dogfood.resources.windows-int.net/tenants?api-version=2016-06-01 - response: - body: {string: '{"value":[{"id":"/tenants/b1af47f1-138c-4ed2-8bba-119041b95450","tenantId":"b1af47f1-138c-4ed2-8bba-119041b95450"}]}'} - headers: - cache-control: [no-cache] - content-length: ['116'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 13 Feb 2018 02:04: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] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Fb1af47f1-138c-4ed2-8bba-119041b95450%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: {string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/b1af47f1-138c-4ed2-8bba-119041b95450/.well-known/openid-configuration"}'} - headers: - access-control-allow-methods: ['GET, OPTIONS'] - access-control-allow-origin: ['*'] - cache-control: [private] - content-length: ['131'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 13 Feb 2018 02:04:18 GMT'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - server: [Microsoft-IIS/10.0] - set-cookie: [esctx=AQABAAAAAABHh4kmS_aKT5XrjzxRAtHzI-n4wG_zpAqOzN3K_M2Wlwqsru9Ieel-wr7NX0x27ng2SMibpBMMY-XPF91w5ScgdKd9V_Vo_RZVIqjANBCdnidsh9qvXa-B5LT0bEBuIyS6gGLpQl0ZwGjEGBMucFS4CpCpQt0Wo2dCwYFV4WQYYqS4VsIITQZw8-DejDuvCYogAA; - domain=.login.windows.net; path=/; secure; HttpOnly, x-ms-gateway-slice=corp; - path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - 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'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 - msrest_azure/0.4.21 subscriptionclient/1.3.0rc1 Azure-SDK-For-Python] - accept-language: [en-US] - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions?api-version=2016-06-01 - response: - body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000","subscriptionId":"ebadb9cb-fd93-408a-afc8-19338086c73c","displayName":"Pay-As-You-Go","state":"Enabled","subscriptionPolicies":{"locationPlacementId":"Public_2014-09-01","quotaId":"PayAsYouGo_2014-09-01","spendingLimit":"Off"},"authorizationSource":"RoleBased"}]}'} - headers: - cache-control: [no-cache] - content-length: ['333'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 13 Feb 2018 02:04: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] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Fcommon%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: {string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/common/.well-known/openid-configuration"}'} - headers: - access-control-allow-methods: ['GET, OPTIONS'] - access-control-allow-origin: ['*'] - cache-control: [private] - content-length: ['101'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 13 Feb 2018 02:04:19 GMT'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - server: [Microsoft-IIS/10.0] - set-cookie: [esctx=AQABAAAAAABHh4kmS_aKT5XrjzxRAtHzLNwnNEil127YM0XtpfWTrgLbiwWOFrldQTEkABMU8DQF9TXMxuVf9UgIByJaIsQqgHnHE8wOe99BzfmO3MW5KExO6WAo8zdhZUBd1Fz8EvUtQWrcnOr8bvZa2h3LNjfEp45vr5TAF6Ser9kwLotI8xYX2tAV99PkGFEetTC3pqggAA; - domain=.login.windows.net; path=/; secure; HttpOnly, x-ms-gateway-slice=corp; - path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - 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'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 - msrest_azure/0.4.21 subscriptionclient/1.3.0rc1 Azure-SDK-For-Python] - accept-language: [en-US] - method: GET - uri: https://api-dogfood.resources.windows-int.net/tenants?api-version=2016-06-01 - response: - body: {string: '{"value":[{"id":"/tenants/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0","tenantId":"6b2064b9-34bd-46e6-9092-52f2dd5f7fc0"}]}'} - headers: - cache-control: [no-cache] - content-length: ['116'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 13 Feb 2018 02:04: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] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2F6b2064b9-34bd-46e6-9092-52f2dd5f7fc0%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: {string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/.well-known/openid-configuration"}'} - headers: - access-control-allow-methods: ['GET, OPTIONS'] - access-control-allow-origin: ['*'] - cache-control: [private] - content-length: ['131'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 13 Feb 2018 02:04:21 GMT'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - server: [Microsoft-IIS/10.0] - set-cookie: [esctx=AQABAAAAAABHh4kmS_aKT5XrjzxRAtHz8X_WYLXeR26_fUrrBEChJXT-pGNNuMU0OTQ3B_c-fTrpOuOk2CscuTbIItTXsXxljPQKlUU9UmNBsgAWVw4H6RyqqD3Vfa4aNysV6nUp9j1Rf8jPl_sZP4BW34OIk-ggjNLz0RbB4my-VVOl8EVlr6Pcr1fBMGooS_expRzDQYIgAA; - domain=.login.windows.net; path=/; secure; HttpOnly, x-ms-gateway-slice=corp; - path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - 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'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 - msrest_azure/0.4.21 subscriptionclient/1.3.0rc1 Azure-SDK-For-Python] - accept-language: [en-US] - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions?api-version=2016-06-01 - response: - body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000","subscriptionId":"2a418b54-7643-4d8f-982c-d0802205d12c","displayName":"Pay-As-You-Go","state":"Enabled","subscriptionPolicies":{"locationPlacementId":"Public_2014-09-01","quotaId":"PayAsYouGo_2014-09-01","spendingLimit":"Off"},"authorizationSource":"RoleBased"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000","subscriptionId":"394ae65d-9e71-4462-930f-3332dedf845c","displayName":"Pay-As-You-Go","state":"Enabled","subscriptionPolicies":{"locationPlacementId":"Public_2014-09-01","quotaId":"PayAsYouGo_2014-09-01","spendingLimit":"Off"},"authorizationSource":"RoleBased"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000","subscriptionId":"8158c3e6-0c47-4d68-af4c-d521343aa3f8","displayName":"Pay-As-You-Go","state":"Enabled","subscriptionPolicies":{"locationPlacementId":"Public_2014-09-01","quotaId":"PayAsYouGo_2014-09-01","spendingLimit":"Off"},"authorizationSource":"RoleBased"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000","subscriptionId":"d6dc5efd-7edd-47b2-b5b5-9e28460adf7d","displayName":"Pay-As-You-Go","state":"Enabled","subscriptionPolicies":{"locationPlacementId":"Public_2014-09-01","quotaId":"PayAsYouGo_2014-09-01","spendingLimit":"Off"},"authorizationSource":"RoleBased"}]}'} - headers: - cache-control: [no-cache] - content-length: ['1299'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 13 Feb 2018 02:04:21 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2F6b2064b9-34bd-46e6-9092-52f2dd5f7fc0%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: {string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/.well-known/openid-configuration"}'} - headers: - access-control-allow-methods: ['GET, OPTIONS'] - access-control-allow-origin: ['*'] - cache-control: [private] - content-length: ['131'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 13 Feb 2018 02:04:22 GMT'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - server: [Microsoft-IIS/10.0] - set-cookie: [esctx=AQABAAAAAABHh4kmS_aKT5XrjzxRAtHzdRe54Qoi0JcEz9QN1ELlaFVhYsFjzrsDFtCAHIEP7cjQS6IkFhkVBfaMWQwslIy-hwZlE0Ca5-h2tHpY0D1k52vLdIykUo7qrSxWRu6iwsaQqKExwxI_SW9CFn3dJ_9meepjHkHGyslGvXGIlU1CNxh_0rX0BGwK01Xi09teoyogAA; - domain=.login.windows.net; path=/; secure; HttpOnly, x-ms-gateway-slice=corp; - path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - 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 subscription remove] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 - msrest_azure/0.4.21 resourcemanagementclient/1.3.0rc1 Azure-SDK-For-Python - AZURECLI/2.0.27] - accept-language: [en-US] - method: POST - uri: https://api-dogfood.resources.windows-int.net/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-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1033'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 13 Feb 2018 02:04: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: ['1194'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2F6b2064b9-34bd-46e6-9092-52f2dd5f7fc0%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: {string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/.well-known/openid-configuration"}'} - headers: - access-control-allow-methods: ['GET, OPTIONS'] - access-control-allow-origin: ['*'] - cache-control: [private] - content-length: ['131'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 13 Feb 2018 02:04:32 GMT'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - server: [Microsoft-IIS/10.0] - set-cookie: [esctx=AQABAAAAAABHh4kmS_aKT5XrjzxRAtHzfOC9f2M1P6YzmS9scrtMU3tR9i0tQuC5AceI4hc_DLnIHbteIMg40zZ-356SqdNZMkILfMOH5U4dDX7IIVCQe7zPnVmvS9OZUeWxgl6s3NSplJw0hFkepE4M3juBqBIZyoDgS1zo0ghmOF0Y4QOiQKKSodtKHLRRPuNGlSpHIj8gAA; - domain=.login.windows.net; path=/; secure; HttpOnly, x-ms-gateway-slice=corp; - path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - 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 subscription remove] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 - msrest_azure/0.4.21 resourcemanagementclient/1.3.0rc1 Azure-SDK-For-Python - AZURECLI/2.0.27] - accept-language: [en-US] - method: GET - uri: https://api-dogfood.resources.windows-int.net/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-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1033'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 13 Feb 2018 02:04: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: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2F6b2064b9-34bd-46e6-9092-52f2dd5f7fc0%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: {string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/.well-known/openid-configuration"}'} - headers: - access-control-allow-methods: ['GET, OPTIONS'] - access-control-allow-origin: ['*'] - cache-control: [private] - content-length: ['131'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 13 Feb 2018 02:04:34 GMT'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - server: [Microsoft-IIS/10.0] - set-cookie: [esctx=AQABAAAAAABHh4kmS_aKT5XrjzxRAtHzlFTVK5ZZv7OBOnADC24KftnToNE2OgWux4fYS89hDGFRjYIYG8h6GY0HJarlHzDgr_PYO_DCPB4MbsJi15Sn8R9fJwajjFFG-62cEdznzsLDYAEESzrlh72_FpUSRSYar9B45olxdPZL0h9xNu3Wsu_jIvVhRGqQ1KBXV1CN5hIgAA; - domain=.login.windows.net; path=/; secure; HttpOnly, x-ms-gateway-slice=corp; - path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - 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 subscription remove] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 - msrest_azure/0.4.21 resourcemanagementclient/1.3.0rc1 Azure-SDK-For-Python - AZURECLI/2.0.27] - accept-language: [en-US] - method: POST - uri: https://api-dogfood.resources.windows-int.net/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-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1033'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 13 Feb 2018 02:04: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: ['1193'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2F6b2064b9-34bd-46e6-9092-52f2dd5f7fc0%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: {string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/.well-known/openid-configuration"}'} - headers: - access-control-allow-methods: ['GET, OPTIONS'] - access-control-allow-origin: ['*'] - cache-control: [private] - content-length: ['131'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 13 Feb 2018 02:04:45 GMT'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - server: [Microsoft-IIS/10.0] - set-cookie: [esctx=AQABAAAAAABHh4kmS_aKT5XrjzxRAtHz-fKNKZy1PgRcL-i0U0FhL-wtS4m0Tq9cUR9gLR5mVw6ZoTK8prINrCBvAUXp012dk1-rS0MlcWzm2REXFRYUjKVnFIng-6OUQs2No_bIDUfXaT4XfRitRCyvY1TSSLDUlAlPtqoqmm0sM4xTFiqDmAOOJf9TkEl_AlAysFsWgwAgAA; - domain=.login.windows.net; path=/; secure; HttpOnly, x-ms-gateway-slice=corp; - path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - 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 subscription remove] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 - msrest_azure/0.4.21 resourcemanagementclient/1.3.0rc1 Azure-SDK-For-Python - AZURECLI/2.0.27] - accept-language: [en-US] - method: GET - uri: https://api-dogfood.resources.windows-int.net/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-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1033'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 13 Feb 2018 02:04: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: null - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2F6b2064b9-34bd-46e6-9092-52f2dd5f7fc0%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: {string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/.well-known/openid-configuration"}'} - headers: - access-control-allow-methods: ['GET, OPTIONS'] - access-control-allow-origin: ['*'] - cache-control: [private] - content-length: ['131'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 13 Feb 2018 02:04:46 GMT'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - server: [Microsoft-IIS/10.0] - set-cookie: [esctx=AQABAAAAAABHh4kmS_aKT5XrjzxRAtHzWVAdQx4xsYLagF0OrL_pYLSRte_Y4K4MHYsED4rwaz5kKBXTnNLiq5tz6eyIHFsqiGRpQu3swN75UpD1gNbuB5IllikKjCEJf4hC1ilcXaodlEiezvORK7wyrzqe2SsLGAPV8GMyXOtk2sUd2zBM9dV8ZWFfnTYOAyRFKpocWPkgAA; - domain=.login.windows.net; path=/; secure; HttpOnly, x-ms-gateway-slice=corp; - path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - 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'] - Cache-Control: [no-cache] - CommandName: [account management-group subscription remove] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 - msrest_azure/0.4.21 azure-mgmt-managementgroups/2017-11-01-preview Azure-SDK-For-Python - AZURECLI/2.0.27] - accept-language: [en-US] - method: DELETE - uri: https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/managementGroups/testGroup123/subscriptions/00000000-0000-0000-0000-000000000000?api-version=2017-11-01-preview - response: - body: {string: ''} - headers: - cache-control: [no-cache] - date: ['Tue, 13 Feb 2018 02:04:49 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [178ce379-e1b6-4de5-804e-b5dae1adb4eb] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.520] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-tenant-writes: ['1198'] - x-powered-by: [ASP.NET] - status: {code: 204, message: No Content} -version: 1 diff --git a/src/managementgroups/azext_managementgroups/tests/latest/recordings/test_create_delete_group_managementgroup.yaml b/src/managementgroups/azext_managementgroups/tests/latest/recordings/test_create_delete_group_managementgroup.yaml deleted file mode 100644 index ddcc23bb45d..00000000000 --- a/src/managementgroups/azext_managementgroups/tests/latest/recordings/test_create_delete_group_managementgroup.yaml +++ /dev/null @@ -1,587 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2F6b2064b9-34bd-46e6-9092-52f2dd5f7fc0%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: {string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/.well-known/openid-configuration"}'} - headers: - access-control-allow-methods: ['GET, OPTIONS'] - access-control-allow-origin: ['*'] - cache-control: [private] - content-length: ['131'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:03:21 GMT'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - server: [Microsoft-IIS/10.0] - set-cookie: [esctx=AQABAAAAAABHh4kmS_aKT5XrjzxRAtHz4WyxRWIkKGxdQ-qM37PB3ISexUn0mM5GLKx_xe9Zd0sTedrAQlVCk5YcXoM4K4Ihexssb2SX2tYBXWY66e5QHiiEugqAYmk3-PG2pkb7qTFrE0nXlhtABRNoGVAj2dXzqElgwTOG7wr3bKI4z93-vtAWT_HvuVzIzu5VC5n2pHsgAA; - domain=.login.windows.net; path=/; secure; HttpOnly, x-ms-gateway-slice=corp; - path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -- request: - body: grant_type=client_credentials&client_id=98eaff87-4e5d-4e48-8dad-4bd2df8bd01a&resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_secret=ManangementGroupServicePrincipal%40123 - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['183'] - User-Agent: [python-requests/2.18.4] - content-type: [application/x-www-form-urlencoded] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: POST - uri: https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/oauth2/token - response: - body: {string: '{"token_type":"Bearer","expires_in":"3600","ext_expires_in":"262800","expires_on":"1518473002","not_before":"1518469102","resource":"https://management.core.windows.net/","access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSIsImtpZCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsImlhdCI6MTUxODQ2OTEwMiwibmJmIjoxNTE4NDY5MTAyLCJleHAiOjE1MTg0NzMwMDIsImFpbyI6IjQyUmdZSGdjcXhSd25NSGtQL2NjRStsYTF5Qm1BQT09IiwiYXBwaWQiOiI5OGVhZmY4Ny00ZTVkLTRlNDgtOGRhZC00YmQyZGY4YmQwMWEiLCJhcHBpZGFjciI6IjEiLCJlX2V4cCI6MjYyODAwLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsIm9pZCI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInN1YiI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInRpZCI6IjZiMjA2NGI5LTM0YmQtNDZlNi05MDkyLTUyZjJkZDVmN2ZjMCIsInV0aSI6IkZIZjBjX0dPWkVTdVZyWDFLTTBCQUEiLCJ2ZXIiOiIxLjAifQ.i2tPO-Qo0HRj1qkGMEsN8w1V9zwALt1fwEVP-3Ib7Dizc-MlhNPKYfRprtlcHkaDXUlRC-kfzt1a8CVCvvHLdKciYzqYv704i-Bjj9yBwwvwGPNu1AWnSuP5hVRqdVOVINGt0i76uNkTLxcvHmeOvQOOfBN5NKM3RKCnwck_ccTI13uJGYKLQdQyI8oEEIUJA47O8iGH_LtE0-ZcspqlWnOCEQNG6B2_E9m2IyYyjlZcCTVBF5ymJ0rvCSwntMarvENRg_T3ig9AXhI2vdIqpU-x90rCuqS-G8uNu2lf0LCpMB4LsRjRIY9k4vtnpKtBfLB0iUH4i7EE0ns9d48fzw"}'} - headers: - cache-control: ['no-cache, no-store'] - content-length: ['1387'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:03:21 GMT'] - expires: ['-1'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - pragma: [no-cache] - server: [Microsoft-IIS/10.0] - set-cookie: [stsservicecookie=estsppe; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-clitelem: ['1,0,0,,'] - 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'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 - msrest_azure/0.4.21 resourcemanagementclient/1.3.0rc1 Azure-SDK-For-Python - AZURECLI/2.0.27] - accept-language: [en-US] - method: POST - uri: https://api-dogfood.resources.windows-int.net/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-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1033'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:03: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: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2F6b2064b9-34bd-46e6-9092-52f2dd5f7fc0%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: {string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/.well-known/openid-configuration"}'} - headers: - access-control-allow-methods: ['GET, OPTIONS'] - access-control-allow-origin: ['*'] - cache-control: [private] - content-length: ['131'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:03:32 GMT'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - server: [Microsoft-IIS/10.0] - set-cookie: [esctx=AQABAAAAAABHh4kmS_aKT5XrjzxRAtHzi9akmJUT4cLcrsV9c6RUAT4v2yqACQvWkacsfhBaiKUDbv6-21npOk02-PZSWfAJp8jnpUNwoQVzy1HkjZJ77S-DHCRZmPaPEUxZoFq5scYQQRy2_BF7RebmQAPIM9fjeRJX2iK_2SbJa69d0knRmqo1dVxOjOhqWheHZRlKZscgAA; - domain=.login.windows.net; path=/; secure; HttpOnly, x-ms-gateway-slice=corp; - path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -- request: - body: grant_type=client_credentials&client_id=98eaff87-4e5d-4e48-8dad-4bd2df8bd01a&resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_secret=ManangementGroupServicePrincipal%40123 - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['183'] - User-Agent: [python-requests/2.18.4] - content-type: [application/x-www-form-urlencoded] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: POST - uri: https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/oauth2/token - response: - body: {string: '{"token_type":"Bearer","expires_in":"3600","ext_expires_in":"262800","expires_on":"1518473013","not_before":"1518469113","resource":"https://management.core.windows.net/","access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSIsImtpZCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsImlhdCI6MTUxODQ2OTExMywibmJmIjoxNTE4NDY5MTEzLCJleHAiOjE1MTg0NzMwMTMsImFpbyI6IjQyUmdZQ2pYV1JueEtkUWswOFlxL2RZQjc0VFRBQT09IiwiYXBwaWQiOiI5OGVhZmY4Ny00ZTVkLTRlNDgtOGRhZC00YmQyZGY4YmQwMWEiLCJhcHBpZGFjciI6IjEiLCJlX2V4cCI6MjYyODAwLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsIm9pZCI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInN1YiI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInRpZCI6IjZiMjA2NGI5LTM0YmQtNDZlNi05MDkyLTUyZjJkZDVmN2ZjMCIsInV0aSI6IlJydDZvcXA2TFVpTVBqX3owZDhCQUEiLCJ2ZXIiOiIxLjAifQ.PsnaDHgMJ07Rb56I3v2QaTw3fGg1040U1FR7E9UBHpOt4Ki82fv8wxT9LjoG7dpzEhFBpG_WdCguP5FDhk2g1TRLbqVNsNHgtfZ5PXKAU902qBiGjaSVmG2Je2yB51k4QlFu48kuwI_wmUhPTqjw5Ly5-jduz-2-ow1LWvEgc5u1MMzorjlcq2_9q1OwEGDyrnaLAlPS6J7NWd4tqmHeJUBKGwSwtgb8RFW4_B08Fn0lr3xWb8v5H5qREJ7icMwdecQHW2U25V9gg6bkG49z8qQ_7RQDhH6bV1-wCG-9Qzg_sOVp4OPqXoHoS9cA385xeA9MWXA71jZpYhKUu7p2IQ"}'} - headers: - cache-control: ['no-cache, no-store'] - content-length: ['1387'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:03:33 GMT'] - expires: ['-1'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - pragma: [no-cache] - server: [Microsoft-IIS/10.0] - set-cookie: [stsservicecookie=estsppe; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-clitelem: ['1,0,0,,'] - 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-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 - msrest_azure/0.4.21 resourcemanagementclient/1.3.0rc1 Azure-SDK-For-Python - AZURECLI/2.0.27] - accept-language: [en-US] - method: GET - uri: https://api-dogfood.resources.windows-int.net/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-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1033'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:03:34 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: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2F6b2064b9-34bd-46e6-9092-52f2dd5f7fc0%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: {string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/.well-known/openid-configuration"}'} - headers: - access-control-allow-methods: ['GET, OPTIONS'] - access-control-allow-origin: ['*'] - cache-control: [private] - content-length: ['131'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:03:34 GMT'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - server: [Microsoft-IIS/10.0] - set-cookie: [esctx=AQABAAAAAABHh4kmS_aKT5XrjzxRAtHzf-h239MOlYLE-RBE47_lgrbVYhdjprjjrVGDY_QyNt62UILv33c0scWFhY5WLopGCpnUuD-3d6klaZMk5gXZpVzPTX8NNBixIe09dUcYochazDe8PYNuy-OwX_0MprR9nVh47vwt15NY3AaeKTgIpUWEyiSEgKpqLsLEtUs1Rz8gAA; - domain=.login.windows.net; path=/; secure; HttpOnly, x-ms-gateway-slice=corp; - path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -- request: - body: grant_type=client_credentials&client_id=98eaff87-4e5d-4e48-8dad-4bd2df8bd01a&resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_secret=ManangementGroupServicePrincipal%40123 - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['183'] - User-Agent: [python-requests/2.18.4] - content-type: [application/x-www-form-urlencoded] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: POST - uri: https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/oauth2/token - response: - body: {string: '{"token_type":"Bearer","expires_in":"3599","ext_expires_in":"262800","expires_on":"1518473015","not_before":"1518469115","resource":"https://management.core.windows.net/","access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSIsImtpZCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsImlhdCI6MTUxODQ2OTExNSwibmJmIjoxNTE4NDY5MTE1LCJleHAiOjE1MTg0NzMwMTUsImFpbyI6IjQyUmdZR0RMcWp3a1hxR1Z6dU4wL1BNWkU2TXVBQT09IiwiYXBwaWQiOiI5OGVhZmY4Ny00ZTVkLTRlNDgtOGRhZC00YmQyZGY4YmQwMWEiLCJhcHBpZGFjciI6IjEiLCJlX2V4cCI6MjYyODAwLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsIm9pZCI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInN1YiI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInRpZCI6IjZiMjA2NGI5LTM0YmQtNDZlNi05MDkyLTUyZjJkZDVmN2ZjMCIsInV0aSI6IlFBdnlDWDhxNjBtOU1scGQ3cWNCQUEiLCJ2ZXIiOiIxLjAifQ.DD6Ab7LAUyKf8QP99LeTp3t-ZU3zA_6-T5QdVBGJDOrYXY0PJ7A39J4Oft52KseZnqg9vJeH2kTH87hbkZz6YUpBEa83g2ybr200EC9YDnswhsicekgJE_PGKyLrTEy8w0nooNEugz571r4XK2l99w4BIZh9ULqtmgCbtYiBNRwv6ldORIQNNHZh5wucifEZA-6LTQOEXubqrnPSIYMaUpFmuxPr1zz3L25gXsmpGrvvVTh_odn8vXvu4mve2xDAWFwXcNp_9aO8ZVQyUefmOjR92ZlpU-WHpFNYkr5PvmrC9S5eTL0ZHoyfRlsu8LzqVSkyByGJ59g0CoHCZTN11A"}'} - headers: - cache-control: ['no-cache, no-store'] - content-length: ['1387'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:03:34 GMT'] - expires: ['-1'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - pragma: [no-cache] - server: [Microsoft-IIS/10.0] - set-cookie: [stsservicecookie=estsppe; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-clitelem: ['1,0,0,,'] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -- request: - body: '{}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Cache-Control: [no-cache] - CommandName: [account management-group create] - Connection: [keep-alive] - Content-Length: ['2'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 - msrest_azure/0.4.21 azure-mgmt-managementgroups/2017-11-01-preview Azure-SDK-For-Python - AZURECLI/2.0.27] - accept-language: [en-US] - method: PUT - uri: https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/managementGroups/testclirandgroup?api-version=2017-11-01-preview - response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testclirandgroup","type":"/providers/Microsoft.Management/managementGroups","name":"testclirandgroup","properties":{"tenantId":"6b2064b9-34bd-46e6-9092-52f2dd5f7fc0","displayName":"testclirandgroup","details":{"version":2,"updatedTime":"2018-02-12T21:03:36.2117475Z","updatedBy":"8b8f2464-6ad0-4327-b9da-5cc8ac2c650d","parent":{"parentId":"/providers/Microsoft.Management/managementGroups/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0","displayName":"6b2064b9-34bd-46e6-9092-52f2dd5f7fc0"}}}}'} - headers: - cache-control: [no-cache] - content-length: ['539'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:03:40 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [5c7b120c-821d-459e-9444-883998deabfc] - 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.520] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-tenant-writes: ['1199'] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2F6b2064b9-34bd-46e6-9092-52f2dd5f7fc0%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: {string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/.well-known/openid-configuration"}'} - headers: - access-control-allow-methods: ['GET, OPTIONS'] - access-control-allow-origin: ['*'] - cache-control: [private] - content-length: ['131'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:03:40 GMT'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - server: [Microsoft-IIS/10.0] - set-cookie: [esctx=AQABAAAAAABHh4kmS_aKT5XrjzxRAtHzewNBPITrQUNJLnTC_dUGjSCcHtZz8UkE8FlOrSBISCAuIlx1DHKfufnGq2tb6955pROow1GcA9hFlf-A-HH4bkL-ihVNnYtcvEVg2T7WmQAQ4AMKfA0H9edQp4drW3vrBrMNhuVa_9UpnBONu4VhLXiYOmVxdgzr1varXcm78_ggAA; - domain=.login.windows.net; path=/; secure; HttpOnly, x-ms-gateway-slice=corp; - path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -- request: - body: grant_type=client_credentials&client_id=98eaff87-4e5d-4e48-8dad-4bd2df8bd01a&resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_secret=ManangementGroupServicePrincipal%40123 - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['183'] - User-Agent: [python-requests/2.18.4] - content-type: [application/x-www-form-urlencoded] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: POST - uri: https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/oauth2/token - response: - body: {string: '{"token_type":"Bearer","expires_in":"3599","ext_expires_in":"262800","expires_on":"1518473021","not_before":"1518469121","resource":"https://management.core.windows.net/","access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSIsImtpZCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsImlhdCI6MTUxODQ2OTEyMSwibmJmIjoxNTE4NDY5MTIxLCJleHAiOjE1MTg0NzMwMjEsImFpbyI6IjQyUmdZTkJKM0pBbXRYMlN1TytHdGpJMWk0M3pBQT09IiwiYXBwaWQiOiI5OGVhZmY4Ny00ZTVkLTRlNDgtOGRhZC00YmQyZGY4YmQwMWEiLCJhcHBpZGFjciI6IjEiLCJlX2V4cCI6MjYyODAwLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsIm9pZCI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInN1YiI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInRpZCI6IjZiMjA2NGI5LTM0YmQtNDZlNi05MDkyLTUyZjJkZDVmN2ZjMCIsInV0aSI6ImJMdjYxNko2OGt1ZHVQSEVBLTRCQUEiLCJ2ZXIiOiIxLjAifQ.WptK4Hh3dn3TGtUcDVpYDhXdjkjAlXZgycfuS8b48efRG6hWlAr0C1kFKy8oOo3353D4n-qsGhYYbM4drP-yg-i4gCM_i_lNeiuODYbmCbQY8nYo3VhX4bcOFdKh2vx5JhIa8wBqCnxWISH63r4XNzigjCQJmRQ09jOxOI6HQl7VLlaX5NyI1L0Dbz2ktHTY5af6QQv6asWYLR_Myi1HAFWSxEbbWuNZ76gtuPeN9UQAfuXnWdpAaqaXa6NX9t0dtLxsoVcLU8s-2gcDD4VbUbHG2Jjkx5wGT0SFY3kvL5TqZ-0dxgqNoTbwe5AoinJ9zxl58YUJgLeZZVdICXEikQ"}'} - headers: - cache-control: ['no-cache, no-store'] - content-length: ['1387'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:03:41 GMT'] - expires: ['-1'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - pragma: [no-cache] - server: [Microsoft-IIS/10.0] - set-cookie: [stsservicecookie=estsppe; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-clitelem: ['1,0,0,,'] - 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 delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 - msrest_azure/0.4.21 resourcemanagementclient/1.3.0rc1 Azure-SDK-For-Python - AZURECLI/2.0.27] - accept-language: [en-US] - method: POST - uri: https://api-dogfood.resources.windows-int.net/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-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1033'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:03: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: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2F6b2064b9-34bd-46e6-9092-52f2dd5f7fc0%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: {string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/.well-known/openid-configuration"}'} - headers: - access-control-allow-methods: ['GET, OPTIONS'] - access-control-allow-origin: ['*'] - cache-control: [private] - content-length: ['131'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:03:52 GMT'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - server: [Microsoft-IIS/10.0] - set-cookie: [esctx=AQABAAAAAABHh4kmS_aKT5XrjzxRAtHz8921RLMviyC-FN9SpYGeqA7fEIdiuYIb3zGsh4BpSfLt5KpstYOX3ayeArzyDBl4FaDnoBYwOLFebCaYrkEBNatCndiQypCTJhW-27YKWsdVa8cCcDseSGmUlghy6G2sHom6DBVWkNTowtr04aWu2jM18x45VRf4f2VzRMUZg60gAA; - domain=.login.windows.net; path=/; secure; HttpOnly, x-ms-gateway-slice=corp; - path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -- request: - body: grant_type=client_credentials&client_id=98eaff87-4e5d-4e48-8dad-4bd2df8bd01a&resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_secret=ManangementGroupServicePrincipal%40123 - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['183'] - User-Agent: [python-requests/2.18.4] - content-type: [application/x-www-form-urlencoded] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: POST - uri: https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/oauth2/token - response: - body: {string: '{"token_type":"Bearer","expires_in":"3600","ext_expires_in":"262800","expires_on":"1518473033","not_before":"1518469133","resource":"https://management.core.windows.net/","access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSIsImtpZCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsImlhdCI6MTUxODQ2OTEzMywibmJmIjoxNTE4NDY5MTMzLCJleHAiOjE1MTg0NzMwMzMsImFpbyI6IjQyUmdZRmpjTHZEMEw5ZFRvK0w3aDE4ZWZuWitHUUE9IiwiYXBwaWQiOiI5OGVhZmY4Ny00ZTVkLTRlNDgtOGRhZC00YmQyZGY4YmQwMWEiLCJhcHBpZGFjciI6IjEiLCJlX2V4cCI6MjYyODAwLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsIm9pZCI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInN1YiI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInRpZCI6IjZiMjA2NGI5LTM0YmQtNDZlNi05MDkyLTUyZjJkZDVmN2ZjMCIsInV0aSI6ImNNcjhYS3M3eVVXbzdDa0pCYkFCQUEiLCJ2ZXIiOiIxLjAifQ.hYnzCz1dn-UIvuJlRo4A-6Ev5W8ZJFrLxmPgHZS-EG8XG9WyffFhP8ZwJV9pQWz3tJarw5DmyOKhCvshDzpu6HnFpKxgh8x06szwRPe84yUGAAPR7NJJz3tZtyqk0sFJruzZsqvUVkl9d3rqzSOG1LS0UAJTUrmByRqBnpgCnpBsTIX80QPwbIuWZuBqFFaJurMo0A3boOtUfhcbLHh4XQMfX8d_lU8GZSAq9-7tRmCQ_toqyaLxintbu5ffKc3zLHBQ_h-MY2X18T6Bt2w8fh_R-X5Dz58By6loClWP_ulpWjNv4sX9J8hfoeKehrIhiRCgKkk1vBPSwl2iSIinHQ"}'} - headers: - cache-control: ['no-cache, no-store'] - content-length: ['1387'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:03:52 GMT'] - expires: ['-1'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - pragma: [no-cache] - server: [Microsoft-IIS/10.0] - set-cookie: [stsservicecookie=estsppe; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-clitelem: ['1,0,0,,'] - 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 delete] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 - msrest_azure/0.4.21 resourcemanagementclient/1.3.0rc1 Azure-SDK-For-Python - AZURECLI/2.0.27] - accept-language: [en-US] - method: GET - uri: https://api-dogfood.resources.windows-int.net/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-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1033'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:03: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: null - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2F6b2064b9-34bd-46e6-9092-52f2dd5f7fc0%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: {string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/.well-known/openid-configuration"}'} - headers: - access-control-allow-methods: ['GET, OPTIONS'] - access-control-allow-origin: ['*'] - cache-control: [private] - content-length: ['131'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:03:53 GMT'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - server: [Microsoft-IIS/10.0] - set-cookie: [esctx=AQABAAAAAABHh4kmS_aKT5XrjzxRAtHzB2G-h3t5JRro3luEUexYzfb7lilUBhRi2f6jgrOOTKq6RbnnyWFeOTrBm284mOsT7Yy8xy_6X6x7OtMlH5YSab343oXP5IPiNmQaZReQHsYDl-Lq-cOC6GSk85IWxqDIGo_8TFZKHOmV87QbutCd3VH4RxfotrHLumh3gJO1kBUgAA; - domain=.login.windows.net; path=/; secure; HttpOnly, x-ms-gateway-slice=corp; - path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -- request: - body: grant_type=client_credentials&client_id=98eaff87-4e5d-4e48-8dad-4bd2df8bd01a&resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_secret=ManangementGroupServicePrincipal%40123 - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['183'] - User-Agent: [python-requests/2.18.4] - content-type: [application/x-www-form-urlencoded] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: POST - uri: https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/oauth2/token - response: - body: {string: '{"token_type":"Bearer","expires_in":"3600","ext_expires_in":"262800","expires_on":"1518473034","not_before":"1518469134","resource":"https://management.core.windows.net/","access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSIsImtpZCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsImlhdCI6MTUxODQ2OTEzNCwibmJmIjoxNTE4NDY5MTM0LCJleHAiOjE1MTg0NzMwMzQsImFpbyI6IjQyUmdZUGdxbjZ5VnRuUDY4N3RHZnoyY0dEN2NBd0E9IiwiYXBwaWQiOiI5OGVhZmY4Ny00ZTVkLTRlNDgtOGRhZC00YmQyZGY4YmQwMWEiLCJhcHBpZGFjciI6IjEiLCJlX2V4cCI6MjYyODAwLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsIm9pZCI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInN1YiI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInRpZCI6IjZiMjA2NGI5LTM0YmQtNDZlNi05MDkyLTUyZjJkZDVmN2ZjMCIsInV0aSI6IlFBdnlDWDhxNjBtOU1scGRwcWdCQUEiLCJ2ZXIiOiIxLjAifQ.Y7z6SCa48kAC53S_NwtcKkh5MXdOB8pJUr7pJPvWln2gf_O-YaGqNX6WSNEQphZme_4-h1kGz4ijkwd23TnKPqb52950E9qrKh_mqL1m0DVKaPykoSZaT6cbtgK6uPtn8lWw5wLqtEtift4dWbGAJW7xIWi6BnMtdySLpOujcjPYaynHbV8T2gdGexCGexMK6J2SBYb2_61Hq8gA-zmKdlJq9LzPJ-A4ro4uIlXLMr3qZbT73-DZtz65Ma-XLR7CHnW8DkWi0aNrUzUNSDX4QBsIruCcuui4grGfCXrnd_w3jKxVqsLFe00M9-FGvFFdQPYBAF9_EmP-O6GDUDHI_g"}'} - headers: - cache-control: ['no-cache, no-store'] - content-length: ['1387'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:03:55 GMT'] - expires: ['-1'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - pragma: [no-cache] - server: [Microsoft-IIS/10.0] - set-cookie: [stsservicecookie=estsppe; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-clitelem: ['1,0,0,,'] - x-powered-by: [ASP.NET] - 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] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 - msrest_azure/0.4.21 azure-mgmt-managementgroups/2017-11-01-preview Azure-SDK-For-Python - AZURECLI/2.0.27] - accept-language: [en-US] - method: DELETE - uri: https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/managementGroups/testclirandgroup?api-version=2017-11-01-preview - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Mon, 12 Feb 2018 21:03:57 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [3900ebf6-82b6-4317-9f0e-1aaab1a2f0f6] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-aspnet-version: [4.0.30319] - x-ba-restapi: [1.0.3.520] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-tenant-writes: ['1199'] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -version: 1 diff --git a/src/managementgroups/azext_managementgroups/tests/latest/recordings/test_create_managementgroup.yaml b/src/managementgroups/azext_managementgroups/tests/latest/recordings/test_create_managementgroup.yaml deleted file mode 100644 index 891a5d52730..00000000000 --- a/src/managementgroups/azext_managementgroups/tests/latest/recordings/test_create_managementgroup.yaml +++ /dev/null @@ -1,296 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2F6b2064b9-34bd-46e6-9092-52f2dd5f7fc0%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: {string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/.well-known/openid-configuration"}'} - headers: - access-control-allow-methods: ['GET, OPTIONS'] - access-control-allow-origin: ['*'] - cache-control: [private] - content-length: ['131'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:03:58 GMT'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - server: [Microsoft-IIS/10.0] - set-cookie: [esctx=AQABAAAAAABHh4kmS_aKT5XrjzxRAtHztcDTbW2y6m8qFhveJUJDw0bz7RCgEI65udF98QKyfcFiUwx4rRypXv4pUVfw7Y-jHlMD6PXEPv8P-vRxZbrR4gdFe0rWEHLpdLH-rdt7hlfdKDujybmRWClJNdfUHfjrvq1nivSwlzQuoNju4WtQk95BzdBSp5U-83Dqfmmb_5wgAA; - domain=.login.windows.net; path=/; secure; HttpOnly, x-ms-gateway-slice=corp; - path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -- request: - body: grant_type=client_credentials&client_id=98eaff87-4e5d-4e48-8dad-4bd2df8bd01a&resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_secret=ManangementGroupServicePrincipal%40123 - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['183'] - User-Agent: [python-requests/2.18.4] - content-type: [application/x-www-form-urlencoded] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: POST - uri: https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/oauth2/token - response: - body: {string: '{"token_type":"Bearer","expires_in":"3599","ext_expires_in":"262800","expires_on":"1518473039","not_before":"1518469139","resource":"https://management.core.windows.net/","access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSIsImtpZCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsImlhdCI6MTUxODQ2OTEzOSwibmJmIjoxNTE4NDY5MTM5LCJleHAiOjE1MTg0NzMwMzksImFpbyI6IjQyUmdZUGplZUs5dFNVRHloT3FsNS9UU3YyOElBd0E9IiwiYXBwaWQiOiI5OGVhZmY4Ny00ZTVkLTRlNDgtOGRhZC00YmQyZGY4YmQwMWEiLCJhcHBpZGFjciI6IjEiLCJlX2V4cCI6MjYyODAwLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsIm9pZCI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInN1YiI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInRpZCI6IjZiMjA2NGI5LTM0YmQtNDZlNi05MDkyLTUyZjJkZDVmN2ZjMCIsInV0aSI6IlFBdnlDWDhxNjBtOU1scGQyNmdCQUEiLCJ2ZXIiOiIxLjAifQ.JtqKlcZWdXskINmbPQEdBYLep7TOlccuVDLsLupbLRcH6ge-oNRD_HmhsKZBotuidYm4qF-dhSZZOJaaitGl_sKVTCz0IE-RYk_yO6oAe9G5xQUMr51p2VuwzlviMX0h39HpTr0wRW6iyMrf2ZZBnfOwp4QmApOVVvXIPY_XVqMr3ht6oNJF83EMEid-eNGqE2h_ubr4PtQN_HgE6hFUztoyo6q1FlTtQL8EkLdxcmhkTuam-RMvHSvJWSY4hV337uwlc-SsRWnF1wvSTguWEmWSRKoSZo9VMqmEeNC5jhsMz1zj4FkiLUZ2UA6tWHSxCfbRXrP6sZI1aO31ShInRw"}'} - headers: - cache-control: ['no-cache, no-store'] - content-length: ['1387'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:03:58 GMT'] - expires: ['-1'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - pragma: [no-cache] - server: [Microsoft-IIS/10.0] - set-cookie: [stsservicecookie=estsppe; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-clitelem: ['1,0,0,,'] - 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'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 - msrest_azure/0.4.21 resourcemanagementclient/1.3.0rc1 Azure-SDK-For-Python - AZURECLI/2.0.27] - accept-language: [en-US] - method: POST - uri: https://api-dogfood.resources.windows-int.net/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-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1033'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:04: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: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2F6b2064b9-34bd-46e6-9092-52f2dd5f7fc0%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: {string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/.well-known/openid-configuration"}'} - headers: - access-control-allow-methods: ['GET, OPTIONS'] - access-control-allow-origin: ['*'] - cache-control: [private] - content-length: ['131'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:04:10 GMT'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - server: [Microsoft-IIS/10.0] - set-cookie: [esctx=AQABAAAAAABHh4kmS_aKT5XrjzxRAtHz8VGlP-VJ4_ABIEZey1wgsT1TBNCRuQoHP_1JvXgiYQ_mP7gD6EPelsbvCisTmZGV_G4s_Rb3WZvw7HEon1VB96WMM3Y-7bIUjhwEzEoKMQUhrQMeUo4cbOLmvVQDXTye93s1r3BBr7UyrnRO5rUN2gjs9rfrBpRGsz-sa0vMSYggAA; - domain=.login.windows.net; path=/; secure; HttpOnly, x-ms-gateway-slice=corp; - path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -- request: - body: grant_type=client_credentials&client_id=98eaff87-4e5d-4e48-8dad-4bd2df8bd01a&resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_secret=ManangementGroupServicePrincipal%40123 - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['183'] - User-Agent: [python-requests/2.18.4] - content-type: [application/x-www-form-urlencoded] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: POST - uri: https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/oauth2/token - response: - body: {string: '{"token_type":"Bearer","expires_in":"3600","ext_expires_in":"262800","expires_on":"1518473051","not_before":"1518469151","resource":"https://management.core.windows.net/","access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSIsImtpZCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsImlhdCI6MTUxODQ2OTE1MSwibmJmIjoxNTE4NDY5MTUxLCJleHAiOjE1MTg0NzMwNTEsImFpbyI6IjQyUmdZT0E4cWJ6cFJ4cFRSRU5KLzZZNzAvTytBQUE9IiwiYXBwaWQiOiI5OGVhZmY4Ny00ZTVkLTRlNDgtOGRhZC00YmQyZGY4YmQwMWEiLCJhcHBpZGFjciI6IjEiLCJlX2V4cCI6MjYyODAwLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsIm9pZCI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInN1YiI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInRpZCI6IjZiMjA2NGI5LTM0YmQtNDZlNi05MDkyLTUyZjJkZDVmN2ZjMCIsInV0aSI6IlA3dUd4TnQtYzBHWGx2b0N0YlVCQUEiLCJ2ZXIiOiIxLjAifQ.TfsW7E7zp8yEQjiY4r6dBku0n1zIL-niP4tnhmQQWsDJBhP06vLBKlbS4Vol2DbLLf2t_KLIo3kKkstxEEaEa2k-4rsC60qDIBP_s_OFgRNLGDsBGRJPFNlPy_63briCykTiHPP5Uoqy5K1xQLkPRaQHJVKWuxIucS6elIEe6gCRFwTN1lL_1mCvbtW0ofEY64m_cUjWwvEqBNfVSkqeWQeBExElutfWsYLPuc2VOXcjsBV8a53gsy0KvgQbvB0KbvlVosWXOUAyFQmdgHuEFRra8LL6P12OCLfm5SULrNVCQ1pcpiFJAmfkujsko5tr-DbSAw-TvkUfSPpW_k47Jg"}'} - headers: - cache-control: ['no-cache, no-store'] - content-length: ['1387'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:04:11 GMT'] - expires: ['-1'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - pragma: [no-cache] - server: [Microsoft-IIS/10.0] - set-cookie: [stsservicecookie=estsppe; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-clitelem: ['1,0,0,,'] - 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-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 - msrest_azure/0.4.21 resourcemanagementclient/1.3.0rc1 Azure-SDK-For-Python - AZURECLI/2.0.27] - accept-language: [en-US] - method: GET - uri: https://api-dogfood.resources.windows-int.net/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-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1033'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:04:11 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: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2F6b2064b9-34bd-46e6-9092-52f2dd5f7fc0%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: {string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/.well-known/openid-configuration"}'} - headers: - access-control-allow-methods: ['GET, OPTIONS'] - access-control-allow-origin: ['*'] - cache-control: [private] - content-length: ['131'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:04:11 GMT'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - server: [Microsoft-IIS/10.0] - set-cookie: [esctx=AQABAAAAAABHh4kmS_aKT5XrjzxRAtHzfu4N7z_1E3KprWG3O0r-jZiXsHAcGyP0Dt6An6UBxitTPiU1Ki6cspztLmJSa4m-KcSs4W5zLeDuN_K00kzsNk4srApnbYQqHb7qSUOKtzccw5vjtkaotyIJGE2PblGWefX2QtQdIEDHsCWkKS8wE_1Tw7o7FKvE2PZsrW0D5ckgAA; - domain=.login.windows.net; path=/; secure; HttpOnly, x-ms-gateway-slice=corp; - path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -- request: - body: grant_type=client_credentials&client_id=98eaff87-4e5d-4e48-8dad-4bd2df8bd01a&resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_secret=ManangementGroupServicePrincipal%40123 - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['183'] - User-Agent: [python-requests/2.18.4] - content-type: [application/x-www-form-urlencoded] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: POST - uri: https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/oauth2/token - response: - body: {string: '{"token_type":"Bearer","expires_in":"3599","ext_expires_in":"262800","expires_on":"1518473052","not_before":"1518469152","resource":"https://management.core.windows.net/","access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSIsImtpZCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsImlhdCI6MTUxODQ2OTE1MiwibmJmIjoxNTE4NDY5MTUyLCJleHAiOjE1MTg0NzMwNTIsImFpbyI6IjQyUmdZRERYRDYxWUxWYnFaWjR1eFhwMVcwQWJBQT09IiwiYXBwaWQiOiI5OGVhZmY4Ny00ZTVkLTRlNDgtOGRhZC00YmQyZGY4YmQwMWEiLCJhcHBpZGFjciI6IjEiLCJlX2V4cCI6MjYyODAwLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsIm9pZCI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInN1YiI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInRpZCI6IjZiMjA2NGI5LTM0YmQtNDZlNi05MDkyLTUyZjJkZDVmN2ZjMCIsInV0aSI6ImVfRkhCZ3Atc1VDeExncGh3TGdCQUEiLCJ2ZXIiOiIxLjAifQ.be9xUUXSmmCL3fy3OKqExKHvPo8HFQkkMgn8baRauwTom2a9prxYAozASDprZniUuT0NDOCCQf7KobKSQZzVoO7Uc5_KysZ5MSVufeQ2XLzJ3ZRot2pKVefbHimET_sKINnXhqLa1KLOpoqcuWQ5g-KLFARhLEyBKFtRMIc-br-2eoiqxvl_ExtnmvpkqJ8FM9GS6x2UpMwi6DTL2qlik-j_tdGfycBTPWevdKJTFBAv9uamvNyPyq0Z4pl6ruig0KT1Eh3nvCm-j-q3rKh9-i1tqytLbLVkWWz67DYYo5EhkKHwTT6oSyVUN3ROJfWK5QHCJNtaEOebTtg6nKLsXA"}'} - headers: - cache-control: ['no-cache, no-store'] - content-length: ['1387'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:04:11 GMT'] - expires: ['-1'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - pragma: [no-cache] - server: [Microsoft-IIS/10.0] - set-cookie: [stsservicecookie=estsppe; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-clitelem: ['1,0,0,,'] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -- request: - body: '{}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Cache-Control: [no-cache] - CommandName: [account management-group create] - Connection: [keep-alive] - Content-Length: ['2'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 - msrest_azure/0.4.21 azure-mgmt-managementgroups/2017-11-01-preview Azure-SDK-For-Python - AZURECLI/2.0.27] - accept-language: [en-US] - method: PUT - uri: https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/managementGroups/testcligroup?api-version=2017-11-01-preview - response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"6b2064b9-34bd-46e6-9092-52f2dd5f7fc0","displayName":"testcligroup","details":{"version":4,"updatedTime":"2018-02-12T21:04:12.8700268Z","updatedBy":"8b8f2464-6ad0-4327-b9da-5cc8ac2c650d","parent":{"parentId":"/providers/Microsoft.Management/managementGroups/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0","displayName":"6b2064b9-34bd-46e6-9092-52f2dd5f7fc0"}}}}'} - headers: - cache-control: [no-cache] - content-length: ['527'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:04:16 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [115791ac-2025-4ec2-8a1c-f00aa5d262c9] - 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.520] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-tenant-writes: ['1198'] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -version: 1 diff --git a/src/managementgroups/azext_managementgroups/tests/latest/recordings/test_create_managementgroup_with_displayname.yaml b/src/managementgroups/azext_managementgroups/tests/latest/recordings/test_create_managementgroup_with_displayname.yaml deleted file mode 100644 index bd701fdf477..00000000000 --- a/src/managementgroups/azext_managementgroups/tests/latest/recordings/test_create_managementgroup_with_displayname.yaml +++ /dev/null @@ -1,296 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2F6b2064b9-34bd-46e6-9092-52f2dd5f7fc0%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: {string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/.well-known/openid-configuration"}'} - headers: - access-control-allow-methods: ['GET, OPTIONS'] - access-control-allow-origin: ['*'] - cache-control: [private] - content-length: ['131'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:04:17 GMT'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - server: [Microsoft-IIS/10.0] - set-cookie: [esctx=AQABAAAAAABHh4kmS_aKT5XrjzxRAtHzGZ9QXDu0HaaDs4-g7RTId7ORhmSHmlGmFT8k6b1-fJrjYSWcEcTQYlaXBTpueDdxgtnXrZFKVY6xG4QTVLHewJMsWz5edLS1byorVikrh1sjCMxKXYQ70TEGfobtKld23v_SAJzNLBsIc_uoytvyCdsQsyShscN9wec3gofFfAggAA; - domain=.login.windows.net; path=/; secure; HttpOnly, x-ms-gateway-slice=corp; - path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -- request: - body: grant_type=client_credentials&client_id=98eaff87-4e5d-4e48-8dad-4bd2df8bd01a&resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_secret=ManangementGroupServicePrincipal%40123 - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['183'] - User-Agent: [python-requests/2.18.4] - content-type: [application/x-www-form-urlencoded] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: POST - uri: https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/oauth2/token - response: - body: {string: '{"token_type":"Bearer","expires_in":"3599","ext_expires_in":"262800","expires_on":"1518473057","not_before":"1518469157","resource":"https://management.core.windows.net/","access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSIsImtpZCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsImlhdCI6MTUxODQ2OTE1NywibmJmIjoxNTE4NDY5MTU3LCJleHAiOjE1MTg0NzMwNTcsImFpbyI6IjQyUmdZTmo4YnRPNXBIb2wzZWZYbms0UXZXYnZCUUE9IiwiYXBwaWQiOiI5OGVhZmY4Ny00ZTVkLTRlNDgtOGRhZC00YmQyZGY4YmQwMWEiLCJhcHBpZGFjciI6IjEiLCJlX2V4cCI6MjYyODAwLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsIm9pZCI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInN1YiI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInRpZCI6IjZiMjA2NGI5LTM0YmQtNDZlNi05MDkyLTUyZjJkZDVmN2ZjMCIsInV0aSI6IlA3dUd4TnQtYzBHWGx2b0M1clVCQUEiLCJ2ZXIiOiIxLjAifQ.OvmG2ElKMNY3zFBOLlenBSJyEbfvk2siAvhTamdkj4FYwCVsNfAoJErbrlk0vKEyMsHmPDOqtmVjkbp4xTZo6pyh5Z48QbD84-sJ8UDF90Z0t_JZnX6lI3Q_Z1OxOG5micxJ6IWhmBehIT-uTEquHywlH1PpMNZi08AtuJwDuwdOlCDkbPsekG6DZRIB1b0Sw_gyWEhWO2pVaDFjRQ0sj8snZaIF6nlU5RECu48mObJmpdSdefwqDRwx5rrQ24Y93WlZFn7jVMGA5OanDEXUhoAX0RrcSlrVeTYN68NcO4gdNBoMrI5IA9sbKG3PWZ5B8WvrB7xC41Apletmm9vW4Q"}'} - headers: - cache-control: ['no-cache, no-store'] - content-length: ['1387'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:04:17 GMT'] - expires: ['-1'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - pragma: [no-cache] - server: [Microsoft-IIS/10.0] - set-cookie: [stsservicecookie=estsppe; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-clitelem: ['1,0,0,,'] - 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'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 - msrest_azure/0.4.21 resourcemanagementclient/1.3.0rc1 Azure-SDK-For-Python - AZURECLI/2.0.27] - accept-language: [en-US] - method: POST - uri: https://api-dogfood.resources.windows-int.net/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-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1033'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:04: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: ['1198'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2F6b2064b9-34bd-46e6-9092-52f2dd5f7fc0%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: {string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/.well-known/openid-configuration"}'} - headers: - access-control-allow-methods: ['GET, OPTIONS'] - access-control-allow-origin: ['*'] - cache-control: [private] - content-length: ['131'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:04:28 GMT'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - server: [Microsoft-IIS/10.0] - set-cookie: [esctx=AQABAAAAAABHh4kmS_aKT5XrjzxRAtHz-IaRtqJLk7SYuca6RLnKdgeRo0eIZr2zdgsg9bfpB9vXzhz86Cexxioy_LgZTA4HBt3vlgg0lqPWHCF90COFOBAhjh4jwolazSeT2usVj5rhrwqHILkgn8n5B7JL-AWQlUCMlse_VF0NZ31UiCMzn3u3bkTLxDKXJvjIdvMOwfkgAA; - domain=.login.windows.net; path=/; secure; HttpOnly, x-ms-gateway-slice=corp; - path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -- request: - body: grant_type=client_credentials&client_id=98eaff87-4e5d-4e48-8dad-4bd2df8bd01a&resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_secret=ManangementGroupServicePrincipal%40123 - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['183'] - User-Agent: [python-requests/2.18.4] - content-type: [application/x-www-form-urlencoded] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: POST - uri: https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/oauth2/token - response: - body: {string: '{"token_type":"Bearer","expires_in":"3600","ext_expires_in":"262800","expires_on":"1518473069","not_before":"1518469169","resource":"https://management.core.windows.net/","access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSIsImtpZCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsImlhdCI6MTUxODQ2OTE2OSwibmJmIjoxNTE4NDY5MTY5LCJleHAiOjE1MTg0NzMwNjksImFpbyI6IjQyUmdZRmk0bWkvaHljMjVuSWZqcExhdTlOd2hBUUE9IiwiYXBwaWQiOiI5OGVhZmY4Ny00ZTVkLTRlNDgtOGRhZC00YmQyZGY4YmQwMWEiLCJhcHBpZGFjciI6IjEiLCJlX2V4cCI6MjYyODAwLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsIm9pZCI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInN1YiI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInRpZCI6IjZiMjA2NGI5LTM0YmQtNDZlNi05MDkyLTUyZjJkZDVmN2ZjMCIsInV0aSI6IkZIZjBjX0dPWkVTdVZyWDFVODhCQUEiLCJ2ZXIiOiIxLjAifQ.izHDjYP1onNhNoIuqZ57Nf_FZMizIoFiC7XqPB-X3eqymfq4gDZxvcSy48oAP_Hi_m3hVw5rXER92dPD-5Ak9Z5RVj7afjWq3Qy18jBWKd3En3kqWaLe01ZdKi9eeeCfZJHosb7OC5jlnlA6j-Ug9AATTD87TPIDVVL4799D8uha5MwQ76AjamOr-xKlyZ04T1Cla79_mr-DWSNYrufzVAaNP-b3P_StZGptD7546n4A7FFtjKU6-RkU-eZ-cvH_xlrzLLgKyRjY6ZrqOIZwQ9H_GGlnpd-6lTGEVIKJEfj8R7um-CnbytSp-BXGeEc2irGYDph1oQ0xrYuvXuPmCg"}'} - headers: - cache-control: ['no-cache, no-store'] - content-length: ['1387'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:04:29 GMT'] - expires: ['-1'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - pragma: [no-cache] - server: [Microsoft-IIS/10.0] - set-cookie: [stsservicecookie=estsppe; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-clitelem: ['1,0,0,,'] - 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-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 - msrest_azure/0.4.21 resourcemanagementclient/1.3.0rc1 Azure-SDK-For-Python - AZURECLI/2.0.27] - accept-language: [en-US] - method: GET - uri: https://api-dogfood.resources.windows-int.net/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-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1033'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:04: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: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2F6b2064b9-34bd-46e6-9092-52f2dd5f7fc0%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: {string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/.well-known/openid-configuration"}'} - headers: - access-control-allow-methods: ['GET, OPTIONS'] - access-control-allow-origin: ['*'] - cache-control: [private] - content-length: ['131'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:04:29 GMT'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - server: [Microsoft-IIS/10.0] - set-cookie: [esctx=AQABAAAAAABHh4kmS_aKT5XrjzxRAtHzVwjzV9rA3Pk8IGObcf1tKtZhUev3Bq-cTwZy3N1sUwe7C5s8v6A9xiJ2j9wIz7w-5Pp4pz8dGvE0UkMX7HzJVhdYRjzcTV_DwoyFXBH395aysmlroFGjDPmnQw7r-PG4l-KJzYhdud_QSvIrQcW0MAePaMInDxYAdK4qNXJf3b4gAA; - domain=.login.windows.net; path=/; secure; HttpOnly, x-ms-gateway-slice=corp; - path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -- request: - body: grant_type=client_credentials&client_id=98eaff87-4e5d-4e48-8dad-4bd2df8bd01a&resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_secret=ManangementGroupServicePrincipal%40123 - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['183'] - User-Agent: [python-requests/2.18.4] - content-type: [application/x-www-form-urlencoded] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: POST - uri: https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/oauth2/token - response: - body: {string: '{"token_type":"Bearer","expires_in":"3600","ext_expires_in":"262800","expires_on":"1518473070","not_before":"1518469170","resource":"https://management.core.windows.net/","access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSIsImtpZCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsImlhdCI6MTUxODQ2OTE3MCwibmJmIjoxNTE4NDY5MTcwLCJleHAiOjE1MTg0NzMwNzAsImFpbyI6IjQyUmdZSGdmNFhwWTZmRHh2Sm5wZTZZL3VMRzVGUUE9IiwiYXBwaWQiOiI5OGVhZmY4Ny00ZTVkLTRlNDgtOGRhZC00YmQyZGY4YmQwMWEiLCJhcHBpZGFjciI6IjEiLCJlX2V4cCI6MjYyODAwLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsIm9pZCI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInN1YiI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInRpZCI6IjZiMjA2NGI5LTM0YmQtNDZlNi05MDkyLTUyZjJkZDVmN2ZjMCIsInV0aSI6IlA3dUd4TnQtYzBHWGx2b0NSN1lCQUEiLCJ2ZXIiOiIxLjAifQ.JY2JGEYjv2w8E7OYRPxnLccinMRvDpQhhYiM3tJLWDKcxs7xHp-6aU3LjcrAz0XrV17aspoczqwQU8UrFGOkDby63zdptVZvbFkwjUknuHOZEI1IMs9v9e4fuUPDv_mpovLZanJ5DVfvmv5ltUvc83S7cO5m0upJYMNGkxUq8T2zQCUbDc8SWJleYlts2FhQA5lNdaz43nwnibxwE0tPyjiRBwEMasew2U7SGBKdXG0lqK5-ExIvoZl0RiqkvWGyzj940Yu94go-hOo6l_etq7jqCxPdfmoauoe95teJtCjUmF1s4ux-BbQp3HCGNiMB7tdZgHXwQeLSnYINtY-dYQ"}'} - headers: - cache-control: ['no-cache, no-store'] - content-length: ['1387'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:04:30 GMT'] - expires: ['-1'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - pragma: [no-cache] - server: [Microsoft-IIS/10.0] - set-cookie: [stsservicecookie=estsppe; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-clitelem: ['1,0,0,,'] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -- request: - body: '{"displayName": "TestCliDisplayName"}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Cache-Control: [no-cache] - CommandName: [account management-group create] - Connection: [keep-alive] - Content-Length: ['37'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 - msrest_azure/0.4.21 azure-mgmt-managementgroups/2017-11-01-preview Azure-SDK-For-Python - AZURECLI/2.0.27] - accept-language: [en-US] - method: PUT - uri: https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/managementGroups/testcligroup1?api-version=2017-11-01-preview - response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup1","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup1","properties":{"tenantId":"6b2064b9-34bd-46e6-9092-52f2dd5f7fc0","displayName":"TestCliDisplayName","details":{"version":5,"updatedTime":"2018-02-12T21:04:31.0948898Z","updatedBy":"8b8f2464-6ad0-4327-b9da-5cc8ac2c650d","parent":{"parentId":"/providers/Microsoft.Management/managementGroups/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0","displayName":"6b2064b9-34bd-46e6-9092-52f2dd5f7fc0"}}}}'} - headers: - cache-control: [no-cache] - content-length: ['535'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:04:33 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [ef214f65-baef-407c-99d9-7a7ec035ab7c] - 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.520] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-tenant-writes: ['1198'] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -version: 1 diff --git a/src/managementgroups/azext_managementgroups/tests/latest/recordings/test_create_managementgroup_with_displayname_and_parentid.yaml b/src/managementgroups/azext_managementgroups/tests/latest/recordings/test_create_managementgroup_with_displayname_and_parentid.yaml deleted file mode 100644 index 87f7dd0ea50..00000000000 --- a/src/managementgroups/azext_managementgroups/tests/latest/recordings/test_create_managementgroup_with_displayname_and_parentid.yaml +++ /dev/null @@ -1,296 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2F6b2064b9-34bd-46e6-9092-52f2dd5f7fc0%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: {string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/.well-known/openid-configuration"}'} - headers: - access-control-allow-methods: ['GET, OPTIONS'] - access-control-allow-origin: ['*'] - cache-control: [private] - content-length: ['131'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:04:34 GMT'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - server: [Microsoft-IIS/10.0] - set-cookie: [esctx=AQABAAAAAABHh4kmS_aKT5XrjzxRAtHz-e3lnb9hU4M8BYQ6Buv2jnijqxjt2Y0leByYnrdZGbmg_x3vTz3mBfwihv71lbD8TJdUkkFw4iny9aby7AJCVNxOVurphALzbAV0Y_L0sE_z5Mj03HsmC3hOffjSoFUmdyPE8ygMtJEdwmcRgkpKEEtDbTwdCMBvBbZJGdT9fWYgAA; - domain=.login.windows.net; path=/; secure; HttpOnly, x-ms-gateway-slice=corp; - path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -- request: - body: grant_type=client_credentials&client_id=98eaff87-4e5d-4e48-8dad-4bd2df8bd01a&resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_secret=ManangementGroupServicePrincipal%40123 - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['183'] - User-Agent: [python-requests/2.18.4] - content-type: [application/x-www-form-urlencoded] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: POST - uri: https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/oauth2/token - response: - body: {string: '{"token_type":"Bearer","expires_in":"3599","ext_expires_in":"262800","expires_on":"1518473075","not_before":"1518469175","resource":"https://management.core.windows.net/","access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSIsImtpZCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsImlhdCI6MTUxODQ2OTE3NSwibmJmIjoxNTE4NDY5MTc1LCJleHAiOjE1MTg0NzMwNzUsImFpbyI6IjQyUmdZRmpjTHZEMEw5ZFRvK0w3aDE4ZWZuWitHUUE9IiwiYXBwaWQiOiI5OGVhZmY4Ny00ZTVkLTRlNDgtOGRhZC00YmQyZGY4YmQwMWEiLCJhcHBpZGFjciI6IjEiLCJlX2V4cCI6MjYyODAwLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsIm9pZCI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInN1YiI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInRpZCI6IjZiMjA2NGI5LTM0YmQtNDZlNi05MDkyLTUyZjJkZDVmN2ZjMCIsInV0aSI6ImJMdjYxNko2OGt1ZHVQSEUtdThCQUEiLCJ2ZXIiOiIxLjAifQ.evQhzXr3mQWH52ph0dD7SZTWm1rt_QBrcpXUv_sD_-tUcb6nidOdYvnaA3G8LeOt7Mk1i86k1qPm37RV6pB5wprjIvpNRqz-_3Ty_mMlkhBKPmB8RIvWHSmC8XtFrKzcdOLfy3C-Hr8QbOgvP1fe6vCk57wykkjwu_Vy0ESsCazCopOwvX2ofvdPdYW6PCQz74MfE9D3j5DdMsuDnDE7Ug5Xe9GK-iwYWZH5K2mY19YlT1XbFxnysVYaikX9yd_sEfB3cshSBZJebu6o6077f2tWoyB5-4pcUVPN6M7Iw9lrIm3IPH-j8y0F9O6QSv3WQWqOWIonz3fVX7fGTBeAkg"}'} - headers: - cache-control: ['no-cache, no-store'] - content-length: ['1387'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:04:34 GMT'] - expires: ['-1'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - pragma: [no-cache] - server: [Microsoft-IIS/10.0] - set-cookie: [stsservicecookie=estsppe; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-clitelem: ['1,0,0,,'] - 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'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 - msrest_azure/0.4.21 resourcemanagementclient/1.3.0rc1 Azure-SDK-For-Python - AZURECLI/2.0.27] - accept-language: [en-US] - method: POST - uri: https://api-dogfood.resources.windows-int.net/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-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1033'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:04: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: ['1198'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2F6b2064b9-34bd-46e6-9092-52f2dd5f7fc0%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: {string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/.well-known/openid-configuration"}'} - headers: - access-control-allow-methods: ['GET, OPTIONS'] - access-control-allow-origin: ['*'] - cache-control: [private] - content-length: ['131'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:04:46 GMT'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - server: [Microsoft-IIS/10.0] - set-cookie: [esctx=AQABAAAAAABHh4kmS_aKT5XrjzxRAtHzlVLoR8G5QrSRC4NdQ6fWRPhl82t0aAf-HIZF2A8pzYSTgr-FEuQjzpvtP1MmCkMahEMKQE-plON2jZbXAY4ssTZ7-YJS9G6-OuyLMCaNa_Fe85nx5u0m01dJvbbbogsZ5UIJHNzZalcoTLQV0UPRbCILQrwZ1Jyq-fXfVlgtJWYgAA; - domain=.login.windows.net; path=/; secure; HttpOnly, x-ms-gateway-slice=corp; - path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -- request: - body: grant_type=client_credentials&client_id=98eaff87-4e5d-4e48-8dad-4bd2df8bd01a&resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_secret=ManangementGroupServicePrincipal%40123 - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['183'] - User-Agent: [python-requests/2.18.4] - content-type: [application/x-www-form-urlencoded] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: POST - uri: https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/oauth2/token - response: - body: {string: '{"token_type":"Bearer","expires_in":"3600","ext_expires_in":"262800","expires_on":"1518473086","not_before":"1518469186","resource":"https://management.core.windows.net/","access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSIsImtpZCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsImlhdCI6MTUxODQ2OTE4NiwibmJmIjoxNTE4NDY5MTg2LCJleHAiOjE1MTg0NzMwODYsImFpbyI6IjQyUmdZQ2cxVVg2NVYvcEpxRnhiOFNSaHUvcEZBQT09IiwiYXBwaWQiOiI5OGVhZmY4Ny00ZTVkLTRlNDgtOGRhZC00YmQyZGY4YmQwMWEiLCJhcHBpZGFjciI6IjEiLCJlX2V4cCI6MjYyODAwLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsIm9pZCI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInN1YiI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInRpZCI6IjZiMjA2NGI5LTM0YmQtNDZlNi05MDkyLTUyZjJkZDVmN2ZjMCIsInV0aSI6Imd5V3ZrOVliVmtTQy1nTlRjcllCQUEiLCJ2ZXIiOiIxLjAifQ.V70oXleJy334OiR5Yk_ER_Tc7-yU3E3EKcLdCzWhBtekbh6oIeff0A-8gUjR6U4ikMd805TvvHRkWStSG809AGZmks9AB8POv5V5fCcuCYwayuIG3PSz1mk_eIMxnfGoyLqajrqKpPy-U0QVnhh5VBURqQ362rd2gjceI7fIO5f8GNkPzwUOg0NID3jo6Ug_d5SqeFEvrv12N8O123NuLTitnNGXb8Xyu2fBT4QWcqavB1lo1YHKNjEm8iqa5s80Cm0iHLOp8X-iZ9pY2TSQmietIaCgkMalBjUcthEPnrxXHJv1l59R_wfHvSJynWxU5A4505tZ07FFpgVTkptgJQ"}'} - headers: - cache-control: ['no-cache, no-store'] - content-length: ['1387'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:04:46 GMT'] - expires: ['-1'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - pragma: [no-cache] - server: [Microsoft-IIS/10.0] - set-cookie: [stsservicecookie=estsppe; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-clitelem: ['1,0,0,,'] - 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-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 - msrest_azure/0.4.21 resourcemanagementclient/1.3.0rc1 Azure-SDK-For-Python - AZURECLI/2.0.27] - accept-language: [en-US] - method: GET - uri: https://api-dogfood.resources.windows-int.net/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-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1033'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:04: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: null - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2F6b2064b9-34bd-46e6-9092-52f2dd5f7fc0%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: {string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/.well-known/openid-configuration"}'} - headers: - access-control-allow-methods: ['GET, OPTIONS'] - access-control-allow-origin: ['*'] - cache-control: [private] - content-length: ['131'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:04:47 GMT'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - server: [Microsoft-IIS/10.0] - set-cookie: [esctx=AQABAAAAAABHh4kmS_aKT5XrjzxRAtHzAUowdeVfRgXh14To2qSpOrfS8yNxI0o0WYPcJAUa13-DboK6QVr3mBjHofvZytarT8GpuAVBsbeNEQrUIb1Hi3IZrfLAF5Hb3oyYhBjvt6dUiIRHmfBBWsNpfmzXtKw6xFyq4thv8nQfV8GmRXs7IgiUhZAFiitxQ2XhUTbnbcsgAA; - domain=.login.windows.net; path=/; secure; HttpOnly, x-ms-gateway-slice=corp; - path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -- request: - body: grant_type=client_credentials&client_id=98eaff87-4e5d-4e48-8dad-4bd2df8bd01a&resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_secret=ManangementGroupServicePrincipal%40123 - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['183'] - User-Agent: [python-requests/2.18.4] - content-type: [application/x-www-form-urlencoded] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: POST - uri: https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/oauth2/token - response: - body: {string: '{"token_type":"Bearer","expires_in":"3599","ext_expires_in":"262800","expires_on":"1518473088","not_before":"1518469188","resource":"https://management.core.windows.net/","access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSIsImtpZCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsImlhdCI6MTUxODQ2OTE4OCwibmJmIjoxNTE4NDY5MTg4LCJleHAiOjE1MTg0NzMwODgsImFpbyI6IjQyUmdZTkJKM0pBbXRYMlN1TytHdGpJMWk0M3pBQT09IiwiYXBwaWQiOiI5OGVhZmY4Ny00ZTVkLTRlNDgtOGRhZC00YmQyZGY4YmQwMWEiLCJhcHBpZGFjciI6IjEiLCJlX2V4cCI6MjYyODAwLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsIm9pZCI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInN1YiI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInRpZCI6IjZiMjA2NGI5LTM0YmQtNDZlNi05MDkyLTUyZjJkZDVmN2ZjMCIsInV0aSI6IlA3dUd4TnQtYzBHWGx2b0NyTFlCQUEiLCJ2ZXIiOiIxLjAifQ.DVzYMq9u-Nxa_3iYGlxrGA3uK3Pig78dyKXe4G1eWOrCrV3k4yl0yJ-_J_uqFa4z1vr27lXSWA7v9Vro_xzNBRlt-O31Mh-qOLMjl4Vi3mLLELZ6BNRNmZCKDmFNzdgqEETzQKT7Cf6CuEfGetgoS_je9SFBxhKfh5vZyx2_aYMdIAOxOXCADytrRw3Huo_a6GMKB8Jn2Bf69AJoacjjxuAYk-DvkDBuJYEdIRZaxZCM-sbwxdE9AQ7E3DvmMlWk2UQAxXusC6evb3tIGHnHlu9Wtl1vp_XnAGIQqSub7sADXU59asNrNIl6HpcrBh8yQVJs6XYQC03Kw8RngvUiwg"}'} - headers: - cache-control: ['no-cache, no-store'] - content-length: ['1387'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:04:48 GMT'] - expires: ['-1'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - pragma: [no-cache] - server: [Microsoft-IIS/10.0] - set-cookie: [stsservicecookie=estsppe; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-clitelem: ['1,0,0,,'] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -- request: - body: '{"displayName": "TestCliGroupChild2Display", "parentId": "/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: ['121'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 - msrest_azure/0.4.21 azure-mgmt-managementgroups/2017-11-01-preview Azure-SDK-For-Python - AZURECLI/2.0.27] - accept-language: [en-US] - method: PUT - uri: https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/managementGroups/testcligroupchild2?api-version=2017-11-01-preview - response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild2","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroupchild2","properties":{"tenantId":"6b2064b9-34bd-46e6-9092-52f2dd5f7fc0","displayName":"TestCliGroupChild2Display","details":{"version":8,"updatedTime":"2018-02-12T21:04:49.4413177Z","updatedBy":"8b8f2464-6ad0-4327-b9da-5cc8ac2c650d","parent":{"parentId":"/providers/Microsoft.Management/managementGroups/testcligroup","displayName":"testcligroup"}}}}'} - headers: - cache-control: [no-cache] - content-length: ['504'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:04:51 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [02789d96-2147-4c65-a417-97969ff2d545] - 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.520] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-tenant-writes: ['1197'] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -version: 1 diff --git a/src/managementgroups/azext_managementgroups/tests/latest/recordings/test_create_managementgroup_with_parentid.yaml b/src/managementgroups/azext_managementgroups/tests/latest/recordings/test_create_managementgroup_with_parentid.yaml deleted file mode 100644 index b6bdf8982f0..00000000000 --- a/src/managementgroups/azext_managementgroups/tests/latest/recordings/test_create_managementgroup_with_parentid.yaml +++ /dev/null @@ -1,296 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2F6b2064b9-34bd-46e6-9092-52f2dd5f7fc0%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: {string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/.well-known/openid-configuration"}'} - headers: - access-control-allow-methods: ['GET, OPTIONS'] - access-control-allow-origin: ['*'] - cache-control: [private] - content-length: ['131'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:04:52 GMT'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - server: [Microsoft-IIS/10.0] - set-cookie: [esctx=AQABAAAAAABHh4kmS_aKT5XrjzxRAtHzq-Omt7u5B_uyABOAsVSGmM-a8TCJLPgh6W4ue-Zbr0Efok0kkxVU7nO-59gWxb5kGZeM5IspvqoAfUZgKZwlIY3LK869TV4eQ4d4B1Z5PZz3pSFaJWm88bl-S3SwKB4kbkyPV4GngGNmPdMNdOtIDm3Umyn0iWaT_8YPfOBT6bUgAA; - domain=.login.windows.net; path=/; secure; HttpOnly, x-ms-gateway-slice=corp; - path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -- request: - body: grant_type=client_credentials&client_id=98eaff87-4e5d-4e48-8dad-4bd2df8bd01a&resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_secret=ManangementGroupServicePrincipal%40123 - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['183'] - User-Agent: [python-requests/2.18.4] - content-type: [application/x-www-form-urlencoded] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: POST - uri: https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/oauth2/token - response: - body: {string: '{"token_type":"Bearer","expires_in":"3599","ext_expires_in":"262800","expires_on":"1518473093","not_before":"1518469193","resource":"https://management.core.windows.net/","access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSIsImtpZCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsImlhdCI6MTUxODQ2OTE5MywibmJmIjoxNTE4NDY5MTkzLCJleHAiOjE1MTg0NzMwOTMsImFpbyI6IjQyUmdZRmpjTHZEMEw5ZFRvK0w3aDE4ZWZuWitHUUE9IiwiYXBwaWQiOiI5OGVhZmY4Ny00ZTVkLTRlNDgtOGRhZC00YmQyZGY4YmQwMWEiLCJhcHBpZGFjciI6IjEiLCJlX2V4cCI6MjYyODAwLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsIm9pZCI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInN1YiI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInRpZCI6IjZiMjA2NGI5LTM0YmQtNDZlNi05MDkyLTUyZjJkZDVmN2ZjMCIsInV0aSI6IlFBdnlDWDhxNjBtOU1scGRocW9CQUEiLCJ2ZXIiOiIxLjAifQ.UaotWa1ZzOzmjoqOMw-BvrLyvwH-N4wsxUkvKN6_-YtEh6M2WyWo2Ut6S0886WEsHJDLcQzq9aeXlmXV0AM83rKp_bhgIgMfZRM5vbtnjzjv_ZUTfQ5Rv4DxwzptOBirNwz6xgUJbPGzYdVNCDc09LIJegOY97WdcJseBwydh09m8nfVjXt8weas6xRuFpLwmRRxk3fPl2j_EDGL1L7G0FxHCV7ouuw5APBqSpYQNDOEiqKcFngCg3_5EKTWzNe6AVUAfwf5OHxc08KaZ4H54NyMqvJ7yWuAozPJfN3EloSb9_ee0zp57o-1Bg8BEXY3JVtOa5rOoQWVlKfZTNmnqg"}'} - headers: - cache-control: ['no-cache, no-store'] - content-length: ['1387'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:04:53 GMT'] - expires: ['-1'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - pragma: [no-cache] - server: [Microsoft-IIS/10.0] - set-cookie: [stsservicecookie=estsppe; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-clitelem: ['1,0,0,,'] - 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'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 - msrest_azure/0.4.21 resourcemanagementclient/1.3.0rc1 Azure-SDK-For-Python - AZURECLI/2.0.27] - accept-language: [en-US] - method: POST - uri: https://api-dogfood.resources.windows-int.net/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-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1033'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:04: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: ['1197'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2F6b2064b9-34bd-46e6-9092-52f2dd5f7fc0%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: {string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/.well-known/openid-configuration"}'} - headers: - access-control-allow-methods: ['GET, OPTIONS'] - access-control-allow-origin: ['*'] - cache-control: [private] - content-length: ['131'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:05:05 GMT'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - server: [Microsoft-IIS/10.0] - set-cookie: [esctx=AQABAAAAAABHh4kmS_aKT5XrjzxRAtHzDayMLN1yozstTB82SDJ1wIsOR1nlgjmr07RZy323UhFBhOuyAN-jnFdbznj0QL1yOeOpQ_yuVOmE-yYkf8qzI52dMUImQed12RI2ok-txb7Go-aLYrzjy5PxHzHATlTs5Mr7MQiO07NcGhAwu2X8aKX9FxxyuU7Apo6Nv1zIdUQgAA; - domain=.login.windows.net; path=/; secure; HttpOnly, x-ms-gateway-slice=corp; - path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -- request: - body: grant_type=client_credentials&client_id=98eaff87-4e5d-4e48-8dad-4bd2df8bd01a&resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_secret=ManangementGroupServicePrincipal%40123 - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['183'] - User-Agent: [python-requests/2.18.4] - content-type: [application/x-www-form-urlencoded] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: POST - uri: https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/oauth2/token - response: - body: {string: '{"token_type":"Bearer","expires_in":"3599","ext_expires_in":"262800","expires_on":"1518473105","not_before":"1518469205","resource":"https://management.core.windows.net/","access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSIsImtpZCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsImlhdCI6MTUxODQ2OTIwNSwibmJmIjoxNTE4NDY5MjA1LCJleHAiOjE1MTg0NzMxMDUsImFpbyI6IjQyUmdZUEQyL2FmN08zcmFZNzJ5VlFtYlBjOEhBUUE9IiwiYXBwaWQiOiI5OGVhZmY4Ny00ZTVkLTRlNDgtOGRhZC00YmQyZGY4YmQwMWEiLCJhcHBpZGFjciI6IjEiLCJlX2V4cCI6MjYyODAwLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsIm9pZCI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInN1YiI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInRpZCI6IjZiMjA2NGI5LTM0YmQtNDZlNi05MDkyLTUyZjJkZDVmN2ZjMCIsInV0aSI6IlFuc2ZvbG1MMVVhRFpiOENQTDhCQUEiLCJ2ZXIiOiIxLjAifQ.KMH3SJX3PlEuU-CZIG0Ar7q8xdCqGq8owoKsUjNuXDVgAS7wbV7oXramDpamd1UpFa6qHnxAAGgCgwvKQtvhNZT0QhLEU_AZJ6URAkb41ufhFOYYY_hu1tdRkwQEzS-zJqivPr5s6MPtE4N8th_VCye1XYIZIus9qOvD3ntgjd0VteBOEj0zBdD_5U06vTRIejIi7bTSJPyF8RpxMhyNKsn5FY58Mz1CWbRjaTbFFxJcp8Epp0_2pyx5NIiCnGrXj6O7xzPs9aDjTqSZZ3Q1VRGm-KHxMVGrmUukBqm6CPFCFedlBAHERfWRcllSErT3wtX4TDhgrS6uPLfFY71Zqg"}'} - headers: - cache-control: ['no-cache, no-store'] - content-length: ['1387'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:05:04 GMT'] - expires: ['-1'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - pragma: [no-cache] - server: [Microsoft-IIS/10.0] - set-cookie: [stsservicecookie=estsppe; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-clitelem: ['1,0,0,,'] - 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-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 - msrest_azure/0.4.21 resourcemanagementclient/1.3.0rc1 Azure-SDK-For-Python - AZURECLI/2.0.27] - accept-language: [en-US] - method: GET - uri: https://api-dogfood.resources.windows-int.net/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-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1033'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:05: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: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2F6b2064b9-34bd-46e6-9092-52f2dd5f7fc0%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: {string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/.well-known/openid-configuration"}'} - headers: - access-control-allow-methods: ['GET, OPTIONS'] - access-control-allow-origin: ['*'] - cache-control: [private] - content-length: ['131'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:05:06 GMT'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - server: [Microsoft-IIS/10.0] - set-cookie: [esctx=AQABAAAAAABHh4kmS_aKT5XrjzxRAtHztVlVm-1R-i4aShUDjy8XuGgCsR9YuvmE-n3f2iDUlopyyOCUfans-9zqE5CmFnSAzRnYDOTgd8itQnTSOQEJYVD-0U1NwcwdDmK_wjBomkm_KmJ3FPk-vfTMcnk2R1Yz6GZRkEFk4mQ_h1beO6s5YEn1NYPuspUoq9jGhzDvZRsgAA; - domain=.login.windows.net; path=/; secure; HttpOnly, x-ms-gateway-slice=corp; - path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -- request: - body: grant_type=client_credentials&client_id=98eaff87-4e5d-4e48-8dad-4bd2df8bd01a&resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_secret=ManangementGroupServicePrincipal%40123 - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['183'] - User-Agent: [python-requests/2.18.4] - content-type: [application/x-www-form-urlencoded] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: POST - uri: https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/oauth2/token - response: - body: {string: '{"token_type":"Bearer","expires_in":"3599","ext_expires_in":"262800","expires_on":"1518473106","not_before":"1518469206","resource":"https://management.core.windows.net/","access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSIsImtpZCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsImlhdCI6MTUxODQ2OTIwNiwibmJmIjoxNTE4NDY5MjA2LCJleHAiOjE1MTg0NzMxMDYsImFpbyI6IjQyUmdZRmcvWlpKRjZISFZ1VlliOTczazNSSmpBQUE9IiwiYXBwaWQiOiI5OGVhZmY4Ny00ZTVkLTRlNDgtOGRhZC00YmQyZGY4YmQwMWEiLCJhcHBpZGFjciI6IjEiLCJlX2V4cCI6MjYyODAwLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsIm9pZCI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInN1YiI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInRpZCI6IjZiMjA2NGI5LTM0YmQtNDZlNi05MDkyLTUyZjJkZDVmN2ZjMCIsInV0aSI6IlA3dUd4TnQtYzBHWGx2b0NGcmNCQUEiLCJ2ZXIiOiIxLjAifQ.goy8kW2MHvh8PSEQ4eYl1ZiC1FgbbcbVwmEnGCe97U-UovGKJi2bp9LlRK_PdL2JEO6wQi1wF9kCrnoh06geNRTiMSUfiqi5OGCReaI8IL1AljXg0-hrYdwA2FEsco0Y8MV9bQ5nGpRS_AZh5GSuLveEyLyaBSzssjQSuntDAG_E_nsLmO8vWb6dNuJ0sIYy1yIWB6LzwhFH_Y3EjmsaQcwZGCIFtDrmAF-CPwUyNugT2K2zr-0AgSsgmyhZ7plakZMUgzg2WxLMqnX8VOjpE0y4dBzHu9_vpfIUKheQjcIsNso56e6dVDGm_Qvnu5YxDAN5Lc7bP4hn9SxqCZ7Mrw"}'} - headers: - cache-control: ['no-cache, no-store'] - content-length: ['1387'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:05:06 GMT'] - expires: ['-1'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - pragma: [no-cache] - server: [Microsoft-IIS/10.0] - set-cookie: [stsservicecookie=estsppe; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-clitelem: ['1,0,0,,'] - x-powered-by: [ASP.NET] - 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 create] - Connection: [keep-alive] - Content-Length: ['77'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 - msrest_azure/0.4.21 azure-mgmt-managementgroups/2017-11-01-preview Azure-SDK-For-Python - AZURECLI/2.0.27] - accept-language: [en-US] - method: PUT - uri: https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2017-11-01-preview - response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroupchild","properties":{"tenantId":"6b2064b9-34bd-46e6-9092-52f2dd5f7fc0","displayName":"testcligroupchild","details":{"version":5,"updatedTime":"2018-02-12T21:05:08.3465502Z","updatedBy":"8b8f2464-6ad0-4327-b9da-5cc8ac2c650d","parent":{"parentId":"/providers/Microsoft.Management/managementGroups/testcligroup","displayName":"testcligroup"}}}}'} - headers: - cache-control: [no-cache] - content-length: ['494'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:05:10 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [b94fb928-a770-4962-87fc-a0796116c619] - 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.520] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-tenant-writes: ['1197'] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -version: 1 diff --git a/src/managementgroups/azext_managementgroups/tests/latest/recordings/test_list_managementgroups.yaml b/src/managementgroups/azext_managementgroups/tests/latest/recordings/test_list_managementgroups.yaml deleted file mode 100644 index b426dd4586e..00000000000 --- a/src/managementgroups/azext_managementgroups/tests/latest/recordings/test_list_managementgroups.yaml +++ /dev/null @@ -1,295 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2F6b2064b9-34bd-46e6-9092-52f2dd5f7fc0%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: {string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/.well-known/openid-configuration"}'} - headers: - access-control-allow-methods: ['GET, OPTIONS'] - access-control-allow-origin: ['*'] - cache-control: [private] - content-length: ['131'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:05:11 GMT'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - server: [Microsoft-IIS/10.0] - set-cookie: [esctx=AQABAAAAAABHh4kmS_aKT5XrjzxRAtHzzkyDSBJF4L52FDeRBDkJNnaDRPV4c2uUIW5hRddOLUai_ZHa6_bbrJQldXPACOIWj_VsBbYKnnmLmSBXSjGcEDbwhLcEcPTRsLyx2n38bk89tnaHT_LRPeOVi0aIl4rCT5sIukyLmHPMmU6Zsl3pExmdbM_TMlEFkElwzpMcNdggAA; - domain=.login.windows.net; path=/; secure; HttpOnly, x-ms-gateway-slice=corp; - path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -- request: - body: grant_type=client_credentials&client_id=98eaff87-4e5d-4e48-8dad-4bd2df8bd01a&resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_secret=ManangementGroupServicePrincipal%40123 - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['183'] - User-Agent: [python-requests/2.18.4] - content-type: [application/x-www-form-urlencoded] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: POST - uri: https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/oauth2/token - response: - body: {string: '{"token_type":"Bearer","expires_in":"3600","ext_expires_in":"262800","expires_on":"1518473112","not_before":"1518469212","resource":"https://management.core.windows.net/","access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSIsImtpZCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsImlhdCI6MTUxODQ2OTIxMiwibmJmIjoxNTE4NDY5MjEyLCJleHAiOjE1MTg0NzMxMTIsImFpbyI6IjQyUmdZUENUM20vM3N1akpUdU90R1Y0UFN2OWZCZ0E9IiwiYXBwaWQiOiI5OGVhZmY4Ny00ZTVkLTRlNDgtOGRhZC00YmQyZGY4YmQwMWEiLCJhcHBpZGFjciI6IjEiLCJlX2V4cCI6MjYyODAwLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsIm9pZCI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInN1YiI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInRpZCI6IjZiMjA2NGI5LTM0YmQtNDZlNi05MDkyLTUyZjJkZDVmN2ZjMCIsInV0aSI6IlFBdnlDWDhxNjBtOU1scGRBYXNCQUEiLCJ2ZXIiOiIxLjAifQ.AwYigOg2Z9ljGjL1a_G1MMpzR9-GfZhRJkK9ZdHPwqGreFdhvyCFTv2k9M1gTic_9uFeU3YEg8ju-BRpfgVzZaIhws7Z3E7OtwCWyXNMRWOI0QBgK2enWZV4QECrBDCDzjAfGK2MzFrWeMBs9cc8dRhMoQyE8huUIvJZUCUrQCpgKqjb7jur6-37AsOdunVCpq-fZRcjE4pp64swudYHPO-op8VmmB3sMqt6E_WVbqKnBbuPVoKzbnpWsUR_t12FVN_BTMo7PUzR5kLONkhqkOQgKW0eGcjK0HmAgQchOoFsjYtFfQfQa-H8mGeRdzLXd3amQ6sC5ppFWP7IfcL-xw"}'} - headers: - cache-control: ['no-cache, no-store'] - content-length: ['1387'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:05:12 GMT'] - expires: ['-1'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - pragma: [no-cache] - server: [Microsoft-IIS/10.0] - set-cookie: [stsservicecookie=estsppe; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-clitelem: ['1,0,0,,'] - 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 list] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 - msrest_azure/0.4.21 resourcemanagementclient/1.3.0rc1 Azure-SDK-For-Python - AZURECLI/2.0.27] - accept-language: [en-US] - method: POST - uri: https://api-dogfood.resources.windows-int.net/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-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1033'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:05: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} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2F6b2064b9-34bd-46e6-9092-52f2dd5f7fc0%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: {string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/.well-known/openid-configuration"}'} - headers: - access-control-allow-methods: ['GET, OPTIONS'] - access-control-allow-origin: ['*'] - cache-control: [private] - content-length: ['131'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:05:23 GMT'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - server: [Microsoft-IIS/10.0] - set-cookie: [esctx=AQABAAAAAABHh4kmS_aKT5XrjzxRAtHzd9CyyxE16InmU0fKCHLHv2HUswkFcNuzkACzBvN0UbLa8wYeNFMcSchpzkHqa9wypaNBipiQWqJfxje-xLJAhoWrdSfOttOhdug_6t-SqKtFOhjYOPayqxp25e-KO6QHBlFYzgSDNwa9tM7Iwo4cErH-7tzCVJKOCFooD84gEFEgAA; - domain=.login.windows.net; path=/; secure; HttpOnly, x-ms-gateway-slice=corp; - path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -- request: - body: grant_type=client_credentials&client_id=98eaff87-4e5d-4e48-8dad-4bd2df8bd01a&resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_secret=ManangementGroupServicePrincipal%40123 - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['183'] - User-Agent: [python-requests/2.18.4] - content-type: [application/x-www-form-urlencoded] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: POST - uri: https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/oauth2/token - response: - body: {string: '{"token_type":"Bearer","expires_in":"3599","ext_expires_in":"262800","expires_on":"1518473124","not_before":"1518469224","resource":"https://management.core.windows.net/","access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSIsImtpZCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsImlhdCI6MTUxODQ2OTIyNCwibmJmIjoxNTE4NDY5MjI0LCJleHAiOjE1MTg0NzMxMjQsImFpbyI6IjQyUmdZUGptNGQxVVlDSmRaQ3lUdHNiMzFEcFpBQT09IiwiYXBwaWQiOiI5OGVhZmY4Ny00ZTVkLTRlNDgtOGRhZC00YmQyZGY4YmQwMWEiLCJhcHBpZGFjciI6IjEiLCJlX2V4cCI6MjYyODAwLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsIm9pZCI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInN1YiI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInRpZCI6IjZiMjA2NGI5LTM0YmQtNDZlNi05MDkyLTUyZjJkZDVmN2ZjMCIsInV0aSI6Imd5V3ZrOVliVmtTQy1nTlRvYmNCQUEiLCJ2ZXIiOiIxLjAifQ.Q92Q37s0Ytudn0Ln1qYLtJgmvDfMSbnoHFZPykExQCk9lZvuZf_rRNqH1r709PyKqmEm64egzXodlH5FcNPwgo0M-IhJCBW06xDV4u_HWjbv7HEXNhSp5euZwB_14ORyEL6YSomApD3ePdpyG9GA6ZP5L8nlfG2k0N3bp5mCUG7rmhiH_EnU9XAPrsixiV3nlpNrpkOoJ1jh2zdX2GSVwatxZQqjXEIo23Ozt0GaGjZ44MWhe7I3W9cXSJfhpFiASSxeFbIve_lqgHRw8Rw_8nSlq8N2W-oqQzjVW_S8uaOdjxgFL1-tSR-kqa4tFA9ACixMSXjvP8qpvkfYhCQm7A"}'} - headers: - cache-control: ['no-cache, no-store'] - content-length: ['1387'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:05:24 GMT'] - expires: ['-1'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - pragma: [no-cache] - server: [Microsoft-IIS/10.0] - set-cookie: [stsservicecookie=estsppe; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-clitelem: ['1,0,0,,'] - 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 list] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 - msrest_azure/0.4.21 resourcemanagementclient/1.3.0rc1 Azure-SDK-For-Python - AZURECLI/2.0.27] - accept-language: [en-US] - method: GET - uri: https://api-dogfood.resources.windows-int.net/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-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1033'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:05: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: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2F6b2064b9-34bd-46e6-9092-52f2dd5f7fc0%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: {string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/.well-known/openid-configuration"}'} - headers: - access-control-allow-methods: ['GET, OPTIONS'] - access-control-allow-origin: ['*'] - cache-control: [private] - content-length: ['131'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:05:25 GMT'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - server: [Microsoft-IIS/10.0] - set-cookie: [esctx=AQABAAAAAABHh4kmS_aKT5XrjzxRAtHzhYYFiaMYgiDfkzszS-kk3JePbODosU9ZLwk1cIqL1-4NR6vnzdSk7z2tACTJ50i6CUF2Id47iRMJS5Gozy9-zn-1xFiX5FnD0d6ljX7OQjYccBpKaJ9ESMLnKoxlc_fo5lfBnExRM0rMCma9fWGXon2nucHJXigO9CAIq1uqkyEgAA; - domain=.login.windows.net; path=/; secure; HttpOnly, x-ms-gateway-slice=corp; - path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -- request: - body: grant_type=client_credentials&client_id=98eaff87-4e5d-4e48-8dad-4bd2df8bd01a&resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_secret=ManangementGroupServicePrincipal%40123 - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['183'] - User-Agent: [python-requests/2.18.4] - content-type: [application/x-www-form-urlencoded] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: POST - uri: https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/oauth2/token - response: - body: {string: '{"token_type":"Bearer","expires_in":"3600","ext_expires_in":"262800","expires_on":"1518473125","not_before":"1518469225","resource":"https://management.core.windows.net/","access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSIsImtpZCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsImlhdCI6MTUxODQ2OTIyNSwibmJmIjoxNTE4NDY5MjI1LCJleHAiOjE1MTg0NzMxMjUsImFpbyI6IjQyUmdZUGgzdkZZMHZTZ2hYOXQ5UXVaeHBndEdBQT09IiwiYXBwaWQiOiI5OGVhZmY4Ny00ZTVkLTRlNDgtOGRhZC00YmQyZGY4YmQwMWEiLCJhcHBpZGFjciI6IjEiLCJlX2V4cCI6MjYyODAwLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsIm9pZCI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInN1YiI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInRpZCI6IjZiMjA2NGI5LTM0YmQtNDZlNi05MDkyLTUyZjJkZDVmN2ZjMCIsInV0aSI6ImVfRkhCZ3Atc1VDeExncGgwTG9CQUEiLCJ2ZXIiOiIxLjAifQ.GpYxsVEXpzb7zvYTg_ZgX1vLcd3b0Ux7SwLg7RUGqCtD9KYPpuRUraXkOHh6F3Cwpk9MAWHzwjIEumUgc6noEsS6sur1mdp1Ap4gwxKZazZ-PvoabN4Ngmw4I82sXO8ixwLan8Fbddmr1woa1nMgitwRdpvb9D5hv6wxwuHR-ywJ9U_bW1TrAbjU9DaOoWep8hQ5ypoleqZZ59DEsW9M2f-0dFsJVxHuP8Rv4Qkds9cQSIO61nS-6LzeBpoG4BgyT8VZGca_Qe4oIHJaD-gMS_dpAZiuIdIXMPYuUKHLoYHgzVkdxRZnsdSvVigqA3HtUw3tSEjzLQ5LTSxvPWhx1g"}'} - headers: - cache-control: ['no-cache, no-store'] - content-length: ['1387'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:05:25 GMT'] - expires: ['-1'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - pragma: [no-cache] - server: [Microsoft-IIS/10.0] - set-cookie: [stsservicecookie=estsppe; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-clitelem: ['1,0,0,,'] - x-powered-by: [ASP.NET] - 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.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 - msrest_azure/0.4.21 azure-mgmt-managementgroups/2017-11-01-preview Azure-SDK-For-Python - AZURECLI/2.0.27] - accept-language: [en-US] - method: GET - uri: https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/managementGroups?api-version=2017-11-01-preview - response: - body: {string: '{"value":[{"id":"/providers/Microsoft.Management/managementGroups/testGroup123","type":"/providers/Microsoft.Management/managementGroups","name":"testGroup123","properties":{"tenantId":"6b2064b9-34bd-46e6-9092-52f2dd5f7fc0","displayName":"New - Display Name"}},{"id":"/providers/Microsoft.Management/managementGroups/testGroup123Child1","type":"/providers/Microsoft.Management/managementGroups","name":"testGroup123Child1","properties":{"tenantId":"6b2064b9-34bd-46e6-9092-52f2dd5f7fc0","displayName":"TestGroup123->Child1"}},{"id":"/providers/Microsoft.Management/managementGroups/testGroup123Child1Child1","type":"/providers/Microsoft.Management/managementGroups","name":"testGroup123Child1Child1","properties":{"tenantId":"6b2064b9-34bd-46e6-9092-52f2dd5f7fc0","displayName":"TestGroup123->Child1->Child1"}},{"id":"/providers/Microsoft.Management/managementGroups/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0","type":"/providers/Microsoft.Management/managementGroups","name":"6b2064b9-34bd-46e6-9092-52f2dd5f7fc0","properties":{"tenantId":"6b2064b9-34bd-46e6-9092-52f2dd5f7fc0","displayName":"6b2064b9-34bd-46e6-9092-52f2dd5f7fc0"}},{"id":"/providers/Microsoft.Management/managementGroups/TestPSNewGroup4","type":"/providers/Microsoft.Management/managementGroups","name":"TestPSNewGroup4","properties":{"tenantId":"6b2064b9-34bd-46e6-9092-52f2dd5f7fc0","displayName":"TestNewGrp4DisplayName"}},{"id":"/providers/Microsoft.Management/managementGroups/TestPSNewGroup1","type":"/providers/Microsoft.Management/managementGroups","name":"TestPSNewGroup1","properties":{"tenantId":"6b2064b9-34bd-46e6-9092-52f2dd5f7fc0","displayName":"TestNewGrp1DisplayName"}},{"id":"/providers/Microsoft.Management/managementGroups/TestPSNewGroup2","type":"/providers/Microsoft.Management/managementGroups","name":"TestPSNewGroup2","properties":{"tenantId":"6b2064b9-34bd-46e6-9092-52f2dd5f7fc0","displayName":"TestNewGrp2DisplayName"}},{"id":"/providers/Microsoft.Management/managementGroups/testcligroup","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup","properties":{"tenantId":"6b2064b9-34bd-46e6-9092-52f2dd5f7fc0","displayName":"testcligroup"}},{"id":"/providers/Microsoft.Management/managementGroups/testcligroup1","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup1","properties":{"tenantId":"6b2064b9-34bd-46e6-9092-52f2dd5f7fc0","displayName":"TestCliDisplayName"}},{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild2","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroupchild2","properties":{"tenantId":"6b2064b9-34bd-46e6-9092-52f2dd5f7fc0","displayName":"TestCliGroupChild2Display"}},{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroupchild","properties":{"tenantId":"6b2064b9-34bd-46e6-9092-52f2dd5f7fc0","displayName":"testcligroupchild"}}],"@nextLink":null}'} - headers: - cache-control: [no-cache] - content-length: ['2955'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:05:26 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [31ef5629-606b-470b-8c98-40e9aa4a74ab] - 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.520] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -version: 1 diff --git a/src/managementgroups/azext_managementgroups/tests/latest/recordings/test_show_managementgroup.yaml b/src/managementgroups/azext_managementgroups/tests/latest/recordings/test_show_managementgroup.yaml deleted file mode 100644 index b57db1136c6..00000000000 --- a/src/managementgroups/azext_managementgroups/tests/latest/recordings/test_show_managementgroup.yaml +++ /dev/null @@ -1,295 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2F6b2064b9-34bd-46e6-9092-52f2dd5f7fc0%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: {string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/.well-known/openid-configuration"}'} - headers: - access-control-allow-methods: ['GET, OPTIONS'] - access-control-allow-origin: ['*'] - cache-control: [private] - content-length: ['131'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:05:27 GMT'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - server: [Microsoft-IIS/10.0] - set-cookie: [esctx=AQABAAAAAABHh4kmS_aKT5XrjzxRAtHzRhmEvfXx20AqQmZpRakGi99nyRaWvjFQeZlZOYh80CezhbMBQko1tuAyVznZEHCH2Gq7UZWELroU9D6_h5CFLI8rojxjdLHSWeQrzSYeR26V9ukNrBgZKAPCk7tXQH35njwHCy_mQw4Zvch_jciBrpDA66D9eMhEhyKcc8IfZgYgAA; - domain=.login.windows.net; path=/; secure; HttpOnly, x-ms-gateway-slice=corp; - path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -- request: - body: grant_type=client_credentials&client_id=98eaff87-4e5d-4e48-8dad-4bd2df8bd01a&resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_secret=ManangementGroupServicePrincipal%40123 - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['183'] - User-Agent: [python-requests/2.18.4] - content-type: [application/x-www-form-urlencoded] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: POST - uri: https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/oauth2/token - response: - body: {string: '{"token_type":"Bearer","expires_in":"3599","ext_expires_in":"262800","expires_on":"1518473128","not_before":"1518469228","resource":"https://management.core.windows.net/","access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSIsImtpZCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsImlhdCI6MTUxODQ2OTIyOCwibmJmIjoxNTE4NDY5MjI4LCJleHAiOjE1MTg0NzMxMjgsImFpbyI6IjQyUmdZR2cyTzZpdzlNTWRtMHNaZDdsTUQvWHhBZ0E9IiwiYXBwaWQiOiI5OGVhZmY4Ny00ZTVkLTRlNDgtOGRhZC00YmQyZGY4YmQwMWEiLCJhcHBpZGFjciI6IjEiLCJlX2V4cCI6MjYyODAwLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsIm9pZCI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInN1YiI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInRpZCI6IjZiMjA2NGI5LTM0YmQtNDZlNi05MDkyLTUyZjJkZDVmN2ZjMCIsInV0aSI6ImVfRkhCZ3Atc1VDeExncGg1N29CQUEiLCJ2ZXIiOiIxLjAifQ.ZKVrIpmzubZJey-iSUS0PdFMdRxoeMCK3tSfCPUrbpTrxM1slINvKkZsxr6OfO-Oqqt7co2auziFMOmbXsKd26DIA4lgvCGyCVtYUq5bbX1K6RHOZrCzfz2-g0hcoSRpTCLKKm8geTm19vEBp_t8yh4Oc7hu-9pTEJ4vRFVtplV4BbFelOkmR5k1v4pSoDeuF9Bbu9Y4EmeqTaEWGCVfAzYB-JzwkWaIN6hv4tK_rqV4_u0crf4cW2mZzaOJrHydeV_sFkPEzh2FM3S6iLW7m11UtpabHjU57bPAEmze7WoiPyMM-nzy9xGGV_0MuqHMPP8lt3aeEJakMNx2PhKiBA"}'} - headers: - cache-control: ['no-cache, no-store'] - content-length: ['1387'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:05:28 GMT'] - expires: ['-1'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - pragma: [no-cache] - server: [Microsoft-IIS/10.0] - set-cookie: [stsservicecookie=estsppe; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-clitelem: ['1,0,0,,'] - 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 show] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 - msrest_azure/0.4.21 resourcemanagementclient/1.3.0rc1 Azure-SDK-For-Python - AZURECLI/2.0.27] - accept-language: [en-US] - method: POST - uri: https://api-dogfood.resources.windows-int.net/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-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1033'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:05: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: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2F6b2064b9-34bd-46e6-9092-52f2dd5f7fc0%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: {string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/.well-known/openid-configuration"}'} - headers: - access-control-allow-methods: ['GET, OPTIONS'] - access-control-allow-origin: ['*'] - cache-control: [private] - content-length: ['131'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:05:39 GMT'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - server: [Microsoft-IIS/10.0] - set-cookie: [esctx=AQABAAAAAABHh4kmS_aKT5XrjzxRAtHza_ykoZrgOfGZSdjezTQnZq59Gy5zKjg58Y-WonDIlch59CCDQOR4k5aGurPERdJDmq6S703B-lH66aNdnL39lfi38HyTbZc5wQN5NnoyuwrSdeNWzISpFDyKEoF-IYfV9cs6g6YwfC1BwazfS4pRDmhG9MwOhuWMX2F5_Ysz3MUgAA; - domain=.login.windows.net; path=/; secure; HttpOnly, x-ms-gateway-slice=corp; - path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -- request: - body: grant_type=client_credentials&client_id=98eaff87-4e5d-4e48-8dad-4bd2df8bd01a&resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_secret=ManangementGroupServicePrincipal%40123 - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['183'] - User-Agent: [python-requests/2.18.4] - content-type: [application/x-www-form-urlencoded] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: POST - uri: https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/oauth2/token - response: - body: {string: '{"token_type":"Bearer","expires_in":"3600","ext_expires_in":"262800","expires_on":"1518473140","not_before":"1518469240","resource":"https://management.core.windows.net/","access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSIsImtpZCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsImlhdCI6MTUxODQ2OTI0MCwibmJmIjoxNTE4NDY5MjQwLCJleHAiOjE1MTg0NzMxNDAsImFpbyI6IjQyUmdZR0ExTzdwQzAvbmpCKzJLckx6T2xVbHhBQT09IiwiYXBwaWQiOiI5OGVhZmY4Ny00ZTVkLTRlNDgtOGRhZC00YmQyZGY4YmQwMWEiLCJhcHBpZGFjciI6IjEiLCJlX2V4cCI6MjYyODAwLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsIm9pZCI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInN1YiI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInRpZCI6IjZiMjA2NGI5LTM0YmQtNDZlNi05MDkyLTUyZjJkZDVmN2ZjMCIsInV0aSI6IlFBdnlDWDhxNjBtOU1scGRscXNCQUEiLCJ2ZXIiOiIxLjAifQ.YZ0XajzKIi2JW4HI5lqIOeqV_RJsWPviEe75Pu5HwqYASudXSvZiEj59idFCA576mn4kg7FBp-OVjYnVwSMEJ8MpxnHkZdhj6ZIXJEsWZZhG0KHOFE-OdWmgJO1T9r22qZNT9DpflbbHDV1kYnIJcXgCqh9kgWQwmgl6e8QXQ-ZXBphvHdkWAKQf_fujCg_QCXLlYDX3Toj0bgqXufZLMH-HyjOr2VIOWsS-UN1_D6qYR9VKiA9ChVE7jfO9beuX9x4HfUDpT3PERH_w_qXi_SYbyNqz1PIOtmBtSQD6J1nqvtnz0xPO_TKe7vNDj4IkiZz2lKPovvxORsoqq_vdWg"}'} - headers: - cache-control: ['no-cache, no-store'] - content-length: ['1387'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:05:39 GMT'] - expires: ['-1'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - pragma: [no-cache] - server: [Microsoft-IIS/10.0] - set-cookie: [stsservicecookie=estsppe; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-clitelem: ['1,0,0,,'] - 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 show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 - msrest_azure/0.4.21 resourcemanagementclient/1.3.0rc1 Azure-SDK-For-Python - AZURECLI/2.0.27] - accept-language: [en-US] - method: GET - uri: https://api-dogfood.resources.windows-int.net/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-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1033'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:05: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: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2F6b2064b9-34bd-46e6-9092-52f2dd5f7fc0%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: {string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/.well-known/openid-configuration"}'} - headers: - access-control-allow-methods: ['GET, OPTIONS'] - access-control-allow-origin: ['*'] - cache-control: [private] - content-length: ['131'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:05:41 GMT'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - server: [Microsoft-IIS/10.0] - set-cookie: [esctx=AQABAAAAAABHh4kmS_aKT5XrjzxRAtHzsEEBpDmX0izH-PlsBdoDQVO2-U_-PTGzXs-E416BUTCXq51uDrjMcmXKyhD1k9N6Q0JwIM8Nz6PQRHty6rGZya6CUid3Zf_EfHdGUrG3IxCvQlFix5a9p8NmN_ftKjltvhrIbsYbIXpY-ngRlQufTFVTMkKC3kRURz5AkGJTtYQgAA; - domain=.login.windows.net; path=/; secure; HttpOnly, x-ms-gateway-slice=corp; - path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -- request: - body: grant_type=client_credentials&client_id=98eaff87-4e5d-4e48-8dad-4bd2df8bd01a&resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_secret=ManangementGroupServicePrincipal%40123 - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['183'] - User-Agent: [python-requests/2.18.4] - content-type: [application/x-www-form-urlencoded] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: POST - uri: https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/oauth2/token - response: - body: {string: '{"token_type":"Bearer","expires_in":"3600","ext_expires_in":"262800","expires_on":"1518473142","not_before":"1518469242","resource":"https://management.core.windows.net/","access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSIsImtpZCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsImlhdCI6MTUxODQ2OTI0MiwibmJmIjoxNTE4NDY5MjQyLCJleHAiOjE1MTg0NzMxNDIsImFpbyI6IjQyUmdZSGk5NkVoOTVyRnM1cGhGenNzNllxN3dBQUE9IiwiYXBwaWQiOiI5OGVhZmY4Ny00ZTVkLTRlNDgtOGRhZC00YmQyZGY4YmQwMWEiLCJhcHBpZGFjciI6IjEiLCJlX2V4cCI6MjYyODAwLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsIm9pZCI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInN1YiI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInRpZCI6IjZiMjA2NGI5LTM0YmQtNDZlNi05MDkyLTUyZjJkZDVmN2ZjMCIsInV0aSI6IlFBdnlDWDhxNjBtOU1scGRvS3NCQUEiLCJ2ZXIiOiIxLjAifQ.bfV3L9pDFbV3fxfvi5vo2VNCLUG8zQfFL0btk4Mcg3_JgVDzJs-c2hbx0Zr3sIkc6dhDcoa1KKFQpeB14KkNWrcAc0J-v2vLGLzW8ctu4JLbwLomTkNfnNLifBNQ4kMVNZttuWjLf09lLWxYO7z6GFOdw2l66M9wIr3smYgraB2rIIUbwFu6NTTz4NdUA19mpqdtqCTl6spF322xC3fCm8TrVhbjNhVsuqzkTR1FPQi_taLutSz50v_TfKb5rVngtyzI85gA2cnGFo8W-kjSUvCOVmpFjjqiuBzv9NW-rT2QifOYzqncC1Q2lL4l6SyAgh6__rfn40eJTNdhEEghCw"}'} - headers: - cache-control: ['no-cache, no-store'] - content-length: ['1387'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:05:42 GMT'] - expires: ['-1'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - pragma: [no-cache] - server: [Microsoft-IIS/10.0] - set-cookie: [stsservicecookie=estsppe; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-clitelem: ['1,0,0,,'] - x-powered-by: [ASP.NET] - 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] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 - msrest_azure/0.4.21 azure-mgmt-managementgroups/2017-11-01-preview Azure-SDK-For-Python - AZURECLI/2.0.27] - accept-language: [en-US] - method: GET - uri: https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/managementGroups/testGroup123?api-version=2017-11-01-preview - response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testGroup123","type":"/providers/Microsoft.Management/managementGroups","name":"testGroup123","properties":{"tenantId":"6b2064b9-34bd-46e6-9092-52f2dd5f7fc0","displayName":"New - Display Name","details":{"version":2,"updatedTime":"2018-02-01T12:04:10.8271442Z","updatedBy":"64360beb-ffb4-43a8-9314-01aa34db95a9","parent":{"parentId":"/providers/Microsoft.Management/managementGroups/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0","displayName":"6b2064b9-34bd-46e6-9092-52f2dd5f7fc0"}}}}'} - headers: - cache-control: [no-cache] - content-length: ['531'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:05:42 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [b42f1945-dd64-42ff-8e44-269201b63c23] - 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.520] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -version: 1 diff --git a/src/managementgroups/azext_managementgroups/tests/latest/recordings/test_show_managementgroup_with_expand.yaml b/src/managementgroups/azext_managementgroups/tests/latest/recordings/test_show_managementgroup_with_expand.yaml deleted file mode 100644 index 62bd12cc4c1..00000000000 --- a/src/managementgroups/azext_managementgroups/tests/latest/recordings/test_show_managementgroup_with_expand.yaml +++ /dev/null @@ -1,295 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2F6b2064b9-34bd-46e6-9092-52f2dd5f7fc0%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: {string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/.well-known/openid-configuration"}'} - headers: - access-control-allow-methods: ['GET, OPTIONS'] - access-control-allow-origin: ['*'] - cache-control: [private] - content-length: ['131'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:05:43 GMT'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - server: [Microsoft-IIS/10.0] - set-cookie: [esctx=AQABAAAAAABHh4kmS_aKT5XrjzxRAtHzgIrWj6ra5cpV-Tyi4ij9taEybfrzFeDqa0pzfhEwHh4Ejy57ZIZ8vHnM6PDivW6G6SfmrAOB6SIIJUTozgE6Tr6ilkkFxtO4JIdxzDIuURRuCNkZlGmYfrvvubTVqExzV5SjX2vrIq_YGjn8mmj185Uo0esoh-vVIshLrPhxgoAgAA; - domain=.login.windows.net; path=/; secure; HttpOnly, x-ms-gateway-slice=corp; - path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -- request: - body: grant_type=client_credentials&client_id=98eaff87-4e5d-4e48-8dad-4bd2df8bd01a&resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_secret=ManangementGroupServicePrincipal%40123 - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['183'] - User-Agent: [python-requests/2.18.4] - content-type: [application/x-www-form-urlencoded] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: POST - uri: https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/oauth2/token - response: - body: {string: '{"token_type":"Bearer","expires_in":"3599","ext_expires_in":"262800","expires_on":"1518473144","not_before":"1518469244","resource":"https://management.core.windows.net/","access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSIsImtpZCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsImlhdCI6MTUxODQ2OTI0NCwibmJmIjoxNTE4NDY5MjQ0LCJleHAiOjE1MTg0NzMxNDQsImFpbyI6IjQyUmdZRGpWcDNEMXNUbGZYSTI5K3YwZDUxMW1BQUE9IiwiYXBwaWQiOiI5OGVhZmY4Ny00ZTVkLTRlNDgtOGRhZC00YmQyZGY4YmQwMWEiLCJhcHBpZGFjciI6IjEiLCJlX2V4cCI6MjYyODAwLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsIm9pZCI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInN1YiI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInRpZCI6IjZiMjA2NGI5LTM0YmQtNDZlNi05MDkyLTUyZjJkZDVmN2ZjMCIsInV0aSI6IjZyWVRZRFhuOUVLU3RxZ18tNjRCQUEiLCJ2ZXIiOiIxLjAifQ.HU1GVA1O94ANNu5sDmnPLQu6zGEAxFi5ltv3PDQamltQ58UsD_2aWLI2cWg1-RI5bUzBOjk7ioxZOoHtWhLzWLU2LYnPJvpHBGBe34PhVLGjdI80suj_8E3LXXR8M2fNaOJByXbOzAM-yTLGy1J01Z6c2hOALK9uGluPmTAvSxxX38N9aQa1Vm2i32P6tSyb3mW7tYCEXx3fbuwjVj_kwPSmlXVbnEr6FmVeKdT8YAxXdJX4ORfKVGbsD9rmzzbtA3RQkr7bS2AjaaDCXSQ5qf4pqHLVCxvUi1xukd95wOsZSVIVsMd7B1dp9SgC1g8ZdtTspqgy19l8-bV4pA2QJg"}'} - headers: - cache-control: ['no-cache, no-store'] - content-length: ['1387'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:05:44 GMT'] - expires: ['-1'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - pragma: [no-cache] - server: [Microsoft-IIS/10.0] - set-cookie: [stsservicecookie=estsppe; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-clitelem: ['1,0,0,,'] - 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 show] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 - msrest_azure/0.4.21 resourcemanagementclient/1.3.0rc1 Azure-SDK-For-Python - AZURECLI/2.0.27] - accept-language: [en-US] - method: POST - uri: https://api-dogfood.resources.windows-int.net/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-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1033'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:05: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: ['1196'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2F6b2064b9-34bd-46e6-9092-52f2dd5f7fc0%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: {string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/.well-known/openid-configuration"}'} - headers: - access-control-allow-methods: ['GET, OPTIONS'] - access-control-allow-origin: ['*'] - cache-control: [private] - content-length: ['131'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:05:55 GMT'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - server: [Microsoft-IIS/10.0] - set-cookie: [esctx=AQABAAAAAABHh4kmS_aKT5XrjzxRAtHz6EjqsJ0vUrwgn3b_OIUwi5Lr6SCNM5-HdYEMuHYpJENeWxrlyE52BO0_MZK0bThm-Y4K8v8aARUVSEUfSE7KzYWPtAIOuG4tYM-tQKdRgCcjp_ivM_8ksM99NQk_Z-z6SpEEur7-U7pHIOst80T02kWxNLlDzl-qvcjfw2jc3hogAA; - domain=.login.windows.net; path=/; secure; HttpOnly, x-ms-gateway-slice=corp; - path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -- request: - body: grant_type=client_credentials&client_id=98eaff87-4e5d-4e48-8dad-4bd2df8bd01a&resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_secret=ManangementGroupServicePrincipal%40123 - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['183'] - User-Agent: [python-requests/2.18.4] - content-type: [application/x-www-form-urlencoded] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: POST - uri: https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/oauth2/token - response: - body: {string: '{"token_type":"Bearer","expires_in":"3600","ext_expires_in":"262800","expires_on":"1518473156","not_before":"1518469256","resource":"https://management.core.windows.net/","access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSIsImtpZCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsImlhdCI6MTUxODQ2OTI1NiwibmJmIjoxNTE4NDY5MjU2LCJleHAiOjE1MTg0NzMxNTYsImFpbyI6IjQyUmdZSEE1dGZkY25hMXpaUG9hZzltY1BiZnRBQT09IiwiYXBwaWQiOiI5OGVhZmY4Ny00ZTVkLTRlNDgtOGRhZC00YmQyZGY4YmQwMWEiLCJhcHBpZGFjciI6IjEiLCJlX2V4cCI6MjYyODAwLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsIm9pZCI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInN1YiI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInRpZCI6IjZiMjA2NGI5LTM0YmQtNDZlNi05MDkyLTUyZjJkZDVmN2ZjMCIsInV0aSI6IkZIZjBjX0dPWkVTdVZyWDFZOUVCQUEiLCJ2ZXIiOiIxLjAifQ.LvqAVVOGQrEwUm1LZxCXUtvMFXRp57FK0dn7Q-5o0qlraD2aq88g1SzN2O4aXCWVf7pEykM3Rw91orLYOMmn8VRVF2Rhxq_zA0Vfa6pN6kRzfbAofAPxxC00Bl76VU-oSjAYjgD_MxGvK783lAGXkdkTvJCWVuGA1oE-K3xjm0kJTOtSA3hIEdlBrDLXyjqUILyqQI_ZyVWfXtPVSyiyDnOQQKk1dv-LeQqFwk7TAWPRtbCQ67l_G40oijJUNOfFHSFMeFsTjdIUctqO9QlBpd2kt7EGflCanJkzsvX8jgL7GDlHsyminjH9ePKqldk7DfQdLGtYBnvO0AuK2eLwgQ"}'} - headers: - cache-control: ['no-cache, no-store'] - content-length: ['1387'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:05:56 GMT'] - expires: ['-1'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - pragma: [no-cache] - server: [Microsoft-IIS/10.0] - set-cookie: [stsservicecookie=estsppe; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-clitelem: ['1,0,0,,'] - 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 show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 - msrest_azure/0.4.21 resourcemanagementclient/1.3.0rc1 Azure-SDK-For-Python - AZURECLI/2.0.27] - accept-language: [en-US] - method: GET - uri: https://api-dogfood.resources.windows-int.net/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-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1033'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:05: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: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2F6b2064b9-34bd-46e6-9092-52f2dd5f7fc0%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: {string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/.well-known/openid-configuration"}'} - headers: - access-control-allow-methods: ['GET, OPTIONS'] - access-control-allow-origin: ['*'] - cache-control: [private] - content-length: ['131'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:05:57 GMT'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - server: [Microsoft-IIS/10.0] - set-cookie: [esctx=AQABAAAAAABHh4kmS_aKT5XrjzxRAtHzNARZrOHJHxVJVo44QtYyCjg7wFB_AvcGMgttaXXH1oU9yHSeNmEXsEu5dtfLiD7DrXgKthl2BsXp2zwun4IegKmUpoAmEyP3Bkyx11xupMPLfpUWx6-OWglNzVePJVcWp5y_VFDihg116rySISmaxesJMcriGSN3HGFFt0tj3-4gAA; - domain=.login.windows.net; path=/; secure; HttpOnly, x-ms-gateway-slice=corp; - path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -- request: - body: grant_type=client_credentials&client_id=98eaff87-4e5d-4e48-8dad-4bd2df8bd01a&resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_secret=ManangementGroupServicePrincipal%40123 - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['183'] - User-Agent: [python-requests/2.18.4] - content-type: [application/x-www-form-urlencoded] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: POST - uri: https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/oauth2/token - response: - body: {string: '{"token_type":"Bearer","expires_in":"3600","ext_expires_in":"262800","expires_on":"1518473158","not_before":"1518469258","resource":"https://management.core.windows.net/","access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSIsImtpZCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsImlhdCI6MTUxODQ2OTI1OCwibmJmIjoxNTE4NDY5MjU4LCJleHAiOjE1MTg0NzMxNTgsImFpbyI6IjQyUmdZRWo4dGJDQ1JjUno2WnlIRDJkejlFVzlCQUE9IiwiYXBwaWQiOiI5OGVhZmY4Ny00ZTVkLTRlNDgtOGRhZC00YmQyZGY4YmQwMWEiLCJhcHBpZGFjciI6IjEiLCJlX2V4cCI6MjYyODAwLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsIm9pZCI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInN1YiI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInRpZCI6IjZiMjA2NGI5LTM0YmQtNDZlNi05MDkyLTUyZjJkZDVmN2ZjMCIsInV0aSI6IlA3dUd4TnQtYzBHWGx2b0NHN2dCQUEiLCJ2ZXIiOiIxLjAifQ.InGNOTqvKNpai9y1hvYJZke8n20D_1B1n2SD65V8XC1-egnggFymMvPXvlRdmCBlA1UlgKaaxs4u6aZ9nHmALkMLTtgk6mH8f-sVK9dMoJ_-B0bihBCWqOMFXoybFiLpWM_EAfJdUtqdFpJvdtbgnagvhAPJHlLzGmnd3thTFWNPpTYYfhmh0Ub1Xa_Gj_WYDE7UvNB2-KmCFPPFxtAf8EZqHWXWkc2F0BbHJ7isQDoHmK9YnxlxASttbbEcmIyQLl8pOOze7JkhVv7SlgUW5PvegnNMCxLnxpjvxhKQuw1avKFMgAZthShRVdCAgHcYAd4OLLMVmiNypbs_16wG4g"}'} - headers: - cache-control: ['no-cache, no-store'] - content-length: ['1387'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:05:57 GMT'] - expires: ['-1'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - pragma: [no-cache] - server: [Microsoft-IIS/10.0] - set-cookie: [stsservicecookie=estsppe; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-clitelem: ['1,0,0,,'] - x-powered-by: [ASP.NET] - 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] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 - msrest_azure/0.4.21 azure-mgmt-managementgroups/2017-11-01-preview Azure-SDK-For-Python - AZURECLI/2.0.27] - accept-language: [en-US] - method: GET - uri: https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/managementGroups/testGroup123?api-version=2017-11-01-preview&$expand=children&$recurse=false - response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testGroup123","type":"/providers/Microsoft.Management/managementGroups","name":"testGroup123","properties":{"tenantId":"6b2064b9-34bd-46e6-9092-52f2dd5f7fc0","displayName":"New - Display Name","details":{"version":2,"updatedTime":"2018-02-01T12:04:10.8271442Z","updatedBy":"64360beb-ffb4-43a8-9314-01aa34db95a9","parent":{"parentId":"/providers/Microsoft.Management/managementGroups/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0","displayName":"6b2064b9-34bd-46e6-9092-52f2dd5f7fc0"}},"children":[{"childType":"/managementGroup","childId":"/providers/Microsoft.Management/managementGroups/testGroup123Child1","displayName":"TestGroup123->Child1"},{"childType":"/managementGroup","childId":"/providers/Microsoft.Management/managementGroups/TestPSNewGroup4","displayName":"TestNewGrp4DisplayName"},{"childType":"/managementGroup","childId":"/providers/Microsoft.Management/managementGroups/TestPSNewGroup1","displayName":"TestNewGrp1DisplayName"},{"childType":"/managementGroup","childId":"/providers/Microsoft.Management/managementGroups/TestPSNewGroup2","displayName":"TestNewGrp2DisplayName"},{"childType":"/subscription","childId":"/subscriptions/00000000-0000-0000-0000-000000000000","displayName":"Pay-As-You-Go"}]}}'} - headers: - cache-control: [no-cache] - content-length: ['1265'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:05:59 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [abd33e8f-4d47-4907-8bc7-168b2cc3b1f2] - 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.520] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -version: 1 diff --git a/src/managementgroups/azext_managementgroups/tests/latest/recordings/test_show_managementgroup_with_expand_and_recurse.yaml b/src/managementgroups/azext_managementgroups/tests/latest/recordings/test_show_managementgroup_with_expand_and_recurse.yaml deleted file mode 100644 index 73f571cd2ea..00000000000 --- a/src/managementgroups/azext_managementgroups/tests/latest/recordings/test_show_managementgroup_with_expand_and_recurse.yaml +++ /dev/null @@ -1,295 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2F6b2064b9-34bd-46e6-9092-52f2dd5f7fc0%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: {string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/.well-known/openid-configuration"}'} - headers: - access-control-allow-methods: ['GET, OPTIONS'] - access-control-allow-origin: ['*'] - cache-control: [private] - content-length: ['131'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:06:00 GMT'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - server: [Microsoft-IIS/10.0] - set-cookie: [esctx=AQABAAAAAABHh4kmS_aKT5XrjzxRAtHzTqFL6w9xmhSbZeM5HKkRj60U3_TlLhSTDl4shvGBhUdtfNZQO3GKmc_4pwCASFToXdyAjtgfEF-MCFBqVMP9XWeiQkUPiOMudTwtk-x4Ezg_6FlhGXzvld023gMq8dqgHk5-1PajL_ROQxtWotc0fOZgWOoZvCnfKbVmcmBsKAMgAA; - domain=.login.windows.net; path=/; secure; HttpOnly, x-ms-gateway-slice=corp; - path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -- request: - body: grant_type=client_credentials&client_id=98eaff87-4e5d-4e48-8dad-4bd2df8bd01a&resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_secret=ManangementGroupServicePrincipal%40123 - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['183'] - User-Agent: [python-requests/2.18.4] - content-type: [application/x-www-form-urlencoded] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: POST - uri: https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/oauth2/token - response: - body: {string: '{"token_type":"Bearer","expires_in":"3599","ext_expires_in":"262800","expires_on":"1518473160","not_before":"1518469260","resource":"https://management.core.windows.net/","access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSIsImtpZCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsImlhdCI6MTUxODQ2OTI2MCwibmJmIjoxNTE4NDY5MjYwLCJleHAiOjE1MTg0NzMxNjAsImFpbyI6IjQyUmdZT0N3WnRlZDZQd2lOV3pobkJTUEh5azdBQT09IiwiYXBwaWQiOiI5OGVhZmY4Ny00ZTVkLTRlNDgtOGRhZC00YmQyZGY4YmQwMWEiLCJhcHBpZGFjciI6IjEiLCJlX2V4cCI6MjYyODAwLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsIm9pZCI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInN1YiI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInRpZCI6IjZiMjA2NGI5LTM0YmQtNDZlNi05MDkyLTUyZjJkZDVmN2ZjMCIsInV0aSI6IkZIZjBjX0dPWkVTdVZyWDFqZEVCQUEiLCJ2ZXIiOiIxLjAifQ.CBhxO7x71ogB-R-yVl_N_dYLHkqTFmYxOjr3SSIXevbM4aneNHRY3XjTDOvyECP2vyj-2wzVBPPIZiNCPvEwbq6PIstg5q7r3VvZTxAhn0coUhFUCgcQrCd1eg_gDI9TjWnT4xiEqO9QwDCSwKgZsWOgMUFhJbsmLrRLT2gBx3C9LDfOVe2Yu8gQVrUrS1SnF53NBRVcoopXFuvdrLwlgsibC0TJteiZj9OFi9X7EG4rfBNw8Viq_tI3dXHyU1d_2qfHIdp4AaXxnSHo550z4zeOdO7X4DVOA0jzuih6OH-nttfMd3y4HtmJ3v2vs-FuUiFp7W7AWAlR3WP31CroeA"}'} - headers: - cache-control: ['no-cache, no-store'] - content-length: ['1387'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:06:00 GMT'] - expires: ['-1'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - pragma: [no-cache] - server: [Microsoft-IIS/10.0] - set-cookie: [stsservicecookie=estsppe; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-clitelem: ['1,0,0,,'] - 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 show] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 - msrest_azure/0.4.21 resourcemanagementclient/1.3.0rc1 Azure-SDK-For-Python - AZURECLI/2.0.27] - accept-language: [en-US] - method: POST - uri: https://api-dogfood.resources.windows-int.net/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-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1033'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:06:01 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: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2F6b2064b9-34bd-46e6-9092-52f2dd5f7fc0%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: {string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/.well-known/openid-configuration"}'} - headers: - access-control-allow-methods: ['GET, OPTIONS'] - access-control-allow-origin: ['*'] - cache-control: [private] - content-length: ['131'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:06:11 GMT'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - server: [Microsoft-IIS/10.0] - set-cookie: [esctx=AQABAAAAAABHh4kmS_aKT5XrjzxRAtHzv2eo-wl2ErjE-g-Hxr-vCrTF6rh0U5KSYaC5HKBC3HA5q4lHdTPuERZ-x5S_9oCIpUUn6gsTnzpyZI_YvXAYeKv-WgmH1XUyKzrL8fh9ISo0Hqo9JQboa6CD6eTlRDecqmPAlVCC5GQZZMjR5x1yv8yiiHyd40EVl2FPcH0OGtMgAA; - domain=.login.windows.net; path=/; secure; HttpOnly, x-ms-gateway-slice=corp; - path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -- request: - body: grant_type=client_credentials&client_id=98eaff87-4e5d-4e48-8dad-4bd2df8bd01a&resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_secret=ManangementGroupServicePrincipal%40123 - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['183'] - User-Agent: [python-requests/2.18.4] - content-type: [application/x-www-form-urlencoded] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: POST - uri: https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/oauth2/token - response: - body: {string: '{"token_type":"Bearer","expires_in":"3599","ext_expires_in":"262800","expires_on":"1518473172","not_before":"1518469272","resource":"https://management.core.windows.net/","access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSIsImtpZCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsImlhdCI6MTUxODQ2OTI3MiwibmJmIjoxNTE4NDY5MjcyLCJleHAiOjE1MTg0NzMxNzIsImFpbyI6IjQyUmdZRGkyemt2VGE4UEpsLzNpZjhVOU9mNnlBQUE9IiwiYXBwaWQiOiI5OGVhZmY4Ny00ZTVkLTRlNDgtOGRhZC00YmQyZGY4YmQwMWEiLCJhcHBpZGFjciI6IjEiLCJlX2V4cCI6MjYyODAwLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsIm9pZCI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInN1YiI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInRpZCI6IjZiMjA2NGI5LTM0YmQtNDZlNi05MDkyLTUyZjJkZDVmN2ZjMCIsInV0aSI6Imd5V3ZrOVliVmtTQy1nTlQ5TGdCQUEiLCJ2ZXIiOiIxLjAifQ.VQbLBzNyr36T9IuPQu2iSRC7eQ0_FRxvPGcvSUJiA1pmnAmwIW85xD9a6Ak_sBpZ8cow4ZbSf8EokMHIpKvM0cuIEuQUI3-5EfYMnleUR4P83eEVDPHQV0gpVAPmUceEbSGntunoWegWo00nehdCw4sn80d434SYhDogz7nA8jjj9u4QbgrqZ9C0qNBavoV3q2H6RfpGD3IEF7Nsxkauwf1yEaf1F8eGhN3Lv5qqnqKW6eRQEclCN1hoEuKwZoQTPa_5uwcUsxrfrFH2T-b7qUGyXLUw-2_mVvOLF3izhjoAVUOrSooDeBy_4WtEIISAVNrcsLVGrkCrtPFk5liPfA"}'} - headers: - cache-control: ['no-cache, no-store'] - content-length: ['1387'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:06:12 GMT'] - expires: ['-1'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - pragma: [no-cache] - server: [Microsoft-IIS/10.0] - set-cookie: [stsservicecookie=estsppe; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-clitelem: ['1,0,0,,'] - 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 show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 - msrest_azure/0.4.21 resourcemanagementclient/1.3.0rc1 Azure-SDK-For-Python - AZURECLI/2.0.27] - accept-language: [en-US] - method: GET - uri: https://api-dogfood.resources.windows-int.net/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-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1033'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:06: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: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2F6b2064b9-34bd-46e6-9092-52f2dd5f7fc0%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: {string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/.well-known/openid-configuration"}'} - headers: - access-control-allow-methods: ['GET, OPTIONS'] - access-control-allow-origin: ['*'] - cache-control: [private] - content-length: ['131'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:06:13 GMT'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - server: [Microsoft-IIS/10.0] - set-cookie: [esctx=AQABAAAAAABHh4kmS_aKT5XrjzxRAtHzeGd4wX9YexdZpdJ6Sfdm-dyHdvpeT0f8u5pYyvh_LWssYCmReac5nWgRVcVhG9sEMrg57iLH6nZGwGbxtY5wfNtTgwk5kyqfRUgBlDRN6ZVCYoFmamQxq1uMGs3u68y7xObUI4OVez00AtRcfOgrM3QtSOGr8h8yRFHlVbB09iwgAA; - domain=.login.windows.net; path=/; secure; HttpOnly, x-ms-gateway-slice=corp; - path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -- request: - body: grant_type=client_credentials&client_id=98eaff87-4e5d-4e48-8dad-4bd2df8bd01a&resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_secret=ManangementGroupServicePrincipal%40123 - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['183'] - User-Agent: [python-requests/2.18.4] - content-type: [application/x-www-form-urlencoded] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: POST - uri: https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/oauth2/token - response: - body: {string: '{"token_type":"Bearer","expires_in":"3600","ext_expires_in":"262800","expires_on":"1518473174","not_before":"1518469274","resource":"https://management.core.windows.net/","access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSIsImtpZCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsImlhdCI6MTUxODQ2OTI3NCwibmJmIjoxNTE4NDY5Mjc0LCJleHAiOjE1MTg0NzMxNzQsImFpbyI6IjQyUmdZSkJ5RTJMaFhicXcrL1ZpZm45RzFvVWhBQT09IiwiYXBwaWQiOiI5OGVhZmY4Ny00ZTVkLTRlNDgtOGRhZC00YmQyZGY4YmQwMWEiLCJhcHBpZGFjciI6IjEiLCJlX2V4cCI6MjYyODAwLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsIm9pZCI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInN1YiI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInRpZCI6IjZiMjA2NGI5LTM0YmQtNDZlNi05MDkyLTUyZjJkZDVmN2ZjMCIsInV0aSI6IjZyWVRZRFhuOUVLU3RxZ19rNjhCQUEiLCJ2ZXIiOiIxLjAifQ.EdlvUToMEMGiQl0Q6y3GFRETeVziigj3FcWhlGcdAGVwJxD8YqOE9BPOUgYShW1OWHn2glcwO3JaZdgiWr0AAVMLqua9iewuj6TTNboW3qHoSntgoKGkkOTKHZ1TB6kcFqIQMaymgk3tT8XAUyHXgA8pfEygDXhV3ss2J9Kw7VU6SVvAcMBLU67RbI7LiHvDdH4BCHVvBHK-031nLRag8ZYePqS2FeAxx3H2QQ0fMG-vrOPhyutE_3BCD9Iv3toWGAkWhrMT5nFUPlKZWeFcdZjzwEp2EcB1R6t-mWLs41yxkZHBjrHmCPfJU3IUuDZS5OsMysNsT_mjq2P5ZZb0lA"}'} - headers: - cache-control: ['no-cache, no-store'] - content-length: ['1387'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:06:14 GMT'] - expires: ['-1'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - pragma: [no-cache] - server: [Microsoft-IIS/10.0] - set-cookie: [stsservicecookie=estsppe; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-clitelem: ['1,0,0,,'] - x-powered-by: [ASP.NET] - 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] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 - msrest_azure/0.4.21 azure-mgmt-managementgroups/2017-11-01-preview Azure-SDK-For-Python - AZURECLI/2.0.27] - accept-language: [en-US] - method: GET - uri: https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/managementGroups/testGroup123?api-version=2017-11-01-preview&$expand=children&$recurse=true - response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testGroup123","type":"/providers/Microsoft.Management/managementGroups","name":"testGroup123","properties":{"tenantId":"6b2064b9-34bd-46e6-9092-52f2dd5f7fc0","displayName":"New - Display Name","details":{"version":2,"updatedTime":"2018-02-01T12:04:10.8271442Z","updatedBy":"64360beb-ffb4-43a8-9314-01aa34db95a9","parent":{"parentId":"/providers/Microsoft.Management/managementGroups/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0","displayName":"6b2064b9-34bd-46e6-9092-52f2dd5f7fc0"}},"children":[{"childType":"/managementGroup","childId":"/providers/Microsoft.Management/managementGroups/testGroup123Child1","displayName":"TestGroup123->Child1","children":[{"childType":"/managementGroup","childId":"/providers/Microsoft.Management/managementGroups/testGroup123Child1Child1","displayName":"TestGroup123->Child1->Child1"}]},{"childType":"/managementGroup","childId":"/providers/Microsoft.Management/managementGroups/TestPSNewGroup4","displayName":"TestNewGrp4DisplayName"},{"childType":"/managementGroup","childId":"/providers/Microsoft.Management/managementGroups/TestPSNewGroup1","displayName":"TestNewGrp1DisplayName"},{"childType":"/managementGroup","childId":"/providers/Microsoft.Management/managementGroups/TestPSNewGroup2","displayName":"TestNewGrp2DisplayName"},{"childType":"/subscription","childId":"/subscriptions/00000000-0000-0000-0000-000000000000","displayName":"Pay-As-You-Go"}]}}'} - headers: - cache-control: [no-cache] - content-length: ['1442'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 21:06:15 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [e42a821b-b9c8-45c0-863f-5b63c817cd28] - 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.520] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -version: 1 diff --git a/src/managementgroups/azext_managementgroups/tests/latest/recordings/test_update_managementgroup_with_displayname.yaml b/src/managementgroups/azext_managementgroups/tests/latest/recordings/test_update_managementgroup_with_displayname.yaml deleted file mode 100644 index 91932df45df..00000000000 --- a/src/managementgroups/azext_managementgroups/tests/latest/recordings/test_update_managementgroup_with_displayname.yaml +++ /dev/null @@ -1,296 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2F6b2064b9-34bd-46e6-9092-52f2dd5f7fc0%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: {string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/.well-known/openid-configuration"}'} - headers: - access-control-allow-methods: ['GET, OPTIONS'] - access-control-allow-origin: ['*'] - cache-control: [private] - content-length: ['131'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 23:22:50 GMT'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - server: [Microsoft-IIS/10.0] - set-cookie: [esctx=AQABAAAAAABHh4kmS_aKT5XrjzxRAtHzMU7zLnfmD6H1KpIr1x6_VIzuZtqAVyvaHI9bx1rVqULNruU0ADgD3GhSR_pVdEJQKhDcmaAIZrzpaYIuZF25wA4iUM0PE0QRpOMnIP62cs1P2I9YPigaoh8fi62kn6NnbFl5ijk31wiYf2Xf53hBvDUZIm5grNJwrrbL3tKNLMsgAA; - domain=.login.windows.net; path=/; secure; HttpOnly, x-ms-gateway-slice=corp; - path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -- request: - body: grant_type=client_credentials&client_id=98eaff87-4e5d-4e48-8dad-4bd2df8bd01a&resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_secret=ManangementGroupServicePrincipal%40123 - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['183'] - User-Agent: [python-requests/2.18.4] - content-type: [application/x-www-form-urlencoded] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: POST - uri: https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/oauth2/token - response: - body: {string: '{"token_type":"Bearer","expires_in":"3599","ext_expires_in":"262800","expires_on":"1518481372","not_before":"1518477472","resource":"https://management.core.windows.net/","access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSIsImtpZCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsImlhdCI6MTUxODQ3NzQ3MiwibmJmIjoxNTE4NDc3NDcyLCJleHAiOjE1MTg0ODEzNzIsImFpbyI6IjQyUmdZRmh3YnpmSC9iMThCWnJIdFR1TXVoazNBd0E9IiwiYXBwaWQiOiI5OGVhZmY4Ny00ZTVkLTRlNDgtOGRhZC00YmQyZGY4YmQwMWEiLCJhcHBpZGFjciI6IjEiLCJlX2V4cCI6MjYyODAwLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsIm9pZCI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInN1YiI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInRpZCI6IjZiMjA2NGI5LTM0YmQtNDZlNi05MDkyLTUyZjJkZDVmN2ZjMCIsInV0aSI6IlFuc2ZvbG1MMVVhRFpiOENWSjRDQUEiLCJ2ZXIiOiIxLjAifQ.H1P-ymydxvcACuZXXvIO1B9ZjXQ6aTxjBqZFBazmGF8oBn_Y6W-bJ-IcePFOdJGq0P1zJOlX0zhflju8BadCDpGEnxjcKopA9VerfuvRQEbp0efNRKbKBcV2rerZ0i6h4VhtkA4a3CUNWbTouRYLN-0m3fECKng7wxbXAE610uOfdZfNJG7URTzseAMr1C2PQdpS90qDlEFkuea30FuvbC9T1-IZUACzhdMN54a2hqoFQvf2AjHL625K5fv0vZBdNWntqIkmv6yIE4zojZ_djH8-V2TD2ptfemCXaXc3T3JAVFgOqeDKVJpkkNykNEz96mKOn9rwIsxR6XwAUMv7bg"}'} - headers: - cache-control: ['no-cache, no-store'] - content-length: ['1387'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 23:22:52 GMT'] - expires: ['-1'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - pragma: [no-cache] - server: [Microsoft-IIS/10.0] - set-cookie: [stsservicecookie=estsppe; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-clitelem: ['1,0,0,,'] - 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 update] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 - msrest_azure/0.4.21 resourcemanagementclient/1.3.0rc1 Azure-SDK-For-Python - AZURECLI/2.0.27] - accept-language: [en-US] - method: POST - uri: https://api-dogfood.resources.windows-int.net/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-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1033'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 23:22: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: ['1198'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2F6b2064b9-34bd-46e6-9092-52f2dd5f7fc0%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: {string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/.well-known/openid-configuration"}'} - headers: - access-control-allow-methods: ['GET, OPTIONS'] - access-control-allow-origin: ['*'] - cache-control: [private] - content-length: ['131'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 23:23:03 GMT'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - server: [Microsoft-IIS/10.0] - set-cookie: [esctx=AQABAAAAAABHh4kmS_aKT5XrjzxRAtHz62k_2ss6JUsZlRyww-W-XPL3EL-jqY99quuSUtl4rpFKvCq-5SmsXPuuhv5YDzyAqyQrN7bB-Ce5HEvfPyhrevJSu1y3fUP6MYIDZoKYXZjkUjlWHT3ETrdK3OcgfCzmGN5KRufgu58E_Y-aGA2KhgxK8orOGFzl8Kq3h9ZmhH4gAA; - domain=.login.windows.net; path=/; secure; HttpOnly, x-ms-gateway-slice=corp; - path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -- request: - body: grant_type=client_credentials&client_id=98eaff87-4e5d-4e48-8dad-4bd2df8bd01a&resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_secret=ManangementGroupServicePrincipal%40123 - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['183'] - User-Agent: [python-requests/2.18.4] - content-type: [application/x-www-form-urlencoded] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: POST - uri: https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/oauth2/token - response: - body: {string: '{"token_type":"Bearer","expires_in":"3599","ext_expires_in":"262800","expires_on":"1518481383","not_before":"1518477483","resource":"https://management.core.windows.net/","access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSIsImtpZCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsImlhdCI6MTUxODQ3NzQ4MywibmJmIjoxNTE4NDc3NDgzLCJleHAiOjE1MTg0ODEzODMsImFpbyI6IjQyUmdZTWhlejJHZU42TW4vRWFlMXN2VmJwcHRBQT09IiwiYXBwaWQiOiI5OGVhZmY4Ny00ZTVkLTRlNDgtOGRhZC00YmQyZGY4YmQwMWEiLCJhcHBpZGFjciI6IjEiLCJlX2V4cCI6MjYyODAwLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsIm9pZCI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInN1YiI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInRpZCI6IjZiMjA2NGI5LTM0YmQtNDZlNi05MDkyLTUyZjJkZDVmN2ZjMCIsInV0aSI6IjZyWVRZRFhuOUVLU3RxZ185cGdDQUEiLCJ2ZXIiOiIxLjAifQ.YoNJ2Y3ickZmZSbJhyuWjq0XaTKE4USMxdGN_fAt4CcaAYuKNBv1uQgUb3XQEhsM9dOgQ_bzG4xOH8eHg3hB8O6lLKDV7ORPHhPK-l7IWkUwJj7KDbkyuNN_YuMtRxFFuzPIUnDMeT3BdQUkn8_XJ0WCbL0EAd_Mw0JTd_pTinGd19SJVk4HMaKRR4oPYDh1479TTcwK2alMiVHvk3hu8U_1B49NONhwx3Tl_QtH2T3q6VNWR_Zj0DdZcfS9Y1Aac1Bn4S5J7se8h9u3hcA5sTiRKjiynjO843Vh9AJ1y-8p1OCGNtTqXmnMIs13Qb1GVrev1tN91fAWts9M5GZ_XQ"}'} - headers: - cache-control: ['no-cache, no-store'] - content-length: ['1387'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 23:23:03 GMT'] - expires: ['-1'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - pragma: [no-cache] - server: [Microsoft-IIS/10.0] - set-cookie: [stsservicecookie=estsppe; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-clitelem: ['1,0,0,,'] - 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 update] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 - msrest_azure/0.4.21 resourcemanagementclient/1.3.0rc1 Azure-SDK-For-Python - AZURECLI/2.0.27] - accept-language: [en-US] - method: GET - uri: https://api-dogfood.resources.windows-int.net/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-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1033'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 23:23: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: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2F6b2064b9-34bd-46e6-9092-52f2dd5f7fc0%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: {string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/.well-known/openid-configuration"}'} - headers: - access-control-allow-methods: ['GET, OPTIONS'] - access-control-allow-origin: ['*'] - cache-control: [private] - content-length: ['131'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 23:23:04 GMT'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - server: [Microsoft-IIS/10.0] - set-cookie: [esctx=AQABAAAAAABHh4kmS_aKT5XrjzxRAtHziCduFd_u7tsJlAgDSHFNfnrRyq6ZxYNS1L3PppH7HFjkYRrXsadBMw-0VxQDs856QF7_ccR34qUJykbJH_FUz4q45YKQV371aSp8SdrwZwtczjWu0G72-w2kqTM32oKQc2cnWKlKZUmDUJ2xSiqY4UcmQCE3GQOPF2zDc6JRCqEgAA; - domain=.login.windows.net; path=/; secure; HttpOnly, x-ms-gateway-slice=corp; - path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -- request: - body: grant_type=client_credentials&client_id=98eaff87-4e5d-4e48-8dad-4bd2df8bd01a&resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_secret=ManangementGroupServicePrincipal%40123 - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['183'] - User-Agent: [python-requests/2.18.4] - content-type: [application/x-www-form-urlencoded] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: POST - uri: https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/oauth2/token - response: - body: {string: '{"token_type":"Bearer","expires_in":"3599","ext_expires_in":"262800","expires_on":"1518481385","not_before":"1518477485","resource":"https://management.core.windows.net/","access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSIsImtpZCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsImlhdCI6MTUxODQ3NzQ4NSwibmJmIjoxNTE4NDc3NDg1LCJleHAiOjE1MTg0ODEzODUsImFpbyI6IjQyUmdZSmc4bjNuTjl0eENzU0pad2NuaDg2MzBBUT09IiwiYXBwaWQiOiI5OGVhZmY4Ny00ZTVkLTRlNDgtOGRhZC00YmQyZGY4YmQwMWEiLCJhcHBpZGFjciI6IjEiLCJlX2V4cCI6MjYyODAwLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsIm9pZCI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInN1YiI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInRpZCI6IjZiMjA2NGI5LTM0YmQtNDZlNi05MDkyLTUyZjJkZDVmN2ZjMCIsInV0aSI6IlJydDZvcXA2TFVpTVBqX3pVOGdDQUEiLCJ2ZXIiOiIxLjAifQ.OUYS8LXlkEEW8rHPEkbhc75vmWOjEdZpKj35JnSeD3GqKOFubwOlNhdPFyOMgEal96px3jYwK7LyTO0hCdUaCmt9iyMix6ShBvOcN7gJUZqg-0-OroEwNtIC6OuRnCEj4AXnvKmf-fKCH4XJWHN4Sdm8B8h-OrU3-74OvsOdMu3zb7q1i_gmQNomqvap_9TfX8ERIRT9mrjpZKTEMjOKjykkHBN_tu4NTsnMANeWuITT-CtTeEXsaAZM7B4TElD-z7S5iKtpWWGw6kG3RXgvWYsMV7neSgxFNj9mlsHMaij4r5cF3K91qGNtldgSNWG-9nmI5syY7LJztJPIO7AAHQ"}'} - headers: - cache-control: ['no-cache, no-store'] - content-length: ['1387'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 23:23:05 GMT'] - expires: ['-1'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - pragma: [no-cache] - server: [Microsoft-IIS/10.0] - set-cookie: [stsservicecookie=estsppe; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-clitelem: ['1,0,0,,'] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -- request: - body: '{"displayName": "TestCliDisplayNameUpdate"}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Cache-Control: [no_cache] - CommandName: [account management-group update] - Connection: [keep-alive] - Content-Length: ['43'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 - msrest_azure/0.4.21 azure-mgmt-managementgroups/2017-11-01-preview Azure-SDK-For-Python - AZURECLI/2.0.27] - accept-language: [en-US] - method: PATCH - uri: https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/managementGroups/testcligroup1?api-version=2017-11-01-preview - response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroup1","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroup1","properties":{"tenantId":"6b2064b9-34bd-46e6-9092-52f2dd5f7fc0","displayName":"TestCliDisplayNameUpdate","details":{"version":6,"updatedTime":"2018-02-12T23:23:06.9294214Z","updatedBy":"8b8f2464-6ad0-4327-b9da-5cc8ac2c650d","parent":{"parentId":"/providers/Microsoft.Management/managementGroups/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0","displayName":"6b2064b9-34bd-46e6-9092-52f2dd5f7fc0"}}}}'} - headers: - cache-control: [no-cache] - content-length: ['541'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 23:23:07 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [dd52e91d-9ace-4c90-a688-97258596f0dc] - 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.520] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-tenant-writes: ['1199'] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -version: 1 diff --git a/src/managementgroups/azext_managementgroups/tests/latest/recordings/test_update_managementgroup_with_displayname_and_parentid.yaml b/src/managementgroups/azext_managementgroups/tests/latest/recordings/test_update_managementgroup_with_displayname_and_parentid.yaml deleted file mode 100644 index b15663f4e0d..00000000000 --- a/src/managementgroups/azext_managementgroups/tests/latest/recordings/test_update_managementgroup_with_displayname_and_parentid.yaml +++ /dev/null @@ -1,296 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2F6b2064b9-34bd-46e6-9092-52f2dd5f7fc0%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: {string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/.well-known/openid-configuration"}'} - headers: - access-control-allow-methods: ['GET, OPTIONS'] - access-control-allow-origin: ['*'] - cache-control: [private] - content-length: ['131'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 23:23:08 GMT'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - server: [Microsoft-IIS/10.0] - set-cookie: [esctx=AQABAAAAAABHh4kmS_aKT5XrjzxRAtHzFs6YYc4nXI5YVNlvANpOoVmpo7wYsYFJDZxmwiaiUd2IGuu2NQZbgcNzN4-Dz11IogRSv4ipCDoYLxl6o7OmjWQVOIb285RRJ2oRuWAWVA4DIazdbMaaRpk8ULkXaDMugf_lWZemzJzs2BUrLj5A7gLUEPM_SA-nBXfxQyh96Q0gAA; - domain=.login.windows.net; path=/; secure; HttpOnly, x-ms-gateway-slice=corp; - path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -- request: - body: grant_type=client_credentials&client_id=98eaff87-4e5d-4e48-8dad-4bd2df8bd01a&resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_secret=ManangementGroupServicePrincipal%40123 - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['183'] - User-Agent: [python-requests/2.18.4] - content-type: [application/x-www-form-urlencoded] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: POST - uri: https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/oauth2/token - response: - body: {string: '{"token_type":"Bearer","expires_in":"3600","ext_expires_in":"262800","expires_on":"1518481389","not_before":"1518477489","resource":"https://management.core.windows.net/","access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSIsImtpZCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsImlhdCI6MTUxODQ3NzQ4OSwibmJmIjoxNTE4NDc3NDg5LCJleHAiOjE1MTg0ODEzODksImFpbyI6IjQyUmdZQWgwQ3p2OGwyZi82eWJoazNwWmR2OE9BUUE9IiwiYXBwaWQiOiI5OGVhZmY4Ny00ZTVkLTRlNDgtOGRhZC00YmQyZGY4YmQwMWEiLCJhcHBpZGFjciI6IjEiLCJlX2V4cCI6MjYyODAwLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsIm9pZCI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInN1YiI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInRpZCI6IjZiMjA2NGI5LTM0YmQtNDZlNi05MDkyLTUyZjJkZDVmN2ZjMCIsInV0aSI6Imd5V3ZrOVliVmtTQy1nTlRVYW9DQUEiLCJ2ZXIiOiIxLjAifQ.hFtq7ufhtQl5uuWCwFjZPlz77gp2Yv7XSHnEJIMfonMz6qnClc21uVUTWCloN4ie_G50u3VxdzMqmmKXmO4eyKIjlHeEHr7fQ3UcfUdBiQUZCzxRKa9Snrj3s6cINN5YNzF4esMc9dfeq4DQ3-4SaHlylyHx5iNPjZAmPHNX2H6-vxNQDbGI5F4FbU0s02jCTLk5i-rHw27WnyP2SzmDl8rgAnyjKm7ng2mWG3N1IolS390t0RHpRyBv-rPltXE50Y-1ZINBqMIE5atW72AzsqV7H0L1Av-9113XQegV_ORpziiBtrl6MrYDwoykkrr2nUvKqzNh9xXsd4ZDqpeklg"}'} - headers: - cache-control: ['no-cache, no-store'] - content-length: ['1387'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 23:23:09 GMT'] - expires: ['-1'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - pragma: [no-cache] - server: [Microsoft-IIS/10.0] - set-cookie: [stsservicecookie=estsppe; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-clitelem: ['1,0,0,,'] - 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 update] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 - msrest_azure/0.4.21 resourcemanagementclient/1.3.0rc1 Azure-SDK-For-Python - AZURECLI/2.0.27] - accept-language: [en-US] - method: POST - uri: https://api-dogfood.resources.windows-int.net/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-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1033'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 23:23: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} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2F6b2064b9-34bd-46e6-9092-52f2dd5f7fc0%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: {string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/.well-known/openid-configuration"}'} - headers: - access-control-allow-methods: ['GET, OPTIONS'] - access-control-allow-origin: ['*'] - cache-control: [private] - content-length: ['131'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 23:23:19 GMT'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - server: [Microsoft-IIS/10.0] - set-cookie: [esctx=AQABAAAAAABHh4kmS_aKT5XrjzxRAtHzf2Ois5EII-I0o7PeyV0dpnZANhl7Lowot0um7RI-9LtWxogtjCz_6eivJgo8RcnUzVf0v9iECbUxt2LQPKHdF9YFV4tRJTYeOfzmgOfJYKLN3eY89tA_9dr_5_qiAdDnO128CjNVTQMVkeJLFNOaU_cAVmgrIyF-2lkUu05-SNwgAA; - domain=.login.windows.net; path=/; secure; HttpOnly, x-ms-gateway-slice=corp; - path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -- request: - body: grant_type=client_credentials&client_id=98eaff87-4e5d-4e48-8dad-4bd2df8bd01a&resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_secret=ManangementGroupServicePrincipal%40123 - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['183'] - User-Agent: [python-requests/2.18.4] - content-type: [application/x-www-form-urlencoded] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: POST - uri: https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/oauth2/token - response: - body: {string: '{"token_type":"Bearer","expires_in":"3599","ext_expires_in":"262800","expires_on":"1518481401","not_before":"1518477501","resource":"https://management.core.windows.net/","access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSIsImtpZCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsImlhdCI6MTUxODQ3NzUwMSwibmJmIjoxNTE4NDc3NTAxLCJleHAiOjE1MTg0ODE0MDEsImFpbyI6IjQyUmdZSkM3eVh4MFVzN3EwQlh6ejl4OVdwaTVFUUE9IiwiYXBwaWQiOiI5OGVhZmY4Ny00ZTVkLTRlNDgtOGRhZC00YmQyZGY4YmQwMWEiLCJhcHBpZGFjciI6IjEiLCJlX2V4cCI6MjYyODAwLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsIm9pZCI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInN1YiI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInRpZCI6IjZiMjA2NGI5LTM0YmQtNDZlNi05MDkyLTUyZjJkZDVmN2ZjMCIsInV0aSI6IjZyWVRZRFhuOUVLU3RxZ19YWmtDQUEiLCJ2ZXIiOiIxLjAifQ.P4lLIntCjsMf9G3h3S94M1X6VX2RxS_HphEzB-TEZgYc3RPqibbFU7kbDezRuk45fWeHJOlPLFTSOCJlLjI9HkgRMFQQj2clx62E3alfPtwshfQRmJJBTwOaOvrlOvJfE1LmsF-wk3CHSk88-UNkCrIu8nOMOKK3bGqVi1AWqlxsaItH8q7vbrS9FTqWqmTcK4IXl7UFA8etajAYxJLQmOioxfcVyxPZ1ftmj5lpExO4MipEcSCicWu-9wrUdq6XsvbZGRbKy9PzR2BbXQMBqacv7nrCktyiJfimgW0J22wRCUgJJHit9BDpvGeX_14wF7C3DqU0pK0yulb5Moeikw"}'} - headers: - cache-control: ['no-cache, no-store'] - content-length: ['1387'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 23:23:21 GMT'] - expires: ['-1'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - pragma: [no-cache] - server: [Microsoft-IIS/10.0] - set-cookie: [stsservicecookie=estsppe; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-clitelem: ['1,0,0,,'] - 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 update] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 - msrest_azure/0.4.21 resourcemanagementclient/1.3.0rc1 Azure-SDK-For-Python - AZURECLI/2.0.27] - accept-language: [en-US] - method: GET - uri: https://api-dogfood.resources.windows-int.net/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-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1033'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 23:23: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: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2F6b2064b9-34bd-46e6-9092-52f2dd5f7fc0%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: {string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/.well-known/openid-configuration"}'} - headers: - access-control-allow-methods: ['GET, OPTIONS'] - access-control-allow-origin: ['*'] - cache-control: [private] - content-length: ['131'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 23:23:22 GMT'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - server: [Microsoft-IIS/10.0] - set-cookie: [esctx=AQABAAAAAABHh4kmS_aKT5XrjzxRAtHzDCa1JwgkyP__4VXrrJfB0UQoQtUriBMOs52hVomWVIeMk2hxbRd1xpuq5uvFEWy1BKTXW5VJQntOmTCMbhoqAasBPaV7FNGECDuo_nTY_h8-EJgFfl47GYfNOiGl6Of4jTmFHYv-gnVUNXhTapJGBikHk4PClzDpAACDxfFCDNIgAA; - domain=.login.windows.net; path=/; secure; HttpOnly, x-ms-gateway-slice=corp; - path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -- request: - body: grant_type=client_credentials&client_id=98eaff87-4e5d-4e48-8dad-4bd2df8bd01a&resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_secret=ManangementGroupServicePrincipal%40123 - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['183'] - User-Agent: [python-requests/2.18.4] - content-type: [application/x-www-form-urlencoded] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: POST - uri: https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/oauth2/token - response: - body: {string: '{"token_type":"Bearer","expires_in":"3599","ext_expires_in":"262800","expires_on":"1518481402","not_before":"1518477502","resource":"https://management.core.windows.net/","access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSIsImtpZCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsImlhdCI6MTUxODQ3NzUwMiwibmJmIjoxNTE4NDc3NTAyLCJleHAiOjE1MTg0ODE0MDIsImFpbyI6IjQyUmdZSmdkMGgwK1kvMU1ybEp1enljSmpoSHZBUT09IiwiYXBwaWQiOiI5OGVhZmY4Ny00ZTVkLTRlNDgtOGRhZC00YmQyZGY4YmQwMWEiLCJhcHBpZGFjciI6IjEiLCJlX2V4cCI6MjYyODAwLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsIm9pZCI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInN1YiI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInRpZCI6IjZiMjA2NGI5LTM0YmQtNDZlNi05MDkyLTUyZjJkZDVmN2ZjMCIsInV0aSI6IlA3dUd4TnQtYzBHWGx2b0NCNTBDQUEiLCJ2ZXIiOiIxLjAifQ.S5BSauXxbv2Q88kjaiDQBZ3I_5d5J4yzhaLGRjNh6qUjsgY9_i1-wLysov0kro9ezO-V6y2KAEsXLkibMVCyItbsCHeqy9lw3bszspqO-2iPFDEsZh14JpE7AevCPdL8DA3-lofEPixe1p59c5nH0Da_nvfgWf5oR93vcgjrm58SRmv6u_8NLV8TxX_-7RiNOtC-s-2xA5yr71B_v7XK880a7ac47zVlf7j_ENArzdPciwYNNQDYEGg96VZKxDAtKBhuNi-z5S0gv_vyZZ0Q5FkBzp-QIXAO6eYXMvkSRtZjOuixcHGQQdKhjA3x6rpB4su7Zq_Olxq1oBs5ka-d7Q"}'} - headers: - cache-control: ['no-cache, no-store'] - content-length: ['1387'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 23:23:22 GMT'] - expires: ['-1'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - pragma: [no-cache] - server: [Microsoft-IIS/10.0] - set-cookie: [stsservicecookie=estsppe; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-clitelem: ['1,0,0,,'] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -- request: - body: '{"displayName": "TestCliGroupChild2DisplayUpdate", "parentId": "/providers/Microsoft.Management/managementGroups/testcligroup1"}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Cache-Control: [no_cache] - CommandName: [account management-group update] - Connection: [keep-alive] - Content-Length: ['128'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 - msrest_azure/0.4.21 azure-mgmt-managementgroups/2017-11-01-preview Azure-SDK-For-Python - AZURECLI/2.0.27] - accept-language: [en-US] - method: PATCH - uri: https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/managementGroups/testcligroupchild2?api-version=2017-11-01-preview - response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild2","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroupchild2","properties":{"tenantId":"6b2064b9-34bd-46e6-9092-52f2dd5f7fc0","displayName":"TestCliGroupChild2DisplayUpdate","details":{"version":9,"updatedTime":"2018-02-12T23:23:23.7278067Z","updatedBy":"8b8f2464-6ad0-4327-b9da-5cc8ac2c650d","parent":{"parentId":"/providers/Microsoft.Management/managementGroups/testcligroup1","displayName":"TestCliDisplayNameUpdate"}}}}'} - headers: - cache-control: [no-cache] - content-length: ['523'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 23:23:24 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [192f01d5-d5fd-4768-a660-f46ca2400f09] - 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.520] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-tenant-writes: ['1199'] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -version: 1 diff --git a/src/managementgroups/azext_managementgroups/tests/latest/recordings/test_update_managementgroup_with_parentid.yaml b/src/managementgroups/azext_managementgroups/tests/latest/recordings/test_update_managementgroup_with_parentid.yaml deleted file mode 100644 index 5bd3ba5d158..00000000000 --- a/src/managementgroups/azext_managementgroups/tests/latest/recordings/test_update_managementgroup_with_parentid.yaml +++ /dev/null @@ -1,296 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2F6b2064b9-34bd-46e6-9092-52f2dd5f7fc0%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: {string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/.well-known/openid-configuration"}'} - headers: - access-control-allow-methods: ['GET, OPTIONS'] - access-control-allow-origin: ['*'] - cache-control: [private] - content-length: ['131'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 23:23:25 GMT'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - server: [Microsoft-IIS/10.0] - set-cookie: [esctx=AQABAAAAAABHh4kmS_aKT5XrjzxRAtHznaOnNY6U_b_jllRepkqYv-H44eZmVezeapuSiNnIRZX0A1AmxzRbVxC49pGRsnXwrORkBpY4X683Bg9BbCNZPjFxPVr_6XhHR5tTMTpeyAAvJIOqGGGIoHsZAvy4njnzdZ7ATbcyiLj2dwq7Mp8ODBu68d1uBTg9VnJbMYJAUqogAA; - domain=.login.windows.net; path=/; secure; HttpOnly, x-ms-gateway-slice=corp; - path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -- request: - body: grant_type=client_credentials&client_id=98eaff87-4e5d-4e48-8dad-4bd2df8bd01a&resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_secret=ManangementGroupServicePrincipal%40123 - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['183'] - User-Agent: [python-requests/2.18.4] - content-type: [application/x-www-form-urlencoded] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: POST - uri: https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/oauth2/token - response: - body: {string: '{"token_type":"Bearer","expires_in":"3599","ext_expires_in":"262800","expires_on":"1518481406","not_before":"1518477506","resource":"https://management.core.windows.net/","access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSIsImtpZCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsImlhdCI6MTUxODQ3NzUwNiwibmJmIjoxNTE4NDc3NTA2LCJleHAiOjE1MTg0ODE0MDYsImFpbyI6IjQyUmdZRkNJbi9QNjBpblpNNU81WHoxMnRzeXZBUUE9IiwiYXBwaWQiOiI5OGVhZmY4Ny00ZTVkLTRlNDgtOGRhZC00YmQyZGY4YmQwMWEiLCJhcHBpZGFjciI6IjEiLCJlX2V4cCI6MjYyODAwLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsIm9pZCI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInN1YiI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInRpZCI6IjZiMjA2NGI5LTM0YmQtNDZlNi05MDkyLTUyZjJkZDVmN2ZjMCIsInV0aSI6Imd5V3ZrOVliVmtTQy1nTlRvcW9DQUEiLCJ2ZXIiOiIxLjAifQ.e3u4H1xoTFZkqNEVTcq6LZjQ9EJ-lfoyyy7ZTIYGaneXdUowQdyuPlLg_BwVH4wX2bHSKLb0uP8CpnMN5seJsDkCC4o819VFQ8NawBRMHv2MS2gKHtvxap2-H6e9vV00u78xrTYd0kXqWbczROs8mBkdvI0aUcRRfPcAT3IKaLf-LHA646w7IBySPF5EwH-abJvzwVsi9W0xXeYWEO46Pp1TUH9IwHpizE3IuBqnMeYQsceJkoScypG6pNSGetkuMwJWkumU2oGa0OrA0Wz-zdUZ5tLv2EPOODddmYixUefU0bO1xZoz53sYPrflwePdOV1WGbiIgJ7m5xfmwk6w7Q"}'} - headers: - cache-control: ['no-cache, no-store'] - content-length: ['1387'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 23:23:26 GMT'] - expires: ['-1'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - pragma: [no-cache] - server: [Microsoft-IIS/10.0] - set-cookie: [stsservicecookie=estsppe; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-clitelem: ['1,0,0,,'] - 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 update] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 - msrest_azure/0.4.21 resourcemanagementclient/1.3.0rc1 Azure-SDK-For-Python - AZURECLI/2.0.27] - accept-language: [en-US] - method: POST - uri: https://api-dogfood.resources.windows-int.net/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-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1033'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 23:23: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: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2F6b2064b9-34bd-46e6-9092-52f2dd5f7fc0%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: {string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/.well-known/openid-configuration"}'} - headers: - access-control-allow-methods: ['GET, OPTIONS'] - access-control-allow-origin: ['*'] - cache-control: [private] - content-length: ['131'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 23:23:37 GMT'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - server: [Microsoft-IIS/10.0] - set-cookie: [esctx=AQABAAAAAABHh4kmS_aKT5XrjzxRAtHz4tSnRSsJ1mfyk_9abbtLALc3ryTkCH-agaHYLylRxUwqaBXSFnsdtb3NKTlh5N33_A_Q7uFaBmKirBrFtfvyPLi1KoC_SyaaMRCg6Z8atRgewKYiMESFh51pm0IqF-yjRZaCm71unXZI8VLX1UyeR0uFkQKsQB2B4kb271dMmFogAA; - domain=.login.windows.net; path=/; secure; HttpOnly, x-ms-gateway-slice=corp; - path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -- request: - body: grant_type=client_credentials&client_id=98eaff87-4e5d-4e48-8dad-4bd2df8bd01a&resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_secret=ManangementGroupServicePrincipal%40123 - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['183'] - User-Agent: [python-requests/2.18.4] - content-type: [application/x-www-form-urlencoded] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: POST - uri: https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/oauth2/token - response: - body: {string: '{"token_type":"Bearer","expires_in":"3599","ext_expires_in":"262800","expires_on":"1518481418","not_before":"1518477518","resource":"https://management.core.windows.net/","access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSIsImtpZCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsImlhdCI6MTUxODQ3NzUxOCwibmJmIjoxNTE4NDc3NTE4LCJleHAiOjE1MTg0ODE0MTgsImFpbyI6IjQyUmdZR0RMcWp3a1hxR1Z6dU4wL1BNWkU2TXVBQT09IiwiYXBwaWQiOiI5OGVhZmY4Ny00ZTVkLTRlNDgtOGRhZC00YmQyZGY4YmQwMWEiLCJhcHBpZGFjciI6IjEiLCJlX2V4cCI6MjYyODAwLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsIm9pZCI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInN1YiI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInRpZCI6IjZiMjA2NGI5LTM0YmQtNDZlNi05MDkyLTUyZjJkZDVmN2ZjMCIsInV0aSI6IlJydDZvcXA2TFVpTVBqX3pNY2tDQUEiLCJ2ZXIiOiIxLjAifQ.i7Ep06tx7C03JUf90Blb6QWcehwgz8v1d4oWmeHJJuGVMT9fAjSdNH_TZ1NxYTBHSeEgVgCV7HyKIbGyhsI69VQ1QNvJ2_wPqlkBEucSvagWjSzBObNd0UMp6ApUWSiGUvKZF3eLYpgjQ9ej238ccUo9iq4MVHs2W3BkWAE579qZk9pgAfzMxEqH9BkFx5Ad8RQEMazKoIxDTWJOeQVF_rj6ZS397YYjMDNFcyUfMO56JUZ-OFu0wQM_Z1pd6zHQ8OHm7-4DoR5_jmcDZHYO8bFlYFLguvt67WzuZWn1pk4JKT7uwv2g18rByVM99edydsA39R8YjDIXEvIXD9LGmw"}'} - headers: - cache-control: ['no-cache, no-store'] - content-length: ['1387'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 23:23:37 GMT'] - expires: ['-1'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - pragma: [no-cache] - server: [Microsoft-IIS/10.0] - set-cookie: [stsservicecookie=estsppe; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-clitelem: ['1,0,0,,'] - 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 update] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 - msrest_azure/0.4.21 resourcemanagementclient/1.3.0rc1 Azure-SDK-For-Python - AZURECLI/2.0.27] - accept-language: [en-US] - method: GET - uri: https://api-dogfood.resources.windows-int.net/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-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]}],"registrationState":"Registered"}'} - headers: - cache-control: [no-cache] - content-length: ['1033'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 23:23: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: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: GET - uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2F6b2064b9-34bd-46e6-9092-52f2dd5f7fc0%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: {string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/.well-known/openid-configuration"}'} - headers: - access-control-allow-methods: ['GET, OPTIONS'] - access-control-allow-origin: ['*'] - cache-control: [private] - content-length: ['131'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 23:23:39 GMT'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - server: [Microsoft-IIS/10.0] - set-cookie: [esctx=AQABAAAAAABHh4kmS_aKT5XrjzxRAtHzx6lrYiAOOyM4EthctU5pZP6tniyeqeK82R8oTdki9QCaV3mpsP1dCPS_uLtnnvUfFBAGZQA_0S-XqN5pUQqGFEPVvugHnu6bjb8fAl4O1RJ19aGWJJSO49fClZ8wAhAT1zaeQZMFkQVI_0V6-1FfU3umjHtRfW6w7AKY76MP4zYgAA; - domain=.login.windows.net; path=/; secure; HttpOnly, x-ms-gateway-slice=corp; - path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -- request: - body: grant_type=client_credentials&client_id=98eaff87-4e5d-4e48-8dad-4bd2df8bd01a&resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_secret=ManangementGroupServicePrincipal%40123 - headers: - Accept: ['*/*'] - Accept-Charset: [utf-8] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['183'] - User-Agent: [python-requests/2.18.4] - content-type: [application/x-www-form-urlencoded] - return-client-request-id: ['true'] - x-client-CPU: [x64] - x-client-OS: [win32] - x-client-SKU: [Python] - x-client-Ver: [0.5.0] - method: POST - uri: https://login.windows-ppe.net/6b2064b9-34bd-46e6-9092-52f2dd5f7fc0/oauth2/token - response: - body: {string: '{"token_type":"Bearer","expires_in":"3599","ext_expires_in":"262800","expires_on":"1518481420","not_before":"1518477520","resource":"https://management.core.windows.net/","access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSIsImtpZCI6ImFGSTdlVlZwVl8yOFNZblJsMWRiTmI4UVZMQSJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsImlhdCI6MTUxODQ3NzUyMCwibmJmIjoxNTE4NDc3NTIwLCJleHAiOjE1MTg0ODE0MjAsImFpbyI6IjQyUmdZR0NkK2ZhajhLZkZzVXU2OXgwOFVmejdHQUE9IiwiYXBwaWQiOiI5OGVhZmY4Ny00ZTVkLTRlNDgtOGRhZC00YmQyZGY4YmQwMWEiLCJhcHBpZGFjciI6IjEiLCJlX2V4cCI6MjYyODAwLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvNmIyMDY0YjktMzRiZC00NmU2LTkwOTItNTJmMmRkNWY3ZmMwLyIsIm9pZCI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInN1YiI6IjhiOGYyNDY0LTZhZDAtNDMyNy1iOWRhLTVjYzhhYzJjNjUwZCIsInRpZCI6IjZiMjA2NGI5LTM0YmQtNDZlNi05MDkyLTUyZjJkZDVmN2ZjMCIsInV0aSI6IlFuc2ZvbG1MMVVhRFpiOENRWjhDQUEiLCJ2ZXIiOiIxLjAifQ.VaK2Oy9p85mF_hmxyPj4B6l4Y5Ta1OyA9rqMFjpFI15X0BNxob52gscaFTUnmCwfOZuPB5T4AVUzP3vxhdWw_Dm7Vv-l319rku6ztfGermhu4K-OPLLvfjFAA8tA3OSo6DrBvMLRCrdVQdsRiZNpEPIEq-r5eX-Omfc1G-eNulIxNJSpVBEanrbbhuX21PZoW-pyrGHg5TiCfyey9iGThLNurKUilcZ3kdZlJ2n0-xMG6Bcb-1MF7nWH7-QMyU-fGiz1YhKEXSljTRtiYGrKygTRQPzpgeXZTjP5ZvalJutrHqiw_qg2Yz0IHJqNkI8sQ33FOxmrEQHcNGbXTf9vRA"}'} - headers: - cache-control: ['no-cache, no-store'] - content-length: ['1387'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 23:23:39 GMT'] - expires: ['-1'] - p3p: [CP="DSP CUR OTPi IND OTRi ONL FIN"] - pragma: [no-cache] - server: [Microsoft-IIS/10.0] - set-cookie: [stsservicecookie=estsppe; path=/; secure; HttpOnly] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-clitelem: ['1,0,0,,'] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -- request: - body: '{"parentId": "/providers/Microsoft.Management/managementGroups/testcligroup1"}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Cache-Control: [no_cache] - CommandName: [account management-group update] - Connection: [keep-alive] - Content-Length: ['78'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 - msrest_azure/0.4.21 azure-mgmt-managementgroups/2017-11-01-preview Azure-SDK-For-Python - AZURECLI/2.0.27] - accept-language: [en-US] - method: PATCH - uri: https://api-dogfood.resources.windows-int.net/providers/Microsoft.Management/managementGroups/testcligroupchild?api-version=2017-11-01-preview - response: - body: {string: '{"id":"/providers/Microsoft.Management/managementGroups/testcligroupchild","type":"/providers/Microsoft.Management/managementGroups","name":"testcligroupchild","properties":{"tenantId":"6b2064b9-34bd-46e6-9092-52f2dd5f7fc0","displayName":"testcligroupchild","details":{"version":6,"updatedTime":"2018-02-12T23:21:29.2014874Z","updatedBy":"8b8f2464-6ad0-4327-b9da-5cc8ac2c650d","parent":{"parentId":"/providers/Microsoft.Management/managementGroups/testcligroup1","displayName":"TestCliDisplayNameUpdate"}}}}'} - headers: - cache-control: [no-cache] - content-length: ['507'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 12 Feb 2018 23:23:41 GMT'] - expires: ['-1'] - pragma: [no-cache] - request-id: [b5c88a56-82cf-417e-ae1e-ead5fbfc6101] - 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.520] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-tenant-writes: ['1199'] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -version: 1 diff --git a/src/managementgroups/azext_managementgroups/tests/latest/test_managementgroups_commands.py b/src/managementgroups/azext_managementgroups/tests/latest/test_managementgroups_commands.py deleted file mode 100644 index 2bfe1cb2c1a..00000000000 --- a/src/managementgroups/azext_managementgroups/tests/latest/test_managementgroups_commands.py +++ /dev/null @@ -1,273 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- - -from azure.cli.testsdk import ScenarioTest, record_only - - -@record_only() -class AzureManagementGroupsScenarioTest(ScenarioTest): - 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"], - "/providers/Microsoft.Management/managementGroups") - - def test_show_managementgroup(self): - managementgroup_get = self.cmd( - 'account management-group show --group-name testGroup123').get_output_in_json() - self.assertIsNotNone(managementgroup_get) - self.assertIsNone(managementgroup_get["children"]) - self.assertIsNotNone(managementgroup_get["details"]) - self.assertIsNotNone( - managementgroup_get["details"]["parent"]["displayName"]) - self.assertIsNotNone( - managementgroup_get["details"]["parent"]["parentId"]) - self.assertTrue(managementgroup_get["details"]["parent"]["parentId"].startswith( - "/providers/Microsoft.Management/managementGroups/")) - self.assertIsNotNone(managementgroup_get["displayName"]) - self.assertIsNotNone(managementgroup_get["name"]) - self.assertIsNotNone(managementgroup_get["tenantId"]) - self.assertEqual( - managementgroup_get["type"], - "/providers/Microsoft.Management/managementGroups") - - def test_show_managementgroup_with_expand(self): - managementgroup_get = self.cmd( - 'account management-group show --group-name testGroup123 --expand').get_output_in_json() - self.assertIsNotNone(managementgroup_get) - self.assertIsNotNone(managementgroup_get["details"]) - self.assertIsNotNone( - managementgroup_get["details"]["parent"]["displayName"]) - self.assertIsNotNone( - managementgroup_get["details"]["parent"]["parentId"]) - self.assertTrue(managementgroup_get["details"]["parent"]["parentId"].startswith( - "/providers/Microsoft.Management/managementGroups/")) - self.assertIsNotNone(managementgroup_get["displayName"]) - self.assertIsNotNone(managementgroup_get["name"]) - self.assertIsNotNone(managementgroup_get["tenantId"]) - self.assertEqual( - managementgroup_get["type"], - "/providers/Microsoft.Management/managementGroups") - self.assertIsNotNone(managementgroup_get["children"]) - self.assertIsNotNone(managementgroup_get["children"][0]["childId"]) - self.assertIsNotNone(managementgroup_get["children"][0]["childType"]) - self.assertIsNotNone(managementgroup_get["children"][0]["displayName"]) - self.assertIsNone(managementgroup_get["children"][0]["children"]) - - def test_show_managementgroup_with_expand_and_recurse(self): - managementgroup_get = self.cmd( - 'account management-group show --group-name testGroup123 --expand --recurse').get_output_in_json() - self.assertIsNotNone(managementgroup_get) - self.assertIsNotNone(managementgroup_get["details"]) - self.assertIsNotNone( - managementgroup_get["details"]["parent"]["displayName"]) - self.assertIsNotNone( - managementgroup_get["details"]["parent"]["parentId"]) - self.assertTrue(managementgroup_get["details"]["parent"]["parentId"].startswith( - "/providers/Microsoft.Management/managementGroups/")) - self.assertIsNotNone(managementgroup_get["displayName"]) - self.assertIsNotNone(managementgroup_get["name"]) - self.assertIsNotNone(managementgroup_get["tenantId"]) - self.assertEqual( - managementgroup_get["type"], - "/providers/Microsoft.Management/managementGroups") - self.assertIsNotNone(managementgroup_get["children"]) - self.assertIsNotNone(managementgroup_get["children"][0]["childId"]) - self.assertIsNotNone(managementgroup_get["children"][0]["childType"]) - self.assertIsNotNone(managementgroup_get["children"][0]["displayName"]) - self.assertIsNotNone( - managementgroup_get["children"][0]["children"][0]["childId"]) - self.assertIsNotNone( - managementgroup_get["children"][0]["children"][0]["childType"]) - self.assertIsNotNone( - managementgroup_get["children"][0]["children"][0]["displayName"]) - - def test_create_managementgroup(self): - name = "testcligroup" - displayName = "testcligroup" - managementgroup_create = self.cmd( - 'account management-group create --group-name ' + - name).get_output_in_json() - self.assertIsNone(managementgroup_create["children"]) - self.assertIsNotNone(managementgroup_create["details"]) - self.assertIsNotNone( - managementgroup_create["details"]["parent"]["displayName"]) - self.assertIsNotNone( - managementgroup_create["details"]["parent"]["parentId"]) - self.assertTrue(managementgroup_create["details"]["parent"]["parentId"].startswith( - "/providers/Microsoft.Management/managementGroups/")) - self.assertEqual(managementgroup_create["displayName"], displayName) - self.assertEqual(managementgroup_create["name"], name) - self.assertIsNotNone(managementgroup_create["tenantId"]) - self.assertEqual( - managementgroup_create["type"], - "/providers/Microsoft.Management/managementGroups") - - def test_create_managementgroup_with_displayname(self): - name = "testcligroup1" - displayName = "TestCliDisplayName" - managementgroup_create = self.cmd( - 'account management-group create --group-name ' + - name + - ' --display-name ' + - displayName).get_output_in_json() - self.assertIsNone(managementgroup_create["children"]) - self.assertIsNotNone(managementgroup_create["details"]) - self.assertIsNotNone( - managementgroup_create["details"]["parent"]["displayName"]) - self.assertIsNotNone( - managementgroup_create["details"]["parent"]["parentId"]) - self.assertTrue(managementgroup_create["details"]["parent"]["parentId"].startswith( - "/providers/Microsoft.Management/managementGroups/")) - self.assertEqual(managementgroup_create["displayName"], displayName) - self.assertEqual(managementgroup_create["name"], name) - self.assertIsNotNone(managementgroup_create["tenantId"]) - self.assertEqual( - managementgroup_create["type"], - "/providers/Microsoft.Management/managementGroups") - - def test_create_managementgroup_with_parentid(self): - name = "testcligroupchild" - displayName = "testcligroupchild" - parentId = "/providers/Microsoft.Management/managementGroups/testcligroup" - managementgroup_create = self.cmd( - 'account management-group create --group-name ' + - name + - ' --parent-id ' + - parentId).get_output_in_json() - self.assertIsNone(managementgroup_create["children"]) - self.assertIsNotNone(managementgroup_create["details"]) - self.assertIsNotNone( - managementgroup_create["details"]["parent"]["displayName"]) - self.assertIsNotNone( - managementgroup_create["details"]["parent"]["parentId"]) - self.assertEqual( - managementgroup_create["details"]["parent"]["parentId"], - parentId) - self.assertEqual(managementgroup_create["displayName"], displayName) - self.assertEqual(managementgroup_create["name"], name) - self.assertIsNotNone(managementgroup_create["tenantId"]) - self.assertEqual( - managementgroup_create["type"], - "/providers/Microsoft.Management/managementGroups") - - def test_create_managementgroup_with_displayname_and_parentid(self): - name = "testcligroupchild2" - displayName = "TestCliGroupChild2Display" - parentId = "/providers/Microsoft.Management/managementGroups/testcligroup" - managementgroup_create = self.cmd( - 'account management-group create --group-name ' + - name + - ' --display-name ' + - displayName + - ' --parent-id ' + - parentId).get_output_in_json() - self.assertIsNone(managementgroup_create["children"]) - self.assertIsNotNone(managementgroup_create["details"]) - self.assertIsNotNone( - managementgroup_create["details"]["parent"]["displayName"]) - self.assertIsNotNone( - managementgroup_create["details"]["parent"]["parentId"]) - self.assertEqual( - managementgroup_create["details"]["parent"]["parentId"], - parentId) - self.assertEqual(managementgroup_create["displayName"], displayName) - self.assertEqual(managementgroup_create["name"], name) - self.assertIsNotNone(managementgroup_create["tenantId"]) - self.assertEqual( - managementgroup_create["type"], - "/providers/Microsoft.Management/managementGroups") - - def test_update_managementgroup_with_displayname(self): - name = "testcligroup1" - displayName = "TestCliDisplayNameUpdate" - managementgroup_update = self.cmd( - 'account management-group update --group-name ' + - name + - ' --display-name ' + - displayName).get_output_in_json() - self.assertIsNone(managementgroup_update["children"]) - self.assertIsNotNone(managementgroup_update["details"]) - self.assertIsNotNone( - managementgroup_update["details"]["parent"]["displayName"]) - self.assertIsNotNone( - managementgroup_update["details"]["parent"]["parentId"]) - self.assertTrue(managementgroup_update["details"]["parent"]["parentId"].startswith( - "/providers/Microsoft.Management/managementGroups/")) - self.assertEqual(managementgroup_update["displayName"], displayName) - self.assertEqual(managementgroup_update["name"], name) - self.assertIsNotNone(managementgroup_update["tenantId"]) - self.assertEqual( - managementgroup_update["type"], - "/providers/Microsoft.Management/managementGroups") - - def test_update_managementgroup_with_parentid(self): - name = "testcligroupchild" - displayName = "testcligroupchild" - parentId = "/providers/Microsoft.Management/managementGroups/testcligroup1" - managementgroup_update = self.cmd( - 'account management-group update --group-name ' + - name + - ' --parent-id ' + - parentId).get_output_in_json() - self.assertIsNone(managementgroup_update["children"]) - self.assertIsNotNone(managementgroup_update["details"]) - self.assertIsNotNone( - managementgroup_update["details"]["parent"]["displayName"]) - self.assertIsNotNone( - managementgroup_update["details"]["parent"]["parentId"]) - self.assertEqual( - managementgroup_update["details"]["parent"]["parentId"], - parentId) - self.assertEqual(managementgroup_update["displayName"], displayName) - self.assertEqual(managementgroup_update["name"], name) - self.assertIsNotNone(managementgroup_update["tenantId"]) - self.assertEqual( - managementgroup_update["type"], - "/providers/Microsoft.Management/managementGroups") - - def test_update_managementgroup_with_displayname_and_parentid(self): - name = "testcligroupchild2" - displayName = "TestCliGroupChild2DisplayUpdate" - parentId = "/providers/Microsoft.Management/managementGroups/testcligroup1" - managementgroup_update = self.cmd( - 'account management-group update --group-name ' + - name + - ' --display-name ' + - displayName + - ' --parent-id ' + - parentId).get_output_in_json() - self.assertIsNone(managementgroup_update["children"]) - self.assertIsNotNone(managementgroup_update["details"]) - self.assertIsNotNone( - managementgroup_update["details"]["parent"]["displayName"]) - self.assertIsNotNone( - managementgroup_update["details"]["parent"]["parentId"]) - self.assertEqual( - managementgroup_update["details"]["parent"]["parentId"], - parentId) - self.assertEqual(managementgroup_update["displayName"], displayName) - self.assertEqual(managementgroup_update["name"], name) - self.assertIsNotNone(managementgroup_update["tenantId"]) - self.assertEqual( - managementgroup_update["type"], - "/providers/Microsoft.Management/managementGroups") - - def test_add_remove_subscription_managementgroup(self): - self.cmd( - 'account management-group subscription add --group-name testGroup123 --subscription "Pay-As-You-Go"') - self.cmd('account management-group subscription remove --group-name testGroup123 --subscription "2a418b54-7643-4d8f-982c-d0802205d12c"') - - def test_create_delete_group_managementgroup(self): - self.cmd('account management-group create --group-name testclirandgroup') - self.cmd('account management-group delete --group-name testclirandgroup') diff --git a/src/managementgroups/setup.cfg b/src/managementgroups/setup.cfg deleted file mode 100644 index 3c6e79cf31d..00000000000 --- a/src/managementgroups/setup.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[bdist_wheel] -universal=1 diff --git a/src/managementgroups/setup.py b/src/managementgroups/setup.py deleted file mode 100644 index e76576b80bd..00000000000 --- a/src/managementgroups/setup.py +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env python - -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- - -from codecs import open -from setuptools import setup, find_packages - -VERSION = "0.1.0" - -CLASSIFIERS = [ - 'Development Status :: 4 - Beta', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Programming Language :: Python', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.4', - 'Programming Language :: Python :: 3.5', - 'Programming Language :: Python :: 3.6', - 'License :: OSI Approved :: MIT License', -] - -DEPENDENCIES = [] - -setup( - name='managementgroups', - version=VERSION, - description='An Azure CLI Extension for Management Groups', - long_description='An Azure CLI Extension for Management Groups', - license='MIT', - author='Raj Shah', - author_email='shahraj@microsoft.com', - url='https://github.com/Azure/azure-cli-extensions', - classifiers=CLASSIFIERS, - packages=find_packages(exclude=["tests"]), - install_requires=DEPENDENCIES -)